I am baffled by this regression in the stage 1 bootstrap of libcpp on
current gcc trunk. When I build gcc as we always have in fink using...

../gcc-4.4-20081026/configure --prefix=/sw --prefix=/sw/lib/gcc4.4 
--mandir=/sw/share/man --infodir=/sw/share/info --enable-languages=c,c++,fortra
n,objc,java --with-arch=nocona --with-tune=generic --build=i686-apple-darwin9 
--with-gmp=/sw --with-libiconv-prefix=/sw --with-system-zlib --x-include
s=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --with-cloog=/sw 
--with-ppl=/sw --disable-libjava-multilib

I get a compile failure at...

gcc  -I../../gcc-4.4-20081026/libcpp -I. 
-I../../gcc-4.4-20081026/libcpp/../include 
-I../../gcc-4.4-20081026/libcpp/include  -g -fkeep-inline-functions -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-Wmissing-format-attribute -pedantic -Wno-long-long  
-I../../gcc-4.4-20081026/libcpp -I. -I../../gcc-4.4-20081026/libcpp/../include 
-I../../gcc-4.4-20081026/libcpp/include  -c -o charset.o -MT charset.o -MMD -MP 
-MF .deps/charset.Tpo ../../gcc-4.4-20081026/libcpp/charset.c
In file included from ../../gcc-4.4-20081026/libcpp/charset.c:22:
../../gcc-4.4-20081026/libcpp/system.h:255:21: error: libintl.h: No such file 
or directory
make[3]: *** [charset.o] Error 1
make[2]: *** [all-stage1-libcpp] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

However if I go into 
/sw/src/fink.build/gcc44-4.3.999-20081026/darwin_objdir/libcpp and execute make 
the compile completes as...

gcc  -I../../gcc-4.4-20081026/libcpp -I. 
-I../../gcc-4.4-20081026/libcpp/../include 
-I../../gcc-4.4-20081026/libcpp/include -I/sw/include -g 
-fkeep-inline-functions -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute 
-pedantic -Wno-long-long  -I../../gcc-4.4-20081026/libcpp -I. 
-I../../gcc-4.4-20081026/libcpp/../include 
-I../../gcc-4.4-20081026/libcpp/include -I/sw/include -c -o charset.o -MT 
charset.o -MMD -MP -MF .deps/charset.Tpo ../../gcc-4.4-20081026/libcpp/charset.c

The missing -I/sw/include set in the line...

CPPFLAGS = -I/sw/include

...in the Makefile in 
/sw/src/fink.build/gcc44-4.3.999-20081026/darwin_objdir/libcpp. However at the 
toplevel, /sw/src/fink.build/gcc44-4.3.999-20081026/darwin_objdir,
has...

CPPFLAGS_FOR_BUILD = 
...
CPPFLAGS = 
...
CPPFLAGS_FOR_TARGET = 

I wonder if I am going to have starting to set CPPFLAGS to -I/sw/include when I 
call configure. This has never
been necessary in the past so I would consider it to be a regression.
            Jack

Reply via email to