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

Bug 375117

Summary: If i686-pc-linux-gnu-windres is present, configure process detects it and attempts to cross-compile
Product: Gentoo Linux Reporter: Todd Walter <todd>
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 OBSOLETE    
Severity: normal CC: neurogeek
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://sourceforge.net/tracker/index.php?func=detail&aid=3248008&group_id=91293&atid=596648
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info

Description Todd Walter 2011-07-13 17:22:09 UTC
This will error out like so:

./windres.rc:28:21: fatal error: windows.h: No such file or directory
compilation terminated
i686-pc-linux-gnu-windres: preprocessing failed.

This was noted upstream and a clean compile needs the --

Reproducible: Always

Steps to Reproduce:
1. Have gcc windres binutil present on your system
2. Emerge libspectrum
3. fail.
Actual Results:  
Errors out per description

Expected Results:  
Expected upstream should have a better detection in their build process.  Also expected '--without-windres' to work but the version in Portage doesn't have the option available.  Renaming /usr/bin/i686-pc-linux-gnu-windres out of the way allows compilation to succeed.  Should be noted the same is required for app-emulation/fuse to compile successfully.
Comment 1 Rafał Mużyło 2011-07-13 19:41:39 UTC
I'm almost certain bug will end up INVALID.

Post your 'emerge --info' and a build log of one of the failing apps.

Did you i.e. set CHOST and CBUILD to different values ?
Comment 2 Todd Walter 2011-07-13 19:48:02 UTC
Created attachment 280009 [details]
emerge info
Comment 3 Todd Walter 2011-07-13 19:49:31 UTC
(In reply to comment #1)
> I'm almost certain bug will end up INVALID.
> 
> Post your 'emerge --info' and a build log of one of the failing apps.
> 
> Did you i.e. set CHOST and CBUILD to different values ?

Posted. And nope, they are the same.

Bug is also confirmed at the link I provided by another Gentoo user who had to install SVN for it to work.  Read Makefile.am in the package and it will jump out at you.
Comment 4 Rafał Mużyło 2011-07-13 20:27:21 UTC
OK, sorry for jumping into conclusions.

It seems that fuse/libspectrum have a silly notion of existence of winders being a proof of building for win32 (see configure.in).

Minor note: in app-emulation/libspectrum/metadata.xml there seems to be a typo/encoding problem.
Comment 5 Todd Walter 2011-07-13 20:32:03 UTC
(In reply to comment #4)
> OK, sorry for jumping into conclusions.
> 
> It seems that fuse/libspectrum have a silly notion of existence of winders
> being a proof of building for win32 (see configure.in).
> 
> Minor note: in app-emulation/libspectrum/metadata.xml there seems to be a
> typo/encoding problem.

Sorry, I was actually trying to be brief as opposed to dick-ish (this time, at least. ;) )  I need a two-stage posting system so I can proof-read first.
Comment 6 Todd Walter 2011-12-12 16:27:25 UTC
Problem still persists; it's safe to say confirmed I'd think.