Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev-[libc] emerge fails when building for PPC on x86
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Napalm Llama
Guru
Guru


Joined: 04 Jun 2005
Posts: 520
Location: Swansea, UK

PostPosted: Sat May 05, 2007 4:01 pm    Post subject: crossdev-[libc] emerge fails when building for PPC on x86 Reply with quote

Hi. I'm trying to setup crossdev on my main (x86) PC for my shiny new (ppc) Efika.

The command I issued was crossdev -t powerpc-gentoo-linux-uclibc.

However, this happens:
Code:
splig ~ # crossdev -t powerpc-gentoo-linux-uclibc
-------------------------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   ppc
 * Target System:         powerpc-gentoo-linux-uclibc
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  uclibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/powerpc-gentoo-linux-uclibc
 * PORTAGE_TMPDIR:        /var/tmp/cross/powerpc-gentoo-linux-uclibc
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -
 * Forcing the latest versions of binutils-config/gcc-config ...                                                                     [ ok ]
 * Log: /var/log/portage/cross-powerpc-gentoo-linux-uclibc-binutils.log
 * Emerging cross-binutils ...                                                                                                       [ ok ]
 * Log: /var/log/portage/cross-powerpc-gentoo-linux-uclibc-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...                                                                                                     [ ok ]
 * Log: /var/log/portage/cross-powerpc-gentoo-linux-uclibc-linux-headers.log
 * Emerging cross-linux-headers ...                                                                                                  [ ok ]
 * Log: /var/log/portage/cross-powerpc-gentoo-linux-uclibc-uclibc.log
 * Emerging cross-uclibc ...

 * uclibc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-powerpc-gentoo-linux-uclibc-info.log
 * /var/log/portage/cross-powerpc-gentoo-linux-uclibc-uclibc.log


The interesting part of /var/log/portage/cross-powerpc-gentoo-linux-uclibc-uclibc.log appears to be:
Code:
typecount[11] =        0  C_space_blank_noncntrl
typecount[12] =        6  C_cntrl_space_nonblank
typecount[13] =        1  C_cntrl_space_blank
typecount[14] =       60  C_cntrl_nonspace
typecount[15] =        0  empty_slot
optimizing is* table..
ishift 1  tshift 0  size 49441
ishift 2  tshift 0  size 25561
ishift 3  tshift 0  size 14365
ishift 4  tshift 0  size 9845
<-- SNIP -->
ishift 3  tshift 7  size 7808
ishift 1  tshift 8  size 10488
ishift 2  tshift 8  size 10416
ishift 3  tshift 8  size 10416
ishift 1  tshift 9  size 14472
ishift 2  tshift 9  size 14448
ishift 1  tshift 10  size 20560
ishift 2  tshift 10  size 20556
smallest = 3604
setting ishift 5  tshift 2
make: *** [wctables.h] Segmentation fault
make: *** Waiting for unfinished jobs....

!!! ERROR: cross-powerpc-gentoo-linux-uclibc/uclibc-0.9.28.3 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3392:   Called src_compile
  uclibc-0.9.28.3.ebuild, line 383:   Called die

!!! make locales failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/cross/powerpc-gentoo-linux-uclibc/portage/cross-powerpc-gentoo-linux-uclibc/uclibc-0.9.28.
3/temp/build.log'.

!!! This ebuild is from an overlay: '/usr/local/portage'


Is this something I can fix myself, or do I need to file a bug?
_________________
splig: amd64; nForce3; sata; GeForce 6600gt agp
muttley: EFIKA 5200B - PPC SoC :)

Registered Linux User #381314
# killall humans


Last edited by Napalm Llama on Sun May 20, 2007 3:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
Napalm Llama
Guru
Guru


Joined: 04 Jun 2005
Posts: 520
Location: Swansea, UK

PostPosted: Sun May 20, 2007 3:50 pm    Post subject: Reply with quote

OK, apparently I get the same problem with the powerpc-unknown-linux-gnu (glibc instead of uclibc) target, as well.

Is this a general problem with building any libc for ppc on x86, or am I doing something wrong?

[edit:]
Wait, no, it now works if I do this:
crossdev -s4 --target powerpc-unknown-linux-gnu
How confusing :?
_________________
splig: amd64; nForce3; sata; GeForce 6600gt agp
muttley: EFIKA 5200B - PPC SoC :)

Registered Linux User #381314
# killall humans
Back to top
View user's profile Send private message
deadhorse
n00b
n00b


Joined: 01 Jun 2007
Posts: 2

PostPosted: Fri Jun 01, 2007 1:05 pm    Post subject: Reply with quote

Quote:
Is this a general problem with building any libc for ppc on x86, or am I doing something wrong?

I'm having the exact same error in x86 with:
crossdev -t arm-unknown-linux-uclibc
Back to top
View user's profile Send private message
deadhorse
n00b
n00b


Joined: 01 Jun 2007
Posts: 2

PostPosted: Fri Jun 01, 2007 6:51 pm    Post subject: Reply with quote

This patch solved the problem for me: http://www.uclibc.org/cgi-bin/viewcvs.cgi/trunk/uClibc/extra/locale/gen_wctype.c?rev=15516&r1=13492&r2=15516
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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