Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275463 - dev-util/pkgconfig does not work for cross compilation
Summary: dev-util/pkgconfig does not work for cross compilation
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-26 09:01 UTC by Karsten Steingaß
Modified: 2010-06-17 13:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Steingaß 2009-06-26 09:01:22 UTC
CROSS-COMPILATION!!!

pkg-config is a binary and thus cannot be run on the CBUILD. Most (at least all I used until now) configure scripts propose to check for the packages own config (e.g directfb-config) before falling back to use pkg-config to gather library information.
ALL ebuilds need to get the path to the dependency config script (e.g DIRECTFBCONFIG=/path/to/directfb-config for libsdl) as a configure option for cross compilation.

Reproducible: Always

Steps to Reproduce:
1. emerge libsdl for CHOST != CBUILD
2. 
3.

Actual Results:  
libtool searches for its dependent .so files in the wrong directories (some of them are wrong because of bug:275462)

Expected Results:  
libtool searches for all .so files in the correct directory
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-05 07:14:21 UTC
Please include a sample build.log and emerge --info and version of pkg-config.
Comment 2 Romain Perier (RETIRED) gentoo-dev 2009-07-05 08:54:19 UTC
Feel free to reopen this bug yourself, when you'll give us more informations
Comment 3 Karsten Steingaß 2009-07-05 10:54:13 UTC
Pkg-config version is:
dev-util/pkgconfig-0.23

I cannot include a build.log or emerge --info of that system because i finished the project and wiped that toolchain from my hdds.

My CFLAGS, CXXFLAGS were meager "-O -pipe", close to no use-flags at all, icu and unicode plus some only for my binary of interest (origyn web browser).

The build log would show nothing. The effect was that the configure script tries to invoke pkg-config, which fails, because the binary being invoked is build for ppc and my cpu is a core2. So the configure script gets no output from pkg-config and assumes that there is no such package installed. 

For an example you can open the configure script for libsdl search for pkg-config (2nd match - should be around line 30000) and see what the configure script does.

I hope those are enough informations, sorry to have not more... on my portage tree those bugs are fixed (see description) only wanted to give some help back to the team providing me with my OS - if its no help for you simply close it again.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-06-17 13:05:25 UTC
Try 0.25 (now in portage), it fixed another cross-compilation bug our bugzilla had open...