Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
- development version of LFS
- Debian testing (with only a few packages from unstable)
Code:
./version-check.sh
bash, version 4.0.28(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Debian) 2.20
./version-check.sh: line 9: bison: command not found
yacc not found
bzip2, Version 1.0.5, 10-Dec-2007.
Coreutils: 7.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 3.1.6
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 4.3.4-6) 4.3.4
GNU C Library (EGLIBC) stable release version
GNU grep 2.5.4
gzip 1.3.12
Linux version 2.6.31-dbb-deb (2.6.31) (root@ganymed) (gcc version 4.3.4 (Debian 4.3.4-5) ) #1 SMP PREEMPT Tue Oct 27 02:39:01 EDT 2009
m4 (GNU M4) 1.4.13
GNU Make 3.81
patch 2.5.9
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.22
makeinfo (GNU texinfo) 4.13
Compilation OK
I didn't intentionally deviate from the book, but it's possible that I messed up somewhere.
I thought I set up the build directories correctly:
Code:
lfs@ganymed:~$ cd $LFS
lfs@ganymed:/mnt/lfs$ ls
binutils-build gcc-build sources tools
lfs@ganymed:/mnt/lfs$ ls binutils-build/
binutils-2.20 binutils-2.20.tar.bz2
lfs@ganymed:/mnt/lfs$ ls gcc-build/
gcc-4.4.2 gcc-4.4.2.tar.bz2
lfs@ganymed:/mnt/lfs$ ls gcc-build/
gcc-4.4.2 gcc-4.4.2.tar.bz2
This is incorrect.
You should read this page first: http://www.linuxfromscratch.org/lfs/...roduction.html
For some reason this very important notice was eliminated after LFS 6.3. I couldn't find it in development version of LFS, though it used to be in 6.3:
Quote:
Important
Before issuing the build instructions for a package, the package should be unpacked as user lfs, and a cd into the created directory should be performed. The build instructions assume that the bash shell is in use.
This means that
Code:
mkdir -v ../gcc-build
cd ../gcc-build
commands as well as previous ones on the page should be done in the gcc-4.4.2 directory.
You have to start building from scratch.
So, if I understand correctly, I must create an empty directory, change to that empty directory, and then execute configure from within that directory.
Yes. Just follow the book. After you extracted the package and made cd to its directory you can execute the commands from the page about that package and, ideally, no extra commands should be needed.
So, if I understand correctly, I must create an empty directory, change to that empty directory, and then execute configure from within that directory.
Yes - also, the second directory (i.e. the one you change to in order to run the configure script) should not be a subdirectory of the source directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.