Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Having issues compiling kernel for octane system
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
beegmon
n00b
n00b


Joined: 12 Oct 2006
Posts: 9

PostPosted: Sun Dec 10, 2006 11:08 pm    Post subject: Having issues compiling kernel for octane system Reply with quote

I have followed the handbook to the T, but I am unable to get the kernel to compile on my Octane box. I emerged kgcc64, and made sure it was being used with gcc-config. The error I keep getting is the following when trying to compile the kernel:

mips64-unknown-linux-gnu-ld: cannot open linker script file ldscripts/elf64btsmip.xr: No such file or directory
make[1]: *** [init/mounts.o] Error 1
make: *** [init] Error 2

I have the cross compiler option switched off in the kernel, and I am using the following command to start the kernel compile

make vmlinux CROSS_COMPILE=mips64-unknown-linux-gnu-


Any help would be appreciated, seeing how I am suck at the moment.

Thanks
Back to top
View user's profile Send private message
beegmon
n00b
n00b


Joined: 12 Oct 2006
Posts: 9

PostPosted: Wed Dec 13, 2006 6:00 am    Post subject: Reply with quote

any one....I have been banging my head against the wall for 2 days now with now luck.
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: Wed Dec 13, 2006 12:31 pm    Post subject: Reply with quote

Sounds like a broken toolchain... We've been having a few problems like this, and I'm not sure what the cause is.

If you've got a faster workstation running Linux around, using crossdev (in the Portage tree) would be a much faster way of building the kernel, and will avoid the problem.
_________________
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
beegmon
n00b
n00b


Joined: 12 Oct 2006
Posts: 9

PostPosted: Wed Dec 13, 2006 5:05 pm    Post subject: Reply with quote

I will give this try when I get my other box up and running again. I have rebuilt everything from scratch at this point. Did a sort of stage3/1 installtion. Everything built fine, and Im not running any crazy cflags or use keywords, I was hopeing that you fix it, but alas I am suck in the exact same spot. Will give crossdev a try on my other box.
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: Thu Dec 14, 2006 12:14 am    Post subject: Reply with quote

Surely you mean you're stuck... ;-) (To suck is to attract fluids or particles by way of a vacuum ... it's also a slang term, something is said to "suck" if it's really bad.)

You're not the first person to have encountered this problem, in fact, I suspect the gcc and binutils build released with the 2006.1 big-endian stages, is broken, as I've had heaps of C++-related problems too (nothing to do with kernel building though).

Soon as I get things settled on my Octane, I might put up a few binpkgs to temporarily remedy the situation.
_________________
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
beegmon
n00b
n00b


Joined: 12 Oct 2006
Posts: 9

PostPosted: Thu Dec 14, 2006 2:14 am    Post subject: Reply with quote

Whats interesting is that I found this problem on a fresh 2005.1 install. I had C++ errors on the 2006.1 and decided to give an older revision a try. Unfortuantly, It appears that I was unable to escape compiler errors....And yes..I meant stuck...of course it does suck to be stuck..
Back to top
View user's profile Send private message
hanc
n00b
n00b


Joined: 31 Oct 2006
Posts: 11
Location: Marianske Lazne, Czech Republic

PostPosted: Thu Dec 14, 2006 11:52 am    Post subject: Re: Having issues compiling kernel for octane system Reply with quote

My work around of this problem is:

Code:
cd /usr/src/linux
ln -s /path-to-your-binutils/ldscripts

_________________
hanc
Back to top
View user's profile Send private message
beegmon
n00b
n00b


Joined: 12 Oct 2006
Posts: 9

PostPosted: Thu Dec 14, 2006 8:45 pm    Post subject: Reply with quote

Ok I am a little confused to to what to link to

I have ln -s /usr/mips-unknown-linux-gnu (what is the second argument)

Thanks for all the help
Back to top
View user's profile Send private message
beegmon
n00b
n00b


Joined: 12 Oct 2006
Posts: 9

PostPosted: Fri Dec 15, 2006 5:40 pm    Post subject: Reply with quote

Never mind, I understand what your trying to do now. I am half way through the kernel compile. So hopefully I will be able to report good news shorty. Thanks again for your help.
Back to top
View user's profile Send private message
beegmon
n00b
n00b


Joined: 12 Oct 2006
Posts: 9

PostPosted: Fri Dec 15, 2006 11:54 pm    Post subject: Reply with quote

Alright! got my kernel compiled. Thanks very much you guys for all the help.
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