public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/37923]  New: CPPFLAGS now unset for stage 1 build of libcpp files.
@ 2008-10-27  0:42 howarth at nitro dot med dot uc dot edu
  2008-10-27  0:51 ` [Bug bootstrap/37923] " howarth at nitro dot med dot uc dot edu
                   ` (35 more replies)
  0 siblings, 36 replies; 37+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2008-10-27  0:42 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2008-11-14 15:39 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-27  0:42 [Bug bootstrap/37923] New: CPPFLAGS now unset for stage 1 build of libcpp files howarth at nitro dot med dot uc dot edu
2008-10-27  0:51 ` [Bug bootstrap/37923] " howarth at nitro dot med dot uc dot edu
2008-10-27  0:52 ` howarth at nitro dot med dot uc dot edu
2008-10-27  0:53 ` howarth at nitro dot med dot uc dot edu
2008-10-27  0:54 ` howarth at nitro dot med dot uc dot edu
2008-10-27  0:57 ` howarth at nitro dot med dot uc dot edu
2008-10-27  0:58 ` howarth at nitro dot med dot uc dot edu
2008-10-27  0:59 ` howarth at nitro dot med dot uc dot edu
2008-10-27  0:59 ` howarth at nitro dot med dot uc dot edu
2008-10-27  1:03 ` howarth at nitro dot med dot uc dot edu
2008-10-27  1:59 ` [Bug bootstrap/37923] [4.4 Regression] " pinskia at gcc dot gnu dot org
2008-10-27  2:47 ` drow at gcc dot gnu dot org
2008-10-27  3:38 ` howarth at nitro dot med dot uc dot edu
2008-10-27  3:47 ` howarth at nitro dot med dot uc dot edu
2008-10-27 13:36 ` howarth at nitro dot med dot uc dot edu
2008-10-27 13:36 ` howarth at nitro dot med dot uc dot edu
2008-10-27 13:41 ` howarth at nitro dot med dot uc dot edu
2008-10-27 13:45 ` howarth at nitro dot med dot uc dot edu
2008-10-27 13:56 ` drow at gcc dot gnu dot org
2008-10-27 14:04 ` howarth at nitro dot med dot uc dot edu
2008-10-27 14:14 ` drow at gcc dot gnu dot org
2008-10-27 14:50 ` bonzini at gnu dot org
2008-10-27 15:05 ` howarth at nitro dot med dot uc dot edu
2008-10-27 23:33 ` howarth at nitro dot med dot uc dot edu
2008-10-27 23:54 ` howarth at nitro dot med dot uc dot edu
2008-10-28 16:23 ` howarth at nitro dot med dot uc dot edu
2008-10-28 16:30 ` bonzini at gnu dot org
2008-10-28 16:36 ` howarth at nitro dot med dot uc dot edu
2008-10-28 16:40 ` bonzini at gnu dot org
2008-10-28 16:56 ` howarth at nitro dot med dot uc dot edu
2008-10-28 23:38 ` howarth at nitro dot med dot uc dot edu
2008-10-30 21:06 ` rguenth at gcc dot gnu dot org
2008-10-30 22:20 ` pinskia at gcc dot gnu dot org
2008-10-30 22:50 ` howarth at nitro dot med dot uc dot edu
2008-10-31  6:54 ` bonzini at gnu dot org
2008-11-14 14:54 ` drow at gcc dot gnu dot org
2008-11-14 15:39 ` drow at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).