gcc-6 unresolved symbol __cpu_model in code using __builtin_cpu_supports("sse2")

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I'm having this weird issue in rawhide / f24 where I get the following
error:

ldd -r /usr/lib64/libsfml-graphics.so

<snip>

undefined symbol: __cpu_model   (/usr/lib64/libsfml-graphics.so)

I've found this out by build failures like this one:

/usr/bin/ld: conftest: hidden symbol `__cpu_model' in /usr/lib/gcc/x86_64-redhat-linux/6.0.0/libgcc.a(cpuinfo.o) is referenced by DSO
/usr/bin/ld: final link failed: Bad value

I've gone closely over the CFLAGS and LDFLAGS for SFML
and the full rpm config flags are used, including
passing -fPIC when building the object files and
passing both -fPIC and -shared when linking the .so file.

I've tracked the root cause of this down to a call
to __builtin_cpu_supports("sse2") in the SFML code,
if I remove that call, all is well.

Any hints on what is going on here appreciated.

Note I already have a fix, SFML only calls
__builtin_cpu_supports("sse2") when building with
-msse2, so the whole call can simply be replaced
by "1", but I still would like to know what
is going on here.

Regards,

Hans
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux