http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57059



             Bug #: 57059

           Summary: Host configuration of loose_warn breaks for build

                    components for Canadian crosses

    Classification: Unclassified

           Product: gcc

           Version: 4.9.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: bootstrap

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: rmansfi...@qnx.com





When the building a canadian cross with a build compiler that is gcc 4.6 or

older, the build cannot compile the build tools as configure will detect that

the cross compiler has support for -Wno-narrowing, and will try to pass it

along in the BUILD_CXXFLAGS. e.g.



g++ -c    -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti

-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings

-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long

-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE

-I. -Ibuild -I../../gcc -I../../gcc/build -I../../gcc/../include

-I../../gcc/../libcpp/include  -I../../gcc/../libdecnumber

-I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace  

 \

        -o build/genconstants.o ../../gcc/genconstants.c

cc1plus: error: unrecognized command line option "-Wno-narrowing"

make[3]: *** [build/genconstants.o] Error 1



$ grep acx_cv_prog_cc_warning__Wnarrowing gcc/config.log

acx_cv_prog_cc_warning__Wnarrowing=yes

Reply via email to