Hello,
I'm trying to build GCC-4.2-20060325 on OpenBSD 3.9-current, but it fails
with:
echo timestamp > s-gtype
/home/karel/build/obj-gcc-4.2-20060325/./prev-gcc/xgcc
-B/home/karel/build/obj-gcc-4.2-20060325/./prev-gcc/
-B/home/karel/usr/local/gcc-4.2-20060325/i386-unknown-openbsd3.9/bin/ -c
-O2 -g -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
-Wmissing-format-attribute -Werror -DHAVE_CONFIG_H -DGENERATOR_FILE -I.
-Ibuild -I/home/karel/build/gcc-4.2-20060325/gcc
-I/home/karel/build/gcc-4.2-20060325/gcc/build
-I/home/karel/build/gcc-4.2-20060325/gcc/../include
-I/home/karel/build/gcc-4.2-20060325/gcc/../libcpp/include
-I/home/karel/build/gcc-4.2-20060325/gcc/../libdecnumber -I../libdecnumber
-o build/rtl.o /home/karel/build/gcc-4.2-20060325/gcc/rtl.c
/home/karel/build/obj-gcc-4.2-20060325/./prev-gcc/xgcc
-B/home/karel/build/obj-gcc-4.2-20060325/./prev-gcc/
-B/home/karel/usr/local/gcc-4.2-20060325/i386-unknown-openbsd3.9/bin/ -c
-O2 -g -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
-Wmissing-format-attribute -Werror -DHAVE_CONFIG_H -DGENERATOR_FILE -I.
-Ibuild -I/home/karel/build/gcc-4.2-20060325/gcc
-I/home/karel/build/gcc-4.2-20060325/gcc/build
-I/home/karel/build/gcc-4.2-20060325/gcc/../include
-I/home/karel/build/gcc-4.2-20060325/gcc/../libcpp/include
-I/home/karel/build/gcc-4.2-20060325/gcc/../libdecnumber -I../libdecnumber
-o build/read-rtl.o /home/karel/build/gcc-4.2-20060325/gcc/read-rtl.c
cc1: warnings being treated as errors
/home/karel/build/gcc-4.2-20060325/gcc/read-rtl.c: In function
'join_c_conditions':
/home/karel/build/gcc-4.2-20060325/gcc/read-rtl.c:787: warning: missing
sentinel in function call
gmake[3]: *** [build/read-rtl.o] Error 1
gmake[3]: Leaving directory `/home/karel/build/obj-gcc-4.2-20060325/gcc'
gmake[2]: *** [all-stage2-gcc] Error 2
gmake[2]: Leaving directory `/home/karel/build/obj-gcc-4.2-20060325'
gmake[1]: *** [stage2-bubble] Error 2
gmake[1]: Leaving directory `/home/karel/build/obj-gcc-4.2-20060325'
gmake: *** [bootstrap-lean] Error 2
the compiler used for bootstrap is OpenBSD's gcc3.3.5. GCC 4.2 is
configured with:
/home/karel/build/gcc-4.2-20060325/configure
--prefix=/home/karel/usr/local/gcc-4.2-20060325 --enable-shared
--enable-threads --disable-checking --disable-nls --enable-languages=c,c++
and it is build with:
gmake CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap-lean
If I understand this issue correctly, it seems GCC 4.2 stage1 compiler
warns about missing sentinel and because of -Werror bootstrap fails. If
this is true, then perhaps the same issue happen also on more supported
platforms? (Linux/FreeBSD) If so, then my question is: is this already
fixed on trunk?
Thanks,
Karel
--
Karel Gardas [EMAIL PROTECTED]
ObjectSecurity Ltd. http://www.objectsecurity.com