Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 268084

Summary: dev-libs/popt-1.13 fails to cross-compile
Product: Gentoo Linux Reporter: Stefan Fröberg <sfroberg>
Component: [OLD] LibraryAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Updated dev-libs/popt-1.13 ebuild to allow cross-compiling
dev-libs/popt-1.13 cross-compiling patch

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)