This is the mail archive of the gcc-help@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]

build failure of gcc-3.4 on FreeBSD


Hello,

I need to build gcc from source for its Ada language support. Since I need an Ada compiler to do that, I use gcc-2.8.1 that comes with gnat-3.15p.

I folowed the configure and build instruction found on the web site :

$ export CC=/usr/local/bin/adagcc ; ../gcc-3.4-20031126/configure --prefix=/home/villoing/opt --with-local-prefix=/home/villoing/gcc --disable-multilib --enable-threads --enable-language=c,ada,c++

and then

$ gmake bootstrap

Then I get :

-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -Werror -fno-common -Wno-error -DHAVE_CONFIG_H -I. -I. -I../../gcc-3.4-20031126/gcc -I../../gcc-3.4-20031126/gcc/. -I../../gcc-3.4-20031126/gcc/../include \
-c /home/villoing/src/obj/gcc/c-parse.c -o c-parse.o
In file included from c-parse.y:42:
../../gcc-3.4-20031126/gcc/intl.h:31:21: libintl.h: No such file or directory
c-p10422.c: In function `yyparse':


c-p10422.c:2359: warning: old-style parameter declaration
c-parse.y: In function `yyerror':

c-parse.y:2843: warning: implicit declaration of function `gettext'
gmake[2]: *** [c-parse.o] Error 1
gmake[2]: Leaving directory `/home/villoing/src/obj/gcc'
gmake[1]: *** [stage2_build] Error 2
gmake[1]: Leaving directory `/home/villoing/src/obj/gcc'
gmake: *** [bootstrap] Error 2

This occurred if I use --enable-shared too.
I tried to build gcc with gcc-3.3 that comes with FreeBSD (removing Ada language), but the compilation failed the same way. I also tried with the latest CVS without success.


Furthermore, linbintl.h is present on my system :

$ ls /usr/local/include/ | grep libintl.h
libintl.h

I search the faq and mailing lists but did not find the answer.

Every advice would be welcome.

Florian


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