Python 2.4.2 HPUX-PARISC compile issues

B

brian.toal

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?
 
N

Neal Norwitz

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?

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="+DD64"
+ 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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top