On Thu, Jul 09, 2015 at 04:18:19PM +0100, Russel Winder wrote:
In trying to install Python Numba into a virtualenv on a 64-bit
Fedora
Rawhide, I see that
/usr/lib/gcc/x86_64-redhat-linux/5.1.1/32/libstdc++.a
is provided by:
gcc-c++-5.1.1-4.fc23.x86_64
but there is seemingly no 64-bit version:
/usr/lib/gcc/x86_64-redhat-linux/5.1.1/libstdc++.a
provided. The package provides all the shared objects:
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.21
/usr/lib/gcc/x86_64-redhat-linux/5.1.1/libstdc++.so
/usr/lib/gcc/x86_64-redhat-linux/5.1.1/32/libstdc++.so
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.21
Is this a packaging error that I should report somewhere, or am I missing
No.
something?
/usr/lib/gcc/x86_64-redhat-linux/5.1.1/libstdc++.a is just a symlink.
You need to install libstdc++-static package if you want to link statically
against -lstdc++ (similarly to pretty much any other library package in Fedora).
If you install libstdc++-static.x86_64, you'll be able to link against 64-bit
libstdc++.a, if you install libstdc++-static.i686, you'll be able to link
against 32-bit libstdc++.a (with -m32), if you install both, then against
both.
As always, static linking is not recommended (which is why you need the
extra *-static packages in Fedora).
Jakub