This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/37923] New: CPPFLAGS now unset for stage 1 build of libcpp files.
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Oct 2008 00:40:46 -0000
- Subject: [Bug bootstrap/37923] New: CPPFLAGS now unset for stage 1 build of libcpp files.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Building gcc trunk with...
../gcc-4.4-20081026/configure --prefix=/sw --prefix=/sw/lib/gcc4.4
--mandir=/sw/share/man --infodir=/sw/share/info
--enable-languages=c,c++,fortran,objc,java --with-
arch=nocona --with-tune=generic --build=i686-apple-darwin9 --with-gmp=/sw
--with-libiconv-prefix=/sw --with-system-zlib --x-includes=/usr/X11R6/include
--x-libraries=/us
r/X11R6/lib --with-cloog=/sw --with-ppl=/sw --disable-libjava-multilib
has always worked on i686-apple-darwin9 until recently. Now the CPPFLAGS
setting of -I/sw/include is being unset at the toplevel Makefile (even though
it is set in the Makefile in the libcpp subdirectory). This causes the
bootstrap to fail as...
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
If one goes into /sw/src/fink.build/gcc44-4.3.999-20081026/darwin_objdir/libcpp
and executes 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 believe this was caused by...
-----------------------------------------------------------------------
r141292 | drow | 2008-10-22 09:30:19 -0400 (Wed, 22 Oct 2008) | 21 lines
./
PR gdb/921
PR gdb/1646
PR gdb/2175
PR gdb/2176
* Makefile.def (flags_to_pass): Add CPPFLAGS_FOR_BUILD and CPPFLAGS.
* Makefile.tpl (BUILD_EXPORTS): Set CPPFLAGS.
(EXTRA_BUILD_FLAGS): Correct typo. Pass CPPFLAGS.
(HOST_EXPORTS): Pass CPPFLAGS.
(CPPFLAGS_FOR_BUILD, CPPFLAGS, CPPFLAGS_FOR_TARGET): Define.
(LDFLAGS_FOR_TARGET): Initialize from configure script.
(EXTRA_TARGET_FLAGS): Set CPPFLAGS.
* Makefile.in, configure: Regenerated.
* configure.ac: Set CPPFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET,
and CPPFLAGS_FOR_BUILD.
libiberty/
* Makefile.in (CPPFLAGS): Define.
(FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
Currently I have to explicitly set CPPFLAGS to build gcc trunk which results in
many duplicate instances of -I/sw/include throughout the build.
--
Summary: CPPFLAGS now unset for stage 1 build of libcpp files.
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: howarth at nitro dot med dot uc dot edu
GCC build triplet: i686-apple-darwin9
GCC host triplet: i686-apple-darwin9
GCC target triplet: i686-apple-darwin9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37923