tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lang/perl5 from -current fails to build on AIX 7.1



On 9/17/20 7:53 PM, Louis Guillaume wrote:
On 9/17/20 6:24 PM, Joerg Sonnenberger wrote:
On Thu, Sep 17, 2020 at 09:04:09AM -0400, Louis Guillaume wrote:
Once again I'm stuck with my AIX pkgsrc environment. This time it's with
lang/perl5. I really appreciate anyone reading on...

Do you have a coredump?

Joerg


I do! Thanks for the hint. Below is what gdb says. I guess here's the problem: I don't know if perl is looking for the wrong symbol name or if the symbol we're looking for isn't here (and should be).

--
Louis


# ar tv /usr/lib/libdl.a
rwxr-x---   300/300      646 Jun 26 19:24 2010 shr.o

But we're looking for shr_64.o


# pwd
/opt/pkg/obj/lang/perl5/work/perl-5.32.0
# gdb ./perl core
GNU gdb (GDB) 8.1.1

.....

Reading symbols from ./perl...done.

warning: core file may not match specified executable file.
BFD: BFD (GNU Binutils) 2.29.51 assertion fail format.c:453

warning: "/usr/lib/libdl.a": member "shr_64.o" missing.
BFD: BFD (GNU Binutils) 2.29.51 assertion fail format.c:453

warning: "/usr/lib/libbind.a": member "shr_64.o" missing.

warning: Could not load shared library symbols for 2 libraries, e.g. /usr/lib/libdl.a(shr_64.o).
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
[New Thread 1]
Core was generated by `perl'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x0000000000000000 in ?? ()

(gdb) info sharedlibrary
From                To                  Syms Read   Shared Object Library
0x09fffffff0001000  0x09fffffff000fa7e  Yes (*)     /usr/ccs/bin/usla64
0x090000000eea3240  0x090000000eea6f44  Yes         lib/auto/Cwd/Cwd.so
0x0900000010aff000  0x0900000010b36ce0  Yes (*) /usr/lib/libC.a(ansicore_64.o) 0x09000000105abe00  0x0900000010611715  Yes (*) /usr/lib/libC.a(shrcore_64.o)
0x0900000000473680  0x0900000000473e46  Yes (*) /usr/lib/libc.a(pse_64.o)
                                         No /usr/lib/libdl.a(shr_64.o)
                                         No /usr/lib/libbind.a(shr_64.o)
0x0900000010ae69f0  0x0900000010afd939  Yes /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8.3.0/ppc64/libgcc_s.a(shr.o)
0x090000000104f818  0x090000000105006c  Yes (*) /usr/lib/libC.a(shr2_64.o)
0x090000000339a9f8  0x090000000339b233  Yes (*) /usr/lib/libC.a(shr3_64.o)
0x0900000000c7d200  0x0900000000c8767e  Yes (*) /usr/lib/libtli.a(shr_64.o)
0x09000000004de580  0x09000000004e2deb  Yes (*) /usr/lib/libthread.a(shr_64.o) 0x0900000000470600  0x0900000000470f43  Yes (*) /usr/lib/libcrypt.a(shr_64.o) 0x0900000014960300  0x0900000014d0f12c  Yes (*) /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o)
0x090000000235cd80  0x09000000023fe10c  Yes (*) /usr/lib/libnsl.a(shr_64.o)
0x090000000051a200  0x090000000055cc17  Yes (*) /usr/lib/libpthreads.a(shr_xpg5_64.o)
0x0900000000000780  0x090000000044acff  Yes (*) /usr/lib/libc.a(shr_64.o)
(*): Shared library is missing debugging information.
(gdb)


Here's some more detail. The problem actually seems to be in "lib/auto/Cwd/Cwd.so".

(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x090000000eea5948 in boot_Cwd () from lib/auto/Cwd/Cwd.so
#2 0x0900000014ab96e4 in Perl_pp_entersub () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #3 0x0900000014b1c4dc in Perl_runops_standard () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #4 0x0900000014a672bc in Perl_call_sv () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #5 0x0900000014a6a68c in Perl_call_list () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #6 0x09000000149e7784 in S_process_special_blocks.isra.22 () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #7 0x0900000014a0aedc in Perl_newATTRSUB_x () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #8 0x0900000014a0edf4 in Perl_utilize () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #9 0x0900000014a888b0 in Perl_yyparse () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #10 0x0900000014a73aec in S_doeval_compile () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #11 0x0900000014a75368 in Perl_pp_require () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #12 0x0900000014b1c4dc in Perl_runops_standard () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #13 0x0900000014a672bc in Perl_call_sv () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #14 0x0900000014a6a68c in Perl_call_list () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #15 0x09000000149e7784 in S_process_special_blocks.isra.22 () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #16 0x0900000014a0aedc in Perl_newATTRSUB_x () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #17 0x0900000014a0edf4 in Perl_utilize () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #18 0x0900000014a888b0 in Perl_yyparse () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o) #19 0x0900000014a6fe98 in perl_parse () from /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o)
#20 0x00000001000005c8 in main ()


# ldd lib/auto/Cwd/Cwd.so
lib/auto/Cwd/Cwd.so needs:
         /usr/lib/libc.a(shr_64.o)
         /unix
         /usr/lib/libcrypt.a(shr_64.o)
# ar tv /usr/lib/libc.a shr_64.o
ar: 0707-109 Member name shr_64.o does not exist.
# ar tv /usr/lib/libcrypt.a shr_64.o
ar: 0707-109 Member name shr_64.o does not exist.



Home | Main Index | Thread Index | Old Index