Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25006 - di configure script fails with CFLAG options
Summary: di configure script fails with CFLAG options
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Brian Jackson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-21 15:35 UTC by Roger Luethi
Modified: 2003-08-25 11:49 UTC (History)
0 users

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


Attachments
Ebuild allowing -O3 amongst others in CFLAGS (di-3.9.ebuild.diff,775 bytes, text/plain)
2003-08-06 01:21 UTC, Bryan Østergaard (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Luethi 2003-07-21 15:35:46 UTC
The di configure script is broken. Having options like -O3 or
-fomit-frame-pointer in CFLAGS (whether in make.conf or in the
environment) won't work as expected.

Reproducible: Always
Steps to Reproduce:

Actual Results:  
Build stopped:

[...]
Any additional ld flags (NOT including libraries)? [ -L/usr/local/lib]  
Checking your choice of C compiler and flags for coherency...
I've tried to compile and run a simple program with:

        gcc -O -O -3 -f omit-frame-pointer -pipe -L/usr/local/lib -o try try.c
        ./try

and I got the following output:

gcc: omit-frame-pointer: No such file or directory
gcc: unrecognized option `-3'
cc1: unrecognized option `-f'
I can't compile the test program.
You have a BIG problem.  Shall I abort Configure [y]  
Ok.  Stopping Configure.



This is an upstream bug. Manual builds of di will hit
the same problem.
Comment 1 Bryan Østergaard (RETIRED) gentoo-dev 2003-08-02 15:03:31 UTC
No bug, you have the commandline wrong. It should be gcc -O3 -fomit-frame-pointer -pipe -L/usr/local/lin -o try try.c
Comment 2 Roger Luethi 2003-08-04 06:54:58 UTC
LOL Good one. I know the command line is wrong. The problem is that the di
configure script is building it wrong.

Everything between lines "Build stopped:" and "Ok.  Stopping Configure." is
output from di configure.

Try using correct CFLAGS as you suggest and emerge di, i.e. something like:

CFLAGS="-O3 -fomit-frame-pointer -pipe" emerge di
Comment 3 Bryan Østergaard (RETIRED) gentoo-dev 2003-08-06 01:21:58 UTC
Created attachment 15595 [details]
Ebuild allowing -O3 amongst others in CFLAGS

Sorry you are right.. Hope I can make it up to you with this working ebuild? :)


Ebuild changed from using configure to using iffe which is the preferred tool
according to the di maintainer.
Comment 4 Roger Luethi 2003-08-11 01:25:38 UTC
Yup, that works. Thanks.
Comment 5 Brian Jackson (RETIRED) gentoo-dev 2003-08-25 11:49:59 UTC
oops, fixed this a little while back forgot to close it