Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268084 - dev-libs/popt-1.13 fails to cross-compile
Summary: dev-libs/popt-1.13 fails to cross-compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-01 11:45 UTC by Stefan Fröberg
Modified: 2009-05-07 22:04 UTC (History)
0 users

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


Attachments
Updated dev-libs/popt-1.13 ebuild to allow cross-compiling (popt-1.13.ebuild,995 bytes, text/plain)
2009-05-01 11:50 UTC, Stefan Fröberg
Details
dev-libs/popt-1.13 cross-compiling patch (popt-cross-compiling.patch,1005 bytes, patch)
2009-05-01 11:51 UTC, Stefan Fröberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Fröberg 2009-05-01 11:45:18 UTC
Hello.

I tried to cross-compile (glibc -> uclibc) dev-libs/popt-1.13 and got the following error:
****************************************************************************
 checking for string.h... (cached) yes

checking for va_copy() function... configure: error: cannot run test program while cross compiling

        See config.log' for more details.
****************************************************************************

Found the possible fix from (I will post the patch in next message if it works):
http://www.mail-archive.com/popt-devel@rpm5.org/msg00121.html


Reproducible: Always

Steps to Reproduce:
1.
Build the cross-compile toolchain (target uclibc, if that matters) and prepare the build environment system with the help of:
http://www.gentoo.org/proj/en/base/embedded/cross-development.xml

2.
Try to cross-compile with
USE="-*" xmerge --root your_target_folder_here =dev-libs/popt-1.13
Comment 1 Stefan Fröberg 2009-05-01 11:50:06 UTC
Created attachment 190024 [details]
Updated dev-libs/popt-1.13 ebuild to allow cross-compiling
Comment 2 Stefan Fröberg 2009-05-01 11:51:40 UTC
Created attachment 190026 [details, diff]
dev-libs/popt-1.13 cross-compiling patch

Works! (at least for dev-libs/popt-1.13)