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

Add explicit check to silence warning on MacOS #12384

Merged

Conversation

Projects
None yet
5 participants
@remilapeyre
Copy link
Contributor

commented Mar 17, 2019

skip news
skip bpo

@methane

This comment has been minimized.

Copy link
Member

commented Mar 20, 2019

I don't see such warning on macOS.

@remilapeyre

This comment has been minimized.

Copy link
Contributor Author

commented Mar 20, 2019

Hi @methane, I am using clang version 10.0.0 and I only get the warning when I am not using --with-pydebug. I still get it on master (cc60cdd):

➜  cpython git:(cc60cdd9c4) make distclean -s 2>/dev/null && ./configure --with-openssl=$(brew --prefix openssl) 2>&1 >/dev/null && make clean -s 2>/dev/null&& make -sj
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
./Modules/posixmodule.c:1266:9: warning: code will never be executed [-Wunreachable-code]
        PyErr_SetFromErrno(PyExc_OSError);
        ^~~~~~~~~~~~~~~~~~
1 warning generated.
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libpython3.8m.a(dynamic_annotations.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libpython3.8m.a(pymath.o) has no symbols
 CC='gcc' LDSHARED='gcc -bundle -undefined dynamic_lookup -L/usr/local/opt/zlib/lib -L/usr/local/opt/zlib/lib  ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' 	_TCLTK_INCLUDES='' _TCLTK_LIBS='' 	./python.exe -E ./setup.py -q build
ld: warning: directory not found for option '-L/usr/lib/termcap'
clang: warning: -framework Tk: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -framework Tk: 'linker' input unused [-Wunused-command-line-argument]
ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_dbm                  _sqlite3              _uuid
nis                   ossaudiodev           spwd
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd
time

@methane methane merged commit f090019 into python:master May 3, 2019

5 checks passed

Azure Pipelines PR #20190503.8 succeeded
Details
bedevere/issue-number Issue report skipped
bedevere/news "skip news" label found
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.