4. Chapter 5 part 7 adjusting the toolchain

Simon Needham saneedham at googlemail.com
Wed Oct 4 11:33:50 PDT 2006


Dear all,

thanks for your help.  gcc -dumpmachine was indeed pointing to a
non-existent folder.  I have started from scratch and checked gcc
-dumpmachine after each installation.  It is now pointing to
i686-pc-linux-gnu, so I assume I made a typo while compling GCC.

Thanks again

Simon

On 04/10/06, lfs-support-request at linuxfromscratch.org
<lfs-support-request at linuxfromscratch.org> wrote:
> Send lfs-support mailing list submissions to
>         lfs-support at linuxfromscratch.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://linuxfromscratch.org/mailman/listinfo/lfs-support
> or, via email, send a message with subject or body 'help' to
>         lfs-support-request at linuxfromscratch.org
>
> You can reach the person managing the list at
>         lfs-support-owner at linuxfromscratch.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lfs-support digest..."
>
>
> Today's Topics:
>
>    1. Re: Chapter 5 part 7 adjusting the toolchain (Simon Needham)
>    2. Re: Chapter 5 part 7 adjusting the toolchain (Bauke Jan Douma)
>    3. Re: Chapter 5 part 7 adjusting the toolchain
>       (Mag. Leonhard Landrock)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 3 Oct 2006 19:54:07 +0100
> From: "Simon Needham" <saneedham at googlemail.com>
> Subject: Re: Chapter 5 part 7 adjusting the toolchain
> To: lfs-support at linuxfromscratch.org
> Message-ID:
>         <d4afe4130610031154t514ac027ifa3e71de63b63bde at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> I am getting stuck while adjusting the toolchain.  When I try to move
> the files with:
>
> mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
>
> I get an error message:
>
> mv: cannot stat '/tools/bin/ld' : No such file or directory
>
> The message is of course self explanatory, but I have double checked
> all my steps upto this point and don't appear to have missed anything.
>  I have just proceeded on with the installation of the other packages
> and the toolchain check.  The toolchain check works fine and TCL
> installs.  Expect however, doesn't.
>
> Anyone able to help or spot what I have missed?
>
> I am running LFS 6.2 and using the Live Cd as a host system.
>
> Thank you in advance
>
>
> Dr Simon Needham
>
> ------------------------------
>
> Message: 2
> Date: Tue, 03 Oct 2006 21:09:43 +0200
> From: Bauke Jan Douma <bjdouma at xs4all.nl>
> Subject: Re: Chapter 5 part 7 adjusting the toolchain
> To: LFS Support List <lfs-support at linuxfromscratch.org>,
>         saneedham at googlemail.com
> Message-ID: <4522B577.5040002 at xs4all.nl>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Simon Needham wrote:
> > I am getting stuck while adjusting the toolchain.  When I try to move
> > the files with:
> >
> > mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
> >
> > I get an error message:
> >
> > mv: cannot stat '/tools/bin/ld' : No such file or directory
>
> I don't have an LFS installation, so this is just a 'blind'
> comment based on just what you mention here, but I'd say
> apparently output from $(gcc -dumpmachine) is null.
> That may be a clue to resolution.
>
> What does gcc -dumpmachine from the command-line at this point
> say?
>
> > Thank you in advance
> >
> >
> > Dr Simon Needham
>
> Bauke Jan DOuma
>
> ------------------------------
>
> Message: 3
> Date: Tue, 3 Oct 2006 21:52:56 +0200
> From: "Mag. Leonhard Landrock" <1977-Hamlet at gmx.at>
> Subject: Re: Chapter 5 part 7 adjusting the toolchain
> To: LFS Support List <lfs-support at linuxfromscratch.org>
> Message-ID: <200610032152.58530.1977-Hamlet at gmx.at>
> Content-Type: text/plain;  charset="utf-8"
>
> Am Dienstag, 3. Oktober 2006 20:54 schrieb Simon Needham:
> > I am getting stuck while adjusting the toolchain.  When I try to move
> > the files with:
> >
> > mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
> >
> > I get an error message:
> >
> > mv: cannot stat '/tools/bin/ld' : No such file or directory
> >
> > The message is of course self explanatory, but I have double checked
> > all my steps upto this point and don't appear to have missed anything.
>
> As already posted: The problem lies in the output of "$(gcc -dumpmachine)". A
> look at the manual page (man gcc-4.0) says to me:
>
> -dumpmachine
>         Print the compiler's target machine (for example, i686-pc-linux-gnu)---and
> don't do anything else.
>
> First look wether the option "dumpmachine" works by
> issuing "gcc -dumpmachine". If successful, have a look wether the
> corresponding path as expected by "/tools/$(gcc -dumpmachine)/bin/" really
> exists.
>
> Nevertheless I'm afraid, that most likely "gcc -dumpmachine" will not work for
> you. But there are people on this list who for sure can help in that case.
>
> BTW: Have a look at the manual page of bash - section "Command Substitution":
>
> "Command substitution allows the output of a command to replace the command
> name. There are two forms:
>
>
>  $(command )
>  or
> `command`
>
>
>  Bash performs the expansion by executing command and replacing the command
> substitution with the standard output of the command, with any trailing
> newlines deleted."
>
> >  I have just proceeded on with the installation of the other packages
> > and the toolchain check.
>
> Bad idea! In case of such an obvious error, have a look at the LFS pages or
> ask for help.
>
> > The toolchain check works fine and TCL
> > installs.  Expect however, doesn't.
> >
> > Anyone able to help or spot what I have missed?
> >
> > I am running LFS 6.2 and using the Live Cd as a host system.
> >
> > Thank you in advance
> >
> >
> > Dr Simon Needham
>
> Kind regards,
> Leonhard
>
> ------------------------------
>
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
>
> End of lfs-support Digest, Vol 1087, Issue 1
> ********************************************
>


-- 
Dr Simon Needham
www.puresimon.com



More information about the lfs-support mailing list