| Summary: | dev-lang/php-5.2.2-r1 fails to emerge w/ -Os and --enable-debug | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Zillode <zillode> |
| Component: | New packages | Assignee: | PHP Bugs <php-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | hoffie |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
buildlog
config.log |
||
|
Description
Zillode
2007-06-09 10:07:16 UTC
Created attachment 121557 [details]
buildlog
Please, attach the config.log here. Thanks. Created attachment 121565 [details]
config.log
<snip>
configure:29065: x86_64-pc-linux-gnu-gcc -o conftest -march=athlon64 s -pipe -msse3 -pthread -O0 -D_REENTRANT conftest.c
-lresolv -lm -ldl -lnsl -lxml2 -lz -lm >&5
x86_64-pc-linux-gnu-gcc: s: No such file or directory
</snip>
Hmm...
lhoste@ZilPC ~ $ which x86_64-pc-linux-gnu-gcc
/usr/bin/x86_64-pc-linux-gnu-gcc
* sys-devel/gcc
Latest version available: 4.1.2
Latest version installed: 4.1.2
* sys-apps/portage
Latest version available: 2.1.2.9
Latest version installed: 2.1.2.9
Zillode: the missing file is 's' not x86_64-pc-linux-gnu-gcc
See this
configure:29065: x86_64-pc-linux-gnu-gcc -o conftest -march=athlon64 s -pipe
^^^^^^
From the location, it originally from your CFLAGS.
Something in stripping them is broken.
oh, ye I see. I'm using the -Os flag, so it's probably that one. Jup: I'm emerging it with -O2 and it's already compiling Hmmm, we are not doing anything with -Os in php eclasses/ebuilds, AFAICT. This problem is most-likely neither libxml nor amd64-related. It's -Os which is causing that in combination with --enable-debug because php's configure script messes with CFLAGS in that case. I created a small patch[1] which should fix that. It is in the php overlay and will be included in the next patchset revision (for 5.2.3 probably); I don't think it's worth bumping the patchset for that single patch. So, please try applying that patch (should apply to 5.2.2 as well) or with USE="-debug". You might also want to change the summary of this bug appropriately. [1] http://overlays.gentoo.org/proj/php/browser/patches/php-patches/5.2.3/5.2.3/php5.2.3-configure-Os-fix.patch Submitted as upstream bug http://bugs.php.net/bug.php?id=41908 The patch got committed to upstream cvs, so it will be part of >=5.2.4. In addition, I created a new patchset revision (which includes this patch and another fix) and the appropriate ebuild, so you can now install =dev-lang/php-5.2.3-r1 and it should just work for you. I think this bug can be closed once >=dev-lang/php-5.2.3-r1 hits the tree (don't know if and when this will happen). Allright, thanks! 5.2.3-r3 and 5.2.4_pre200708051230-r2 should both have this fixed, closing. |