Apache use libtool/APR for building but BUILD libtool/apr tools are used, so you get the following : Configuring Apache Portable Runtime Utility library... checking for APR-util... yes checking for i586-alix-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... no configure: error: in `/var/tmp/i586-alix-linux-gnu/portage/www-servers/apache-2.2.21/work/httpd-2.2.21': configure: error: C compiler cannot create executables See `config.log' for more details Here is a fix that define HOST CC and use HOST libtool Reproducible: Always Steps to Reproduce: 1.i586-alix-linux-gnu-emerge -vat apache 2. 3.
Created attachment 288907 [details] apache-2.2.21:20111005-192614.log The build log
Created attachment 288909 [details, diff] eclass/apache-2.eclass diff The eclass fix
Please, attach config.log.
Package managers are allowed to set ROOT to an invalid value in src_*() phases.
Created attachment 289947 [details] config.log As requested
should be all set now in the tree; thanks for the report! Commit message: fix pcre-config/pkg-config/apr/apr-util handling when cross-compiling by leveraging SYSROOT http://sources.gentoo.org/eclass/apache-2.eclass?r1=1.33&r2=1.34 Commit message: Add workaround for gen_test_char behavior when cross-compiling http://sources.gentoo.org/www-servers/apache/apache-2.4.7.ebuild?r1=1.4&r2=1.5
Comment on attachment 288909 [details, diff] eclass/apache-2.eclass diff ROOT is not valid inside of any src_* funcs. you cannot utilize it.