Hello gem5-users,
I get the following error when building gem5 on CentOS 7:
[olumide@centos gem5]$ scons build/NULL/gem5.opt -j4
scons: Reading SConscript files ...
...
Checking for linker -Wl,--as-needed support... yes
Checking for compiler -gz support... yes
Checking for linker -gz support... yes
Info: Using Python config: python3-config
Checking for C header file Python.h... yes
build/NULL/gem5.build/scons_config/conftest_2176b2d932a60acfa5b4079f6e5ab92b_0_e62b576be4b0ded20a2d3bd61e36c055:
/lib64/libstdc++.so.6: version CXXABI_1.3.9' not found (required by build/NULL/gem5.build/scons_config/conftest_2176b2d932a60acfa5b4079f6e5ab92b_0_e62b576be4b0ded20a2d3bd61e36c055) build/NULL/gem5.build/scons_config/conftest_2176b2d932a60acfa5b4079f6e5ab92b_0_e62b576be4b0ded20a2d3bd61e36c055: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.29' not found (required by
build/NULL/gem5.build/scons_config/conftest_2176b2d932a60acfa5b4079f6e5ab92b_0_e62b576be4b0ded20a2d3bd61e36c055)
build/NULL/gem5.build/scons_config/conftest_2176b2d932a60acfa5b4079f6e5ab92b_0_e62b576be4b0ded20a2d3bd61e36c055:
/lib64/libstdc++.so.6: version CXXABI_1.3.13' not found (required by build/NULL/gem5.build/scons_config/conftest_2176b2d932a60acfa5b4079f6e5ab92b_0_e62b576be4b0ded20a2d3bd61e36c055) build/NULL/gem5.build/scons_config/conftest_2176b2d932a60acfa5b4079f6e5ab92b_0_e62b576be4b0ded20a2d3bd61e36c055: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.21' not found (required by
build/NULL/gem5.build/scons_config/conftest_2176b2d932a60acfa5b4079f6e5ab92b_0_e62b576be4b0ded20a2d3bd61e36c055)
I have added the path to a compliant version of libstdc++.so.6 to the
start of the LD_LIBRARY_PATH environment variable. This version of
libstdc++.so.6 supports the required ABIs:
[olumide@centos gem5]$ strings
/share/sw/rhel7/gcc-13.3.0/lib/libstdc++.so.6 | grep GLIBCXX_3.4.29
GLIBCXX_3.4.29
GLIBCXX_3.4.29
[olumide@centos gem5]$ strings
/share/sw/rhel7/gcc-13.3.0/lib/libstdc++.so.6 | grep GLIBCXX_3.4.21
GLIBCXX_3.4.21
GLIBCXX_3.4.21
[olumide@centos gem5]$ strings
/share/sw/rhel7/gcc-13.3.0/lib/libstdc++.so.6 | grep CXXABI_1.3.13
CXXABI_1.3.13
CXXABI_1.3.13
[olumide@centos gem5]$ strings
/share/sw/rhel7/gcc-13.3.0/lib/libstdc++.so.6 | grep CXXABI_1.3.9
CXXABI_1.3.9
CXXABI_1.3.9
Nevertheless conftest retains a dependency on the unsuitable
/lib64/libstdc++.so.6.
OS and compiler info.
[olumide@centos gem5]$ lsb_release -a
LSB Version:
:core-4.1-amd64:core-4.1-ia32:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-ia32:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-ia32:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.9.2009 (Core)
Release: 7.9.2009
Codename: Core
[olumide@centos gem5]$ g++ --version
g++ (GCC) 13.3.0
Regards,