Sedat Dilek via llvm-dev
2018-Aug-27 16:09 UTC
[llvm-dev] LLVM/Clang version 7.0.0rc2 fails with gcc (Debian 8.2.0-4)
Hi, I have not sent yet any bug-reports to llvm-dev but I am seeing this build-failure: ... [574/3685] Building CXX object lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o FAILED: lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o /usr/bin/g++-8 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Bitcode/Reader -I/home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader -Iinclude -I/home/sdi/src/llvm-toolchain/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-class-memaccess -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -UNDEBUG -fno-exceptions -fno-rtti -MD -MT lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o -MF lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o.d -o lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o -c /home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader/MetadataLoader.cpp /home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader/MetadataLoader.cpp: In member function 'llvm::Error llvm::MetadataLoader::MetadataLoaderImpl::parseOneMetadata(llvm::SmallVectorImpl<long unsigned int>&, unsigned int, {anonymous}::{anonymous}::PlaceholderQueue&, llvm::StringRef, unsigned int&)': /home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader/MetadataLoader.cpp:1771:1: internal compiler error: Segmentation fault } ^ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions. root at inizai# gcc --version gcc (Debian 8.2.0-4) 8.2.0 Copyright (C) 2018 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. Is that a known issue? Any workoround or fix available? Regards, - Sedat -
Sedat Dilek via llvm-dev
2018-Aug-28 08:26 UTC
[llvm-dev] LLVM/Clang version 7.0.0rc2 fails with gcc (Debian 8.2.0-4)
On Mon, Aug 27, 2018 at 6:09 PM, Sedat Dilek <sedat.dilek at gmail.com> wrote:> Hi, > > I have not sent yet any bug-reports to llvm-dev but I am seeing this > build-failure: > > ... > [574/3685] Building CXX object > lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o > FAILED: lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o > /usr/bin/g++-8 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE > -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS > -Ilib/Bitcode/Reader > -I/home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader -Iinclude > -I/home/sdi/src/llvm-toolchain/llvm/include -fPIC > -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra > -Wno-unused-parameter -Wwrite-strings -Wcast-qual > -Wno-missing-field-initializers -pedantic -Wno-long-long > -Wno-maybe-uninitialized -Wno-class-memaccess > -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color > -ffunction-sections -fdata-sections -O3 -UNDEBUG -fno-exceptions > -fno-rtti -MD -MT > lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o > -MF lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o.d > -o lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o > -c /home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader/MetadataLoader.cpp > /home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader/MetadataLoader.cpp: > In member function 'llvm::Error > llvm::MetadataLoader::MetadataLoaderImpl::parseOneMetadata(llvm::SmallVectorImpl<long > unsigned int>&, unsigned int, > {anonymous}::{anonymous}::PlaceholderQueue&, llvm::StringRef, unsigned > int&)': > /home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader/MetadataLoader.cpp:1771:1: > internal compiler error: Segmentation fault > } > ^ > Please submit a full bug report, > with preprocessed source if appropriate. > See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions. > > root at inizai# gcc --version > gcc (Debian 8.2.0-4) 8.2.0 > Copyright (C) 2018 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. > > Is that a known issue? > Any workoround or fix available? >Building with my selfmade llvm-toolchain was successful. So this seems to be a GCC bug. Interesting is that building with LLVM/Clang reduces disk-usage (default compression-level for gzip): root at iniza:/opt/archives# du -m *.tar.gz 353 llvm-toolchain-7.0.0rc2.tar.gz 468 llvm-toolchain-7.0.0.tar.gz - Sedat -
Hans Wennborg via llvm-dev
2018-Aug-28 08:59 UTC
[llvm-dev] LLVM/Clang version 7.0.0rc2 fails with gcc (Debian 8.2.0-4)
On Tue, Aug 28, 2018 at 10:26 AM, Sedat Dilek via llvm-dev <llvm-dev at lists.llvm.org> wrote:> On Mon, Aug 27, 2018 at 6:09 PM, Sedat Dilek <sedat.dilek at gmail.com> wrote: >> Hi, >> >> I have not sent yet any bug-reports to llvm-dev but I am seeing this >> build-failure: >> >> ... >> [574/3685] Building CXX object >> lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o >> FAILED: lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o >> /usr/bin/g++-8 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE >> -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS >> -Ilib/Bitcode/Reader >> -I/home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader -Iinclude >> -I/home/sdi/src/llvm-toolchain/llvm/include -fPIC >> -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra >> -Wno-unused-parameter -Wwrite-strings -Wcast-qual >> -Wno-missing-field-initializers -pedantic -Wno-long-long >> -Wno-maybe-uninitialized -Wno-class-memaccess >> -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color >> -ffunction-sections -fdata-sections -O3 -UNDEBUG -fno-exceptions >> -fno-rtti -MD -MT >> lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o >> -MF lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o.d >> -o lib/Bitcode/Reader/CMakeFiles/LLVMBitReader.dir/MetadataLoader.cpp.o >> -c /home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader/MetadataLoader.cpp >> /home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader/MetadataLoader.cpp: >> In member function 'llvm::Error >> llvm::MetadataLoader::MetadataLoaderImpl::parseOneMetadata(llvm::SmallVectorImpl<long >> unsigned int>&, unsigned int, >> {anonymous}::{anonymous}::PlaceholderQueue&, llvm::StringRef, unsigned >> int&)': >> /home/sdi/src/llvm-toolchain/llvm/lib/Bitcode/Reader/MetadataLoader.cpp:1771:1: >> internal compiler error: Segmentation fault >> } >> ^ >> Please submit a full bug report, >> with preprocessed source if appropriate. >> See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions. >> >> root at inizai# gcc --version >> gcc (Debian 8.2.0-4) 8.2.0 >> Copyright (C) 2018 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. >> >> Is that a known issue? >> Any workoround or fix available? >> > > Building with my selfmade llvm-toolchain was successful. > So this seems to be a GCC bug.I tried building the 7.0.0 branch with a vanilla gcc 8.2.0 build, but I couldn't reproduce the error. Have you reported the bug to the gcc bugzilla? Even if it's not an LLVM bug, it would be unfortunate if the release doesn't build with Debian's gcc, so it would be good to get to the bottom of this. Thanks, Hans
Possibly Parallel Threads
- LLVM/Clang version 7.0.0rc2 fails with gcc (Debian 8.2.0-4)
- LLVM/Clang version 7.0.0rc2 fails with gcc (Debian 8.2.0-4)
- LLVM/Clang version 7.0.0rc2 fails with gcc (Debian 8.2.0-4)
- Get full cmake lines and prepocessed source for a GCC bug report
- Get full cmake lines and prepocessed source for a GCC bug report