This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Build failure with clang
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Gerald Pfeifer <gerald at pfeifer dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Tue, 13 Jan 2015 09:55:57 -0800
- Subject: Re: Build failure with clang
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1501131839560 dot 2527 at tuna dot site>
On Tue, Jan 13, 2015 at 9:45 AM, Gerald Pfeifer <gerald@pfeifer.com> wrote:
> In the last 36 hours or so someone has broken bootstrap with
> clang as the bootstrap compiler (this being FreeBSD 10.1):
>
> echo timestamp > s-gtype
> c++ -c -g -O2 -DIN_GCC -fno-exceptions -fno-rtti
> -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
> -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
> -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
> -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild
> -I/scratch2/tmp/gerald/gcc-HEAD/gcc
> -I/scratch2/tmp/gerald/gcc-HEAD/gcc/build
> -I/scratch2/tmp/gerald/gcc-HEAD/gcc/../include
> -I/scratch2/tmp/gerald/gcc-HEAD/gcc/../libcpp/include \
> -o build/genpreds.o /scratch2/tmp/gerald/gcc-HEAD/gcc/genpreds.c
> c++: error: treating 'c' input as 'c++' when in C++ mode, this behavior
> is deprecated
> Makefile:2422: recipe for target 'build/genpreds.o' failed
> gmake[2]: *** [build/genpreds.o] Error 1
> gmake[2]: Leaving directory '/scratch2/tmp/gerald/OBJ-0113-1137/gcc'
> Makefile:4331: recipe for target 'all-gcc' failed
> gmake[1]: *** [all-gcc] Error 2
> gmake[1]: Leaving directory '/scratch2/tmp/gerald/OBJ-0113-1137'
> Makefile:21965: recipe for target 'bootstrap-lean' failed
> gmake: *** [bootstrap-lean] Error 2
>
> I did not find an obvious patch causing this right away. Any
> ideas?
-Werror should not be used for stage1 compiler.
Thanks,
Andrew
>
> At this stage in the build, after "Comparing stages 2 and 3"
> has run, why is c++ used (not what we just built)?
>
> Gerald