Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cross compile failed: "error: cannot check setpgrp when ..."
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
stone[no]
n00b
n00b


Joined: 23 Sep 2004
Posts: 28
Location: Norway

PostPosted: Tue Jan 17, 2006 9:20 pm    Post subject: Cross compile failed: "error: cannot check setpgrp when Reply with quote

Hi
I'm trying to cross compile php and apache for my NSLU2 w/ openslug.

Code:

$ROOT=/root/crossdev/php CHOST=armeb-unknown-linux-gnu CBUILD=i686 CFLAGS="-Os -march=armv5te -mtune=xscale" USE="-* apache2 ssl" emerge -a =dev-php/mod_php-4.4.0-r9 =dev-php/php-4.4.0-r4 =net-www/apache-2.0.55

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  NS   ] dev-libs/apr-0.9.7
[ebuild  NS   ] dev-libs/apr-util-0.9.7
[ebuild  N    ] net-www/apache-2.0.55
[ebuild  N    ] app-text/sablotron-1.0.1
[ebuild  N    ] net-libs/libwww-5.4.0-r4
[ebuild  N    ] sys-libs/zlib-1.2.3  to /root/crossdev/php/
[ebuild  N    ] net-mail/mailbase-1  to /root/crossdev/php/
[ebuild  N    ] dev-libs/openssl-0.9.7e-r2  to /root/crossdev/php/
[ebuild  N    ] mail-mta/ssmtp-2.61  to /root/crossdev/php/
[ebuild  N    ] app-misc/ca-certificates-20050804  to /root/crossdev/php/
[ebuild  N    ] app-arch/bzip2-1.0.3-r5  to /root/crossdev/php/
[ebuild  N    ] dev-libs/apr-0.9.7  to /root/crossdev/php/
[ebuild  N    ] app-misc/mime-types-4  to /root/crossdev/php/
[ebuild  N    ] sys-devel/libperl-5.8.6-r1  to /root/crossdev/php/
[ebuild  N    ] dev-lang/perl-5.8.6-r8  to /root/crossdev/php/
[ebuild  N    ] app-admin/perl-cleaner-1.01  to /root/crossdev/php/
[ebuild  N    ] net-www/gentoo-webroot-default-0.2  to /root/crossdev/php/
[ebuild  N    ] dev-libs/expat-1.95.8  to /root/crossdev/php/
[ebuild  N    ] dev-libs/apr-util-0.9.7  to /root/crossdev/php/
[ebuild  N    ] net-www/apache-2.0.55  to /root/crossdev/php/
[ebuild  N    ] app-text/sablotron-1.0.1  to /root/crossdev/php/
[ebuild  N    ] sys-apps/file-4.13  to /root/crossdev/php/
[ebuild  N    ] net-libs/libwww-5.4.0-r4  to /root/crossdev/php/
[ebuild  N    ] dev-php/mod_php-4.4.0-r9  to /root/crossdev/php/
[ebuild  N    ] dev-php/php-4.4.0-r4  to /root/crossdev/php/


Code:

>>> emerge (1 of 25) dev-libs/apr-0.9.7 to /
... (output)
./configure --prefix=/usr --host=armeb-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --datadir=/usr/share/apr-0 --disable-ipv6 --enable-threads --enable-nonportable-atomics --with-devrandom=/dev/random --build=i686
... (output)
checking whether setpgrp takes no argument... configure: error: cannot check setpgrp when cross compiling

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/apr-0.9.7/work/apr-0.9.7/config.log

!!! ERROR: dev-libs/apr-0.9.7 failed.
!!! Function econf, Line 495, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


Get the config.log here...

Any thoughts of wisdom?

__
-Stein
_________________
Linux rules!
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 7817

PostPosted: Wed Jan 18, 2006 2:14 am    Post subject: Reply with quote

If you have some ice cream, I will give it to you.
If you have no ice cream, I will take it from you.

Thought: perhaps 'I' am an ice cream server and 'it' is a spoon.

Oh, right, the problem, let me think: lie to apr.

Seriously, if you have a decent libc and unistd.h under NSLU2 why not just tweak the configure script in the apr build directory so that the check for setpgrp comes up with the right answer without actually looking?

Or make a native copy and drop it (cleaned of object files) into the cross dev build sandbox.
I think ebuild will let you do such things as I have just mentioned.

Or use QEMU to set up a build environment that thinks it is really running on an arm.
Back to top
View user's profile Send private message
stone[no]
n00b
n00b


Joined: 23 Sep 2004
Posts: 28
Location: Norway

PostPosted: Wed Jan 18, 2006 9:06 pm    Post subject: Reply with quote

Thanx for the input desultory!
I think I will give openembedded and bitbake a second try before I start hacking configure...
Using qemu when cross compiling is a good idea.

__
-Stein
_________________
Linux rules!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum