Thomas Pegg wrote:
> morfast wrote:
>   
>> Hello,everyone
>>
>> I wrote a script to accomplish the building of the tool chain. I use a
>> variable in the script instead of the /tools soft link to refer to the
>> $LFS/tools directory. The script seems to finish without errors. But
>> when I try to chroot to the $LFS directory, a error message was encountered:
>>     
>
> If I read this right you omitted the /tools symlink which points back to 
>   $LFS/tools. If so, you can't do it that way which is why you can't 
> chroot.
>   
>> chroot: cannot run command `/home/morfast/lfs/lfs_test/tools/bin/env':
>> No such file or directory
>>
>> ($LFS is /home/morfast/lfs/lfs_test/ , I build it in my home directory
>> for test)
>>
>> it seems the tools chain is broken, but the result of the test : readelf
>> -l a.out seems correct,just like:
>>
>> [Requesting program interpreter:
>> /home/morfast/lfs/lfs_test/tools/lib/ld-linux.so.2]
>>     
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^ <- All this should not be there, only the 
> /tools/lib/ld-linux.so.2 should be there.
>
>
> Thomas
>   
got it. I modified the variables in the script, make the /tools link,
run the script again, it works.

thank you very much!
-- 
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