Python 2.4.2 HPUX-PARISC compile issues

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • brian.toal@gmail.com

    #1

    Python 2.4.2 HPUX-PARISC compile issues

    When compiling HPUX for PARISC with the following environemnt variables
    I get the following errors.

    CFLAGS=+DD64 -fast
    CC=aCC
    LDFLAGS=+DD64


    $ make
    aCC -Ae -DD64 -c -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -o
    Modules/python.o Modules/python.c
    Error 119: "./Include/pyport.h", line 612 # #error "LONG_BIT definition
    appears wrong for platform (bad gcc/glibc config?)."
    #error "LONG_BIT definition appears wrong for platform (bad gcc/g
    ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^
    make: *** [Modules/python.o] Error 2


    What do I need to do in order to get this to compile?

  • Neal  Norwitz

    #2
    Re: Python 2.4.2 HPUX-PARISC compile issues

    brian.toal@gmai l.com wrote:[color=blue]
    > When compiling HPUX for PARISC with the following environemnt variables
    > I get the following errors.
    >
    > CFLAGS=+DD64 -fast
    > CC=aCC
    > LDFLAGS=+DD64
    >
    > What do I need to do in order to get this to compile?[/color]

    This info should be in the README file for 2.4.2:

    + To build a 64-bit executable on an Itanium 2 system using HP's
    + compiler, use these environment variables:
    +
    + CC=cc
    + CXX=aCC
    + BASECFLAGS="+DD 64"
    + LDFLAGS="+DD64 -lxnet"
    +
    + and call configure as:
    +
    + ./configure --without-gcc

    Did you do that?

    If so, you will probably have to track this down. LONG_BIT is supposed
    to be there according to POSIX AFAIK. It would mean the wrong header
    file wasn't included (unlikely) or that some #define prevented it from
    being defined (more likely).

    Good luck,
    n

    Comment

    Working...