View previous topic :: View next topic |
Author |
Message |
beegmon n00b
Joined: 12 Oct 2006 Posts: 9
|
Posted: Sun Dec 10, 2006 11:08 pm Post subject: Having issues compiling kernel for octane system |
|
|
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 |
|
|
beegmon n00b
Joined: 12 Oct 2006 Posts: 9
|
Posted: Wed Dec 13, 2006 6:00 am Post subject: |
|
|
any one....I have been banging my head against the wall for 2 days now with now luck. |
|
Back to top |
|
|
Redhatter Retired Dev
Joined: 20 Sep 2003 Posts: 548 Location: Brisbane, QLD, Australia
|
Posted: Wed Dec 13, 2006 12:31 pm Post subject: |
|
|
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 |
|
|
beegmon n00b
Joined: 12 Oct 2006 Posts: 9
|
Posted: Wed Dec 13, 2006 5:05 pm Post subject: |
|
|
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 |
|
|
Redhatter Retired Dev
Joined: 20 Sep 2003 Posts: 548 Location: Brisbane, QLD, Australia
|
Posted: Thu Dec 14, 2006 12:14 am Post subject: |
|
|
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 |
|
|
beegmon n00b
Joined: 12 Oct 2006 Posts: 9
|
Posted: Thu Dec 14, 2006 2:14 am Post subject: |
|
|
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 |
|
|
hanc n00b
Joined: 31 Oct 2006 Posts: 11 Location: Marianske Lazne, Czech Republic
|
Posted: Thu Dec 14, 2006 11:52 am Post subject: Re: Having issues compiling kernel for octane system |
|
|
My work around of this problem is:
Code: | cd /usr/src/linux
ln -s /path-to-your-binutils/ldscripts |
_________________ hanc |
|
Back to top |
|
|
beegmon n00b
Joined: 12 Oct 2006 Posts: 9
|
Posted: Thu Dec 14, 2006 8:45 pm Post subject: |
|
|
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 |
|
|
beegmon n00b
Joined: 12 Oct 2006 Posts: 9
|
Posted: Fri Dec 15, 2006 5:40 pm Post subject: |
|
|
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 |
|
|
beegmon n00b
Joined: 12 Oct 2006 Posts: 9
|
Posted: Fri Dec 15, 2006 11:54 pm Post subject: |
|
|
Alright! got my kernel compiled. Thanks very much you guys for all the help. |
|
Back to top |
|
|
|