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

Importation fails due to undefined symbol: __cpu_model #134

Closed
iago-lito opened this issue Jul 27, 2016 · 2 comments
Closed

Importation fails due to undefined symbol: __cpu_model #134

iago-lito opened this issue Jul 27, 2016 · 2 comments

Comments

@iago-lito
Copy link

After having solved problem #132 (so reverted to commit 8d2f0a7), I cannot load pysfml anymore, due to an apparent linkage error:

Python 3.5.2 (default, Jul  5 2016, 11:33:36) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sfml
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/sfml/__init__.py", line 3, in <module>
    import sfml.graphics
ImportError: /usr/local/lib/libsfml-graphics.so.2.3: undefined symbol: __cpu_model
>>>

This is Debian 9 (stretch) speaking, up-to-date, with the latest version of SFML compiled from its github repo. Do you think the problem comes from pysfml or from SFML library?

@jcowgill
Copy link
Contributor

It's a bug in gcc 5 (fixed in gcc 6). See:

https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1568899
nothings/stb#280

@iago-lito
Copy link
Author

iago-lito commented Jul 27, 2016

How deep! Ô.Ô
Indeed, importation works well after having installed gcc-6, g++6 and recompiled SFML with:

CC=gcc-6 CXX=g++-6 ./configure

Cheers!
^ ^

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