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

Link stage failure when using libomptarget #13

@dipietrantonio

Description

@dipietrantonio

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)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions