Summary: | PHP 4.3.6 build fails with libtool error referring to i386; I have i686 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | John Robinson <john.robinson+bug.gentoo.org> |
Component: | [OLD] Development | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED INVALID | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
John Robinson
2004-05-16 10:55:07 UTC
Well I have tried 4.3.4-r4 on the new box, and 4.3.4-r4 fails with that error too, and my other Gentoo box already has 4.3.4-r4 successfully installed, so I guess it's a system problem. Is something somewhere ignoring my CHOST and trying to work it out itself and getting it wrong (which it might as it's a VIA C3-2 Nehemiah processor; I am the proud owner of a mini-itx EPIA M-II system)? Ah this could be it; the other box has CFLAGS in make.conf including "-march=k6-2" but PHP has built with "-march=i586". A little poking and /var/tmp/portage/php-4.3.6/work/php-4.3.6/config.log suggests PHP's configure was run with CFLAGS of -march=i586 which isn't what was in my CFLAGS, however on the Nehemiah box, there's "-march=pentium3" both in make.conf and in the config.log. The Nehemiah is Pentium 3 compatible in that it has SSE, and everything else is running nicely with this setting. I tried "-march=c3-2" which is in the RedHat/Fedora gcc 3.3.2 but it's not in the Gentoo gcc 3.3.2. I might now try the PHP build with -march=i686 and see if the build completes, but it'd be a shame if I can't have all the CPU optimisations I might have. something is borked with your installed libraries. one of them was compiled with an i386 CHOST. as root, run: /sbin/fix_libtool_files.sh `gcc -dumpversion` --oldarch i386-pc-linux-gnu /sbin/fix_libtool_files.sh `gcc -dumpversion` --oldarch i486-pc-linux-gnu /sbin/fix_libtool_files.sh `gcc -dumpversion` --oldarch i586-pc-linux-gnu this is the brute force way of fixing it, but it works and makes sure your entire system is consistant. if there has been a major gcc upgrade as well, then put the old gcc version in above as well instead of the gcc dumpversion expression. As for -march=c3-2 it's because Redhat has been backporting GCC3.4 features. |