public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: Build error try to build GCC 4.2.4 using GCC 4.8.2 on Fedora 20
@ 2014-01-14 19:15 Mark Petronic
  2014-01-14 20:55 ` Jonathan Wakely
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Petronic @ 2014-01-14 19:15 UTC (permalink / raw)
  To: gcc-help

This is my first post to this listing and first time I am trying to build GCC. I have a legacy application that is using 4.2.4 and running on an old build server. I need to migrate this to a new build server and want to start using a modern age version of GCC (4.8.2). I can successfully build the app with 4.8.2 but many unit tests are failing for strange reasons and is actually revealing possible bugs that have gone undetected but now are appearing when built with a new version of GCC. To help with understanding what changes between the two builds, I want to be able to build with both 4.2.4 on 4.8.2 on the new build server and be able to use my debugger to analyze the test runs and solve the problems. So, that's the answer to the "why would you want to use 4.2.4" question.

I followed the good build instructions on the GNU web site and I believe my build server is setup up properly to do a build of GCC. It is clean install of Fedora 20. The build gets well along and then I get error below. Below is the configure output and a snippet of the end of the console output where the build fails.

Any tips you might give are greatly appreciated.

Thanks,
Mark

[root@localhost 424obj]# ../gcc-4.2.4/configure --prefix=/usr/local/tools/gcc/4.2.4 
creating cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gnatbind... gnatbind
checking whether compiler driver understands Ada... yes
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... yes
checking for any version of mpfr.h... yes
The following languages will be built: c,c++,fortran,java,objc
*** This configuration is not supported in the following subdirectories:
     target-libada gnattools
    (Any other directories should still work fine.)
checking for bison... no
checking for byacc... no
checking for yacc... no
checking for bison... no
checking for gm4... no
checking for gnum4... no
checking for m4... no
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
checking for expect... no
checking for runtest... no
checking for x86_64-unknown-linux-gnu-ar... no
checking for ar... ar
checking for x86_64-unknown-linux-gnu-as... no
checking for as... as
checking for x86_64-unknown-linux-gnu-dlltool... no
checking for dlltool... no
checking for x86_64-unknown-linux-gnu-ld... no
checking for ld... ld
checking for x86_64-unknown-linux-gnu-lipo... no
checking for lipo... no
checking for x86_64-unknown-linux-gnu-nm... no
checking for nm... nm
checking for x86_64-unknown-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for x86_64-unknown-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-unknown-linux-gnu-windres... no
checking for windres... no
checking for x86_64-unknown-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking for x86_64-unknown-linux-gnu-objdump... no
checking for objdump... objdump
checking for x86_64-unknown-linux-gnu-cc... no
checking for cc... cc
checking for x86_64-unknown-linux-gnu-c++... no
checking for c++... c++
checking for x86_64-unknown-linux-gnu-gcc... no
checking for gcc... gcc
checking for x86_64-unknown-linux-gnu-gcj... no
checking for gcj... no
checking for x86_64-unknown-linux-gnu-gfortran... no
checking for gfortran... no
checking for ar... no
checking for x86_64-unknown-linux-gnu-ar... no
checking for ar... ar
checking for as... no
checking for x86_64-unknown-linux-gnu-as... no
checking for as... as
checking for dlltool... no
checking for x86_64-unknown-linux-gnu-dlltool... no
checking for dlltool... no
checking for ld... no
checking for x86_64-unknown-linux-gnu-ld... no
checking for ld... ld
checking for lipo... no
checking for x86_64-unknown-linux-gnu-lipo... no
checking for lipo... no
checking for nm... no
checking for x86_64-unknown-linux-gnu-nm... no
checking for nm... nm
checking for objdump... no
checking for x86_64-unknown-linux-gnu-objdump... no
checking for objdump... objdump
checking for ranlib... no
checking for x86_64-unknown-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for strip... no
checking for x86_64-unknown-linux-gnu-strip... no
checking for strip... strip
checking for windres... no
checking for x86_64-unknown-linux-gnu-windres... no
checking for windres... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gcj... just compiled
checking where to find the target gfortran... just compiled
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
updating cache ./config.cache
creating ./config.status
creating Makefile


/root/Downloads/424obj/./gcc/xgcc -B/root/Downloads/424obj/./gcc/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/bin/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/include -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/sys-include -O2  -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-4.2.4/gcc -I../../gcc-4.2.4/gcc/. -I../../gcc-4.2.4/gcc/../include -I../../gcc-4.2.4/gcc/../libcpp/include  -I../../gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber  -m32 -DL_gcov_execve -c ../../gcc-4.2.4/gcc/libgcov.c -o libgcc/32/_gcov_execve.o
/root/Downloads/424obj/./gcc/xgcc -B/root/Downloads/424obj/./gcc/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/bin/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/include -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/sys-include -O2  -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-4.2.4/gcc -I../../gcc-4.2.4/gcc/. -I../../gcc-4.2.4/gcc/../include -I../../gcc-4.2.4/gcc/../libcpp/include  -I../../gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber  -m32 -DL_gcov_interval_profiler -c ../../gcc-4.2.4/gcc/libgcov.c -o libgcc/32/_gcov_interval_profiler.o
/root/Downloads/424obj/./gcc/xgcc -B/root/Downloads/424obj/./gcc/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/bin/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/include -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/sys-include -O2  -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-4.2.4/gcc -I../../gcc-4.2.4/gcc/. -I../../gcc-4.2.4/gcc/../include -I../../gcc-4.2.4/gcc/../libcpp/include  -I../../gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber  -m32 -DL_gcov_pow2_profiler -c ../../gcc-4.2.4/gcc/libgcov.c -o libgcc/32/_gcov_pow2_profiler.o
/root/Downloads/424obj/./gcc/xgcc -B/root/Downloads/424obj/./gcc/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/bin/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/include -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/sys-include -O2  -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-4.2.4/gcc -I../../gcc-4.2.4/gcc/. -I../../gcc-4.2.4/gcc/../include -I../../gcc-4.2.4/gcc/../libcpp/include  -I../../gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber  -m32 -DL_gcov_one_value_profiler -c ../../gcc-4.2.4/gcc/libgcov.c -o libgcc/32/_gcov_one_value_profiler.o
/root/Downloads/424obj/./gcc/xgcc -B/root/Downloads/424obj/./gcc/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/bin/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/include -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/sys-include -O2  -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-4.2.4/gcc -I../../gcc-4.2.4/gcc/. -I../../gcc-4.2.4/gcc/../include -I../../gcc-4.2.4/gcc/../libcpp/include  -I../../gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber -m32 -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c ../../gcc-4.2.4/gcc/unwind-dw2.c -o libgcc/32/unwind-dw2.o
/root/Downloads/424obj/./gcc/xgcc -B/root/Downloads/424obj/./gcc/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/bin/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/include -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/sys-include -O2  -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-4.2.4/gcc -I../../gcc-4.2.4/gcc/. -I../../gcc-4.2.4/gcc/../include -I../../gcc-4.2.4/gcc/../libcpp/include  -I../../gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber -m32 -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c ../../gcc-4.2.4/gcc/unwind-dw2-fde-glibc.c -o libgcc/32/unwind-dw2-fde-glibc.o
/root/Downloads/424obj/./gcc/xgcc -B/root/Downloads/424obj/./gcc/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/bin/ -B/usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/include -isystem /usr/local/tools/gcc/4.2.4/x86_64-unknown-linux-gnu/sys-include -O2  -O2 -g -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-4.2.4/gcc -I../../gcc-4.2.4/gcc/. -I../../gcc-4.2.4/gcc/../include -I../../gcc-4.2.4/gcc/../libcpp/include  -I../../gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber -m32 -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c ../../gcc-4.2.4/gcc/unwind-sjlj.c -o libgcc/32/unwind-sjlj.o
In file included from ../../gcc-4.2.4/gcc/unwind-dw2.c:338:
../../gcc-4.2.4/gcc/config/i386/linux-unwind.h: In function 'x86_fallback_frame_state':
../../gcc-4.2.4/gcc/config/i386/linux-unwind.h:142: error: field 'info' has incomplete type
make[4]: *** [libgcc/32/unwind-dw2.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/root/Downloads/424obj/gcc'
make[3]: *** [stmp-multilib] Error 2
make[3]: Leaving directory `/root/Downloads/424obj/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/root/Downloads/424obj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/root/Downloads/424obj'
make: *** [all] Error 2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Build error try to build GCC 4.2.4 using GCC 4.8.2 on Fedora 20
  2014-01-14 19:15 Build error try to build GCC 4.2.4 using GCC 4.8.2 on Fedora 20 Mark Petronic
