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

Zsim compilation error - -lstdc++ #198

Open
cengizandak opened this issue Mar 26, 2018 · 1 comment
Open

Zsim compilation error - -lstdc++ #198

cengizandak opened this issue Mar 26, 2018 · 1 comment

Comments

@cengizandak
Copy link

Hello,

When I run " scons -j16" everything goes well but i have the following error :
"/usr/bin/ld: cannot find -lstdc++ave t
collect2: error: ld returned 1 exit status
scons: *** [build/opt/fftoggle] Error 1
scons: building terminated because of errors."

I have tried to link libstdc++.so to the path of pin like this :
"sudo ln -s usr/lib64/libstdc++.so.6 /home/t28641mp/Downloads/pin2.14/"
I think that should work but I have the same error.Could you please give me some tips?
I did try to make a link to the path of Libconfig as well whereas nothing did change
gcc == gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)
OS == CentOS Linux release 7.3.1611

Kind Regards,

Cengiz

@andrewbartolo
Copy link

Hi Cengiz,

If you look at src/SConscript, you'll see the line env["LINKFLAGS"] += " --static ". This means that scons will attempt to statically link the zsim binary, so libstdc++.so (the dynamic library) isn't what you're after. By default, the static libstdc++ isn't installed.

There are two ways of resolving this -- you can either remove that line in src/SConscript, or you can do sudo yum install libstdc++-static.

Hope this helps,
Andy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants