develooper Front page | perl.perl5.porters | Postings from June 2010

5.10.1 build fails on AIX 5.3

Thread Next
From:
Bill Kurland
Date:
June 28, 2010 19:02
Subject:
5.10.1 build fails on AIX 5.3
Message ID:
4C295401.7030008@panix.com
Thanks in advance for your time in looking at this. If this is the wrong 
place to post this, please correct me.

I am trying to build 5.10.1  under AIX 5.3. The README.aix says that 
this has been done successfully with gcc 4.2

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

  # gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../configure --with-as=/usr/bin/as 
--with-ld=/usr/bin/ld --enable-languages=c,c++,java 
--prefix=/opt/freeware --enable-threads 
--enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0 
--target=powerpc-ibm-aix5.3.0.0 --build=powerpc-ibm-aix5.3.0.0 
--disable-libjava-multilib
Thread model: aix
gcc version 4.2.0

# gnumake -v
GNU Make 3.80

# oslevel -s
5300-12-01-1016

# lslpp -l |egrep "syscalls|libm"
   bos.adt.libm              5.3.12.0  COMMITTED  Base Application 
Development
   bos.adt.syscalls          5.3.12.0  COMMITTED  System Calls Application


Here is the output from make:

........
Running Makefile.PL in ext/Encode
../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl 
INSTALLMAN1DIR=none INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.a 
LINKTYPE=dynamic
Writing Makefile for Encode::Byte
Writing Makefile for Encode::CN
Writing Makefile for Encode::EBCDIC
Writing Makefile for Encode::JP
Writing Makefile for Encode::KR
Writing Makefile for Encode::Symbol
Writing Makefile for Encode::TW
Writing Makefile for Encode::Unicode
Writing Makefile for Encode
gnumake[1]: Entering directory `/mkcd/cd_images/perl-5.10.1/ext/Encode'
gnumake[1]: Leaving directory `/mkcd/cd_images/perl-5.10.1/ext/Encode'
Making all in ext/Encode
  /usr/local/bin/gnumake all PERL_CORE=1 LIBPERL_A=libperl.a 
LINKTYPE=dynamic
gnumake[1]: Entering directory `/mkcd/cd_images/perl-5.10.1/ext/Encode'
Skip ../../lib/Encode/JP/H2Z.pm (unchanged)
Skip ../../lib/Encode/JP/JIS7.pm (unchanged)
Skip ../../lib/Encode/Alias.pm (unchanged)
Skip ../../lib/Encode/README.e2x (unchanged)
Skip ../../lib/Encode/Unicode/UTF7.pm (unchanged)
Skip ../../lib/Encode/MIME/Header/ISO_2022_JP.pm (unchanged)
Skip ../../lib/Encode/PerlIO.pod (unchanged)
Skip ../../lib/Encode/GSM0338.pm (unchanged)
Skip ../../lib/Encode.pm (unchanged)
Skip ../../lib/Encode/Makefile_PL.e2x (unchanged)
Skip ../../lib/Encode/Changes.e2x (unchanged)
Skip ../../lib/Encode/Encoding.pm (unchanged)
Skip ../../lib/Encode/ConfigLocal_PM.e2x (unchanged)
Skip ../../lib/Encode/encode.h (unchanged)
Skip ../../lib/Encode/KR/2022_KR.pm (unchanged)
Skip ../../lib/encoding.pm (unchanged)
Skip ../../lib/Encode/Guess.pm (unchanged)
Skip ../../lib/Encode/MIME/Name.pm (unchanged)
Skip ../../lib/Encode/_T.e2x (unchanged)
Skip ../../lib/Encode/Supported.pod (unchanged)
Skip ../../lib/Encode/Config.pm (unchanged)
Skip ../../lib/Encode/Encoder.pm (unchanged)
Skip ../../lib/Encode/MIME/Header.pm (unchanged)
Skip ../../lib/Encode/CN/HZ.pm (unchanged)
Skip ../../lib/Encode/_PM.e2x (unchanged)
Skip ../../lib/Encode/CJKConstants.pm (unchanged)
make: Not a recognized flag: w
usage: make [-einqrst] [-k|-S] [-d[A|adg[1|2]mstv]] [-D variable] [-f 
makefile ] [-j [jobs]] [variable=value ...] [target ...]
gnumake[1]: *** [subdirs] Error 2
gnumake[1]: Leaving directory `/mkcd/cd_images/perl-5.10.1/ext/Encode'
Unsuccessful make(ext/Encode): code=512 at make_ext.pl line 360.
gnumake: *** [lib/auto/Encode/Encode.so] Error 25

I am not a C programmer and I don't know much about make at all - I'm 
reading the fine manual now - but I haven't been able to figure out what 
is going wrong. In fact, I am not even sure where it is going wrong. 
SFAICT, the makefile in ext/Encode is being processed with the all: 
target. But I don't see where make is passed the offending 'w' flag. 
And, in fact, according to the online manual I am reading -w is a legit, 
if perhaps superfluous, flag:

`-w'

`--print-directory'
    Print a message containing the working directory both before and
    after executing the makefile. This may be useful for tracking down
    errors from complicated nests of recursive |make| commands. See
    Recursive Use of |make|
    <http://www.gnu.org/software/make/manual/make.html#Recursion>. (In
    practice, you rarely need to specify this option since `make' does
    it for you; see The `--print-directory' Option
    <http://www.gnu.org/software/make/manual/make.html#g_t_002dw-Option>.) 

Is it then gcc that is complaining and not make?

Am I just missing something obvious? Can anyone suggest a path to 
enlightenment?


Bill Kurland
Shakespeare & Co.


Thread Next


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