[cfe-users] Backend error
Hi, I am seeing a application build error shown below: [ 7%] Building CXX object sli/CMakeFiles/sli_lib.dir/filesystem.cc.o fatal error: error in backend: Cannot select: t42: i16,ch = AtomicLoad<(volatile load acquire 1 from `i8 addrspace(1)* bitcast (i64 addrspace(1)* @_ZGVZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreterE4seed to i8 addrspace(1)*)`, align 8, addrspace 1)> t7:1, t46 t46: i64 = NVPTXISD::Wrapper TargetGlobalAddress:i64 0 t45: i64 = TargetGlobalAddress 0 In function: _ZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreter clang-8: error: clang frontend command failed with exit code 70 (use -v to see invocation) clang version 8.0.0 (https://github.com/llvm-mirror/clang e20516350f5e2062f0b5f49efb56acd94c83e5e4) ( https://github.com/llvm-mirror/llvm c04ae04bb3ce0d715190819fa3f5c001c471d969) Target: powerpc64le-unknown-linux-gnu Thread model: posix InstalledDir: /gpfs/work/pcp0/pcp0151/opt/llvm+clang-upstream/bin clang-8: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script. clang-8: note: diagnostic msg: Error generating preprocessed source(s). make[2]: *** [sli/CMakeFiles/sli_lib.dir/filesystem.cc.o] Error 70 make[1]: *** [sli/CMakeFiles/sli_lib.dir/all] Error 2 make: *** [all] Error 2 The LLVM/Clang toolchain I'm using is the trunk clang-8. ___ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
Re: [cfe-users] Backend error
Hi, Please see: https://bugs.llvm.org/show_bug.cgi?id=38667 On Wed, Aug 22, 2018 at 4:54 PM Jonas Toth wrote: > Could you please report this as a bug at > https://bugs.llvm.org/describecomponents.cgi?product=clang > > Best, Jonas > > Am 21.08.2018 um 08:01 schrieb Itaru Kitayama via cfe-users: > > Hi, > I am seeing a application build error shown below: > > [ 7%] Building CXX object sli/CMakeFiles/sli_lib.dir/filesystem.cc.o > fatal error: error in backend: Cannot select: t42: i16,ch = > AtomicLoad<(volatile load acquire 1 from `i8 > addrspace(1)* bitcast (i64 addrspace(1)* > > @_ZGVZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreterE4seed > to i8 addrspace(1)*)`, align 8, > addrspace 1)> t7:1, t46 > t46: i64 = NVPTXISD::Wrapper TargetGlobalAddress:i64 @_ZGVZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreterE4seed> > 0 > t45: i64 = TargetGlobalAddress @_ZGVZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreterE4seed> > 0 > In function: > _ZNK16FilesystemModule14TmpNamFunction7executeEP14SLIInterpreter > clang-8: error: clang frontend command failed with exit code 70 (use -v to > see invocation) > clang version 8.0.0 (https://github.com/llvm-mirror/clang > e20516350f5e2062f0b5f49efb56acd94c83e5e4) ( > https://github.com/llvm-mirror/llvm > c04ae04bb3ce0d715190819fa3f5c001c471d969) > Target: powerpc64le-unknown-linux-gnu > Thread model: posix > InstalledDir: /gpfs/work/pcp0/pcp0151/opt/llvm+clang-upstream/bin > clang-8: note: diagnostic msg: PLEASE submit a bug report to > https://bugs.llvm.org/ and include the crash backtrace, preprocessed > source, and associated run script. > clang-8: note: diagnostic msg: Error generating preprocessed source(s). > make[2]: *** [sli/CMakeFiles/sli_lib.dir/filesystem.cc.o] Error 70 > make[1]: *** [sli/CMakeFiles/sli_lib.dir/all] Error 2 > make: *** [all] Error 2 > > The LLVM/Clang toolchain I'm using is the trunk clang-8. > > > ___ > cfe-users mailing > listcfe-us...@lists.llvm.orghttp://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users > > > ___ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
[cfe-users] How do I make CMake use LLD
Hi, Keeping the system linker as GNU ld, how do I make CMake use LLD at configure time? alias ld='lld' does not seem to work. ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
Re: [cfe-users] How do I make CMake use LLD
I was just setting the flag for the C++ compiler wrapper, but doing the same for the C compiler seems to work (on ppc64le linking with LLD fails though). On Tue, Mar 5, 2019 at 12:07 AM David Blaikie wrote: > Generally the linker is invoked via the compiler wrapper (eg: "clang x.o > y.o" to produce a.out), so you can add to your linker flags "-fuse-ld=lld" > to tell the compiler wrapper to lld. > > On Mon, Mar 4, 2019 at 7:06 AM Itaru Kitayama via cfe-users < > cfe-users@lists.llvm.org> wrote: > >> Hi, >> Keeping the system linker as GNU ld, how do I make CMake use LLD >> at configure time? alias ld='lld' does not seem to work. >> ___ >> cfe-users mailing list >> cfe-users@lists.llvm.org >> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users >> > ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
[cfe-users] Recipe for cross compiling from x86 to AArch64?
Hi, Following instructions written at: https://llvm.org/docs/HowToCrossCompileLLVM.html ends up with: [ 57%] Building arm_neon.h... /bin/sh: ../../../../bin/clang-tblgen: cannot execute binary file make[2]: *** [tools/clang/lib/Headers/arm_neon.h] Error 126 make[1]: *** [tools/clang/lib/Headers/CMakeFiles/clang-resource-headers.dir/all] Error 2 make: *** [all] Error 2 I believe there's no easy way for us to build clang-tblgen, so I am stuck right here. ___ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users