Bug#781197: FTBFS with GCC-5

Roderich Schupp roderich.schupp at gmail.com
Wed Mar 25 22:57:21 UTC 2015


Source: llvm-toolchain-3.5
Version: 1:3.5.2-1~exp1
Severity: important

Trying to actually build llvm-toolchain-3.5/1:3.5.2-1~exp1 with gcc-5:

....
Using gcc:
gcc-5 -v
Using built-in specs.
COLLECT_GCC=gcc-5
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 5-20150321-1'
....
Thread model: posix
gcc version 5.0.0 20150321 (experimental) [trunk revision 221551] (Debian
5-20150321-1)
....

Build stops with:

llvm[6]: Compiling ChainedIncludesSource.cpp for Release build
if  g++-5 -I/raid/build/work/llvm-toolchain-3.5-3.5.2/build-llvm/include
-I/raid/build/work/llvm-toolchain-3.5-3.5.2/build-llvm/tools/clang/lib/Frontend
-I/raid/build/work/llvm-toolchain-3.5-3.5.2/include -I/raid/build/work/llvm-
toolchain-3.5-3.5.2/tools/clang/lib/Frontend  -DNDEBUG -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/raid/build/work/llvm-
toolchain-3.5-3.5.2/tools/clang/lib/Frontend/../../include -I/raid/build/work
/llvm-toolchain-3.5-3.5.2/build-llvm/tools/clang/lib/Frontend/../../include
-DCLANG_VENDOR='"Debian "' -g -O2 -fomit-frame-pointer -std=c++11 -fvisibility-
inlines-hidden -fno-exceptions -fPIC -Woverloaded-virtual -ffunction-sections
-fdata-sections -Wcast-qual -fno-strict-aliasing -std=c++0x -Wno-unused-local-
typedefs -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2
-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2
-D_FORTIFY_SOURCE=2  -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter
-Wwrite-strings    -Wno-maybe-uninitialized -Wno-missing-field-initializers -c
-MMD -MP -MF "/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib/Frontend/Release/ChainedIncludesSource.d.tmp" -MT
"/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib/Frontend/Release/ChainedIncludesSource.o" -MT
"/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib/Frontend/Release/ChainedIncludesSource.d" /raid/build/work
/llvm-toolchain-3.5-3.5.2/tools/clang/lib/Frontend/ChainedIncludesSource.cpp -o
/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib/Frontend/Release/ChainedIncludesSource.o ; \
        then /bin/mv -f "/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib/Frontend/Release/ChainedIncludesSource.d.tmp"
"/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib/Frontend/Release/ChainedIncludesSource.d"; else /bin/rm
"/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib/Frontend/Release/ChainedIncludesSource.d.tmp"; exit 1; fi
In file included from /raid/build/work/llvm-
toolchain-3.5-3.5.2/tools/clang/lib/Frontend/../../include/clang/Basic/TargetInfo.h:24:0,
                 from /raid/build/work/llvm-
toolchain-3.5-3.5.2/tools/clang/lib/Frontend/ChainedIncludesSource.cpp:15:
/raid/build/work/llvm-
toolchain-3.5-3.5.2/include/llvm/ADT/IntrusiveRefCntPtr.h: In instantiation of
‘llvm::IntrusiveRefCntPtr<T>::IntrusiveRefCntPtr(llvm::IntrusiveRefCntPtr<X>&&)
[with X = {anonymous}::ChainedIncludesSource; T =
clang::ExternalSemaSource]’:
/raid/build/work/llvm-
toolchain-3.5-3.5.2/tools/clang/lib/Frontend/ChainedIncludesSource.cpp:211:10:
required from here
/raid/build/work/llvm-
toolchain-3.5-3.5.2/include/llvm/ADT/IntrusiveRefCntPtr.h:137:8: error:
‘{anonymous}::ChainedIncludesSource*
llvm::IntrusiveRefCntPtr<{anonymous}::ChainedIncludesSource>::Obj’ is private
     T* Obj;
        ^
/raid/build/work/llvm-
toolchain-3.5-3.5.2/include/llvm/ADT/IntrusiveRefCntPtr.h:158:13: error: within
this context
       S.Obj = 0;
             ^
/bin/rm: cannot remove ‘/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib/Frontend/Release/ChainedIncludesSource.d.tmp’: No such
file or directory
/raid/build/work/llvm-toolchain-3.5-3.5.2/Makefile.rules:1519: recipe for
target '/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib/Frontend/Release/ChainedIncludesSource.o' failed
make[6]: *** [/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib/Frontend/Release/ChainedIncludesSource.o] Error 1
make[6]: Leaving directory '/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib/Frontend'
/raid/build/work/llvm-toolchain-3.5-3.5.2/Makefile.rules:937: recipe for target
'Frontend/.makeall' failed
make[5]: *** [Frontend/.makeall] Error 2
make[5]: Leaving directory '/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang/lib'
/raid/build/work/llvm-toolchain-3.5-3.5.2/Makefile.rules:878: recipe for target
'all' failed
make[4]: *** [all] Error 1
make[4]: Leaving directory '/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools/clang'
/raid/build/work/llvm-toolchain-3.5-3.5.2/Makefile.rules:937: recipe for target
'clang/.makeall' failed
make[3]: *** [clang/.makeall] Error 2
make[3]: Leaving directory '/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm/tools'
/raid/build/work/llvm-toolchain-3.5-3.5.2/Makefile.rules:878: recipe for target
'all' failed
make[2]: *** [all] Error 1
make[2]: Leaving directory '/raid/build/work/llvm-toolchain-3.5-3.5.2/build-
llvm'
debian/rules:221: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/raid/build/work/llvm-toolchain-3.5-3.5.2'
debian/rules:130: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2



Cheers, Roderich



-- System Information:
Debian Release: 8.0
  APT prefers vivid
  APT policy: (500, 'vivid'), (500, 'buildd-unstable'), (500, 'unstable'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.2 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Pkg-llvm-team mailing list