[SOLVED] make error while compiling perl (LFSv7.2 Step 5.28)
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.
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
then,
Code:
sh Configure -des -Dprefix=/tools
then ,
Code:
make
i get the following 2 errors :
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 .
Last edited by aashayshah; 03-02-2013 at 07:49 AM.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152
Rep:
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
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 .
when you are in the extracted perl folder
First of all THANKS A LOT FOR YOUR REPLY . I am grateful to you , Please help me with this ,
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 ,
PS- When i mount LFS drive on /mnt/lfs using the code
Code:
mount -v -t ext3 /dev/sda9 /mnt/lfs
the result is ,
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 ??
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???
my host version of perl is 5.16.2 .
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 .
Last edited by aashayshah; 03-03-2013 at 02:23 AM.
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.
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
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
To be honest i have tried doing all over again from first step atleast 6 times , so its little tough to digest that i may have done something wrong earlier . is the output of ls -l /mnt/lfs/sources alright spiky0011 ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.