Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28893 Discussions

ifort: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ifort)

hari343
Beginner
5,377 Views

$ ifort hello.f


ifort: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ifort)

 

the above error occurs in centos and yum package manager on installing 

intel-oneapi base-kit

intel-oneapi hpc-kit

0 Kudos
6 Replies
Barbara_P_Intel
Employee
5,300 Views

A few questions...

What version of Centos are you running?

What version of the GNU libraries is installed?

What version of ifort are you using?

 

0 Kudos
hari343
Beginner
5,270 Views
Answer of the asked above three questions as follow:
************************************************************************
$ more /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
*************************************************************************
gnulib-tool --version
sed: can't read /usr/share/gnulib/ChangeLog: No such file or directory
gnulib-tool (GNU gnulib )
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
 
Written by Bruno Haible, Paul Eggert, and Simon Josefsson.
 **************************************************************
/opt/intel/oneapi/compiler
2023.2.0  latest
****************************************************************
0 Kudos
Barbara_P_Intel
Employee
5,234 Views

CentOS 7 (Red Hat 7) is not supported. See the System Requirements.

0 Kudos
hari343
Beginner
5,170 Views

$ more /etc/centos-release
CentOS Linux release 8.5.2111

problem is still the same . After updating the OS.

0 Kudos
jmbeuken
Beginner
4,656 Views

works for me...

$ cat /etc/redhat-release
CentOS Linux release 8.4.2105

$ mpiifort -V
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.5.0 Build 20211109_000000
Copyright (C) 1985-2021 Intel Corporation.  All rights reserved.

$ mpiifort -show
ifort -I"/home/softs/intel/oneapi/mpi/2021.5.1//include" -I"/home/softs/intel/oneapi/mpi/2021.5.1/include" -L"/home/softs/intel/oneapi/mpi/2021.5.1/lib/release" -L"/home/softs/intel/oneapi/mpi/2021.5.1/lib" -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker "/home/softs/intel/oneapi/mpi/2021.5.1/lib/release" -Xlinker -rpath -Xlinker "/home/softs/intel/oneapi/mpi/2021.5.1/lib" -lmpifort -lmpi -ldl -lrt -lpthread

0 Kudos
Umar__Sait
Novice
5,155 Views

In the past when I had this problem I replaced the libstdc files from lib directory of Visit with the ones on my system and it

worked. In my case I was ahead of the Visit dstribution.

0 Kudos
Reply