Bug#897804: llvm-toolchain-4.0: ftbfs with GCC-8
Matthias Klose
doko at debian.org
Fri May 4 13:22:35 BST 2018
Package: src:llvm-toolchain-4.0
Version: 1:4.0.1-10
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-8
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-8/g++-8, but succeeds to build with gcc-7/g++-7. The
severity of this report will be raised before the buster release.
The full build log can be found at:
http://aws-logs.debian.net/2018/05/01/gcc8/llvm-toolchain-4.0_4.0.1-10_unstable_gcc8.log.gz
The last lines of the build log are at the end of this report.
To build with GCC 8, either set CC=gcc-8 CXX=g++-8 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-8/porting_to.html
[...]
for (i = 0; i < arg3; i++) {
~~^~~~~~
cc1plus: warning: unrecognized command line option '-Wno-vla-extension'
cc1plus: warning: unrecognized command line option '-Wno-deprecated-register'
/<<PKGBUILDDIR>>/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp: In function 'void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info**, swig_type_info**)':
/<<PKGBUILDDIR>>/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp:75338:22: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 10 bytes from a string of the same length [-Wstringop-truncation]
strncpy(buff, "swig_ptr: ", 10);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/include/llvm/Support/Allocator.h:24,
from /<<PKGBUILDDIR>>/include/llvm/ADT/StringMap.h:18,
from /<<PKGBUILDDIR>>/include/llvm/Support/Host.h:17,
from /<<PKGBUILDDIR>>/include/llvm/ADT/Hashing.h:49,
from /<<PKGBUILDDIR>>/include/llvm/ADT/ArrayRef.h:13,
from /<<PKGBUILDDIR>>/tools/lldb/include/lldb/lldb-private-types.h:17,
from /<<PKGBUILDDIR>>/tools/lldb/include/lldb/lldb-private.h:18,
from /<<PKGBUILDDIR>>/tools/lldb/include/lldb/Core/ConstString.h:19,
from /<<PKGBUILDDIR>>/tools/lldb/source/./Plugins/ScriptInterpreter/Python/PythonDataObjects.h:22,
from /<<PKGBUILDDIR>>/tools/lldb/source/./Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h:27,
from /<<PKGBUILDDIR>>/tools/lldb/source/API/SystemInitializerFull.cpp:19:
/<<PKGBUILDDIR>>/include/llvm/ADT/SmallVector.h: In instantiation of 'void llvm::SmallVectorTemplateBase<T, true>::push_back(const T&) [with T = std::pair<void*, long unsigned int>]':
/<<PKGBUILDDIR>>/include/llvm/Support/Allocator.h:241:33: required from 'void* llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold>::Allocate(size_t, size_t) [with AllocatorT = llvm::MallocAllocator; long unsigned int SlabSize = 4096; long unsigned int SizeThreshold = 4096; size_t = long unsigned int]'
/<<PKGBUILDDIR>>/tools/clang/include/clang/AST/ASTContext.h:616:42: required from here
/<<PKGBUILDDIR>>/include/llvm/ADT/SmallVector.h:309:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct std::pair<void*, long unsigned int>' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
memcpy(this->end(), &Elt, sizeof(T));
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/bits/stl_algobase.h:64,
from /usr/include/c++/8/memory:62,
from /<<PKGBUILDDIR>>/tools/lldb/include/lldb/API/SBCommandInterpreter.h:15,
from /<<PKGBUILDDIR>>/tools/lldb/source/API/SystemInitializerFull.cpp:16:
/usr/include/c++/8/bits/stl_pair.h:198:12: note: 'struct std::pair<void*, long unsigned int>' declared here
struct pair
^~~~
cc1plus: warning: unrecognized command line option '-Wno-vla-extension'
cc1plus: warning: unrecognized command line option '-Wno-deprecated-register'
At global scope:
cc1plus: warning: unrecognized command line option '-Wno-vla-extension'
cc1plus: warning: unrecognized command line option '-Wno-deprecated-register'
[ 94%] Linking CXX shared library ../../../../lib/liblldb-4.0.so
cd /<<PKGBUILDDIR>>/build-llvm/tools/lldb/source/API && /usr/bin/cmake -E cmake_link_script CMakeFiles/liblldb.dir/link.txt --verbose=1
/usr/bin/g++-8 -fPIC -std=c++0x -fuse-ld=gold -Wl,--no-keep-files-mapped -Wl,--no-map-whole-files -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata-sections -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -O2 -DNDEBUG -Wl,-rpath-link,/<<PKGBUILDDIR>>/build-llvm/./lib -Wl,-O3 -Wl,--gc-sections -Wl,--version-script,/<<PKGBUILDDIR>>/build-llvm/tools/lldb/source/API/liblldb.exports -Wl,-z,relro -Wl,-z,defs -shared -Wl,-soname,liblldb-4.0.so.1 -o ../../../../lib/liblldb-4.0.so.1 CMakeFiles/liblldb.dir/SBAddress.cpp.o CMakeFiles/liblldb.dir/SBAttachInfo.cpp.o CMakeFiles/liblldb.dir/SBBlock.cpp.o CMakeFiles/liblldb.dir/SBBreakpoint.cpp.o CMakeFiles/liblldb.dir/SBBreakpointLocation.cpp.o CMakeFiles/liblldb.dir/SBBroadcaster.cpp.o CMakeFiles/liblldb.dir/SBCommandInterpreter.cpp.o CMakeFiles/liblldb.dir/SBCommandReturnObject.cpp.o CMakeFiles/liblldb.dir/SBCommunication.cpp.o CMakeFiles/liblldb.dir/SBCompileUnit.cpp.o CMakeFiles/liblldb.dir/SBData.cpp.o CMakeFiles/liblldb.dir/SBDebugger.cpp.o CMakeFiles/liblldb.dir/SBDeclaration.cpp.o CMakeFiles/liblldb.dir/SBError.cpp.o CMakeFiles/liblldb.dir/SBEvent.cpp.o CMakeFiles/liblldb.dir/SBExecutionContext.cpp.o CMakeFiles/liblldb.dir/SBExpressionOptions.cpp.o CMakeFiles/liblldb.dir/SBFileSpec.cpp.o CMakeFiles/liblldb.dir/SBFileSpecList.cpp.o CMakeFiles/liblldb.dir/SBFrame.cpp.o CMakeFiles/liblldb.dir/SBFunction.cpp.o CMakeFiles/liblldb.dir/SBHostOS.cpp.o CMakeFiles/liblldb.dir/SBInstruction.cpp.o CMakeFiles/liblldb.dir/SBInstructionList.cpp.o CMakeFiles/liblldb.dir/SBLanguageRuntime.cpp.o CMakeFiles/liblldb.dir/SBLaunchInfo.cpp.o CMakeFiles/liblldb.dir/SBLineEntry.cpp.o CMakeFiles/liblldb.dir/SBListener.cpp.o CMakeFiles/liblldb.dir/SBMemoryRegionInfo.cpp.o CMakeFiles/liblldb.dir/SBMemoryRegionInfoList.cpp.o CMakeFiles/liblldb.dir/SBModule.cpp.o CMakeFiles/liblldb.dir/SBModuleSpec.cpp.o CMakeFiles/liblldb.dir/SBPlatform.cpp.o CMakeFiles/liblldb.dir/SBProcess.cpp.o CMakeFiles/liblldb.dir/SBQueue.cpp.o CMakeFiles/liblldb.dir/SBQueueItem.cpp.o CMakeFiles/liblldb.dir/SBSection.cpp.o CMakeFiles/liblldb.dir/SBSourceManager.cpp.o CMakeFiles/liblldb.dir/SBStream.cpp.o CMakeFiles/liblldb.dir/SBStringList.cpp.o CMakeFiles/liblldb.dir/SBStructuredData.cpp.o CMakeFiles/liblldb.dir/SBSymbol.cpp.o CMakeFiles/liblldb.dir/SBSymbolContext.cpp.o CMakeFiles/liblldb.dir/SBSymbolContextList.cpp.o CMakeFiles/liblldb.dir/SBTarget.cpp.o CMakeFiles/liblldb.dir/SBThread.cpp.o CMakeFiles/liblldb.dir/SBThreadCollection.cpp.o CMakeFiles/liblldb.dir/SBThreadPlan.cpp.o CMakeFiles/liblldb.dir/SBType.cpp.o CMakeFiles/liblldb.dir/SBTypeCategory.cpp.o CMakeFiles/liblldb.dir/SBTypeEnumMember.cpp.o CMakeFiles/liblldb.dir/SBTypeFilter.cpp.o CMakeFiles/liblldb.dir/SBTypeFormat.cpp.o CMakeFiles/liblldb.dir/SBTypeNameSpecifier.cpp.o CMakeFiles/liblldb.dir/SBTypeSummary.cpp.o CMakeFiles/liblldb.dir/SBTypeSynthetic.cpp.o CMakeFiles/liblldb.dir/SBValue.cpp.o CMakeFiles/liblldb.dir/SBValueList.cpp.o CMakeFiles/liblldb.dir/SBVariablesOptions.cpp.o CMakeFiles/liblldb.dir/SBWatchpoint.cpp.o CMakeFiles/liblldb.dir/SBUnixSignals.cpp.o CMakeFiles/liblldb.dir/SystemInitializerFull.cpp.o CMakeFiles/liblldb.dir/__/__/scripts/LLDBWrapPython.cpp.o -Wl,-rpath,"\$ORIGIN/../lib" -Wl,--start-group ../../../../lib/liblldbBase.a ../../../../lib/liblldbBreakpoint.a ../../../../lib/liblldbCommands.a ../../../../lib/liblldbDataFormatters.a ../../../../lib/liblldbHost.a ../../../../lib/liblldbCore.a ../../../../lib/liblldbExpression.a ../../../../lib/liblldbInitialization.a ../../../../lib/liblldbInterpreter.a ../../../../lib/liblldbSymbol.a ../../../../lib/liblldbTarget.a ../../../../lib/liblldbUtility.a ../../../../lib/liblldbPluginDisassemblerLLVM.a ../../../../lib/liblldbPluginSymbolFileDWARF.a ../../../../lib/liblldbPluginSymbolFilePDB.a ../../../../lib/liblldbPluginSymbolFileSymtab.a ../../../../lib/liblldbPluginDynamicLoaderStatic.a ../../../../lib/liblldbPluginDynamicLoaderPosixDYLD.a ../../../../lib/liblldbPluginDynamicLoaderHexagonDYLD.a ../../../../lib/liblldbPluginDynamicLoaderWindowsDYLD.a ../../../../lib/liblldbPluginCPlusPlusLanguage.a ../../../../lib/liblldbPluginGoLanguage.a ../../../../lib/liblldbPluginJavaLanguage.a ../../../../lib/liblldbPluginObjCLanguage.a ../../../../lib/liblldbPluginObjCPlusPlusLanguage.a ../../../../lib/liblldbPluginOCamlLanguage.a ../../../../lib/liblldbPluginObjectFileELF.a ../../../../lib/liblldbPluginObjectFileJIT.a ../../../../lib/liblldbPluginSymbolVendorELF.a ../../../../lib/liblldbPluginObjectContainerBSDArchive.a ../../../../lib/liblldbPluginObjectContainerMachOArchive.a ../../../../lib/liblldbPluginProcessGDBRemote.a ../../../../lib/liblldbPluginProcessUtility.a ../../../../lib/liblldbPluginPlatformAndroid.a ../../../../lib/liblldbPluginPlatformGDB.a ../../../../lib/liblldbPluginPlatformFreeBSD.a ../../../../lib/liblldbPluginPlatformKalimba.a ../../../../lib/liblldbPluginPlatformLinux.a ../../../../lib/liblldbPluginPlatformNetBSD.a ../../../../lib/liblldbPluginPlatformPOSIX.a ../../../../lib/liblldbPluginPlatformWindows.a ../../../../lib/liblldbPluginObjectContainerMachOArchive.a ../../../../lib/liblldbPluginObjectContainerBSDArchive.a ../../../../lib/liblldbPluginPlatformMacOSX.a ../../../../lib/liblldbPluginStructuredDataDarwinLog.a ../../../../lib/liblldbPluginDynamicLoaderMacOSXDYLD.a ../../../../lib/liblldbPluginUnwindAssemblyInstEmulation.a ../../../../lib/liblldbPluginUnwindAssemblyX86.a ../../../../lib/liblldbPluginAppleObjCRuntime.a ../../../../lib/liblldbPluginRenderScriptRuntime.a ../../../../lib/liblldbPluginLanguageRuntimeGo.a ../../../../lib/liblldbPluginLanguageRuntimeJava.a ../../../../lib/liblldbPluginCXXItaniumABI.a ../../../../lib/liblldbPluginABIMacOSX_arm.a ../../../../lib/liblldbPluginABIMacOSX_arm64.a ../../../../lib/liblldbPluginABIMacOSX_i386.a ../../../../lib/liblldbPluginABISysV_arm.a ../../../../lib/liblldbPluginABISysV_arm64.a ../../../../lib/liblldbPluginABISysV_i386.a ../../../../lib/liblldbPluginABISysV_x86_64.a ../../../../lib/liblldbPluginABISysV_hexagon.a ../../../../lib/liblldbPluginABISysV_ppc.a ../../../../lib/liblldbPluginABISysV_ppc64.a ../../../../lib/liblldbPluginABISysV_mips.a ../../../../lib/liblldbPluginABISysV_mips64.a ../../../../lib/liblldbPluginABISysV_s390x.a ../../../../lib/liblldbPluginInstructionARM.a ../../../../lib/liblldbPluginInstructionARM64.a ../../../../lib/liblldbPluginInstructionMIPS.a ../../../../lib/liblldbPluginInstructionMIPS64.a ../../../../lib/liblldbPluginObjectFilePECOFF.a ../../../../lib/liblldbPluginOSGo.a ../../../../lib/liblldbPluginOSPython.a ../../../../lib/liblldbPluginMemoryHistoryASan.a ../../../../lib/liblldbPluginInstrumentationRuntimeAddressSanitizer.a ../../../../lib/liblldbPluginInstrumentationRuntimeThreadSanitizer.a ../../../../lib/liblldbPluginSystemRuntimeMacOSX.a ../../../../lib/liblldbPluginProcessElfCore.a ../../../../lib/liblldbPluginProcessMinidump.a ../../../../lib/liblldbPluginJITLoaderGDB.a ../../../../lib/liblldbPluginExpressionParserClang.a ../../../../lib/liblldbPluginExpressionParserGo.a ../../../../lib/liblldbPluginProcessLinux.a ../../../../lib/liblldbPluginProcessPOSIX.a -Wl,--end-group -Wl,--start-group ../../../../lib/libclangAnalysis.a ../../../../lib/libclangAST.a ../../../../lib/libclangBasic.a ../../../../lib/libclangCodeGen.a ../../../../lib/libclangDriver.a ../../../../lib/libclangEdit.a ../../../../lib/libclangFrontend.a ../../../../lib/libclangLex.a ../../../../lib/libclangParse.a ../../../../lib/libclangRewrite.a ../../../../lib/libclangRewriteFrontend.a ../../../../lib/libclangSema.a ../../../../lib/libclangSerialization.a -Wl,--end-group ../../../../lib/liblldbPluginScriptInterpreterNone.a ../../../../lib/liblldbPluginScriptInterpreterPython.a -lcurses /usr/lib/x86_64-linux-gnu/libform.so /usr/lib/x86_64-linux-gnu/libpanel.so -ltinfo /usr/lib/x86_64-linux-gnu/libpython2.7.so -lpthread -ldl -lcurses /usr/lib/x86_64-linux-gnu/libform.so /usr/lib/x86_64-linux-gnu/libpanel.so ../../../../lib/libclangFrontend.a ../../../../lib/libclangDriver.a ../../../../lib/libclangParse.a ../../../../lib/libclangSerialization.a ../../../../lib/libclangSema.a ../../../../lib/libclangAnalysis.a ../../../../lib/libclangEdit.a ../../../../lib/libclangAST.a ../../../../lib/libclangRewrite.a ../../../../lib/libclangLex.a ../../../../lib/libclangBasic.a ../../../../lib/libLLVM-4.0.so.1 -ltinfo /usr/lib/x86_64-linux-gnu/libpython2.7.so -lpthread -ldl
cd /<<PKGBUILDDIR>>/build-llvm/tools/lldb/source/API && /usr/bin/cmake -E cmake_symlink_library ../../../../lib/liblldb-4.0.so.1 ../../../../lib/liblldb-4.0.so.1 ../../../../lib/liblldb-4.0.so
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build-llvm'
[ 94%] Built target liblldb
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build-llvm'
make[2]: *** [Makefile:155: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build-llvm'
make[1]: *** [debian/rules:294: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:177: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
More information about the Pkg-llvm-team
mailing list