Adjusting toolchain problem (in temport system)
Hi all,
This is the first time I have attemped LFS. I am following the LFS project page guide. I have installed glibc into $LFS/tools (whilst making tempory system) and so far everything seems fine. The first problem comes with the command: Code:
mv /tools/$(gcc -dumpmachine)/bin/{ld,ld-old} Code:
mv /tools/1686-pc-linux-gnu/bin/{ld,ld-old} There was also an ambiguous redirect error for Code:
gcc -dumpspecs > $SPECFILE The final error - the one I can't get around - is when I use Code:
find ${GCC_INCLUDEDIR}/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \: && Code:
find: invalid predicate '-print-libgcc-file-name)/include/*' I have tried from scratch four times now with the same errors. Any help would be appreciated. Cheers |
Quote:
The rest of your issues usually arise from typos, mistaking 's for `s etc. But for now you really want to get the first problem sorted. If PATH is wrong then you probably want to double check everything you did when setting up the lfs user, and if this does turn out to be the problem then you probably want to start over (thankfully you are not too far in). Hope you get it sorted. |
Cheers Daws
Yeah, your right: I'm using /usr/bin/gcc! How can I change that? As I said I've started again a number of times so I'm sure I've been following the guide correctly. I was using --prefix=/tools and --with-local-prefix=/tools when I configured gcc, is that right? Thanks! |
Yup that sounds right but that is not where PATH is set. After you have downloaded the packages you have to create an "lfs" user, and you should remember something like this (as lfs):
Code:
cat > ~/.bash_profile << "EOF" Code:
cat > ~/.bashrc << "EOF" My guess is that something went wrong here. Maybe you didn't create the lfs user properly or maybe something weird is going on the host system. When you are logged in you can always check it with "echo $PATH" though. Anyway good luck with it. It took me more than 5 retries before I got it to work so don't worry about that. If you have any more problems people around here are always willing to help. |
Yeah I did that as you said so that's probably not the problem! I've been using the LFS live cd as the host so I'll give it a go with SUSE or Fedora (Any personal preferences?). Thanks for all the help.
|
I quite like Debian actually, but it shouldn't make much difference distro to distro.
|
Gentoo
Gentoo works pretty well too. I'm currently doing LFS through ssh to another comp on my network using the Gentoo live cd.
|
All times are GMT -5. The time now is 07:39 PM. |