[lfs-support] makefile:382: recipe for target 'perl' failed

meet bhatt meetjbhatt at gmail.com
Tue Mar 24 23:25:35 PDT 2015


Hi all,

I am seeing the above mentioned error on issuing make command for
Perl-5.20.2. I am using LFS-7.7
*This is the error log:*
make[1]: Entering directory
'/mnt/LFS/sources/perl-5.20.2/dist/threads-shared'
cp lib/threads/shared.pm ../../lib/threads/shared.pm
../../miniperl "-I../../lib" "-I../../lib" ../../lib/ExtUtils/xsubpp
-typemap ../../lib/ExtUtils/typemap  shared.xs > shared.xsc && mv
shared.xsc shared.c
cc -c   -fwrapv -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"1.46\" -DXS_VERSION=\"1.46\"  "-I../.."   shared.c
rm -rf ../../lib/auto/threads/shared/shared.a
/tools/bin/ar cr ../../lib/auto/threads/shared/shared.a shared.o && :
../../lib/auto/threads/shared/shared.a
chmod 755 ../../lib/auto/threads/shared/shared.a
make[1]: Leaving directory
'/mnt/LFS/sources/perl-5.20.2/dist/threads-shared'
./miniperl -Ilib make_ext.pl lib/auto/Encode/Byte/Byte.a MAKE=make
LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS=
Can't find extension Encode/Byte in any of cpan dist ext at make_ext.pl
line 250.
./miniperl -Ilib make_ext.pl lib/auto/Encode/CN/CN.a MAKE=make
LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS=
Can't find extension Encode/CN in any of cpan dist ext at make_ext.pl line
250.
./miniperl -Ilib make_ext.pl lib/auto/Encode/EBCDIC/EBCDIC.a MAKE=make
LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS=
Can't find extension Encode/EBCDIC in any of cpan dist ext at make_ext.pl
line 250.
./miniperl -Ilib make_ext.pl lib/auto/Encode/JP/JP.a MAKE=make
LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS=
Can't find extension Encode/JP in any of cpan dist ext at make_ext.pl line
250.
./miniperl -Ilib make_ext.pl lib/auto/Encode/KR/KR.a MAKE=make
LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS=
Can't find extension Encode/KR in any of cpan dist ext at make_ext.pl line
250.
./miniperl -Ilib make_ext.pl lib/auto/Encode/Symbol/Symbol.a MAKE=make
LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS=
Can't find extension Encode/Symbol in any of cpan dist ext at make_ext.pl
line 250.
./miniperl -Ilib make_ext.pl lib/auto/Encode/TW/TW.a MAKE=make
LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS=
Can't find extension Encode/TW in any of cpan dist ext at make_ext.pl line
250.
./miniperl -Ilib make_ext.pl lib/auto/Encode/Unicode/Unicode.a MAKE=make
LIBPERL_A=libperl.a LINKTYPE=static CCCDLFLAGS=
Can't find extension Encode/Unicode in any of cpan dist ext at make_ext.pl
line 250.
cc -o perl -fstack-protector -L/usr/local/lib  perlmain.o lib/auto/B/B.a
lib/auto/Compress/Raw/Bzip2/Bzip2.a lib/auto/Compress/Raw/Zlib/Zlib.a
lib/auto/Cwd/Cwd.a lib/auto/Data/Dumper/Dumper.a
lib/auto/Devel/PPPort/PPPort.a lib/auto/Devel/Peek/Peek.a
lib/auto/Digest/MD5/MD5.a lib/auto/Digest/SHA/SHA.a
lib/auto/Encode/Encode.a lib/auto/Fcntl/Fcntl.a
lib/auto/File/DosGlob/DosGlob.a lib/auto/File/Glob/Glob.a
lib/auto/Filter/Util/Call/Call.a lib/auto/Hash/Util/Util.a
lib/auto/Hash/Util/FieldHash/FieldHash.a lib/auto/I18N/Langinfo/Langinfo.a
lib/auto/IO/IO.a lib/auto/IPC/SysV/SysV.a lib/auto/List/Util/Util.a
lib/auto/MIME/Base64/Base64.a lib/auto/Math/BigInt/FastCalc/FastCalc.a
lib/auto/Opcode/Opcode.a lib/auto/POSIX/POSIX.a
lib/auto/PerlIO/encoding/encoding.a lib/auto/PerlIO/mmap/mmap.a
lib/auto/PerlIO/scalar/scalar.a lib/auto/PerlIO/via/via.a
lib/auto/SDBM_File/SDBM_File.a lib/auto/Socket/Socket.a
lib/auto/Storable/Storable.a lib/auto/Sys/Hostname/Hostname.a
lib/auto/Sys/Syslog/Syslog.a lib/auto/Tie/Hash/NamedCapture/NamedCapture.a
lib/auto/Time/HiRes/HiRes.a lib/auto/Time/Piece/Piece.a
lib/auto/Unicode/Collate/Collate.a lib/auto/Unicode/Normalize/Normalize.a
lib/auto/arybase/arybase.a lib/auto/attributes/attributes.a
lib/auto/mro/mro.a lib/auto/re/re.a lib/auto/threads/threads.a
lib/auto/threads/shared/shared.a lib/auto/Encode/Byte/Byte.a
lib/auto/Encode/CN/CN.a lib/auto/Encode/EBCDIC/EBCDIC.a
lib/auto/Encode/JP/JP.a lib/auto/Encode/KR/KR.a
lib/auto/Encode/Symbol/Symbol.a lib/auto/Encode/TW/TW.a
lib/auto/Encode/Unicode/Unicode.a libperl.a `cat ext.libs` -lm
/tools/lib/libcrypt.a
lib/auto/POSIX/POSIX.a(POSIX.o): In function `XS_POSIX_tmpnam':
POSIX.c:(.text+0x32ef): warning: the use of `tmpnam' is dangerous, better
use `mkstemp'
*/mnt/LFS/tools/bin/../lib/gcc/**x86_64-unknown-linux-gnu/4.9.*
*2/../../../../x86_64-unknown-**linux-gnu/bin/ld: warning: libpthread.so.0,
needed by /mnt/LFS/tools/bin/../lib/gcc/**x86_64-unknown-linux-gnu/4.9.**2/../../../../lib64/librt.so,
not found (try using -rpath or -rpath-link)*
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so:
undefined reference to `pthread_sigmask at GLIBC_2.2.5'
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so:
undefined reference to `__pthread_unwind at GLIBC_PRIVATE'
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so:
undefined reference to `pthread_once at GLIBC_2.2.5'
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so:
undefined reference to `pthread_barrier_wait at GLIBC_2.2.5'
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so:
undefined reference to `pthread_create at GLIBC_2.2.5'
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so:
undefined reference to `__shm_directory at GLIBC_PRIVATE'
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so:
undefined reference to `pthread_cancel at GLIBC_2.2.5'
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so:
undefined reference to `__pthread_get_minstack at GLIBC_PRIVATE'
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so:
undefined reference to `pthread_detach at GLIBC_2.2.5'
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so:
undefined reference to `pthread_barrier_init at GLIBC_2.2.5'
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so:
undefined reference to `pthread_attr_setstacksize at GLIBC_2.2.5'
collect2: error: ld returned 1 exit status
makefile:382: recipe for target 'perl' failed
make: *** [perl] Error 1

