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.
lfs:/mnt/lfs/sources/ncurses-5.6$ ./configure --prefix=/tools --with-shared --without-debug --without-ada --enable-overwrite
checking for egrep... grep -E
Configuring NCURSES 5.6 ABI 5 (Fri Sep 12 09:12:01 GMT 2008)
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring for linux-gnu
checking for prefix... /tools
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking version of gcc... 4.1.2
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking whether gcc understands -c and -o together... yes
checking for POSIXized ISC... no
checking for gcc option to accept ANSI C... -DCC_HAS_PROTOS
checking for ldconfig... /sbin/ldconfig
checking if you want to ensure bool is consistent with C++... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for g++... /usr/bin/g++
checking version of g++... 4.1.2
checking if you want to build C++ binding and demo... yes
checking if you want to build with Ada95... no
checking if you want to build programs such as tic... yes
checking if you wish to install curses.h... yes
checking for mawk... no
checking for gawk... gawk
checking for egrep... (cached) grep -E
checking for a BSD compatible install... /usr/bin/install -c
checking for tdlint... no
checking for lint... no
checking for alint... no
checking whether ln -s works... yes
checking whether make sets ${MAKE}... yes
checking if filesystem supports mixed-case filenames... yes
checking for ctags... no
checking for etags... no
checking for makeflags variable...
checking for long file names... yes
checking if filesystem supports mixed-case filenames... (cached) yes
checking for ranlib... ranlib
checking for ld... ld
checking for ar... ar
checking for archiver options (symbol AR_OPTS)... rv
checking if you have specified an install-prefix...
checking if you want to build libraries with libtool... no
checking if you want to build shared libraries... yes
checking if you want to build static libraries... yes
checking if you want to build debug libraries... no
checking if you want to build profiling libraries... no
checking for specified models... shared normal
checking for default model... shared
checking if you want to build a separate terminfo library... no
checking if you want to link with the GPM mouse library... maybe
checking for gpm.h... yes
checking for Gpm_Open in -lgpm... no
configure: error: Cannot link with GPM library
Appreciate if anyone here could give some hints as to overcome this error.
Thanks.. =)
Thanks man...appreciate your help. I'll try it in the late morning.
One more question, not sure you could help to clear my doubt.
At the initial stage, we were told to create a Build directory for Binutils-2.17 - Pass 1 and GCC-4.1.2 - Pass 1.
Somehow i couldn't understand the instruction, so i just compile them in $LFS/sources and after i had done what needed
to be done, i just deleted the sources directory away and recreate again for the next package to be compiled.
So the question is, will the absence of the two build directories affect the rest of the installation of LFS?
If it does, then i think i'll redo it from scratch again.. and that will be my 4th time .
No when you run the second pass of the binutils and the glibc you will recreate the directory anyway.
What they want you to there is to create a second directory to build the tool in. so you source directory would look like
Source
----Binutils-2.17
----Binutils-build
Then when you are done compiling you can just delete the build directory and keep the 2.17 for the second pass. The way you did it shouldn't cause any trouble.
Took me a few runs through the first part of the book to get it right as well.
erh... actually i had switched off my pc already.. i tried to continue from where
i stopped.. by setting up the initial environment and entered all the previous symbolic links
as stated in "5.4. GCC-4.1.2 - Pass 1" and "5.7 Adjusting the Toolchain".
I did execute the "./configure.... " with the option as suggested by you and therefore it ends without error.
However, i did encounter error when i executed the "make install".
I didn't record the error message though.
Does this mean i need to start from scratch again?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.