tech-pkg archive

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

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



Hi,

Once again I'm stuck with my AIX pkgsrc environment. This time it's with lang/perl5. I really appreciate anyone reading on...

I'm using gcc - xlC is too expensive! Also I noticed that the "Toolbox for Linux Applications" is now using gcc for many things including perl5, so I'm back to using gcc-8.3.0 (from the toolbox). For pkgsrc, the -current branch is in play.

Bootstrap works (I did have to patch a couple things but don't want to get into those weeds here) and I needed "-02" in CFLAGS to get past some weird configure issues I posted about here before (https://mail-index.netbsd.org/tech-pkg/2020/06/05/msg023298.html).

Below is a log of the error, "Illegal instruction". I've included an "ldd" of the perl binary that fails to run. The RPM specfile for a supposedly working version - I have not verified that it builds on my system - can be found here: http://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SPECS/perl-5.30.2-1.spec

Any help, hints, suggestions would be great.

--
Louis

gcc -maix64 -c -D_THREAD_SAFE -O2 -D_REENTRANT -I/usr/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -fwrapv -fno-strict-aliasing -pipe -maix64 -DUSE_64_BIT_ALL -D_FORTIFY_SOURCE=2 -Wall -Werror=pointer-arith -Wextra -Wc++-compat -Wwrite-strings -Werror=declaration-after-statement -O2 -D_REENTRANT -I/usr/include -DVERSION=\"1.61\" -DXS_VERSION=\"1.61\" "-I../.." shared.c "../../miniperl" "-I../../lib" -MExtUtils::Mksymlists -e "Mksymlists('NAME'=>\"threads::shared\", 'DLBASE' => 'shared', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
rm -f ../../lib/auto/threads/shared/shared.so
gcc -maix64 -Wl,-R/opt/pkg/lib/perl5/5.32.0/powerpc64-aix-thread-multi-64all/CORE -Wl,-b64 -Wl,-bhalt:4 -Wl,-G -Wl,-bI:../../perl.exp -Wl,-bnoentry -lpthreads -lc -lm -L/usr/lib -Wl,-R/usr/lib -Wl,-R/opt/pkg/lib -Wl,-bE:shared.exp shared.o -o ../../lib/auto/threads/shared/shared.so ld: 0706-027 The -R /opt/pkg/lib/perl5/5.32.0/powerpc64-aix-thread-multi-64all/CORE flag is ignored.
ld: 0706-027 The -R /opt/pkg/lib flag is ignored.
ld: 0706-027 The -R /opt/pkg/lib/perl5/5.32.0/powerpc64-aix-thread-multi-64all/CORE flag is ignored.
ld: 0706-027 The -R /opt/pkg/lib flag is ignored.
chmod 755 ../../lib/auto/threads/shared/shared.so
LIBPATH=/opt/pkg/obj/lang/perl5/work/perl-5.32.0 ./perl -Ilib -I. -f pod/buildtoc -q
Illegal instruction
*** Error code 132

Stop.
bmake: stopped in /opt/pkg/obj/lang/perl5/work/perl-5.32.0
*** Error code 1

Stop.
bmake[1]: stopped in /opt/pkgsrc/lang/perl5
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/lang/perl5


# ldd /opt/pkg/obj/lang/perl5/work/perl-5.32.0/perl
/opt/pkg/obj/lang/perl5/work/perl-5.32.0/perl needs:
         /usr/lib/libc.a(shr_64.o)
         /usr/lib/libpthreads.a(shr_xpg5_64.o)
         /usr/lib/libnsl.a(shr_64.o)
         /opt/pkg/obj/lang/perl5/work/perl-5.32.0/libperl.a(libperl.o)
         /unix
         /usr/lib/libcrypt.a(shr_64.o)
         /usr/lib/libthread.a(shr_64.o)
         /usr/lib/libtli.a(shr_64.o)
         /usr/lib/libC.a(shr3_64.o)
         /usr/lib/libC.a(shr2_64.o)

/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8.3.0/ppc64/libgcc_s.a(shr.o)
         /usr/lib/libbind.a(shr_64.o)
         /usr/lib/libdl.a(shr_64.o)
         /usr/lib/libc.a(pse_64.o)
         /usr/lib/libC.a(shrcore_64.o)
         /usr/lib/libC.a(ansicore_64.o)




Home | Main Index | Thread Index | Old Index