LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Errors with 6.40 Perl-5.28.0 (https://www.linuxquestions.org/questions/linux-from-scratch-13/errors-with-6-40-perl-5-28-0-a-4175642138/)

matty_r 11-11-2018 12:38 AM

Errors with 6.40 Perl-5.28.0
 
G'day all,

Hoping I can get some help, i'm not sure if this is something I can ignore but I'm receiving the following when running
Code:

make -k test
for Section 6.40 Perl5.28.0

Code:

makefile:584: target 'lib/auto/Encode/Byte/Byte.a' given more than once in the same rule                                                                                 
makefile:584: target 'lib/auto/Encode/CN/CN.a' given more than once in the same rule
makefile:584: target 'lib/auto/Encode/EBCDIC/EBCDIC.a' given more than once in the same rule
makefile:584: target 'lib/auto/Encode/JP/JP.a' given more than once in the same rule
makefile:584: target 'lib/auto/Encode/KR/KR.a' given more than once in the same rule
makefile:584: target 'lib/auto/Encode/Symbol/Symbol.a' given more than once in the same rule
makefile:584: target 'lib/auto/Encode/TW/TW.a' given more than once in the same rule
makefile:584: target 'lib/auto/Encode/Unicode/Unicode.a' given more than once in the same rule
cc -fstack-protector-strong -o miniperl \
    opmini.o perlmini.o  gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.
o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o dquote.o time64.o  minip
erlmain.o  -lm /tools/lib/libcrypt.a
/usr/bin/ld: opmini.o: in function `Perl_op_sibling_splice':
opmini.c:(.text+0x5aaf): undefined reference to `pthread_getspecific'
/usr/bin/ld: opmini.o: in function `Perl_load_module_nocontext':
opmini.c:(.text+0x1f9e4): undefined reference to `pthread_getspecific'
/usr/bin/ld: perlmini.o: in function `perl_alloc':
perlmini.c:(.text+0x652): undefined reference to `pthread_setspecific'
/usr/bin/ld: perlmini.c:(.text+0x67f): undefined reference to `pthread_key_create'
/usr/bin/ld: perlmini.c:(.text+0x695): undefined reference to `pthread_setspecific'
/usr/bin/ld: perlmini.o: in function `perl_fini':
perlmini.c:(.text.exit+0x1c): undefined reference to `pthread_key_delete'
/usr/bin/ld: mg.o: in function `Perl_csighandler':
mg.c:(.text+0x249b): undefined reference to `pthread_getspecific'
/usr/bin/ld: mg.o: in function `Perl_sighandler':
mg.c:(.text+0x66fa): undefined reference to `pthread_getspecific'
/usr/bin/ld: pp_hot.o: in function `Perl_croak_caller':
pp_hot.c:(.text+0xa607): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `S_croak_overflow':
sv.c:(.text+0x368): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `Perl_clone_params_del':
sv.c:(.text+0x3582): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.c:(.text+0x3598): undefined reference to `pthread_setspecific'
/usr/bin/ld: sv.c:(.text+0x35de): undefined reference to `pthread_setspecific'
/usr/bin/ld: sv.o: in function `Perl_sv_catpvf_nocontext':
sv.c:(.text+0x7f27): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `Perl_sv_catpvf_mg_nocontext':
sv.c:(.text+0x8027): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `Perl_newSVpvf_nocontext':
sv.c:(.text+0x8486): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `Perl_clone_params_new':
sv.c:(.text+0xc407): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.c:(.text+0xc41d): undefined reference to `pthread_setspecific'
/usr/bin/ld: sv.c:(.text+0xc478): undefined reference to `pthread_setspecific'
/usr/bin/ld: sv.o: in function `perl_clone':
sv.c:(.text+0x182e2): undefined reference to `pthread_setspecific'
/usr/bin/ld: sv.o: in function `Perl_sv_setpvf_nocontext':
sv.c:(.text+0x1b7a5): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `Perl_sv_setpvf_mg_nocontext':
sv.c:(.text+0x1b995): undefined reference to `pthread_getspecific'
/usr/bin/ld: pp.o: in function `S_find_runcv_name':
pp.c:(.text+0x97b): undefined reference to `pthread_getspecific'
/usr/bin/ld: universal.o: in function `Perl_croak_xs_usage':
universal.c:(.text+0x1399): undefined reference to `pthread_getspecific'
/usr/bin/ld: locale.o: in function `S_emulate_setlocale':
locale.c:(.text+0x20): undefined reference to `pthread_getspecific'
/usr/bin/ld: locale.o:locale.c:(.text+0x865): more undefined references to `pthread_getspecific' follow
/usr/bin/ld: util.o: in function `Perl_set_context':
util.c:(.text+0x395e): undefined reference to `pthread_setspecific'
/usr/bin/ld: util.o: in function `Perl_xs_handshake':
util.c:(.text+0x6edc): undefined reference to `pthread_getspecific'
/usr/bin/ld: util.o: in function `Perl_get_context':
util.c:(.text+0x3947): undefined reference to `pthread_getspecific'
/usr/bin/ld: reentr.o: in function `Perl_reentrant_retry':
reentr.c:(.text+0x5b): undefined reference to `pthread_getspecific'
/usr/bin/ld: perlio.o: in function `PerlIO_debug':
perlio.c:(.text+0x93b): undefined reference to `pthread_getspecific'
/usr/bin/ld: perlio.o: in function `PerlIOUnix_refcnt_inc':
perlio.c:(.text+0x44c3): undefined reference to `pthread_getspecific'
/usr/bin/ld: perlio.o:perlio.c:(.text+0x4ecd): more undefined references to `pthread_getspecific' follow
collect2: error: ld returned 1 exit status
make: *** [makefile:363: lib/buildcustomize.pl] Error 1
cc -c -DPERL_CORE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=c89 -O2 -Wall -Werror=declaration-after-stat
ement -Werror=pointer-arith -Wextra -Wc++-compat -Wwrite-strings op.c
op.c: In function 'S_fold_constants':
op.c:5469:34: warning: argument 'o' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 S_fold_constants(pTHX_ OP *const o)
                        ~~~~~~~~~~^
make: Target 'test' not remade because of errors.

Then if I try
Code:

make install
Code:

makefile:584: target 'lib/auto/Encode/Byte/Byte.a' given more than once in the same rule                                                                                 
makefile:584: target 'lib/auto/Encode/CN/CN.a' given more than once in the same rule                                                                                     
makefile:584: target 'lib/auto/Encode/EBCDIC/EBCDIC.a' given more than once in the same rule                                                                             
makefile:584: target 'lib/auto/Encode/JP/JP.a' given more than once in the same rule
makefile:584: target 'lib/auto/Encode/KR/KR.a' given more than once in the same rule
makefile:584: target 'lib/auto/Encode/Symbol/Symbol.a' given more than once in the same rule
makefile:584: target 'lib/auto/Encode/TW/TW.a' given more than once in the same rule
makefile:584: target 'lib/auto/Encode/Unicode/Unicode.a' given more than once in the same rule
cc -fstack-protector-strong -o miniperl \
    opmini.o perlmini.o  gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.
o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o dquote.o time64.o  minip
erlmain.o  -lm /tools/lib/libcrypt.a
/usr/bin/ld: opmini.o: in function `Perl_op_sibling_splice':
opmini.c:(.text+0x5aaf): undefined reference to `pthread_getspecific'
/usr/bin/ld: opmini.o: in function `Perl_load_module_nocontext':
opmini.c:(.text+0x1f9e4): undefined reference to `pthread_getspecific'
/usr/bin/ld: perlmini.o: in function `perl_alloc':
perlmini.c:(.text+0x652): undefined reference to `pthread_setspecific'
/usr/bin/ld: perlmini.c:(.text+0x67f): undefined reference to `pthread_key_create'
/usr/bin/ld: perlmini.c:(.text+0x695): undefined reference to `pthread_setspecific'
/usr/bin/ld: perlmini.o: in function `perl_fini':
perlmini.c:(.text.exit+0x1c): undefined reference to `pthread_key_delete'
/usr/bin/ld: mg.o: in function `Perl_csighandler':
mg.c:(.text+0x249b): undefined reference to `pthread_getspecific'
/usr/bin/ld: mg.o: in function `Perl_sighandler':
mg.c:(.text+0x66fa): undefined reference to `pthread_getspecific'
/usr/bin/ld: pp_hot.o: in function `Perl_croak_caller':
pp_hot.c:(.text+0xa607): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `S_croak_overflow':
sv.c:(.text+0x368): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `Perl_clone_params_del':
sv.c:(.text+0x3582): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.c:(.text+0x3598): undefined reference to `pthread_setspecific'
/usr/bin/ld: sv.c:(.text+0x35de): undefined reference to `pthread_setspecific'
/usr/bin/ld: sv.o: in function `Perl_sv_catpvf_nocontext':
sv.c:(.text+0x7f27): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `Perl_sv_catpvf_mg_nocontext':
sv.c:(.text+0x8027): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `Perl_newSVpvf_nocontext':
sv.c:(.text+0x8486): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `Perl_clone_params_new':
sv.c:(.text+0xc407): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.c:(.text+0xc41d): undefined reference to `pthread_setspecific'
/usr/bin/ld: sv.c:(.text+0xc478): undefined reference to `pthread_setspecific'
/usr/bin/ld: sv.o: in function `perl_clone':
sv.c:(.text+0x182e2): undefined reference to `pthread_setspecific'
/usr/bin/ld: sv.o: in function `Perl_sv_setpvf_nocontext':
sv.c:(.text+0x1b7a5): undefined reference to `pthread_getspecific'
/usr/bin/ld: sv.o: in function `Perl_sv_setpvf_mg_nocontext':
sv.c:(.text+0x1b995): undefined reference to `pthread_getspecific'
/usr/bin/ld: pp.o: in function `S_find_runcv_name':
pp.c:(.text+0x97b): undefined reference to `pthread_getspecific'
/usr/bin/ld: universal.o: in function `Perl_croak_xs_usage':
universal.c:(.text+0x1399): undefined reference to `pthread_getspecific'
/usr/bin/ld: locale.o: in function `S_emulate_setlocale':
locale.c:(.text+0x20): undefined reference to `pthread_getspecific'
/usr/bin/ld: locale.o:locale.c:(.text+0x865): more undefined references to `pthread_getspecific' follow
/usr/bin/ld: util.o: in function `Perl_set_context':
util.c:(.text+0x395e): undefined reference to `pthread_setspecific'
/usr/bin/ld: util.o: in function `Perl_xs_handshake':
util.c:(.text+0x6edc): undefined reference to `pthread_getspecific'
/usr/bin/ld: util.o: in function `Perl_get_context':
util.c:(.text+0x3947): undefined reference to `pthread_getspecific'
/usr/bin/ld: reentr.o: in function `Perl_reentrant_retry':
reentr.c:(.text+0x5b): undefined reference to `pthread_getspecific'
/usr/bin/ld: perlio.o: in function `PerlIO_debug':
perlio.c:(.text+0x93b): undefined reference to `pthread_getspecific'
/usr/bin/ld: perlio.o: in function `PerlIOUnix_refcnt_inc':
perlio.c:(.text+0x44c3): undefined reference to `pthread_getspecific'
/usr/bin/ld: perlio.o:perlio.c:(.text+0x4ecd): more undefined references to `pthread_getspecific' follow
collect2: error: ld returned 1 exit status


matty_r 11-11-2018 09:32 PM

I believe it's due to not having deleted the extracted Perl-5.28.0 directory after Chapter 5. I'm restarting the full build again.


All times are GMT -5. The time now is 12:37 PM.