Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

build breakage



Hi!

Additionally to the problem I see with a clang-compiled gcc having
ices (but not a gcc-compiled gcc), PR 48731, I cannot even build
NetBSD any longer on 6.99.40/amd64/20140408.

The build fails quite quickly in the tools stage with:

c++ -c   -O -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/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc 
-I/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/build 
-I/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../include 
-I/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libcpp/include
 
-I/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libdecnumber
 
-I/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libdecnumber/dpd
 -I../libdecnumber 
-I/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/../libbacktrace
   -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0  -DTARGET_SYSTEM_ROOT_RELOCATABLE \
        -o build/genopinit.o 
/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/genopinit.c
In file included from 
/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/rtl.h:27:0,
                 from 
/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/genopinit.c:25:
/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/vec.h: In 
instantiation of 'static void va_heap::reserve(vec<T, va_heap, vl_embed>*&, 
unsigned int, bool) [with T = pattern_d]':
/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/vec.h:1468:50:  
 required from 'bool vec<T, A, vl_ptr>::reserve(unsigned int, bool) [with T = 
pattern_d; A = va_heap]'
/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/vec.h:1563:34:  
 required from 'T* vec<T, A, vl_ptr>::safe_push(const T&) [with T = pattern_d; 
A = va_heap]'
/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/genopinit.c:266:25:
   required from here
/archive/foreign/src/tools/gcc/../../external/gpl3/gcc/dist/gcc/vec.h:288:76: 
internal compiler error: Segmentation fault
     = vec_prefix::calculate_allocation (v ? &v->vecpfx_ : 0, reserve, exact);
                                                                            ^
no stack trace because unwind library not available
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://www.NetBSD.org/Misc/send-pr.html> for instructions.
nbgmake[1]: *** [build/genopinit.o] Error 1
nbgmake[1]: *** Waiting for unfinished jobs....

Or perhaps it's the same problem?

Build log available on request. My build.sh is

machine=amd64
build.sh -V DBG="-O2 -g" -V MKLLVM=yes -V HAVE_LLVM=yes -V MKLIBCXX=yes -x -j 4 
-T /archive/build/tools.clang -m $machine -O /usr/obj/src.$machine -D 
/archive/build/$machine.clang.$today distribution > 
/archive/build/$machine.clang.$today.log 2>&1

Is there an easy way to tell build.sh to use clang as bootstrap
compiler?
 Thomas


Home | Main Index | Thread Index | Old Index