Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CookBook/16 build error #464

Closed
ZJLi2013 opened this issue Jun 3, 2024 · 2 comments
Closed

CookBook/16 build error #464

ZJLi2013 opened this issue Jun 3, 2024 · 2 comments

Comments

@ZJLi2013
Copy link

ZJLi2013 commented Jun 3, 2024

Problem Description

NAME="Ubuntu"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
ROCk module version 6.2.4 
Name:                    gfx1100

following: sample build

  • build error on 02_CookBook/16_xxx
ld.lld: error: undefined symbol: __hip_fatbin
>>> referenced by square.cpp
>>>               /workspace/samples/build/2_Cookbook/16_assembly_to_executable/square_host.o:(__hip_fatbin_wrapper)
>>> did you mean: __hip_fatbin_
>>> defined in: /workspace/samples/build/2_Cookbook/16_assembly_to_executable/square_device.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)

looks the default cmake can't find a link lib ? or how should I setup ?

Thanks

Operating System

Ubuntu 22.04

CPU

Ryzen

GPU

AMD Radeon RX 7900 XTX

ROCm Version

ROCm 6.1.0

ROCm Component

No response

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

@ppanchad-amd
Copy link

Hi @ZJLi2013, internal ticket has been created to investigate your issue. Thanks!

@darren-amd
Copy link

Hi @ZJLi2013,

A recent compiler patch introduced a change where clang is emitting the symbol __hip_fatbin_ (with an underscore) instead of __hip_fatbin (without an underscore): llvm/llvm-project#81700. The hip-tests were updated accordingly here: fba826f. I believe that you are running an older version of the compiler where __hip_fatbin is still being emitted. This mismatch is causing the reported error.

The solution is either to upgrade your ROCm version to the latest (6.2.0) or to try running the tests with the changes here reverted: fba826f. Please give that a try and let me know if you run into any further issues!

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

No branches or pull requests

3 participants