This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: compile Python-2.7rc1 on AIX 5.3 with xlc_r
Type: compile error Stage:
Components: Build Versions: Python 2.7
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: tarek Nosy List: srid, tarek, tgulacsi
Priority: high Keywords:

Created on 2010-06-10 13:57 by tgulacsi, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-2.7rc1-aix5.3.log tgulacsi, 2010-06-10 13:57 compilation log
Messages (3)
msg107460 - (view) Author: Tamás Gulácsi (tgulacsi) Date: 2010-06-10 13:57
I'm trying to compile Python2.7rc1 on AIX 5.3 with the following call:
FW=/home/kobe/kobed/tgulacsi/freeware
CC='xlc_r -q64' CXX='xlC_r -q64' AR='ar -X64' NM='nm -X64' LD='ld -X64' \
LD_LIBRARY_PATH=$FW/lib:$LD_LIBRARY_PATH \
  ./configure -C --without-gcc \
  CFLAGS="-DHAVE_BROKEN_POSIX_SEMAPHORES -I$FW/include" \
  LDFLAGS='-L$FW/lib' \
  ARFLAGS='cru' \
  --prefix=$FW

make

The result is attached, as I see sysconfig.get_config_var doesn't have CONFIG_ARGS set.

Thanks in advance,
Tamás Gulácsi
msg107495 - (view) Author: Sridhar Ratnakumar (srid) Date: 2010-06-10 21:51
FYI, I cannot reproduce this on AIX 5.1:

bash-2.04$ i/bin/python
ActivePython 2.7.0c1.0 (ActiveState Software Inc.) based on
Python 2.7rc1 (r27rc1:81772, Jun  5 2010, 23:20:01) [C] on aix5
Type "help", "copyright", "credits" or "license" for more information.
>>> import sysconfig
>>> sysconfig.get_config_var("CONFIG_ARGS")
"'--prefix=/home/apy/tmp/issue8961/ActivePython-2.7.0c1.0-aix-powerpc64/i' '--without-cxx' '--disable-ipv6' 'CC=xlc_r'"
>>> ^D
bash-2.04$ i/bin/python -m platform
AIX-1-000C763E4C00-powerpc-64bit
msg107526 - (view) Author: Tamás Gulácsi (tgulacsi) Date: 2010-06-11 04:23
srid,

You must be right, but the question is: How can I compile Python-2.7rc1 on AIX 5.3? I'd never said that this is a Python fault...

I downloaded and extracted a fresh tarball, but the result is the same with the given ./configure call. So the problem is with the call: LDFLAGS='$FW/lib' just keeps '$' in it, it should be LDFLAGS="$FW/lib".

Sorry for the false alarm, although the error message was quite far from the cause.

Thanks for everybody,
Tamás Gulácsi

make fails when trying to compile the modules with the freshly linked ./python - I've attached a list of sysconfig._CONFIG_VARS.

Tamás Gulácsi
History
Date User Action Args
2022-04-11 14:57:02adminsetgithub: 53207
2010-06-11 04:23:40tgulacsisettype: compile error
2010-06-11 04:23:24tgulacsisetstatus: open -> closed

messages: + msg107526
2010-06-10 21:51:49sridsetmessages: + msg107495
2010-06-10 15:13:15pitrousetpriority: normal -> high
assignee: tarek

nosy: + tarek
2010-06-10 14:38:36brian.curtinsetnosy: + srid
2010-06-10 13:57:20tgulacsicreate