Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crossdev Failure for GCC 2.95
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
MattimeoZ80
n00b
n00b


Joined: 31 Dec 2005
Posts: 5

PostPosted: Sat Mar 18, 2006 6:31 am    Post subject: Crossdev Failure for GCC 2.95 Reply with quote

Hi-

I'm trying to set up a toolchain for arm compiling with gcc 2.95 and the 2.4 kernel. Here is the command I've executed:

Code:
crossdev -s4 --g 2.95.3-r9 --k 2.4 --target arm-v4l-linux-gnu


Here is the output I get:

Code:
---------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   arm
 * Target System:         arm-v4l-linux-gnu
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-2.95.3-r9
 * headers:               linux-headers-2.4
 * libc:                  glibc-[latest]

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

 * gcc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-arm-v4l-linux-gnu-info.log
 * /var/log/portage/cross-arm-v4l-linux-gnu-gcc-stage1.log


And here is the error from the log file:

Code:
libgcc1.S:452: asm/unistd.h: No such file or directory
make[2]: *** [libgcc1-asm.a] Error 1
make[2]: Leaving directory `/var/tmp/cross/arm-v4l-linux-gnu/portage/gcc-2.95.3-r9/work/build/gcc'
make[1]: *** [bootstrap-lean] Error 2
make[1]: Leaving directory `/var/tmp/cross/arm-v4l-linux-gnu/portage/gcc-2.95.3-r9/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: cross-arm-v4l-linux-gnu/gcc-2.95.3-r9 failed.
!!! Function src_compile, Line 148, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.


Any ideas how I could go about getting this to work? Thanks!
Back to top
View user's profile Send private message
MattimeoZ80
n00b
n00b


Joined: 31 Dec 2005
Posts: 5

PostPosted: Sat Mar 18, 2006 6:05 pm    Post subject: Reply with quote

Bump, any ideas, please? Could I be using a version of binutils that's too new? That's the only thing that happens before gcc gets built. Is it a problem with crossdev? I don't know enough about manually building a toolchain to know what's going on.
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Sun Mar 19, 2006 12:59 am    Post subject: Reply with quote

No... it's a problem of gcc being so damn old.

The gcc-2.95 ebuilds have been broken for a long time. I'm suprised they're still present in Portage.
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
MattimeoZ80
n00b
n00b


Joined: 31 Dec 2005
Posts: 5

PostPosted: Sun Mar 19, 2006 1:01 am    Post subject: Reply with quote

Ah ok, I was worried about that. The issue is I'm trying to compile the 2.4 kernel along with a specific patch, and it's not playing nice with newer versions. I guess I'll either have to manually install or start wading through the patch.
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Sun Mar 19, 2006 1:22 am    Post subject: Reply with quote

I'd say you'll have to port that patch to a newer gcc... Support for gcc < 3.0.0 in kernels is disappearing anyways... it's already gone with the latest 2.6.x kernels.

(BTW: sometimes it takes longer than 24 hours to get a response... bumping within a 1 week period does nothing but irritate unless the forum in question is especially busy)
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
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