| Issue |
71593
|
| Summary |
Link failure with Eigen when compiling with OpenMP offload
|
| Labels |
|
| Assignees |
|
| Reporter |
markdewing
|
A link error results when compiling a test program that uses Eigen. It compiles and runs fine as a host program.
Nvidia target:
```
nvlink error : Undefined reference to '_ZN5Eigen3fixILin1EEE' in '/tmp/inv-d9ee8d-nvptx64-nvidia-cuda-sm_89-e39f85.cubin'
```
AMD target
```
ld.lld: error: undefined symbol: Eigen::fix<0>
```
x86_64 target
```
inv.cpp:(.text._ZN5Eigen8internal22lhs_process_one_packetILi4ELl1ELl1EdddddddNS0_11gebp_traitsIddLb0ELb0ELi0ELi0EEENS0_16BlasLinearMapperIdlLi0ELi1EEENS0_16blas_data_mapperIdlLi0ELi0ELi1EEEEclERKS7_PKdSC_dllllllilllll[_ZN5Eigen8internal22lhs_process_one_packetILi4ELl1ELl1EdddddddNS0_11gebp_traitsIddLb0ELb0ELi0ELi0EEENS0_16BlasLinearMapperIdlLi0ELi1EEENS0_16blas_data_mapperIdlLi0ELi0ELi1EEEEclERKS7_PKdSC_dllllllilllll]+0x10d1): undefined reference to `Eigen::fix<0>'
```
Requires a slightly modified version of Eigen to reproduce. Link to modified branch in the attached reproducer.
[eigen_link_error.tar.gz](https://github.com/llvm/llvm-project/files/13289796/eigen_link_error.tar.gz)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs