Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Link stage failure when using libomptarget #13

Open
dipietrantonio opened this issue Apr 3, 2023 · 0 comments
Open

Link stage failure when using libomptarget #13

dipietrantonio opened this issue Apr 3, 2023 · 0 comments

Comments

@dipietrantonio
Copy link
Collaborator

When trying to compile a OpenMP code that uses offloading, I get this.

$ clang++  -fopenmp  -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -lm /software/setonix/2022.11/pawsey/software/rocm/rocm-5.4.3rev0/llvm/lib/libLLVMObject.a   off.cpp
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /software/setonix/2022.11/pawsey/software/rocm/rocm-5.4.3rev0/llvm/lib/libomptarget.so: undefined reference to `llvm::object::Binary::getFileName() const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /software/setonix/2022.11/pawsey/software/rocm/rocm-5.4.3rev0/llvm/lib/libomptarget.so: undefined reference to `llvm::object::createBinary(llvm::MemoryBufferRef, llvm::LLVMContext*, bool)'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant