Configuring extensions problem: I have both dev-libs/libxml2-2.6.28 and dev-libs/libxml-1.8.17-r2 installed but the emerge fails. dev-lang/php-5.2.1-r3 also fails with the same problem. Reproducible: Always Steps to Reproduce: 1. emerge php 2. 3. Actual Results: Configuring extensions checking whether to enable LIBXML support... yes checking libxml2 install dir... no checking for xml2-config path... /usr/bin/xml2-config checking whether libxml build works... no configure: error: build test failed. Please check the config.log for details. Portage 2.1.2.9 (default-linux/amd64/2006.0, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r3 x86_64) ================================================================= System uname: 2.6.20-gentoo-r3 x86_64 AMD Sempron(tm) Processor 2800+ Gentoo Base System release 1.12.9 Timestamp of tree: Fri, 08 Jun 2007 04:50:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -Os -pipe -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=athlon64 -Os -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch" GENTOO_MIRRORS="http://www.ibiblio.org/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo ftp://ftp.fu-berlin.de/unix/X11/ftp.x.org ftp://ftp.sunet.se/pub/X11 http://gentoo.osuosl.org/distfiles/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage-src /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/sunrise" SYNC="rsync://rsync.belnet.be/gentoo-portage" USE="64bit 7zip X a52 aac akode alsa amarok amd amd64 apache2 api arts asf audiofile bash-completion berkdb bitmap-fonts boost branding browserplugin cdr cli cracklib crypt cscope css cups dbus devhelp dia dict dmi doc dri dv dvd dvdnav dvdr dvdread emboss encode enscript esd ethereal examples fam fastcgi ffmpeg firefox flac flash foomaticdb fortran ftp gif gimp gimpprint glade gnome gnome-print gnomecanvas gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 hal hardened iconv imagemagick imap imlib isdnlog java javascript jikes joystick jpeg jpeg2k kcal kde kdeenablefinal keyring ladspa lame latex libnotify libsexy libvisual libwww logitech-mouse logrotate logwatch lyrics lzw lzw-tiff mcal md5 md5sum midi mng mono mp3 mp4 mpeg mpeg2 mplayer-bin msn mudflap mysql ncurses net network networking new-login nforce nls no-htdocs no-seamonkey nptl nptlonly nsplugin nvidia ogg on-the-fly-crypt openexr opengl openmp opera optimizations oss pam pcre pdf perl php plotutils png postscript pppd preview-latex python qt qt-static qt3 qt4 quicktime rar rdesktop readline reflection ruby samba scanner sdl seamonkey session sftp slang spell spl sql sqlite sqlite3 ssl subversion svg svgz svn-mirror tcpd tetex themes theora threads thunderbird tidy tiff tracker truetype truetype-fonts type1-fonts unicode usb v4l videos vim vim-pager vim-with-x visual vnc vorbis win32ddl wxwindows x264 xinerama xml xorg xpm xscreensaver xv xvid xvmc xvnc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="serial usb devinput mouseremote mouseremote_ps2 pctv" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
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.