Hi, I'm having trouble upgrading a system running 9-stable to a new revision. buildworld always dies with an "internal compiler error" during lib/clang/libllvminstcombine. The machine is currently running: FreeBSD fred 9.1-STABLE FreeBSD 9.1-STABLE #0 r251914: Tue Jun 18 20:30:07 BST 2013 root at fred:/usr/obj/usr/src/sys/FRED amd64 I'm trying to upgrade to svn stable/9 r256049. I tried switching off compiler optimisations in make.conf but that didn't work. The very same error happens since August, different revisions. Bits from the script(1)-ed output are: ===> lib/clang/libllvminstcombine (all) c++ -O -fno-strict-aliasing -pipe -mtune=native -march=native -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine -I. -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd9.2\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd9.2\" -DDEFAULT_SYSROOT=\"\" -fstack-protector -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp -o InstCombineAddSub.o c++ -O -fno-strict-aliasing -pipe -mtune=native -march=native -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine -I. -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd9.2\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd9.2\" -DDEFAULT_SYSROOT=\"\" -fstack-protector -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp -o InstCombineAndOrXor.o c++ -O -fno-strict-aliasing -pipe -mtune=native -march=native -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine -I. -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd9.2\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd9.2\" -DDEFAULT_SYSROOT=\"\" -fstack-protector -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp -o InstCombineCalls.o c++ -O -fno-strict-aliasing -pipe -mtune=native -march=native -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine -I. -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd9.2\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd9.2\" -DDEFAULT_SYSROOT=\"\" -fstack-protector -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp -o InstCombineCasts.o c++ -O -fno-strict-aliasing -pipe -mtune=native -march=native -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine -I. -I/usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -fno-strict-aliasing -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd9.2\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd9.2\" -DDEFAULT_SYSROOT=\"\" -fstack-protector -fno-exceptions -fno-rtti -c /usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp -o InstCombineCompares.o /usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp: In member function 'llvm::Instruction* llvm::InstCombiner::visitICmpInstWithInstAndIntCst(llvm::ICmpInst&, llvm::Instruction*, llvm::ConstantInt*)': /usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:1649: internal compiler error: in memory_address_length, at config/i386/i386.c:13897 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. *** [InstCombineCompares.o] Error code 1 Stop in /usr/src/lib/clang/libllvminstcombine. *** [all] Error code 1 Stop in /usr/src/lib/clang. *** [all] Error code 1 Stop in /usr/src/lib. *** [lib__L] Error code 1 Stop in /usr/src. *** [libraries] Error code 1 Stop in /usr/src. *** [_libraries] Error code 1 Stop in /usr/src. *** [buildworld] Error code 1 Stop in /usr/src. Any idea how to work around this? Or what to do about it? Thanks! Johannes
On Oct 9, 2013, at 01:39, Johannes Totz <johannes at jo-t.de> wrote:> I'm having trouble upgrading a system running 9-stable to a new revision. buildworld always dies with an "internal compiler error" during lib/clang/libllvminstcombine....> /usr/src/lib/clang/libllvminstcombine/../../../contrib/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:1649: internal compiler error: in memory_address_length, at config/i386/i386.c:13897Since the tinderboxes for stable/9 are green, it is most likely your machine has a hardware problem. You should at least run two or three full passes of memtest on your machine: this type of error typically occurs when data in RAM gets corrupted. If you can't find any hardware problems, you could try to switch off building clang, using WITHOUT_CLANG in your src.conf. However, if your hardware cannot be trusted, all bets are off... :) -Dimitry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 203 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20131009/8dab4d72/attachment.sig>