This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc3.2.1 compilation failure on FreeBSD 5.0
- From: Karel Gardas <kgardas at objectsecurity dot com>
- To: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Mon, 27 Jan 2003 16:58:49 +0100 (CET)
- Subject: gcc3.2.1 compilation failure on FreeBSD 5.0
Hello,
While trying to build gcc3.2.1 on FreeBSD 5.0 box, I've found that
compilation fails with:
mkinstalldirs='/bin/sh ../../gcc-3.2.1/gcc/mkinstalldirs' \
/bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
HEADERS="ansidecl.h i386/i386.h i386/att.h dbxelf.h elfos.h freebsd5.h
freebsd-spec.h freebsd.h i386/freebsd.h defaults.h" DEFINES="POSIX" \
TARGET_CPU_DEFAULT="" \
/bin/sh ../../gcc-3.2.1/gcc/mkconfig.sh tconfig.h
./xgcc -B./
-B/home/kgardas/usr/local/gcc3.2.1/i386-unknown-freebsd5.0/bin/ -isystem
/home/kgardas/usr/local/gcc3.2.1/i386-unknown-freebsd5.0/include -isystem
/home/kgardas/usr/local/gcc3.2.1/i386-unknown-freebsd5.0/sys-include -O2
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include -I. -I. -I../../gcc-3.2.1/gcc
-I../../gcc-3.2.1/gcc/. -I../../gcc-3.2.1/gcc/config
-I../../gcc-3.2.1/gcc/../include -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions \
-c ../../gcc-3.2.1/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from ../../gcc-3.2.1/gcc/tsystem.h:37,
from ../../gcc-3.2.1/gcc/crtstuff.c:62:
include/stddef.h:57:26: machine/ansi.h: No such file or directory
gmake[2]: *** [crtbegin.o] Error 1
gmake[2]: Leaving directory `/usr/home/kgardas/usr/src/obj/gcc'
gmake[1]: *** [stage1_build] Error 2
gmake[1]: Leaving directory `/usr/home/kgardas/usr/src/obj/gcc'
gmake: *** [bootstrap-lean] Error 2
I've configured gcc with ganymed% ../gcc-3.2.1/configure
--prefix=$HOME/usr/local/gcc3.2.1 --enable-shared --enable-threads
--enable-languages=c++
JFYI: our software compilation fails on this box while compiled with
system supplied gcc3.2.1:
ganymed% gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.2.1 [FreeBSD] 20021119 (release)
ganymed%
So I'd like to verify that it's not the bug of _this_ compiler. On the
other hand our software is perfectly compilable by using gcc3.2.1 on both
Debian GNU/Linux 3.0 and FreeBSD 4.7
Any hint, what should I do to compile real gcc3.2.1 release on FB5?
Thanks a lot,
Karel
--
Karel Gardas kgardas@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.com