- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I am trying to compile a simple dpc++ program using command "icpx -fsycl" and met this error.
The detailed error report is like this:
"/opt/rh/devtoolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/../../../../bin/ld: /opt/intel/oneapi/compiler/2023.1.0/linux/bin-llvm/../lib/libsycl.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/../../../../bin/ld: /opt/intel/oneapi/compiler/2023.1.0/linux/bin-llvm/../lib/libsycl.so: undefined reference to `std::basic_fstream<char, std::char_traits<char> >::basic_fstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/../../../../bin/ld: /opt/intel/oneapi/compiler/2023.1.0/linux/bin-llvm/../lib/libsycl.so: undefined reference to `VTT for std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
/opt/rh/devtoolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/../../../../bin/ld: /opt/intel/oneapi/compiler/2023.1.0/linux/bin-llvm/../lib/libsycl.so: undefined reference to `std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::_Ios_Openmode)@GLIBCXX_3.4.21'
/opt/rh/devtoolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/../../../../bin/ld: /opt/intel/oneapi/compiler/2023.1.0/linux/bin-llvm/../lib/libsycl.so: undefined reference to `std::_V2::error_category::_M_message[abi:cxx11](int) const@GLIBCXX_3.4.21'
/opt/rh/devtoolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/../../../../bin/ld: /opt/intel/oneapi/compiler/2023.1.0/linux/bin-llvm/../lib/libsycl.so: undefined reference to `std::__exception_ptr::exception_ptr::exception_ptr(void*)@CXXABI_1.3.11'"
(above only list part of the error warning)
How can i resolve this problem? My linux distribution is CentOS7.9. Can you give me some advice?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi,
I am not sure whether updating the libstdc++ will work, as CentOS is not supported. I am able to use the icpx compiler without any issues on Ubuntu 22.04(supported OS).
I have run the below commands on Ubuntu machine before installing the Intel oneAPI toolkits, which will install the CMake, pkg-config, and GNU development tools on the system.
sudo apt update
sudo apt -y install cmake pkg-config build-essential
Try running the below command on CentOS if you face the same issues.
sudo yum install libstdc++
As Intel compilers utilize the GNU build toolchains to provide a complete C/C++ development environment.
Please refer to the below link for more details.
Thanks and Regards,
Pendyala Sesha Srinivas
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I think the above warning may have the same reason with this:
root@master:~# sycl-ls
sycl-ls: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /opt/intel/oneapi/compiler/2023.1.0/linux/lib/libsycl.so.6)
sycl-ls: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /opt/intel/oneapi/compiler/2023.1.0/linux/lib/libsycl.so.6)
sycl-ls: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /opt/intel/oneapi/compiler/2023.1.0/linux/lib/libsycl.so.6)
sycl-ls: /lib64/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by /opt/intel/oneapi/compiler/2023.1.0/linux/lib/libsycl.so.6)
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi,
Thank you for posting in Intel Communities.
As per the Intel oneAPI DPC++/C++ Compiler 2023.1 system requirements, CentOS 7.9 is not supported. For more details please refer to the following link.
Please try to run on the supported Operating System and let us know if you face any issues.
Thanks and Regards,
Pendyala Sesha Srinivas
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi, thanks for your reply,
I wonder whether updating my libstdc++ will work, because i may have some difficulty updating my operating system.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi,
I am not sure whether updating the libstdc++ will work, as CentOS is not supported. I am able to use the icpx compiler without any issues on Ubuntu 22.04(supported OS).
I have run the below commands on Ubuntu machine before installing the Intel oneAPI toolkits, which will install the CMake, pkg-config, and GNU development tools on the system.
sudo apt update
sudo apt -y install cmake pkg-config build-essential
Try running the below command on CentOS if you face the same issues.
sudo yum install libstdc++
As Intel compilers utilize the GNU build toolchains to provide a complete C/C++ development environment.
Please refer to the below link for more details.
Thanks and Regards,
Pendyala Sesha Srinivas
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi,
We haven't heard back from you. Could you please provide an update on your issue?
Thanks and Regards,
Pendyala Sesha Srinivas
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi,
I have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.
Thanks and Regards,
Pendyala Sesha Srinivas
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Sorry, i forgot to turn on email notification when someone reply.
Thank you for your advice! We are changing our OS to Ubuntu now!
Thanks and Regards