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

Reply via email to