Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365413 - introspection USE flag causes failures for cross-compilation
Summary: introspection USE flag causes failures for cross-compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 386935 (view as bug list)
Depends on:
Blocks: portage-multilib
  Show dependency tree
 
Reported: 2011-04-30 14:11 UTC by Thomas Sachau
Modified: 2011-12-04 15:30 UTC (History)
4 users (show)

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


Attachments
build.log for gdk-pixbuf with introspection USE flag enabled during cross-compilation (x11-libs:gdk-pixbuf-2.22.1-r1:20110428-205704.log,86.87 KB, text/plain)
2011-04-30 14:11 UTC, Thomas Sachau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Sachau gentoo-dev 2011-04-30 14:11:52 UTC
Created attachment 271635 [details]
build.log for gdk-pixbuf with introspection USE flag enabled during cross-compilation

All ebuilds, which contain the introspection USE flag enabled, fail to cross-compile because of this flag. I will attach an example build.log for gdk-pixbuf failure.
Comment 1 Pacho Ramos gentoo-dev 2011-07-15 12:21:10 UTC
As seen googling a bit, this looks to be an upstream problem... but I couldn't find any upstream solution for the problem :S
Comment 2 Thomas Sachau gentoo-dev 2011-07-15 12:53:20 UTC
There is at least a hint for the direction a solution could go, see bug 371717 comment 4

The binary /usr/bin/g-ir-scanner uses a fixed path independend from the environment. This needs to be adjusted to use the right libdir (e.g. /usr/lib64 on amd64, /usr/lib32 for crosscomiling 32bit libs on amd64).
Comment 3 Pacho Ramos gentoo-dev 2011-10-17 10:32:21 UTC
*** Bug 386935 has been marked as a duplicate of this bug. ***
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-10-20 07:35:19 UTC
Arbitrary cross-compiling with gobject-introspection is basically impossible at the moment: g-ir-scanner compiles and executes a temporary binary, and that only works if target binaries can run on your build machine.

Proper multilib support, on the other hand, is almost certainly doable. Probably the most invasive change that's required is splitting /usr/share/gir-1.0/ into ABI-specific directories (there is no guarantee that .gir files for different ABIs are fully compatible; for example, GLib-2.0.gir has some differences between amd64 and x86).
Comment 5 Thomas Sachau gentoo-dev 2011-10-20 18:35:53 UTC
(In reply to comment #3)
> *** Bug 386935 has been marked as a duplicate of this bug. ***

for multilib-portage users doing cross-compilation on amd64 for x86:

I have added support for seperate binaries for each target ABI, so once you recompiled gobject-introspection, you should be able to cross-compile packages with introspection USE flag enabled.
Comment 6 Thomas Sachau gentoo-dev 2011-12-04 15:30:44 UTC
I will close this bug for now, since the change from my last comment seems to remove all issues i have seen with gobject-introspection.