Hi, I have created a cross compilation environment inside a chroot. When emerging ace with: i686-gentoo1-linux-gnu-emerge dev-libs/ace I get this error: checking for epoll_create... configure: error: cannot run test program while cross compiling The command for crossdev is: crossdev -P -vt i686-gentoo1-linux-gnu Here is part of the emerge: checking for system... yes checking for getmsg... yes checking for gethostbyaddr... yes checking for epoll_create... configure: error: cannot run test program while cross compiling See `config.log' for more details. !!! Please attach the following file when seeking support: !!! /usr/__CHOST1__/tmp/portage/dev-libs/ace-5.7.2/work/ACE_wrappers/build/config.log * ERROR: dev-libs/ace-5.7.2 failed: * econf failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2336: Called econf '--enable-lib-all' '--without-X' '--disable-ipv6' * ebuild.sh, line 544: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of 'emerge --info =dev-libs/ace-5.7.2', * the complete build log and the output of 'emerge -pqv =dev-libs/ace-5.7.2'. * The complete build log is located at '/usr/__CHOST1__/tmp/portage/dev-libs/ace-5.7.2/temp/build.log'. * The ebuild environment file is located at '/usr/__CHOST1__/tmp/portage/dev-libs/ace-5.7.2/temp/environment'. * S: '/usr/__CHOST1__/tmp/portage/dev-libs/ace-5.7.2/work/ACE_wrappers' Here is gcc -v: (build host chroot) goofy / # i686-gentoo1-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/usr/i686-pc-linux-gnu/i686-gentoo1-linux-gnu/gcc-bin/4.5.1/i686-gentoo1-linux-gnu-gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-gentoo1-linux-gnu/4.5.1/lto-wrapper Target: i686-gentoo1-linux-gnu Configured with: /var/tmp/portage/cross-i686-gentoo1-linux-gnu/gcc-4.5.1/work/gcc-4.5.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/i686-gentoo1-linux-gnu/gcc-bin/4.5.1 --includedir=/usr/lib/gcc/i686-gentoo1-linux-gnu/4.5.1/include --datadir=/usr/share/gcc-data/i686-gentoo1-linux-gnu/4.5.1 --mandir=/usr/share/gcc-data/i686-gentoo1-linux-gnu/4.5.1/man --infodir=/usr/share/gcc-data/i686-gentoo1-linux-gnu/4.5.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-gentoo1-linux-gnu/4.5.1/include/g++-v4 --host=i686-pc-linux-gnu --target=i686-gentoo1-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --disable-lto --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --disable-multilib --disable-libmudflap --disable-libssp --enable-libgomp --enable-cld --with-python-dir=/share/gcc-data/i686-gentoo1-linux-gnu/4.5.1/python --enable-checking=release --disable-libgcj --with-arch=i686 --enable-languages=c,c++,fortran --with-sysroot=/usr/i686-gentoo1-linux-gnu --disable-bootstrap --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.1 p1.2, pie-0.4.5' Thread model: posix gcc version 4.5.1 (Gentoo 4.5.1 p1.2, pie-0.4.5) Regards, Kfir Reproducible: Always
Created attachment 256962 [details, diff] ebuild patch enabling cross compilation of ace
Created attachment 256963 [details, diff] this is the patch used to delete epoll test from the configure script
Ok, So I needed a solution for this problem. So I hacked the ebuild and the configure script and created a patch. I'm not 100% confident that the installed ACE libs will work correctly, but in term of compilation, everthing went well. I needed to delete the epoll testing in the configure script, so I created the patch. I also added a use flag 'crossded' which allow telling the ebuild to handle the cross compilation of this library. Next part of the solution is preventing ace compilation from creating the examples and the tests, which the compilation dies in thos parts. It is done with --enable-ace-examples=no --enable-ace-tests=no I'm not sure about the crossdev flag. Please advise. Regards, Kfir
Hi, Why there is no one assigned for this bug? Regards, Kfir
As ACE is not using configure anymore I would like to close this bug
dev-libs/ace has been removed.