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

Bug 60

Summary: x11-ssh-askpass doesn't compile
Product: Gentoo Linux Reporter: Nils Ohlmeier <develop>
Component: Current packagesAssignee: Mikael Hallendal (hallski) (RETIRED) <hallski>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nils Ohlmeier 2002-01-06 22:11:25 UTC
If net-misc/x11-ssh-askpass sould be compiled it fails because the 'march' and
'mcpu' switches for the compiler are set wrong.
In my fresh build system the summary after configuration shows the following:
"Compiler flags: -mcpu=i686 -march=i686 -O3 -pipe"
But on the first gcc execution it looks like this:
"gcc -mcpu=1 -march=1 -O3 -pipe     -I/usr/X11R6/include  -I/usr/X11R6/include 
-Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
-D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO
    -c -o drawing.o drawing.c"
Which leads to the following error messages:
"cc1: bad value (1) for -march= switch
cc1: bad value (1) for -mcpu= switch
make: *** [drawing.o] Error 1"
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-01-06 22:15:45 UTC
this looks like a resurfacing of the xmkmf bug.
Comment 2 Mikael Hallendal (hallski) (RETIRED) gentoo-dev 2002-01-23 12:31:15 UTC
yes, works with Xfree 4.2.0 at least