This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Exploring gcc-in-cxx compiler build requirements


Hi, all,

I just tried to build gcc-in-cxx with some older gcc compilers on x86_64
linux.  This is Debian testing, with 4.3.3 as the system compiler.


Here's what I've gotten so far:

2.95.3	Doesn't support x86_64
3.0.4	Doesn't support x86_64
3.1.1	Fails to bootstrap
3.2.3	Fails to bootstrap

Both 3.1.1 and 3.2.3 fail to bootstrap with the following error:

make[1]: Entering directory `/home/jlquinn/gcc/dev/build/gcc323/gcc'
gcc -c -DIN_GCC    --std=gnu89 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I.
-I../../../gcc-3.2.3/gcc -I../../../gcc-3.2.3/gcc/.
-I../../../gcc-3.2.3/gcc/config
-I../../../gcc-3.2.3/gcc/../include ../../../gcc-3.2.3/gcc/read-rtl.c -o
read-rtl.o
In file included from ../../../gcc-3.2.3/gcc/read-rtl.c:24:
../../../gcc-3.2.3/gcc/rtl.h:125: warning: type of bit-field âcodeâ is a
GCC extension
../../../gcc-3.2.3/gcc/rtl.h:128: warning: type of bit-field âmodeâ is a
GCC extension
../../../gcc-3.2.3/gcc/read-rtl.c: In function
âfatal_with_file_and_lineâ:
../../../gcc-3.2.3/gcc/read-rtl.c:62: warning: traditional C rejects ISO
C style function definitions
../../../gcc-3.2.3/gcc/read-rtl.c: In function âread_rtxâ:
../../../gcc-3.2.3/gcc/read-rtl.c:662: error: lvalue required as
increment operand
make[1]: *** [read-rtl.o] Error 1
make[1]: Leaving directory `/home/jlquinn/gcc/dev/build/gcc323/gcc'
make: *** [all-gcc] Error 2



3.3.6	old compiler builds.  branch bootstrap fails with:

make[3]: Entering directory
`/home/jlquinn/gcc/dev/gcc-in-cxx/host-x86_64-unknown-linux-gnu/gcc'
g++ -c  -g -g -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
-Wmissing-format-attribute -fno-common  -DHAVE_CONFIG_H -I. -I.
-I../.././gcc -I../.././gcc/. -I../.././gcc/../include
-I../.././gcc/../libcpp/include  -I../.././gcc/../libdecnumber
-I../.././gcc/../libdecnumber/bid
-I../libdecnumber    ../.././gcc/c-lang.c -o c-lang.o
In file included from /home/jlquinn/gcc/dev/run/gcc336/include/c
++/3.3.6/iosfwd:46,
                 from /usr/include/gmp-x86_64.h:24,
                 from /usr/include/gmp.h:59,
                 from ../../gcc/double-int.h:24,
                 from ../../gcc/tree.h:30,
                 from ../../gcc/c-lang.c:27:
/home/jlquinn/gcc/dev/run/gcc336/include/c
++/3.3.6/x86_64-unknown-linux-gnu/bits/c++locale.h:61:40: attempt to use
poisoned "malloc"
make[3]: *** [c-lang.o] Error 1
make[3]: Leaving directory
`/home/jlquinn/gcc/dev/gcc-in-cxx/host-x86_64-unknown-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/jlquinn/gcc/dev/gcc-in-cxx'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/jlquinn/gcc/dev/gcc-in-cxx'
make: *** [all] Error 2

I updated the system gmp to 4.2.3, so the C++ fix is present in the
header.

I'm configuring and bootstrapping with the 3.3.6 install at the head of
the path.  Maybe building with the CXX and CC explicitly specified would
work better here.

I didn't run the test suite on the 3.3.6 build, so it's possible it
didn't build correctly.

gcc 3.4.6 successfully bootstraps the branch with all default languages.


Jerry



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]