Can't cd to /sources/perl-5.8.8/ext/IO

satish patel satish at linuxbug.org
Wed Aug 27 09:24:02 PDT 2008


On Wed, Aug 27, 2008 at 8:36 AM, Satish Patel <satish at linuxbug.org> wrote:
> Chapter 5.25 perl compilation i got one error when run command make
> perl utilities
>
> error is Can't cd to /sources/perl-5.8.8/ext/IO
>
> but i have /mnt/lfs/source then why it showing /sources directory on root
>
>
>
>        Making Fcntl (static)
> Writing Makefile for Fcntl
> make[1]: Entering directory `/mnt/lfs/sources/perl-5.8.8/ext/Fcntl'
> make[1]: Leaving directory `/mnt/lfs/sources/perl-5.8.8/ext/Fcntl'
> make[1]: Entering directory `/mnt/lfs/sources/perl-5.8.8/ext/Fcntl'
> cp Fcntl.pm ../../lib/Fcntl.pm
> ../../miniperl "-I../../lib" "-I../../lib" ../../lib/ExtUtils/xsubpp
> -noprototypes -typemap ../../lib/ExtUtils/typemap  Fcntl.xs >
> Fcntl.xsc && mv Fcntl.xsc Fcntl.c
> cc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2
> -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\"  "-I../.."   Fcntl.c
> rm -rf ../../lib/auto/Fcntl/Fcntl.a
> /tools/bin/ar cr ../../lib/auto/Fcntl/Fcntl.a Fcntl.o && :
> ../../lib/auto/Fcntl/Fcntl.a
> chmod 755 ../../lib/auto/Fcntl/Fcntl.a
> make[1]: Leaving directory `/mnt/lfs/sources/perl-5.8.8/ext/Fcntl'
>
>         Making IO (static)
> Can't cd to /sources/perl-5.8.8/ext/IO: No such file or directory
> Warning: No Makefile!

I'm pretty sure the error is misleading here. IIRC, the /tools bash is
messing up on a loop in perl's build system. This happens because the
bison on the host system is too old and messes up bash's parser when
it is built earlier in Ch. 5. Did you pass all the host system
requirements?

http://www.linuxfromscratch.org/lfs/view/stable/prologue/hostreqs.html

My host system hostreqs output

[root at lfs ~]# sh version-check.sh
bash, version 3.00.15(1)-release
Binutils: version 2.15.92.0.2
bison (GNU Bison) 1.875c
bzip2,  Version 1.0.2, 30-Dec-2001.
Coreutils:  5.2.1
diff (GNU diffutils) 2.8.1
GNU find version 4.1.20
GNU Awk 3.1.3
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-9)
GNU C Library stable release version 2.3.4,
grep (GNU grep) 2.5.1
gzip 1.3.3
Linux version 2.6.9-67.ELsmp (mockbuild at builder10.centos.org) (gcc version
3.4.6 20060404 (Red Hat 3.4.6-9)) #1 SMP Fri Nov 16 12:48:03 EST 2007
GNU Make 3.80
patch 2.5.4
GNU sed version 4.1.2
tar (GNU tar) 1.14


My Bison version is 1.87 with is mention on LFS document. Now what I do
upgrade it or leave it?



--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page




More information about the lfs-support mailing list