Bug 18875 - [4.0 Regression] Cannot build libcpp due to -Wno-long-long flag
Summary: [4.0 Regression] Cannot build libcpp due to -Wno-long-long flag
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: preprocessor (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2004-12-07 17:14 UTC by Arnaud Charlet
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud Charlet 2004-12-07 17:14:56 UTC
When using a version of GCC that does not support -Wno-long-long as the
bootstrap compiler (such as GCC 2.8.1), it is not possible to build GCC 4.0:

gcc  -I../../gcc-head/libcpp -I. -I../../gcc-head/libcpp/../include
-I../../gcc-head/libcpp/include  -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long 
-I../../gcc-head/libcpp -I. -I../../gcc-head/libcpp/../include
-I../../gcc-head/libcpp/include  -c ../../gcc-head/libcpp/charset.c
cc1: Invalid option `-Wno-long-long'
make[1]: *** [charset.o] Error 1
make[1]: Leaving directory `/home/charlet/cvs/gcc-obj/libcpp'
make: *** [all-libcpp] Error 2
Comment 1 Andrew Pinski 2004-12-07 18:19:40 UTC
Can you attach the config.log for libcpp?
Because we do check for -Wno-long-long in configure:
ACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])


Did you change CC after configuring?
Comment 2 Andrew Pinski 2004-12-26 15:37:22 UTC
This works for me, you had to have changed compilers between configuring and building.