Problem with $(gcc -dumpmachine)

Sean Markan markan at alum.mit.edu
Fri Nov 9 08:09:38 PST 2007


I had this same problem, and it turned out I had forgotten to put the
gcc binary into /tools/bin (i.e. make install).  Something to
double-check if you haven't already.

- Sean


On Nov 9, 2007 4:56 AM, John Whitmore <johnfwhitmore at gmail.com> wrote:
> Hello all,
>    hate asking questions but this is both a question and perhaps a
> problem with the Linux From Scratch Book. I started working through
> this book with a very old laptop but I'm learning and if should work
> even on an old laptop, I assume.
>
> Anyhow I've gotten as far as page 46, section 5.7 Adjusting the
> Toolchain on Linux From Scratch - Version 6.3
>
> Now at this point I'm moving things about. I got here before but at
> the end of the section when compiling the dummy.c file my linker was
> still pointing at /usr/lib on the LFS Live Disk. So I went back to the
> start again. This time I'm checking over what I'm doing more
> carefully.
>
> I've got to the line:
>
> mv -v /tools/$(gcc -dumpmachine)/bin{ld,ld-old}
>
> before I executed this line I tried to check the $(gcc -dumpmachine)
> and it's not correct!
>
> In my /tools directory I've got two candidates:
>
> /tools/i686-pc-linux-gnu-gcc
> /tools/i686-pc-linux-gnu-gcc-4.1.2
>
> However my $(gcc -dumpmachine) gives me
>
> i486-pc-linux-gnu
>
> I'm not sure if this is a stupid question but perhaps the book needs
> amending for the case where i486's are being used. I'm not sure what
> to do next but I'll have a look into things again
>
> Thanks in advance for any help
>
> John Whitmore
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>



More information about the lfs-support mailing list