make error while compiling perl (LFSv7.2 Step 5.28)
I have completed all the LFS steps till patch-2.6.1 with no errors .But as i went on to compile perl using the instruction
Code:
patch -Np1 -i ../perl-5.16.1-libc-2.patch Code:
sh Configure -des -Dprefix=/tools Code:
make Making Archive::Extract (all) make[1]: Entering directory `/mnt/lfs/sources/perl-5.16.1/cpan/Archive-Extract' Makefile out-of-date with respect to ../../lib/Config.pm ../../config.h Cleaning current config before rebuilding Makefile... make -f Makefile.old clean > /dev/null 2>&1 ../../miniperl "-I../../lib" "-I../../lib" Makefile.PL "INSTALLDIRS=perl" "INSTALLMAN1DIR=none" "INSTALLMAN3DIR=none" "PERL_CORE=1" "LIBPERL_A=libperl.a" Writing Makefile for Archive::Extract ==> Your Makefile has been rebuilt. <== ==> Please rerun the make command. <== false make[1]: *** [Makefile] Error 1 make[1]: Leaving directory `/mnt/lfs/sources/perl-5.16.1/cpan/Archive-Extract' make config PERL_CORE=1 LIBPERL_A=libperl.a failed, continuing anyway... Making all in cpan/Archive-Extract make all PERL_CORE=1 LIBPERL_A=libperl.a make[1]: Entering directory `/mnt/lfs/sources/perl-5.16.1/cpan/Archive-Extract' chmod: changing permissions of '../../lib': Operation not permitted make[1]: *** [../../lib/.exists] Error 1 make[1]: Leaving directory `/mnt/lfs/sources/perl-5.16.1/cpan/Archive-Extract' Unsuccessful make(cpan/Archive-Extract): code=512 at make_ext.pl line 466. make: *** [cpan/Archive-Extract/pm_to_blib] Error 2 I tried all over again from the first , bt still not able to figure out why is this happening . I tried changing the owner of the perl folder to lfs user several times . Please Help ! Thanks in advance . |
I've just quickly rerun the perl make and had no problems like you describe. you must have done something wrong earlier on in the build, to start what is the output of the version-check script, what are you building on, what command are you using to unpack the perl tarball and what is the result of
Code:
stat . |
Quote:
the output of the version-check.sh script is: bash, version 4.2.39(1)-release /bin/sh -> /usr/bin/bash Binutils: version 2.23.51.0.1-3.fc18 20120806 bison (GNU Bison) 2.6.1 /usr/bin/yacc -> /usr/bin/yacc bzip2, Version 1.0.6, 6-Sept-2010. Coreutils: 8.17 diff (GNU diffutils) 3.2 find (GNU findutils) 4.5.10 GNU Awk 4.0.1 /usr/bin/awk -> /usr/bin/gawk gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8) (GNU libc) 2.16 grep (GNU grep) 2.14 gzip 1.5 Linux version 3.6.10-4.fc18.x86_64 (mockbuild@) (gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC) ) #1 SMP Tue Dec 11 18:01:27 UTC 2012 m4 (GNU M4) 1.4.16 GNU Make 3.82 patch 2.6.1 Perl version='5.16.2'; GNU sed version 4.2.1 tar (GNU tar) 1.26 Texinfo: makeinfo (GNU texinfo) 4.13 xz (XZ Utils) 5.1.2alpha gcc compilation OK To extract perl tarball I use option "EXTRACT HERE" by right-clicking the perl tarball. My host system is Fedora 18 . PS- I tried all over from beginning on another distro named "Linux Mint Maya" , however i get the same error . While logged in as root in perl folder i ran 'stat .' The output was , File: ‘.’ Size: 12288 Blocks: 24 IO Block: 4096 directory Device: 809h/2057d Inode: 689576 Links: 33 Access: (0777/drwxrwxrwx) Uid: ( 1000/ aashay) Gid: ( 1000/ aashay) Context: unconfined_u:object_r:file_t:s0 Access: 2013-03-02 23:59:17.989556441 +0530 Modify: 2013-03-02 23:57:47.712544667 +0530 Change: 2013-03-02 23:59:17.851556301 +0530 Birth: - PS- When i mount LFS drive on /mnt/lfs using the code Code:
mount -v -t ext3 /dev/sda9 /mnt/lfs mount: /mnt/lfs does not contain SELinux labels. You just mounted an file system that supports labels which does not contain labels, onto an SELinux box. It is likely that confined applications will generate AVC messages and not be allowed access to this file system. For more details see restorecon(8) and mount(8). mount: /dev/sda9 mounted on /mnt/lfs Is something related to SELinux labels why i get this make error ?? Please Help ! |
Hi
I dont understand why the Perl problem. The version script is all good, The part about selinux I didnt have a problem with When I used Centos It complained the same but built all ok. I dont know but your host version of perl is 5.16.2 weather this is the problem??? |
Quote:
bt i dont think perl version is problem because when i was building it on linux mint maya , the host perl version on mint was different . at present i am building perl on fedora 18 with host perl version 5.16.2 . |
Hi
The only other thing I can think of is did the md5sum check out. Maybe redownload perl and the patch, If you hav'nt already. |
the md5sum was alright . i tried redownloading the perl and the patch file . the patch file patches only one file named hints/linux.sh .
Still the same error . Note - If i log in as root and then try compiling perl , it works all right . but after going ahead in the book , when i chroot and try to compile linux headers i get error that perl not found . Help please. |
Hi
As you have rebuilt 7.2 a few times Why not try 7.3 which is released http://www.linuxfromscratch.org/lfs/view/stable/ I know it defeats the object But it might be better |
Dose lfs own perl
Code:
ls -l /mnt/lfs/sources Code:
echo $LFS |
Quote:
Is my system having problem that i am facing such a wierd problem ?? And who knows ? even if i start with 7.3 that same perl error wont bite me ??? |
Quote:
the output of ls -l /mnt/lfs/sources is drwxrwxrwx. 33 lfs aashay 12288 Mar 2 23:57 perl-5.16.1 |
I dont think it,s the host I have built using Centos 6. Maybe as keith mention something went wrong earlier, Not sure about that as you have tried on another machine/host.
Yes others have built 7.2 ok no mention of problems that I recall. Building 7.3 might through an error the same |
Quote:
|
I agree I did'nt think there was a problem with anything earlier as you had rebuilt
I cant find any of my lfs being built at the moment do all the packages have the same permissions "lfs aashay"? |
Quote:
-rw-rw-r--. 1 aashay aashay 1214744 Jul 11 2012 autoconf-2.69.tar.xz -rw-rw-r--. 1 aashay aashay 1378784 Aug 14 2012 automake-1.12.3.tar.xz -rw-rw-r--. 1 aashay aashay 51929 Jul 14 2012 bash-4.2-fixes-8.patch -rw-rw-r--. 1 aashay aashay 7009201 Jul 11 2012 bash-4.2.tar.gz -rwxrwxr-x. 1 aashay aashay 1457 Jul 11 2012 binpatch -rwxrwxr-x. 1 lfs lfs 1457 Jul 11 2012 binpatch.orig -rw-r--r--. 1 lfs lfs 877 Mar 2 22:59 binpatch.rej drwxrwxrwx. 17 aashay aashay 4096 Mar 2 23:46 binutils-2.22 -rw-rw-r--. 1 lfs lfs 1457 Jul 11 2012 binutils-2.22-build_fix-1.patch.orig -rw-r--r--. 1 lfs lfs 423 Mar 2 22:57 binutils-2.22-build_fix-1.patch.rej -rw-rw-r--. 1 aashay aashay 19973532 Jul 11 2012 binutils-2.22.tar.bz2 drwxr-xr-x. 11 lfs lfs 4096 Mar 2 23:51 binutils-build -rw-rw-r--. 1 aashay aashay 1650196 Aug 3 2012 bison-2.6.2.tar.xz -rw-rw-r--. 1 aashay aashay 1684 Jul 11 2012 bzip2-1.0.6-install_docs-1.patch -rw-rw-r--. 1 aashay aashay 782025 Jul 11 2012 bzip2-1.0.6.tar.gz -rw-rw-r--. 1 aashay aashay 558943 Jul 11 2012 check-0.9.8.tar.gz -rw-rw-r--. 1 aashay aashay 139 Jul 11 2012 check.sh -rw-rw-r--. 1 aashay aashay 273310 Aug 22 2012 coreutils-8.19-i18n-1.patch -rw-rw-r--. 1 aashay aashay 5097392 Aug 20 2012 coreutils-8.19.tar.xz -rw-rw-r--. 1 aashay aashay 576269 Jul 11 2012 dejagnu-1.5.tar.gz -rw-rw-r--. 1 aashay aashay 2023539 Jul 11 2012 diffutils-3.2.tar.gz -rw-rw-r--. 1 aashay aashay 5918892 Aug 3 2012 e2fsprogs-1.42.5.tar.gz -rw-rw-r--. 1 aashay aashay 628808 Jul 11 2012 expect5.45.tar.gz -rw-rw-r--. 1 aashay aashay 233 Jul 11 2012 extra.sh -rw-rw-r--. 1 aashay aashay 610019 Jul 11 2012 file-5.11.tar.gz -rw-rw-r--. 1 aashay aashay 2149838 Jul 11 2012 findutils-4.4.2.tar.gz -rw-r--r--. 1 aashay aashay 2812 Aug 21 2012 flex-2.5.37-bison-2.6.1-1.patch -rw-rw-r--. 1 aashay aashay 1303313 Aug 4 2012 flex-2.5.37.tar.bz2 -rw-rw-r--. 1 aashay aashay 1612448 Jul 11 2012 gawk-4.0.1.tar.xz drwxr-xr-x. 30 aashay aashay 4096 Mar 2 23:54 gcc-4.7.1 -rw-rw-r--. 1 aashay aashay 82639660 Jun 14 2012 gcc-4.7.1.tar.bz2 -rw-rw-r--. 1 aashay aashay 655599 Jul 11 2012 gdbm-1.10.tar.gz -rw-rw-r--. 1 aashay aashay 15139737 Jul 11 2012 gettext-0.18.1.1.tar.gz -rw-rw-r--. 1 aashay aashay 1969 Aug 31 2012 glibc-2.16.0-res_query_fix-1.patch -rw-rw-r--. 1 aashay aashay 9990512 Jul 1 2012 glibc-2.16.0.tar.xz drwxr-xr-x. 14 aashay wheel 4096 Mar 2 23:53 gmp-5.0.5 -rw-rw-r--. 1 aashay aashay 1671264 Jul 11 2012 gmp-5.0.5.tar.xz -rw-rw-r--. 1 aashay aashay 1195640 Aug 20 2012 grep-2.14.tar.xz -rw-rw-r--. 1 aashay aashay 3863837 Jul 11 2012 groff-1.21.tar.gz -rw-rw-r--. 1 aashay aashay 5136412 Jun 28 2012 grub-2.00.tar.xz -rw-rw-r--. 1 aashay aashay 720956 Jun 18 2012 gzip-1.5.tar.xz -rw-rw-r--. 1 aashay aashay 205618 Jul 11 2012 iana-etc-2.30.tar.bz2 -rw-rw-r--. 1 aashay aashay 1987928 Jul 11 2012 inetutils-1.9.1.tar.gz -rw-rw-r--. 1 aashay aashay 387984 Aug 13 2012 iproute2-3.5.1.tar.xz -rw-rw-r--. 1 aashay aashay 12640 Jul 11 2012 kbd-1.15.3-backspace-1.patch -rw-rw-r--. 1 aashay aashay 1659867 Jul 11 2012 kbd-1.15.3.tar.gz -rw-rw-r--. 1 aashay aashay 1582 Jul 11 2012 kbd-1.15.3-upstream_fixes-1.patch -rw-rw-r--. 1 aashay aashay 1122668 Jun 20 2012 kmod-9.tar.xz -rw-rw-r--. 1 aashay aashay 2283 Jul 14 2012 kmod-9-testsuite-1.patch -rw-rw-r--. 1 aashay aashay 307308 Jul 11 2012 less-444.tar.gz -rw-rw-r--. 1 aashay aashay 33627 Sep 2 01:12 lfs-bootscripts-20120901.tar.bz2 -rw-rw-r--. 1 aashay aashay 741039 Jul 11 2012 libpipeline-1.2.1.tar.gz -rw-rw-r--. 1 aashay aashay 2632347 Jul 11 2012 libtool-2.4.2.tar.gz -rw-rw-r--. 1 aashay aashay 67570116 Aug 15 2012 linux-3.5.2.tar.xz -rw-rw-r--. 1 aashay aashay 1258362 Jul 11 2012 m4-1.4.16.tar.bz2 -rw-rw-r--. 1 aashay aashay 1242186 Jul 11 2012 make-3.82.tar.bz2 -rw-rw-r--. 1 aashay aashay 9889 Aug 29 2012 make-3.82-upstream_fixes-2.patch -rw-rw-r--. 1 aashay aashay 1385068 Jun 18 2012 man-db-2.6.2.tar.xz -rw-rw-r--. 1 aashay aashay 1095872 Aug 14 2012 man-pages-3.42.tar.xz -rw-rw-r--. 1 aashay aashay 4374 Sep 2 01:35 md5sums drwxr-xr-x. 6 aashay aashay 4096 Mar 2 23:53 mpc-1.0 -rw-rw-r--. 1 aashay aashay 628311 Jul 22 2012 mpc-1.0.tar.gz drwxr-xr-x. 9 aashay aashay 4096 Mar 2 23:53 mpfr-3.1.1 -rw-rw-r--. 1 aashay aashay 1071688 Jul 4 2012 mpfr-3.1.1.tar.xz -rw-rw-r--. 1 aashay aashay 2826473 Jul 11 2012 ncurses-5.9.tar.gz -rw-rw-r--. 1 aashay aashay 253719 Jul 11 2012 patch-2.6.1.tar.bz2 -rw-rw-r--. 1 aashay aashay 892 Jul 11 2012 patch-2.6.1-test_fix-1.patch drwxrwxrwx. 33 lfs aashay 12288 Mar 2 23:57 perl-5.16.1 -rw-rw-r--. 1 aashay aashay 1611 Aug 15 2012 perl-5.16.1-libc-2.patch -rw-rw-r--. 1 aashay aashay 13550613 Aug 9 2012 perl-5.16.1.tar.bz2 -rw-rw-r--. 1 aashay aashay 1912566 Jul 22 2012 pkg-config-0.27.tar.gz -rw-rw-r--. 1 aashay aashay 2361 Jul 11 2012 procps-3.2.8-fix_HZ_errors-1.patch -rw-rw-r--. 1 aashay aashay 285758 Jul 11 2012 procps-3.2.8.tar.gz -rw-rw-r--. 1 aashay aashay 3622 Jul 11 2012 procps-3.2.8-watch_unicode-1.patch -rw-rw-r--. 1 aashay aashay 492733 Jun 23 2012 psmisc-22.19.tar.gz -rw-rw-r--. 1 aashay aashay 1287 Jul 11 2012 readline-6.2-fixes-1.patch -rw-rw-r--. 1 aashay aashay 2277926 Jul 11 2012 readline-6.2.tar.gz -rw-rw-r--. 1 aashay aashay 899091 Jul 11 2012 sed-4.2.1.tar.bz2 -rw-r--r--. 1 aashay aashay 1853 Aug 22 2012 sed-4.2.1-testsuite_fixes-1.patch -rw-rw-r--. 1 aashay aashay 2193325 May 26 2012 shadow-4.1.5.1.tar.bz2 -rw-rw-r--. 1 aashay aashay 86557 Jul 11 2012 sysklogd-1.5.tar.gz -rw-rw-r--. 1 aashay aashay 1348144 Aug 22 2012 systemd-188.tar.xz -rw-rw-r--. 1 aashay aashay 105551 Jul 11 2012 sysvinit-2.88dsf.tar.bz2 -rw-rw-r--. 1 aashay aashay 2339773 Jul 11 2012 tar-1.26.tar.bz2 -rw-rw-r--. 1 aashay aashay 4501505 Jul 27 2012 tcl8.5.12-src.tar.gz -rw-rw-r--. 1 aashay aashay 2751071 Jul 11 2012 texinfo-4.13a.tar.gz -rw-rw-r--. 1 aashay aashay 206251 Aug 3 2012 tzdata2012e.tar.gz -rw-rw-r--. 1 aashay aashay 16713 Aug 22 2012 udev-lfs-188-3.tar.bz2 -rw-rw-r--. 1 aashay aashay 2985668 May 25 2012 util-linux-2.21.2.tar.xz -rw-rw-r--. 1 aashay aashay 9080692 Jul 11 2012 vim-7.3.tar.bz2 -rw-rw-r--. 1 aashay aashay 4788 Sep 2 01:12 wget-list -rw-rw-r--. 1 aashay aashay 915048 Jun 22 2012 xz-5.0.4.tar.xz -rw-rw-r--. 1 aashay aashay 505085 Jul 11 2012 zlib-1.2.7.tar.bz2 |
All times are GMT -5. The time now is 10:37 PM. |