I don't know if the following can help or not,but I am pasting it anyway:
This is the output of *version-check.sh*:
bash, version 4.3.30(1)-release
version-check.sh: line 3: Linux: command not found
/bin/sh -> /bin/bash
Binutils: (GNU Binutils) 2.25
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.23
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.1.1, API: 1.1
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.9.2
g++ (GCC) 4.9.2
(GNU libc) 2.21
grep (GNU grep) 2.21
gzip 1.6
Linux version 3.2.0-77-generic (buildd at brownie) (gcc version 4.6.3
(Ubuntu/Linaro 4.6.3-1ubuntu5) ) #114-Ubuntu SMP Tue Mar 10 17:26:03 UTC
2015
m4 (GNU M4) 1.4.17
GNU Make 4.1
GNU patch 2.7.4
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
g++ compilation OK

This is the output of *library-check.sh*:
libgmp.la: not found
libmpfr.la: not found
libmpc.la: not found

This is the output of *dummy.c*:
 [Requesting program interpreter: /tools/lib64/ld-linux-x86-64.so.2]

I've a x86-64 system,so I guess this output is correct. I manually checked
where the file:libpthread.so.0 and librt.so. They both are in the same
folder, i.e. /mnt/lfs/tools/lib. I have already tried extracting it again
and compiling it. Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20150325/2c8b09ab/attachment.html>


More information about the lfs-support mailing list