You are not logged in.
I'm trying to build a sparc64-unknown-linux-gnu toolchain but just about every tutorial or script I use runs into problems. Anyone know of a site that'll help me successfully build a toolchain?
Offline
Offline
[max@gayforcetwo linux-2.6.24.7]$ make mrproper
Makefile:1503: *** mixed implicit and normal rules. Stop.
<Synthead> when running "make mrproper" on linux-2.6.24.7, I get "Makefile:1503: *** mixed implicit and normal rules. Stop.". Now what?
<[R]> 2.6.24!?
<[R]> what, is this 1999?
<Synthead> following LFS
<Synthead> "This chapter includes a list of packages that need to be downloaded for building a basic Linux system. The listed version numbers correspond to versions of the software that are known to work, and this book is based on their use. We highly recommend not using newer versions because the build commands for one version may not work with a newer version. The newest package versions may also have problems that require work-arounds. These w
<Synthead> ork-arounds will be developed and stabilized in the development version of the book."
<[R]> Synthead: what ancient version of lfs are you using that you are using 2.6.24
<Synthead> [R], http://cross-lfs.org/view/1.1.0/sparc64/index.html
<[R]> thats pretty ancient
<[R]> good luck with that
<DrPenguin> the newer versions of LFS still recommend older 2.6.x kernels
<[R]> i just did 'read online' for the 'stable' version
<[R]> and it had 3.1
<Synthead> [R], for sparc64?
<[R]> Synthead: no, for normal lfs
<[R]> Synthead: if the latest version of the guide is that old... i woudlnt want to use old crap
<Synthead> [R], I'm just trying to follow chapter 5 to build a cross-compiling toolchain
<Synthead> [R], then I'm going to compile my own distro with it
<reisio> seems like the unnecessarily hard way to do an LFS
Last edited by synthead (2012-01-07 20:54:29)
Offline
Why aren't you using the development version?
http://cross-lfs.org/view/svn/sparc64-64/
Everybody knows the stable is ancient .
I believe they have their own IRC channel(s) as well btw, always worth checking out.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Alright! I built a toolchain from the development version of sparc64 multilib. But now I'm running into a problem. I compiled hello.c (hello world, what else?) using sparc64-unknown-linux-gnu-gcc and scp'd it to my sparc system (running Debian). When trying to run it, I discovered that it's looking for "/tools/lib64":
$ ./hello
-bash: ./hello: No such file or directory
$ ldd hello
libc.so.6 => /lib64/libc.so.6 (0xfffff801aace4000)
/tools/lib64/ld-linux.so.2 => /lib64/ld-linux.so.2 (0x0000010000000000)
$ sudo mkdir /tools
$ sudo ln -s /lib64 /tools/lib64
$ ./hello
hello, world
What now?
Offline
You compiled it with the cross-toolchain. The procedure is: use the native toolchain to build the cross-toolchain, then use that toolchain to bootstrap, and once you can boot into that system, you can use it to build native sparc64 binaries. I told you in your other thread you needed to bootstrap a system, not just compile a toolchain.
If the CLFS guys could skip that step, don't you think they would do it?
Last edited by .:B:. (2012-01-08 07:18:31)
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline