Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Core Dump while building from source on AIX

by flynn7312 (Acolyte)
on Jul 28, 2022 at 12:05 UTC ( [id://11145798]=perlquestion: print w/replies, xml ) Need Help??

flynn7312 has asked for the wisdom of the Perl Monks concerning the following question:

Hey Monks, While trying to build 5.36.0 on AIX with gcc, i get the follwing exception during "make install"
LIBPATH=/opt/itsv/applperlbin/perl-5.36.0:/opt/itsv/applperlbin/perl-5 +.36.0 ./perl -Ilib -I. -f pod/buildtoc -q gmake: *** [makefile:421: pod/perltoc.pod] Illegal instruction (core d +umped)

as seen, it uses the perl from the sourcetree which seems not ready for this task

compile time output (-V):
root@aixbuildhostng: /opt/itsv/applperlbin/perl-5.36.0 # LIBPATH=/opt/ +itsv/applperlbin/perl-5.36.0:/opt/itsv/applperlbin/perl-5.36.0 ./per +l -Ilib -I. -V Summary of my perl5 (revision 5 version 36 subversion 0) configuration +: Platform: osname=aix osvers=7.1.0.0 archname=ppc-aix-thread-multi-64all uname='aix aixbuildhostng 1 7 00fb1a6d4c00 powerpc aix ' config_args='-des -Dprefix=/opt/itsv/applperlbin/install-5.36.0 -D +version=5.36 -Dmyhostname=uscss-nostromo -Darchname=ppc-aix -Dcf_by=W +eyland Corp -Dcc=gcc -Dccflags=-maix64 -O2 -L/opt/freeware/lib64 -L/u +sr/lib64 -L/opt/freeware/lib -L/usr/lib -D_ALL_SOURCE -D_ANSI_C_SOURC +E -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -I/opt/free +ware/include -Dlddlflags=-G -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).e +xp -bnoentry -lc -lm -L/opt/freeware/lib64 -L/usr/lib64 -L/opt/freewa +re/lib -L/usr/lib -Dldflags=-Wl,-b64 -L/opt/freeware/lib64 -L/usr/lib +64 -L/opt/freeware/lib -L/usr/lib -Wl,-blibpath:/opt/itsv/applperlbin +/install-5.36.0/lib/perl5/5.36/CORE:/opt/freeware/lib/64:/opt/freewar +e/lib:/usr/lib:/lib -Duseshrplib -Dshrpldflags=-H512 -T512 -bhalt:4 - +bM:SRE -bE:perl.exp -Dar=/usr/bin/ar -Dfull_ar=/usr/bin/ar -Darflags= +-X64 -Dnm=/usr/bin/nm -X64 -B -Dinstallprefix=/opt/itsv/applperlbin/i +nstall-5.36.0 -Dvendorprefix=/opt/itsv/applperlbin/install-5.36.0 -Dv +endorlib=/opt/itsv/applperlbin/install-5.36.0/share/perl5/vendor_perl + -Dvendorarch=/opt/itsv/applperlbin/install-5.36.0/lib/perl5/5.36/ven +dor_perl -Dsiteprefix=/opt/itsv/applperlbin/install-5.36.0 -Dsitelib= +/opt/itsv/applperlbin/install-5.36.0/share/perl5/site_perl -Dsitearch +=/opt/itsv/applperlbin/install-5.36.0/lib/perl5/5.36/site_perl -Dpriv +lib=/opt/itsv/applperlbin/install-5.36.0/perl5/5.36 -Darchlib=/opt/it +sv/applperlbin/install-5.36.0/lib/perl5/5.36 -Dusethreads -Duseithrea +ds -Duselargefiles -Dd_semctl_semun -Di_syslog -Dman3ext=3 -Duseperli +o -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dscriptdir=/op +t/itsv/applperlbin/install-5.36.0/bin -Duse64bitint' hint=recommended useposix=true d_sigaction=define useithreads=define usemultiplicity=define use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define Compiler: cc='gcc -maix64' ccflags ='-D_THREAD_SAFE -maix64 -O2 -L/opt/freeware/lib64 -L/usr/ +lib64 -L/opt/freeware/lib -L/usr/lib -D_ALL_SOURCE -D_ANSI_C_SOURCE - +D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -I/opt/freewar +e/include -DNEED_PTHREAD_INIT -fwrapv -maix64 -DUSE_64_BIT_ALL -D_FOR +TIFY_SOURCE=2' optimize='-O' cppflags='-D_THREAD_SAFE -maix64 -O2 -L/opt/freeware/lib64 -L/usr/ +lib64 -L/opt/freeware/lib -L/usr/lib -D_ALL_SOURCE -D_ANSI_C_SOURCE - +D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -I/opt/freewar +e/include -DNEED_PTHREAD_INIT -fwrapv' ccversion='' gccversion='8.3.0' gccosandvers='' intsize=4 longsize=8 ptrsize=8 doublesize=8 byteorder=87654321 doublekind=4 d_longlong=define longlongsize=8 d_longdbl=define longdblsize=8 longdblkind=0 ivtype='long' ivsize=8 nvtype='double' nvsize=8 Off_t='off_t' lseeksize=8 alignbytes=8 prototype=define Linker and Libraries: ld='gcc -maix64' ldflags =' -Wl,-b64 -L/opt/freeware/lib64 -L/usr/lib64 -L/opt/free +ware/lib -L/usr/lib -Wl,-blibpath:/opt/itsv/applperlbin/install-5.36. +0/lib/perl5/5.36/CORE:/opt/freeware/lib/64:/opt/freeware/lib:/usr/lib +:/lib -Wl,-b64' libpth=/opt/freeware/lib /usr/lib /usr/ccs/lib /usr/lib64 libs=-lpthread -lbind -lnsl -lgdbm -ldbm -ldb -ldl -lld -lm -lcryp +t -lpthreads -lc perllibs=-lpthread -lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads - +lc libc=/lib/libc.a so=a useshrplib=true libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_aix.xs dlext=so d_dlsymun=undef ccdlflags='-Xlinker -bE:/opt/itsv/applperlbin/install-5.36.0/lib/p +erl5/5.36/CORE/perl.exp' cccdlflags=' ' lddlflags=' -Wl,-b64 -Wl,-G -Wl,-bI:$(PERL_INC)/perl.exp -Wl,-bE: +$(BASEEXT).exp -Wl,-bnoentry -lpthreads -lc -lm -L/opt/freeware/lib64 + -L/usr/lib64 -L/opt/freeware/lib -L/usr/lib' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP PERL_OP_PARENT PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API USE_THREAD_SAFE_LOCALE Built under aix Compiled at Jul 28 2022 13:48:49 @INC: lib . /opt/itsv/applperlbin/install-5.36.0/lib/perl5/5.36/site_perl /opt/itsv/applperlbin/install-5.36.0/share/perl5/site_perl /opt/itsv/applperlbin/install-5.36.0/lib/perl5/5.36/vendor_perl /opt/itsv/applperlbin/install-5.36.0/share/perl5/vendor_perl /opt/itsv/applperlbin/install-5.36.0/lib/perl5/5.36 /opt/itsv/applperlbin/install-5.36.0/perl5/5.36
when using miniperl instead no exeption occurs
root@aixbuildhostng: /opt/itsv/applperlbin/perl-5.36.0 # LIBPATH=/opt/ +itsv/applperlbin/perl-5.36.0:/opt/itsv/applperlbin/perl-5.36.0 ./min +iperl -Ilib -I. -f pod/buildtoc -q root@aixbuildhostng: /opt/itsv/applperlbin/perl-5.36.0 #
an hints very welcome! chris

Replies are listed 'Best First'.
Re: Core Dump whilybuilding from source an AIX
by syphilis (Archbishop) on Jul 29, 2022 at 02:05 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11145798]
Approved by LanX
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-25 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found