Source: llvm-toolchain-7 Version: 1:7.0.1~+rc2-1 Severity: normal User: debian-sparc@lists.debian.org Usertags: sparc64
Hi! After enabling the clang stage2 bootstrap, LLVM currently FTBFS on sparc* because of a bug in binutils which provokes unaligned access resulting in a "Bus Error" [1]: [ 4%] Linking C executable ../../bin/count cd "/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/utils/count" && /usr/bin/cmake -E cmake_link_script CMakeFiles/count.dir/link.txt --verbose=1 "/<<PKGBUILDDIR>>/build-llvm/./bin/clang" -fuse-ld=gold -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option -fPIC -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-comment -ffunction-sections -fdata-sections -fPIC -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wdelete-non-virtual-dtor -Wstring-conversion -ffunction-sections -fdata-sections -O2 -g -DNDEBUG -fuse-ld=gold -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option -Wl,-allow-shlib-undefined -Wl,-O3 -Wl,--gc-sections CMakeFiles/count.dir/count.c.o -o ../../bin/count -Wl,-rpath,"\$ORIGIN/../lib" -lpthread clang-7: error: unable to execute command: Bus error clang-7: error: linker command failed due to signal (use -v to see invocation) make[8]: *** [utils/count/CMakeFiles/count.dir/build.make:87: bin/count] Error 254 This can be worked around by removing sparc* from BINUTILS_GOLD_ARCHS in debian/rules which is what we should be doing until the binutils issues has been resolved. Thanks, Adrian > [1] > https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-7&arch=sparc64&ver=1%3A7.0.1%7E%2Brc2-2&stamp=1541692774&raw=0 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913