Skip to content

Greenlet 2.0.2/3.0.1 installation is failing on AIX 7.2 platform #386

Description

@Chandana2296

Encountered an error when trying to install greenlet 2.0.2/3.0.1 on AIX 7.2 platform with the below error:

command: pip install greenlet==3.01 / pip install greenlet==2.0.2

Error:

/opt/pyenv/versions/3.11.3/lib/python3.11/config-3.11/ld_so_aix /opt/freeware/bin/g++ -pthread -bI:/opt/pyenv/versions/3.11.3/lib/python3.11/config-3.11/python.exp -L/opt/pyenv/versions/3.11.3/lib -maix64 -L/opt/openssl111n/aixpower/lib -L/opt/freeware/lib64 -L/opt/pyenv/versions/3.11.3/lib -maix64 -L/opt/openssl111n/aixpower/lib -L/opt/freeware/lib64 -maix64 -pthread build/temp.aix-7204-9988-64-cpython-311/src/greenlet/tests/_test_extension_cpp.o -L/opt/pyenv/versions/3.11.3/lib -o build/lib.aix-7204-9988-64-cpython-311/greenlet/tests/_test_extension_cpp.cpython-311.so

  ld: 0711-418 ERROR: Import or export file _test_extension_cpp.cpython-311.exp at line 11:
          A symbol name may only be followed by an export attribute
          or an address. The line is being ignored.

  ld: 0711-418 ERROR: Import or export file _test_extension_cpp.cpython-311.exp at line 12:
          A symbol name may only be followed by an export attribute
          or an address. The line is being ignored.

  collect2: error: ld returned 8 exit status
  error: command '/opt/pyenv/versions/3.11.3/lib/python3.11/config-3.11/ld_so_aix' failed with exit code 1
  [end of output]

Environment Details:
OS: AIX 7.2
Python Version: 3.11.3
Exported Flags:

    export CC="/opt/freeware/bin/gcc -fPIC"
    export CXX="/opt/freeware/bin/g++"
    export CFLAGS="-pthread"
    export CXXFLAGS="-std=c++11"
    export LDFLAGS="-maix64 "
    export AR="ar -X64 "

please help me to solve this error..

Also let me know is there any flag which can skip the cpp test extensions like earlier GREENLET_TEST_CPP.

Thanks,
Chandana

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions