Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HP aCC complains about invalid -fPIC on HP-UX #78630

Closed
michael-o mannequin opened this issue Aug 21, 2018 · 2 comments
Closed

HP aCC complains about invalid -fPIC on HP-UX #78630

michael-o mannequin opened this issue Aug 21, 2018 · 2 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes build The build process and cross-build type-bug An unexpected behavior, bug, or error

Comments

@michael-o
Copy link
Mannequin

michael-o mannequin commented Aug 21, 2018

BPO 34449
Nosy @michael-o
PRs
  • bpo-34449: HP aCC complains about invalid -fPIC on HP-UX #8847
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2018-08-21.09:06:55.274>
    labels = ['3.8', 'type-bug', '3.7', 'build']
    title = 'HP aCC complains about invalid -fPIC on HP-UX'
    updated_at = <Date 2018-08-21.09:13:41.938>
    user = 'https://github.com/michael-o'

    bugs.python.org fields:

    activity = <Date 2018-08-21.09:13:41.938>
    actor = 'michael-o'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Build']
    creation = <Date 2018-08-21.09:06:55.274>
    creator = 'michael-o'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34449
    keywords = ['patch']
    message_count = 1.0
    messages = ['323827']
    nosy_count = 1.0
    nosy_names = ['michael-o']
    pr_nums = ['8847']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue34449'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    @michael-o
    Copy link
    Mannequin Author

    michael-o mannequin commented Aug 21, 2018

    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.

    @michael-o michael-o mannequin added 3.7 (EOL) end of life 3.8 only security fixes build The build process and cross-build type-bug An unexpected behavior, bug, or error labels Aug 21, 2018
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    erlend-aasland pushed a commit that referenced this issue May 19, 2022
    At compile time, '+z' is already properly used with HP aCC, and shared
    libraries are correctly linked with '+b'. The '-fPIC' switch can safely be
    dropped.
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 19, 2022
    …ythonGH-8847)
    
    At compile time, '+z' is already properly used with HP aCC, and shared
    libraries are correctly linked with '+b'. The '-fPIC' switch can safely be
    dropped.
    (cherry picked from commit 09be18a)
    
    Co-authored-by: Michael Osipov <michael.osipov@siemens.com>
    miss-islington added a commit that referenced this issue May 19, 2022
    At compile time, '+z' is already properly used with HP aCC, and shared
    libraries are correctly linked with '+b'. The '-fPIC' switch can safely be
    dropped.
    (cherry picked from commit 09be18a)
    
    Co-authored-by: Michael Osipov <michael.osipov@siemens.com>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 only security fixes build The build process and cross-build type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant