Skip to content

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

Description

@michael-o
mannequin
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']

    Activity

    1. michael-o commented on Aug 21, 2018

      michael-omannequin
      MannequinAuthor

      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.

    2. added
      buildThe build process and cross-build
      type-bugAn unexpected behavior, bug, or error
      on Aug 21, 2018
    3. transferred this issue fromon Apr 10, 2022
    4. added a commit that references this issue on May 19, 2022
    5. added a commit that references this issue on May 19, 2022
    6. added a commit that references this issue on May 19, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of lifebuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions