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

[HIPIFY][build][Issue] std::__throw_bad_array_new_length build failure on Red Hat Enterprise Linux Server release 7.9 #1586

Open
AnwarXahid opened this issue Jul 17, 2024 · 1 comment
Assignees
Labels
build Building issue/fix clang clang compiler related issue or change failure failure

Comments

@AnwarXahid
Copy link

I was trying to install hipify-clang using the following commands:

git clone https://github.com/ROCm/HIPIFY.git hipify
cd hipify/..
mkdir build dist
cd build
cmake -DCMAKE_INSTALL_PREFIX=../dist DCMAKE_BUILD_TYPE=Release ../hipify
make -j install

Everything went fine, until, at the last step while the linker is evoked; I got this error:

undefined references to `std::__throw_bad_array_new_length()' follow
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [CMakeFiles/hipify-clang.dir/build.make:698: hipify-clang] Error 1
make[1]: *** [CMakeFiles/Makefile2:209: CMakeFiles/hipify-clang.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

My LLVM+Clang version: 16.0.6
CUDA version: 11.2.0
GCC version: 8.3.1
cmake version: 3.18.0

Why I'm getting this error? What might be wrong?

@emankov emankov added build Building issue/fix failure failure clang clang compiler related issue or change labels Jul 19, 2024
@emankov emankov self-assigned this Jul 19, 2024
@emankov
Copy link
Collaborator

emankov commented Jul 19, 2024

Hi @AnwarXahid,

Could you use the newer GCC version, please? 8.x is already out of our (and LLVM's) support. Compilation should work correctly with GCC 9.2 or higher. Thanks!

https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/hipify-clang.rst#linux-testing:

Minimum build system requirements for the above configurations:
CMake 3.16.8, GNU C/C++ 9.2, Python 3.0.

@emankov emankov changed the title std::__throw_bad_array_new_length build failure on Red Hat Enterprise Linux Server release 7.9 [HIPIFY][build][Issue] std::__throw_bad_array_new_length build failure on Red Hat Enterprise Linux Server release 7.9 Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Building issue/fix clang clang compiler related issue or change failure failure
Projects
None yet
Development

No branches or pull requests

2 participants