compiling perl - SGI

This is a discussion on compiling perl - SGI ; I'm trying to compile perl 5.8.8. I've unpacked the sources and run Configure, but make eventually complains about a parse error. I'm running 6.5.22m, (trying) to use SGI's fw_gcc 3.3, and I have the following components (output from versions): I ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: compiling perl

  1. compiling perl

    I'm trying to compile perl 5.8.8. I've unpacked the sources and run
    Configure, but make eventually complains about a parse error.

    I'm running 6.5.22m, (trying) to use SGI's fw_gcc 3.3, and I have the
    following components (output from versions):

    I compiler_dev 09/18/2006 Base Compiler Development
    Environment, 7.2.1
    I compiler_eoe 01/25/2007 IRIX Standard Execution Environment
    (Base Compiler Headers and Libraries, 7.4.1m)

    jpg@:/usr/local/dist/src/perl-5.8.8 (13) $ gcc -v
    Reading specs from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.3/specs
    Configured with: ../configure --prefix=/usr/freeware
    --enable-version-specific-runtime-libs --disable-shared
    --enable-threads
    --enable-haifa --enable-libgcj --disable-c-mbchar
    Thread model: single
    gcc version 3.3

    The parse error:
    `sh cflags "optimize='-O3'" dump.o` dump.c
    CCCMD = gcc -DPERL_CORE -c -D_BSD_TYPES -D_BSD_TIME
    -DIRIX32_SEMUN_BROKEN_BY_GCC -fno-strict-aliasing -I/u
    sr/local/include -DLANGUAGE_C -O3 -Wall
    `sh cflags "optimize='-O3'" util.o` util.c
    CCCMD = gcc -DPERL_CORE -c
    -D_BSD_TYPES -D_BSD_TIME -DIRIX32_SEMUN_BROKEN_BY_GCC -fno-st
    rict-aliasing -I/usr/local/include -DLANGUAGE_C -O3 -Wall
    In file included from /usr/include/sys/wait.h:153,
    from util.c:39:
    /usr/include/sys/resource.h:211: error: parse error
    before "jid_t"
    /usr/include/sys/resource.h:218: error: parse error
    before '}' token
    /usr/include/sys/resource.h:288: error: parse error
    before "getjid"
    /usr/include/sys/resource.h:289: error: parse error
    before "int"
    /usr/include/sys/resource.h:290: error: parse error
    before "int"
    /usr/include/sys/resource.h:291: error: parse error
    before "int"
    /usr/include/sys/resource.h:292: error: parse error
    before "jlimit_startjob"
    /usr/include/sys/resource.h:293: error: parse error
    before "int"
    /usr/include/sys/resource.h:294: error: parse error
    before "makenewjob"
    /usr/include/sys/resource.h:294: error: parse error
    before "uid_t"
    /usr/include/sys/resource.h:295: error: parse error
    before "int"
    /usr/include/sys/resource.h:296: error: parse error
    before "pid_t"
    /usr/include/sys/resource.h:297: error: parse error
    before "waitjob"
    /usr/include/sys/resource.h:297: error: parse error
    before '*' token
    util.c: In function `Perl_my_popen_list':
    util.c:2061: warning: implicit declaration of function
    `fcntl'
    util.c: In function `Perl_seed':
    util.c:4584: warning: implicit declaration of function
    `open'
    *** Error code 1 (bu21)


    I can compile simpler programs fine; gcc works. I've taken a look at
    resource.h; it looks fine to me. There's a typedef directly above that
    section and it's declared correctly.
    Anyone care to guess about this?

    I'm going this route because I do compile XS modules locally, and I'm
    led to believe I cannot compile XS modules with gcc and expect them to
    work with nekoware's MIPSpro-compiled perl. If anyone knows otherwise,
    I'd be happy to hear about it.
    Thanks!

    --
    jpg

  2. Re: compiling perl

    j schrieb:
    > I'm trying to compile perl 5.8.8. I've unpacked the sources and run
    > Configure, but make eventually complains about a parse error.

    [..]

    Be sure that you use GNU make and not the make which comes with the IRIX
    OS. The relnote files of nekoware neko_perl contains some hints,
    especially when you use mips pro instead gcc.


    regards
    Joerg

    --
    TakeNet GmbH, Geschaeftsfuehrer Wolfgang Meier
    97080 Wuerzburg Tel: +49 931 903-2243
    Alfred-Nobel-Straße 20 Fax: +49 931 903-3025
    HRB Wuerzburg 6940 http://www.takenet.de

  3. Re: compiling perl

    In article <54dognF1so3ceU1@mid.individual.net>, Joerg Behrens
    wrote:

    > j schrieb:
    > > I'm trying to compile perl 5.8.8. I've unpacked the sources and run
    > > Configure, but make eventually complains about a parse error.

    > [..]
    >
    > Be sure that you use GNU make and not the make which comes with the IRIX
    > OS. The relnote files of nekoware neko_perl contains some hints,
    > especially when you use mips pro instead gcc.
    >
    >

    I installed fw_gmake 3.80, and I got the same output.
    I thought I was clear in my first post. I don't have a license and can't
    compile with the MIPSpro compiler. I'm not sure whether I can use
    nekoware's perl either.

    Thanks anyway. I'll take a look at their release notes.

    --
    jpg

  4. Re: compiling perl

    >>>>> "jgarvin" == j writes:

    jgarvin> The parse error:
    jgarvin> `sh cflags "optimize='-O3'" dump.o` dump.c
    jgarvin> CCCMD = gcc -DPERL_CORE -c -D_BSD_TYPES -D_BSD_TIME
    jgarvin> -DIRIX32_SEMUN_BROKEN_BY_GCC -fno-strict-aliasing -I/u
    jgarvin> sr/local/include -DLANGUAGE_C -O3 -Wall
    jgarvin> `sh cflags "optimize='-O3'" util.o` util.c
    jgarvin> CCCMD = gcc -DPERL_CORE -c
    jgarvin> -D_BSD_TYPES -D_BSD_TIME -DIRIX32_SEMUN_BROKEN_BY_GCC -fno-st
    jgarvin> rict-aliasing -I/usr/local/include -DLANGUAGE_C -O3 -Wall
    jgarvin> In file included from /usr/include/sys/wait.h:153,
    jgarvin> from util.c:39:
    jgarvin> /usr/include/sys/resource.h:211: error: parse error
    jgarvin> before "jid_t"

    It sounds like you're missing some headers - jid_t is defined in
    /usr/include/sys/types.h. If you've got that file, then it means that
    you'll need to hack the file you're trying to compile to include the
    right stuff.

    max

+ Reply to Thread