Skip to content

Clang + NVPTX reports ptxas fatal : Unresolved extern function '__assert_fail' #125782

Open
@clellsolomon

Description

@clellsolomon

I'm getting the following error when compiling a file without -DNDEBUG:

ptxas fatal   : Unresolved extern function '__assert_fail'
clang++: error: ptxas command failed with exit code 255 (use -v to see invocation)
clang version 21.0.0git (https://github.com/llvm/llvm-project.git d13940ee263ff50b7a71e21424913cc0266bf9d4)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/projects/eap/users/csolomon/local/install/cos3/venado/clang-trunk/bin

I'm using CUDA 12.5 which i understand is marked only partially supported.

The file does compile when -DNDEBUG is defined on the compile line.

I cannot (currently) share the reproducer as the source is controlled. I've worked (briefly) at generating a reproducer without success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangClang issues not falling into any other categorycuda

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions