Skip to content

[SYCL] [CUDA] libclang_rt.profile-x86_64.a not found when compiling package in Debug #2508

Closed
@cgleggett

Description

@cgleggett

When building a package using clang++ from dpcpp/llvm with -DCMAKE_BUILD_TYPE=Debug, I'm seeing this error:

/usr/bin/ld: cannot find /opt/dpcpp/2020.09.21-cuda-9db44f8551a/lib/clang/12.0.0/lib/linux/libclang_rt.profile-x86_64.a

dpcpp was built with

buildbot/configure.py -s ../llvm -o . -t release --no-werror --shared-libs --cmake-opt=-DCMAKE_INSTALL_PREFIX=/opt/dpcpp/2020.09.21-cuda-9db44f8551a --cuda

I don't see libclang_rt.profile-x86_64.a anywhere in the llvm build directory, so it's not that it was built but not installed. In fact the whole /opt/dpcpp/2020.09.21-cuda-9db44f8551a/lib/clang/12.0.0/lib directory does not exist.

Is there another parameter that needs to be given to buildbot to build this?

The version of dpcpp is from git commit hash 9db44f8, but this seems the same in versions going back to March. I do see this library in the beta-0X packages however.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions