Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
excuse me, sorry I always asking again, again and again. :Peace:
Im now at chapter 6.14 GMP-5.1.1.
and I have a problem about this
Code:
ABI=32 ./configure --prefix=/usr --enable-cxx
and the output show like this
Code:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler icc -no-gcc ... no
checking whether cc is gcc... yes
checking compiler cc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler cc -O2 -pedantic -fomit-frame-pointer ... no
configure: error: could not find a working compiler, see config.log for details
when I ignore it, and continue to make.
show the notification on my terminal
Code:
make: *** No targets specified and no makefile found. Stop.
If you are building for 32-bit x86, but you have a CPU which is capable of running 64-bit code and you have specified CFLAGS in the environment, the configure script will attempt to configure for 64-bits and fail. Avoid this by invoking the configure command below with
If a package build fails and you need to redo that specific package you first need to remove the created source directory, untar the package again, enter the created directory and start form the to of the chapter.
If you need to use $LFS while doing chapter 6 then something is really wrong! Once you are inside the chrooted environment this variable is not longer needed/set.
If a package build fails and you need to redo that specific package you first need to remove the created source directory, untar the package again, enter the created directory and start form the to of the chapter.
If you need to use $LFS while doing chapter 6 then something is really wrong! Once you are inside the chrooted environment this variable is not longer needed/set.
I was doing again, untar, n tar again, but still error.
and I using root in chapter 6, I don't use lfs user anymnore.
configure: error: could not find a working compiler, see config.log for details
This might point to an earlier problem.
I'm not able to point you to anything specific, things that come to mind are:
- a mistake was made in chapter 5, probably the gcc package,
- forgetting to mount before (re)entering chrooted environment (6.2.2 and 6.2.3),
- not using the correct chroot command (6.4),
- adjusting the toolchain did not go as planned,
- ???
Maybe it would be a good idea to remove everything, restore the backup made in chapter 5.34 and start from the top of chapter 6 (6.2).
Also: did you check the mentioned config.log?
EDIT: I just had a look at the so called book you use and it _does_ use $LFS for building in chapter 6, which is wrong!!
I notice this in the output shown in post #1: This might point to an earlier problem.
I'm not able to point you to anything specific, things that come to mind are:
- a mistake was made in chapter 5, probably the gcc package,
- forgetting to mount before (re)entering chrooted environment (6.2.2 and 6.2.3),
- not using the correct chroot command (6.4),
- adjusting the toolchain did not go as planned,
- ???
Maybe it would be a good idea to remove everything, restore the backup made in chapter 5.34 and start from the top of chapter 6 (6.2).
Also: did you check the mentioned config.log?
EDIT: I just had a look at the so called book you use and it _does_ use $LFS for building in chapter 6, which is wrong!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.