Error building Math::Pari on AIX 7.1

Discussion in 'Perl Misc' started by Michael Wulff, Mar 7, 2012.

  1. Hello,

    I am trying to compile Math::pari in a Perl 5.14.2 environment on AIX
    7.1 TL01 64 Bit using vac compiler v11.1.0.8. After some diffilculties
    I finally managed to compile GP/PARI using the options

    env LD=/usr/ccs/bin/ld ./Configure --static

    and `make gp-sta'

    (See also thread http://pari.math.u-bordeaux.fr/archives/pari-users-1202/msg00017.html
    in pari users list.)

    When buiding Math::pari I first got an error that mpinl.h was not
    found. I could fix this copying this header file into the build
    directory:

    cp /usr/local/include/pari/mpinl.h ../pari-2.5.1/src/headers

    But now I run into the following error:

    xlc_r -q64 -c -I ../../pari-2.5.1/src -I ../../pari-2.5.1/src/
    headers -I ../../pari-2.5.1/src/graph -I . -D_ALL_SOURCE -
    D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -
    DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended -q64 -
    DUSE_64_BIT_ALL -q64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -
    Derr=pari_err -DDYNAMIC_PLOTTING -o polarit1.o ../../pari-2.5.1/src/
    basemath/polarit1.c
    xlc_r -q64 -c -I ../../pari-2.5.1/src -I ../../pari-2.5.1/src/
    headers -I ../../pari-2.5.1/src/graph -I . -D_ALL_SOURCE -
    D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -
    DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended -q64 -
    DUSE_64_BIT_ALL -q64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -
    Derr=pari_err -DDYNAMIC_PLOTTING -o paricfg.o ../../pari-2.5.1/src/
    language/paricfg.c
    "../../pari-2.5.1/src/language/paricfg.c", line 21.31: 1506-221 (S)
    Initializer must be a valid constant expression.
    "../../pari-2.5.1/src/language/paricfg.c", line 22.33: 1506-221 (S)
    Initializer must be a valid constant expression.
    "../../pari-2.5.1/src/language/paricfg.c", line 24.34: 1506-221 (S)
    Initializer must be a valid constant expression.
    make: 1254-004 The error code from the last command is 1.


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


    Stop.


    I get the same error when executing `perl Makefile.PL LIBPARI="-L/lib -
    lpari"'

    Any ideas?

    Here are the outputs from perl Makefile.PL and perl -V:

    # perl Makefile.PL
    Filtered out versions too new...
    Setting up Math::pari with Perl 5.014002 on aix version 7.1.0.0;
    cc=xlc_r -q64, gccversion=, cccdlflags=' ',
    ccflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1
    -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -
    qlanglvl=extended -q64 -DUSE_64_BIT_ALL -q64',
    optimize='-O',
    ld=ld, ldflags='-brtl -bdynamic -b64'.
    Found GP/PARI build directory in ../pari-2.5.1
    (integer-formatted version 2005001).
    ....Generating libPARI/paricfg.h ...
    Scanning header files...
    ....ulong
    ....getrusage
    ....CLK_TCK not defined
    Creating libPARI/paricfg.h...
    sh: gp: not found
    ....Processor of family `port' detected
    Checking if your kit is complete...
    Looks good
    ....Processor of family `port' detected
    ....I will use portable assembler-less build
    ....Assembler is not GNU assembler
    Writing Makefile for Math::pARI::libPARI
    Writing MYMETA.yml
    Writing Makefile for Math::pari
    Writing MYMETA.yml


    # perl -V
    Summary of my perl5 (revision 5 version 14 subversion 2)
    configuration:

    Platform:
    osname=aix, osvers=7.1.0.0, archname=aix-thread-multi-64all
    uname='aix pstest7 1 7 00f6cffd4c00 '
    config_args='-d -Dcc=xlc_r -Duseshrplib -Duse64bitall -
    Dusethreads'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define,
    usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    Compiler:
    cc='xlc_r -q64', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -
    D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -
    DNEED_PTHREAD_INIT -qlanglvl=extended -q64 -DUSE_64_BIT_ALL -q64',
    optimize='-O',
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -
    qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -
    qlanglvl=extended'
    ccversion='11.1.0.8', gccversion='', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
    lseeksize=8
    alignbytes=8, prototype=define
    Linker and Libraries:
    ld='ld', ldflags ='-brtl -bdynamic -b64'
    libpth=/lib /usr/lib /usr/ccs/lib /usr/lib64
    libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc
    perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc
    libc=, so=a, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
    Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -bE:/usr/
    local/lib/perl5/5.14.2/aix-thread-multi-64all/CORE/perl.exp'
    cccdlflags=' ', lddlflags='-b64 -bhalt:4 -G -bI:$(PERL_INC)/
    perl.exp -bE:$(BASEEXT).exp -bnoentry -lpthreads -lc -lm'


    Characteristics of this binary (from libperl):
    Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
    PERL_PRESERVE_IVUV USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS USE_LARGE_FILES USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
    Built under aix
    Compiled at Jan 26 2012 11:11:04
    @INC:
    /usr/local/lib/perl5/site_perl/5.14.2/aix-thread-multi-64all
    /usr/local/lib/perl5/site_perl/5.14.2
    /usr/local/lib/perl5/5.14.2/aix-thread-multi-64all
    /usr/local/lib/perl5/5.14.2
    Michael Wulff, Mar 7, 2012
    #1
    1. Advertising

  2. Michael Wulff <> writes:
    > I am trying to compile Math::pari in a Perl 5.14.2 environment on AIX
    > 7.1 TL01 64 Bit using vac compiler v11.1.0.8. After some diffilculties
    > I finally managed to compile GP/PARI using the options


    [...]

    > I run into the following error:
    >
    > xlc_r -q64 -c -I ../../pari-2.5.1/src -I ../../pari-2.5.1/src/
    > headers -I ../../pari-2.5.1/src/graph -I . -D_ALL_SOURCE -
    > D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -
    > DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended -q64 -
    > DUSE_64_BIT_ALL -q64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -
    > Derr=pari_err -DDYNAMIC_PLOTTING -o polarit1.o ../../pari-2.5.1/src/
    > basemath/polarit1.c
    > xlc_r -q64 -c -I ../../pari-2.5.1/src -I ../../pari-2.5.1/src/
    > headers -I ../../pari-2.5.1/src/graph -I . -D_ALL_SOURCE -
    > D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -
    > DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -qlanglvl=extended -q64 -
    > DUSE_64_BIT_ALL -q64 -O -DVERSION=\"\" -DXS_VERSION=\"\" -
    > Derr=pari_err -DDYNAMIC_PLOTTING -o paricfg.o ../../pari-2.5.1/src/
    > language/paricfg.c
    > "../../pari-2.5.1/src/language/paricfg.c", line 21.31: 1506-221 (S)
    > Initializer must be a valid constant expression.
    > "../../pari-2.5.1/src/language/paricfg.c", line 22.33: 1506-221 (S)
    > Initializer must be a valid constant expression.
    > "../../pari-2.5.1/src/language/paricfg.c", line 24.34: 1506-221 (S)
    > Initializer must be a valid constant expression.


    You will need to have a look at the mentioned lines of this file in
    order to determine what's wrong. As far as the message goes, this
    should be a variable intialization using something the compiler you
    are using does not consider to be a constant (C) expression but
    without knowing that this non-expression happens to be, there's litte
    which can be said to that.
    Rainer Weikusat, Mar 7, 2012
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jussi Mononen

    Math::Pari test fail on Compaq OSF1 5.1b

    Jussi Mononen, Jan 2, 2004, in forum: Perl
    Replies:
    0
    Views:
    689
    Jussi Mononen
    Jan 2, 2004
  2. Haydin

    Install Poblem MATH::Pari

    Haydin, Mar 18, 2005, in forum: Perl
    Replies:
    0
    Views:
    1,415
    Haydin
    Mar 18, 2005
  3. gnu valued customer

    Pari lib with Math-BigInt (win32)

    gnu valued customer, May 24, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    151
    Sisyphus
    May 26, 2004
  4. btna
    Replies:
    2
    Views:
    176
  5. VK
    Replies:
    15
    Views:
    1,155
    Dr J R Stockton
    May 2, 2010
Loading...

Share This Page