Current-Users archive

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

Re: build breakage



On Sat, Apr 12, 2014 at 09:09:29PM +0200, Joerg Sonnenberger wrote:
> On Sat, Apr 12, 2014 at 09:01:36PM +0200, Thomas Klausner wrote:
> > Is there an easy way to tell build.sh to use clang as bootstrap
> > compiler?
> 
> Set HOST_CC / HOST_CXX?

Now I get farther, but still:

--- compatibility.o ---
/archive/build/tools.clang/bin/x86_64--netbsd-c++ -frandom-seed=bb053a7b -O2 -g 
-Werror -fno-implicit-templates -fdiagnostics-show-location=once  
--sysroot=/archive/build/amd64.clang.20140412 
-I/archive/foreign/src/external/gpl3/gcc/dist/gcc 
-I/archive/foreign/src/external/gpl3/gcc/dist/include 
-I/archive/foreign/src/external/gpl3/gcc/dist/libstdc++-v3/libsupc++ 
-I/archive/foreign/src/external/gpl3/gcc/dist/libgcc 
-I/archive/foreign/src/external/gpl3/gcc/lib/libstdc++-v3/../libstdc++-v3/arch/x86_64
 -I. -DHAVE_STDLIB_H -DHAVE_STRING_H 
-I/archive/foreign/src/external/gpl3/gcc/dist/libstdc++-v3/include 
-I/archive/foreign/src/external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64 
-D_GLIBCXX_SHARED  -c    
/archive/foreign/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++98/compatibility.cc
 -o compatibility.o
...
--- compatibility.o ---
In file included from 
/archive/build/amd64.clang.20140412/usr/include/g++/ostream:609:0,
                 from 
/archive/build/amd64.clang.20140412/usr/include/g++/istream:39,
                 from 
/archive/foreign/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++98/compatibility.cc:46:
/archive/foreign/src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/ostream.tcc:47:12:
 internal compiler error: Segmentation fault
     sentry(basic_ostream<_CharT, _Traits>& __os)
            ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://www.NetBSD.org/Misc/send-pr.html> for instructions.
*** [compatibility.o] Error code 1
nbmake[6]: stopped in /archive/foreign/src/external/gpl3/gcc/lib/libstdc++-v3

# ls -l /archive/build/tools.clang/bin/x86_64--netbsd-c++
-rwxr-xr-x  2 root  wheel  734606 Apr 12 21:15 
/archive/build/tools.clang/bin/x86_64--netbsd-c++
# /archive/build/tools.clang/bin/x86_64--netbsd-c++ --version
x86_64--netbsd-c++ (NetBSD nb1 20120916) 4.8.3 20140302 (prerelease)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I don't understand why it uses that compiler when
x86_64--netbsd-clang++ also exists and I have "-V MKLLVM=yes -V
HAVE_LLVM=yes -V MKLIBCXX=yes" in my build.sh command line.
 Thomas


Home | Main Index | Thread Index | Old Index