Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32022 - unrecognized option -2 during mod_php emerge
Summary: unrecognized option -2 during mod_php emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-26 03:40 UTC by Frank Reidel
Modified: 2003-10-26 13:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Reidel 2003-10-26 03:40:14 UTC
When I emerge mod_php-4.3.3-r3, I see massive amounts of warnings like this:

/bin/sh /var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Iext/standard/
-I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/standard/ -DPHP_ATOM_INC
-I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/include
-I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/main
-I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3
-I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/Zend -I/usr/include/libxml2
-I/usr/include/imap -I/usr/include/pspell
-I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/xml/expat 
-I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/TSRM  -march=i586 -2 -O3
-pipe -mmmx -m3dnow -fomit-frame-pointer  -prefer-pic -c
/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/standard/fsock.c -o
ext/standard/fsock.lo
gcc: unrecognized option `-2'
gcc: unrecognized option `-2'

I have the following lines in my make.conf:

CFLAGS="-march=k6-2 -O3 -pipe -mmmx -m3dnow -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

So it seems like the -march=k6-2 is handled badly. The -2 remains, while the
k6-part is transformed to i586

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
I would have my actual CFLAGS expected to be used.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-10-26 13:17:04 UTC
fixed in CVS.

PHP has weird compile failures with K6* chips. see the other bugs on it.
If you really don't like that fact, open up php.eclass and remove lines 396-398
that do 'replace-flags ...', but don't come back crying when it fails to
compile.