Bug 220335 - [PATCH] lang/python35: "cc: error: unsupported option '-print-multi-os-directory'"
Summary: [PATCH] lang/python35: "cc: error: unsupported option '-print-multi-os-direct...
Status: Closed DUPLICATE of bug 220332
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-python (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-06-28 12:40 UTC by Ivan Rozhuk
Modified: 2017-08-28 04:26 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (python)


Attachments
fix "cc: error: unsupported option '-print-multi-os-directory'" (790 bytes, patch)
2017-06-28 12:40 UTC, Ivan Rozhuk
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2017-06-28 12:40:07 UTC
Created attachment 183886 [details]
fix "cc: error: unsupported option '-print-multi-os-directory'"

If option UNSET: LIBFFI    Use libffi from ports instead of bundled version
...
LD_LIBRARY_PATH=/tmp/ports/usr/ports/lang/python35/work/Python-3.5.3 ./python -E -S -m sysconfig --generate-posix-vars ; if test $? -ne 0 ; then  echo "generate-posix-vars failed" ;  rm -f ./pybuilddir.txt ;  exit 1 ;  fi
cc -c -fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -msse2 -msse3 -mssse3 -msse4.1 -pipe  -Werror=declaration-after-statement   -I. -I./Include -I/usr/local/include -I/usr/local/include -fPIC -DPy_BUILD_CORE -o Modules/_math.o Modules/_math.c
/tmp/ports/usr/ports/lang/python35/work/Python-3.5.3/Modules/socketmodule.c:5459:5: warning: code will never be executed [-Wunreachable-code]
    PyErr_SetString(PyExc_RuntimeError, "invalid handling of inet_ntop");
    ^~~~~~~~~~~~~~~
1 warning generated.
cc: error: unsupported option '-print-multi-os-directory'
cc: error: no input files
/tmp/ports/usr/ports/lang/python35/work/Python-3.5.3/Modules/_ctypes/libffi/src/x86/ffi64.c:224:16: warning: comparison of integers of different signs: 'int' and 'size_t'
      (aka 'unsigned long') [-Wsign-compare]
        for (i = 0; i < words; i++)
                    ~ ^ ~~~~~
/tmp/ports/usr/ports/lang/python35/work/Python-3.5.3/Modules/_ctypes/libffi/src/x86/ffi64.c:245:20: warning: comparison of integers of different signs: 'int' and 'size_t'
      (aka 'unsigned long') [-Wsign-compare]
            for (i = 0; i < num; i++)
                        ~ ^ ~~~
...
Comment 1 Ivan Rozhuk 2017-08-20 23:11:22 UTC
ping
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2017-08-28 04:26:32 UTC

*** This bug has been marked as a duplicate of bug 220332 ***