Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348521 - dev-libs/ace-5.7.2 - checking for epoll_create... configure: error: cannot run test program while cross compiling
Summary: dev-libs/ace-5.7.2 - checking for epoll_create... configure: error: cannot ru...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Deadline: 2019-05-13
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2010-12-12 15:40 UTC by Kfir Lavi
Modified: 2019-05-15 20:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild patch enabling cross compilation of ace (ace-5.7.2.ebuild.patch,988 bytes, patch)
2010-12-12 16:19 UTC, Kfir Lavi
Details | Diff
this is the patch used to delete epoll test from the configure script (ace-epoll-cross-compile-configure-problem.patch,3.68 KB, patch)
2010-12-12 16:21 UTC, Kfir Lavi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kfir Lavi 2010-12-12 15:40:04 UTC
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
Comment 1 Kfir Lavi 2010-12-12 16:19:50 UTC
Created attachment 256962 [details, diff]
ebuild patch enabling cross compilation of ace
Comment 2 Kfir Lavi 2010-12-12 16:21:04 UTC
Created attachment 256963 [details, diff]
this is the patch used to delete epoll test from the configure script
Comment 3 Kfir Lavi 2010-12-12 16:22:45 UTC
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
Comment 4 Kfir Lavi 2010-12-21 10:26:59 UTC
Hi,
Why there is no one assigned for this bug?

Regards,
Kfir
Comment 5 Johnny Willemsen 2018-07-04 06:19:10 UTC
As ACE is not using configure anymore I would like to close this bug
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-05-15 20:44:18 UTC
dev-libs/ace has been removed.