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

Hello

I try to compile perl-5.28.2 on AIX 7.1 TL 5 using gcc-8.3.0, I try for 32bit and 64 bit, always same error:

I use Configure with the options:

For 64 bit:

export OBJECT_MODE=64

./Configure -d -Dcc='gcc -maix64 -L/opt/freeware/lib64' -Duseshrplib -Dusethreads -Dprefix=/usr/opt/perl5_64

For 32 bit:

./Configure -d -Dcc='gcc' -Duseshrplib -Dusethreads -Dprefix=/usr/opt/perl5_32

When execute make I see the next error

For 32 bit

gcc -maix32 -Wl,-bhalt:4 -Wl,-G -Wl,-bI:../../perl.exp -Wl,-bnoentry -lc -lm -bE:B.exp B.o -o ../../lib/auto/B/B.so

gcc: error: unrecognized command line option '-bE:B.exp'

make: 1254-004 The error code from the last command is 1.

Stop.

/tmp/test/perl-5.28.2/ext/B/../../miniperl "-I../../lib" -MExtUtils::Command::MM -e 'cp_nonempty' -- B.bs ../../lib/auto/B/B.bs 644

rm -f ../../lib/auto/B/B.so

gcc -maix32 -Wl,-bhalt:4 -Wl,-G -Wl,-bI:../../perl.exp -Wl,-bnoentry -lc -lm -bE:B.exp B.o -o ../../lib/auto/B/B.so

gcc: error: unrecognized command line option '-bE:B.exp'

make: 1254-004 The error code from the last command is 1.

Stop.

Unsuccessful make(ext/B): code=512 at make_ext.pl line 570.

make: 1254-004 The error code from the last command is 25.

Stop.

Regards

Replies are listed 'Best First'.
Re: Error Compile perl on AIX 7.1
by syphilis (Archbishop) on Feb 02, 2020 at 23:52 UTC
    If you don't get an answer here, try the perl5 porters list.

    Are you doing the 32-bit build with OBJECT_MODE=64 environment setting ? (According to the perl source's README.aix, that would be wrong.)
    I take it that the 64-bit build is fine ?

    Cheers,
    Rob
      No, firts try un 32 bit without option, next try in 64 bit with the option OBJECT_MODE=6.
        I believe this will help:
        https://rt.cpan.org/Public/Bug/Display.html?id=128004

        It's a bug in lib/ExtUtils/MM_aix.pm
        If you make the alteration to lib/ExtUtils/MM_aix.pm as specified there, you should be successful.
        Another option would be to build perl-5.30.0 or later.

        Cheers,
        Rob