This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build failure with clang


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]