Hi all,
Here is the situation:
ncurses-5.6 fails to build, reporting that it cannot link with GPM (see
below).
What I have tried:
I have restarted the build process from the beginning many times,
watching every key stroke, but it always fails at the exact same place.
I have created my own scripts, cut-n-pasted straight from the book to
semi-automate the build process
and with LiveCD 6.2.5 I was able to complete the build without any
problems. I have made the minor adjustments (different source versions) for
the 6.3 release.
1.
As root, I set up the partitions, mount the partitions & create the
necessary directories. I then create the lfs user, group & assign
the permissions. I then switch to a second tty (Ctrl+Alt+F2),
login as lfs, create the shell environment and go from there.
2. I can build bin-utils, gcc-pass1, etc - but not get past Ch 5.13.
3. Either please send a bullet, or better yet suggestions... ;-)
.................... ncurses build log .............
checking for egrep... grep -E
Configuring NCURSES 5.6 ABI 5 (Tue Oct 2 13:27:23 GMT 2007)
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
......................................
Additional items I have pursued:
The command :
$ echo | gcc -v -x c - 2>&1 | sed -n '/^#include/,/End of search list/p'
#include "..." search starts here:
#include <...> search starts here:
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/include
/tools/include
/usr/include
End of search list.
Clearly wrong as that the patch for gcc should remove /usr/include.
By visually investigating the file shows that /gcc-4.1.2/gcc/config/linux.h was
modified.
The log file also reports successful patching:
.................................
....
`gcc/Makefile.in' -> `gcc/Makefile.in.orig'
`gcc/Makefile.in' -> `gcc/Makefile.in.tmp'
patching file gcc/config/alpha/linux-elf.h
patching file gcc/config/arm/linux-elf.h
patching file gcc/config/frv/linux.h
patching file gcc/config/i386/gnu.h
patching file gcc/config/i386/linux.h
patching file gcc/config/i386/linux64.h
patching file gcc/config/ia64/linux.h
Hunk #1 succeeded at 43 with fuzz 1.
patching file gcc/config/linux.h
patching file gcc/config/m32r/linux.h
patching file gcc/config/m68k/linux.h
patching file gcc/config/mips/linux.h
patching file gcc/config/mips/linux64.h
patching file gcc/config/mn10300/linux.h
patching file gcc/config/pa/pa-linux.h
patching file gcc/config/rs6000/linux64.h
patching file gcc/config/rs6000/sysv4.h
patching file gcc/config/s390/linux.h
Hunk #1 succeeded at 86 with fuzz 2.
patching file gcc/config/sh/linux.h
patching file gcc/config/sparc/linux.h
patching file gcc/config/sparc/linux64.h
patching file gcc/config/xtensa/linux.h
mkdir: created directory `gcc-build'
....
To further confound the situation, the test at the end of gcc-pass2 reports:
$echo 'main(){}' > dummy.c
$cc dummy.c
$readelf -l a.out | grep ': /tools'
[Requesting program interpreter: /tools/lib/ld-linux.so.2]
Again, this is LiveCD 6.3 r2032 or r2052.
$ uname -a
Linux lfslivecd 2.6.22.5 #1 SMP Fri Aug 31 15:46:21 GMT 2007 i686 athlon-4 i386
GNU/Linux
$ cat /pro/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 44
model name : AMD Sempron(tm) Processor 3000+
stepping : 2
cpu MHz : 1808.256
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext
3dnow up pni lahf_lm ts fid vid ttp tm stc
bogomips : 3620.47
clflush size : 64
Any ideas ?
-ejb
____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page