Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448050 - dev-games/simgear-2.8.0-r1: fails to build
Summary: dev-games/simgear-2.8.0-r1: fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-21 02:40 UTC by Scott Lawrence
Modified: 2013-02-07 23:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info,14.72 KB, text/plain)
2012-12-21 02:40 UTC, Scott Lawrence
Details
build log (build.log,185.65 KB, text/plain)
2012-12-21 02:41 UTC, Scott Lawrence
Details
emerge -p (emerge-pretend,83 bytes, text/plain)
2012-12-21 02:41 UTC, Scott Lawrence
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Lawrence 2012-12-21 02:40:15 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../lib64/libosgText.a(String.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
Comment 1 Scott Lawrence 2012-12-21 02:40:34 UTC
Created attachment 332874 [details]
emerge  --info
Comment 2 Scott Lawrence 2012-12-21 02:41:24 UTC
Created attachment 332876 [details]
build log
Comment 3 Scott Lawrence 2012-12-21 02:41:48 UTC
Created attachment 332878 [details]
emerge -p
Comment 4 Scott McClung 2013-02-03 07:45:37 UTC
I have the same problem.  After I rebuild dev-games/openscenegraph with -static-libs USE flag, it would build for me.   Does that help you as well?

Most of the packages I see build both shared and static libraries with "static-libs" set, and this was a surprise to me.
Comment 5 Maciej Mrozowski gentoo-dev 2013-02-04 23:01:28 UTC
Isn't static-libs disabled by default?
Comment 6 Scott McClung 2013-02-05 00:42:24 UTC
I believe you are correct.  I had put that flag in /etc/portage/make.conf USE when I was creating a static LVM2 for my initramfs.
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2013-02-05 00:50:36 UTC
it should always be building the dynamic libraries.  Does it not build dynamic when static-libs is set?
Comment 8 Scott McClung 2013-02-05 08:05:25 UTC
with =dev-games/openscenegraph-3.0.1 +static-libs, I had no dynamic libraries.

Without static libs, I get:

# ls -l /usr/lib/libosg*
lrwxrwxrwx 1 root root      12 Feb  4 03:17 /usr/lib/libosg.so -> libosg.so.80
-rwxr-xr-x 1 root root 3040128 Feb  4 03:16 /usr/lib/libosg.so.3.0.1
lrwxrwxrwx 1 root root      15 Feb  4 03:17 /usr/lib/libosg.so.80 -> libosg.so.3.0.1
[and many more]

With static-libs:

# USE="static-libs" emerge -av dev-games/openscenegraph
# ls -l /usr/lib/libosg*
-rw-r--r-- 1 root root 7191806 Feb  5 02:49 /usr/lib/libosg.a

Could it be something specific to this host?  I have build logs if they would be useful.
Comment 9 Maciej Mrozowski gentoo-dev 2013-02-07 22:39:33 UTC
(In reply to comment #7)
> it should always be building the dynamic libraries.  Does it not build
> dynamic when static-libs is set?

It doesn't. CMake (as opposed to libtool) requires special handling in order to create both types of libraries (essentially you would define two targets).
Here in OSG, there's just switch between static vs dynamic.

Therefore I think we should remove static-libs USE flag entirely as I don't feel like explicitly running phase functions twice just because.
Comment 10 Maciej Mrozowski gentoo-dev 2013-02-07 23:18:27 UTC
static-libs gone for OSG. Also removed related pkg_postinst message, instructing to rebuild simgear after emerging OSG :P