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: HP aCC complains about invalid -fPIC on HP-UX
Type: behavior Stage: patch review
Components: Build Versions: Python 3.8, Python 3.7, Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: michael-o
Priority: normal Keywords: patch

Created on 2018-08-21 09:06 by michael-o, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 8847 open michael-o, 2018-08-21 09:13
Messages (1)
msg323827 - (view) Author: Michael Osipov (michael-o) * Date: 2018-08-21 09:06
The compiler (HP aCC) says:

> /opt/aCC/bin/cc -Ae -b -L/usr/local/lib/hpux32 build/temp.hp-ux-B.11.31-ia64-3.8-pydebug/var/osipovmi/cpython/Modules/_ctypes/_ctypes.o build/temp.hp-ux-B.11.31-ia64-3.8-pydebug/var/osipovmi/cpython/Modules/_ctypes/callbacks.o build/temp.hp-ux-B.11.31-ia64-3.8-pydebug/var/osipovmi/cpython/Modules/_ctypes/callproc.o build/temp.hp-ux-B.11.31-ia64-3.8-pydebug/var/osipovmi/cpython/Modules/_ctypes/stgdict.o build/temp.hp-ux-B.11.31-ia64-3.8-pydebug/var/osipovmi/cpython/Modules/_ctypes/cfield.o -L/usr/local/lib/hpux64 -L/usr/lib/hpux32 -L/usr/lib/hpux64 -L/usr/lib -L/lib -L/usr/local/lib/hpux32 -L/usr/local/lib -lffi -ldl -o build/lib.hp-ux-B.11.31-ia64-3.8-pydebug/_ctypes.so -fPIC
> cc: warning 901: unknown option: `-fPIC': use +help for online documentation.

On clang or GCC this is a compile time option, never a link option. For HP aCC objects must be compiled with +z -- which actually happens -- and linked with +b to a shared library -- which also happens here --. One can safely drop this switch from setup.py.
History
Date User Action Args
2022-04-11 14:59:04adminsetgithub: 78630
2018-08-21 09:13:41michael-osetkeywords: + patch
stage: patch review
pull_requests: + pull_request8319
2018-08-21 09:06:55michael-ocreate