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

Bug 375109

Summary: sys-apps/groff-1.21: errors out when cross-compiling
Product: Gentoo Linux Reporter: Daniel Schömer <daniel.schoemer>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: armv5tel-softfloat-linux-gnueabi-emerge --info =sys-apps/groff-1.21
compile log
sys-apps_groff-1.21_crossdev-econf-gnulib.patch
sys-apps_groff-1.21_crossdev-econf-gnulib.patch

Description Daniel Schömer 2011-07-13 16:37:02 UTC
When cross-compiling, sys-apps/groff-1.21 fails to configure included gnulib due for cross-compiling.

This happens with CBUILD="x86_64-pc-linux-gnu and CHOST="armv5tel-softfloat-linux-gnueabi".

Reproducible: Always

Steps to Reproduce:
1. armv5tel-softfloat-linux-gnueabi-emerge =sys-apps/groff-1.21
Actual Results:  
[...]
checking whether we are cross compiling... configure: error: in `/usr/armv5tel-softfloat-linux-gnueabi/tmp/portage/sys-apps/groff-1.21/work/groff-1.21/src/libs/gnulib':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
[...]
 * ERROR: sys-apps/groff-1.21 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 2756:  Called die
 * The specific snippet of code:
 *       emake || die
 * 
 * If you need support, post the output of 'emerge --info =sys-apps/groff-1.21',
 * the complete build log and the output of 'emerge -pqv =sys-apps/groff-1.21'.
 * The complete build log is located at '/usr/armv5tel-softfloat-linux-gnueabi/tmp/portage/sys-apps/groff-1.21/temp/build.log'.
 * The ebuild environment file is located at '/usr/armv5tel-softfloat-linux-gnueabi/tmp/portage/sys-apps/groff-1.21/temp/environment'.
 * S: '/usr/armv5tel-softfloat-linux-gnueabi/tmp/portage/sys-apps/groff-1.21/work/groff-1.21'


Expected Results:  
[...]
>>> Done.

>>> Installing (1 of 1) sys-apps/groff-1.21 to /usr/armv5tel-softfloat-linux-gnueabi/
[...]
Comment 1 Daniel Schömer 2011-07-13 16:37:33 UTC
Created attachment 279997 [details]
armv5tel-softfloat-linux-gnueabi-emerge --info =sys-apps/groff-1.21
Comment 2 Daniel Schömer 2011-07-13 16:38:05 UTC
Created attachment 279999 [details]
compile log
Comment 3 Daniel Schömer 2011-07-13 16:39:12 UTC
Created attachment 280001 [details, diff]
sys-apps_groff-1.21_crossdev-econf-gnulib.patch

Messy patch to run econf for included gnulib
Comment 4 Daniel Schömer 2011-07-13 16:43:04 UTC
Created attachment 280005 [details, diff]
sys-apps_groff-1.21_crossdev-econf-gnulib.patch

No need to include "-j1" in MAKEOPTS
Comment 5 Pacho Ramos gentoo-dev 2011-07-14 09:42:26 UTC

*** This bug has been marked as a duplicate of bug 363647 ***