@ 2014-01-14 20:55 ` Jonathan Wakely
  2014-01-15  0:42   ` Mark Petronic
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Wakely @ 2014-01-14 20:55 UTC (permalink / raw)
  To: Mark Petronic; +Cc: gcc-help

On 14 January 2014 19:15, Mark Petronic wrote:
>
> I followed the good build instructions on the GNU web site and I believe my build server is setup up properly to do a build of GCC. It is clean install of Fedora 20. The build gets well along and then I get error below. Below is the configure output and a snippet of the end of the console output where the build fails.

The problem doesn't look like it's due to your setup, it looks as
though GCC 4.2 had some invalid code which is rejected by the stricter
GCC 4.8 compiler.

> Any tips you might give are greatly appreciated.

What should work, but is quite tedious, is to use 4.8 to build
something intermediate, say 4.5, and use that to build 4.2.

If that still fails, build an extra intermediate step, or steps.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Build error try to build GCC 4.2.4 using GCC 4.8.2 on Fedora 20
  2014-01-14 20:55 ` Jonathan Wakely
@ 2014-01-15  0:42   ` Mark Petronic
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Petronic @ 2014-01-15  0:42 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

Good suggestion. I did not think of that approach and will give that a try. Thank you!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-15  0:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-14 19:15 Build error try to build GCC 4.2.4 using GCC 4.8.2 on Fedora 20 Mark Petronic
2014-01-14 20:55 ` Jonathan Wakely
2014-01-15  0:42   ` Mark Petronic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).