develooper Front page | perl.perl5.porters | Postings from November 2018

[perl #133596] Perl 5.28.0 fails to compile on AIX

From:
James E Keenan via RT
Date:
November 1, 2018 14:01
Subject:
[perl #133596] Perl 5.28.0 fails to compile on AIX
Message ID:
rt-4.0.24-5680-1541080875-1620.133596-15-0@perl.org
On Tue, 16 Oct 2018 17:02:33 GMT, daniele.silvestre@atos.net wrote:
> Hello,
> 
> I use the same configure flags to build perl 5.28 on AIX  than with
> 5.26.1
> 5.26.1 builds succesfully, 5.28.0 fails.
> 
> Failure occurs in ext/B directory compilation
> with 5.28.0 version , an additional -bE:B.exp is given on the gcc
> command uses to generate B.so
> on AIX, all parameters given as arguments on the gcc command that are
> meaningul for the loader and then passed to ld must be prefixed with "
> -Wl,"
> 
> hints/aix.sh ligne 350 and later
>                 ccflags="`echo $ccflags | sed -e 's@ -b@ -Wl,-b@g'`"
>                 ldflags="`echo ' '$ldflags | sed -e 's@ -b@ -Wl,-
> b@g'`"
>                 lddlflags="`echo ' '$lddlflags | sed -e 's@ -b@ -Wl,-
> b@g'`"
>                 lddlflags="`echo ' '$lddlflags | sed -e 's@ -G @ -Wl,-
> G @g'`"
> correctly modifies [cc/ld/lsdl}flags for the upper level Makefile
> 
> I suppose that seamlessly an additional ext/B/hints/aix.sh has to be
> added to fix/modify the generated ext/B/Makefile
> but I didn't suceed to correctly write it
> 
> Thanks for your help
> 
> 

[snip BUILDING REPORTs]

> 
> ===============perl -V showing flags used on 5.26 version; same flags
> are used with 5.28 failing version==============
> perl -V
> Summary of my perl5 (revision 5 version 26 subversion 1)
> configuration:
> 
> Platform:
>   osname=aix
>   osvers=6.1.0.0
>   archname=ppc-aix-thread-multi-64all
>   uname='aix erato1 1 6 00cab5924c00 powerpc aix '
>   config_args='-des -Dprefix=/opt/freeware -Dversion=5.26.1
> -Dmyhostname=aix60 -Darchname=ppc-aix -Doptimize=-O -Dcc=gcc
> -Dccflags=-maix64 -L/opt/freeware/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/freeware/include -D_LARGE_FILES
> -Dccflags_uselargefiles=-D_LARGE_FILES -Dld=/usr/bin/ld -Dldflags=-
> Wl,-s -Wl,-lpthreads -Wl,-brtl -Wl,-bdynamic -Wl,-b64 -Wl,-
> L/opt/freeware/lib64 -L/opt/freeware/lib -L/usr/lib -Wl,-
> blibpath:/opt/freeware/lib/perl5/5.26.1/ppc-aix-thread-multi-
> 64all/CORE:/opt/freeware/lib64:{_libdir}:/usr/lib:/lib -Duseshrplib
> -Dso=a -Dshrpldflags=-Wl,-H512 -Wl,-T512 -Wl,-bhalt:4 -Wl,-bM:SRE
> -Wl,-bE:perl.exp -Dlddlflags=-Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-
> bI:$(PERL_INC)/perl.exp -Wl,-bE:$(BASEEXT).exp -Wl,-bnoentry
> -lpthreads -Dlibperl=libperl.a -Dinstallprefix=/opt/freeware
> -Dvendorprefix=/opt/freeware -Dsiteprefix=/opt/freeware
> -Dar=/usr/bin/ar -X32_64 -Darflags=-X32_64 -Dnm=/usr/bin/nm -X32_64 -B
> -Dusethreads -Duseithreads -Duselargefiles -Dd_semctl_semun -Di_syslog
> -Dman3ext=3 -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005
> -Uversiononly -Dscriptdir=/opt/freeware/bin -Duse64bitint'

I do not have experience with AIX, so I cannot directly explore your problem.

However, I notice that when you compiled perl-5.26 on this machine, you used a very long list of configuration options.  We should try to rule out the possibility that your inability to compile perl-5.28 might lie somewhere in that long list?

If you try to compile and build perl-5.28 with a simple configuration line like the following, do you succeed?

#####
sh ./Configure -des
#####

Thank you very much.

-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=133596



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About