You are not logged in.

#1 2012-01-03 15:48:39

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Good tutorial for building a toolchain?

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

#2 2012-01-03 16:00:57

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Good tutorial for building a toolchain?

Offline

#3 2012-01-07 20:53:48

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Good tutorial for building a toolchain?

bangkok_manouel wrote:
[max@gayforcetwo linux-2.6.24.7]$ make mrproper
Makefile:1503: *** mixed implicit and normal rules.  Stop.
freenode.net ##linux wrote:

<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

#4 2012-01-07 22:13:13

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Good tutorial for building a toolchain?

Why aren't you using the development version?

http://cross-lfs.org/view/svn/sparc64-64/

Everybody knows the stable is ancient wink.

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

#5 2012-01-08 03:56:09

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Good tutorial for building a toolchain?

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

#6 2012-01-08 07:18:01

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Good tutorial for building a toolchain?

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? wink

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

Board footer

Powered by FluxBB