Changes between Initial Version and Version 4 of Ticket #61299


Ignore:
Timestamp:
Oct 10, 2020, 8:04:22 AM (4 years ago)
Author:
chrstphrchvz (Christopher Chavez)
Comment:

python39 is affected; python35 and python36 are not affected.

py37-pycryptodome and py38-pycryptodome are additional examples of ports failing to build on 10.6 because of this issue.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #61299

    • Property Port python39 py-cchardet py-pycryptodome py-fann2 added; python36 py-chardet removed
  • Ticket #61299 – Description

    initial v4  
    1 Python 3.x ports build using `-Wno-unused-result`; this argument gets saved in `CFLAGS` and other variables in _sysconfigdata!__darwin_darwin.py, and is used again when building ports for Python modules. On macOS 10.6, Python itself is built using an alternative compiler (e.g. MacPorts' clang 3.7 or clang 9.0) which recognizes `-Wno-unused-result`, but modules (e.g. `py3x-cchardet`) might try to build using a system compiler (e.g. gcc 4.2) which doesn't recognize the option:
     1`python37`, `python38`, and `python39` ports build using `-Wno-unused-result`; this argument gets saved in `CFLAGS` and other variables in _sysconfigdata!__darwin_darwin.py, and is used again when building ports for Python modules. On macOS 10.6, Python itself is built using an alternative compiler (e.g. MacPorts' clang 3.7 or clang 9.0) which recognizes `-Wno-unused-result`, but modules (e.g. `py3x-cchardet`) might try to build using a system compiler (e.g. gcc 4.2) which doesn't recognize the option:
    22{{{
    33/usr/bin/gcc-4.2 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -isysroot/ -Isrc/ext/uchardet/src -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/cchardet/_cchardet.cpp -o build/temp.macosx-10.6-x86_64-3.9/src/cchardet/_cchardet.o
    44cc1plus: error: unrecognized command line option "-Wno-unused-result"
    55}}}
    6 Possibly related to #56458. Possibly present in `python35` or earlier but haven't checked. (I personally am not using macOS 10.6.)
     6Possibly related to #56458. (I personally am not using macOS 10.6.)