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

aiohttp-master failing to build on macOS High Sierra 10.13.5. #3138

Closed
germanjoey opened this issue Jul 16, 2018 · 11 comments
Closed

aiohttp-master failing to build on macOS High Sierra 10.13.5. #3138

germanjoey opened this issue Jul 16, 2018 · 11 comments
Assignees
Labels

Comments

@germanjoey
Copy link

germanjoey commented Jul 16, 2018

Long story short

We have some nightly tox tests that run against the latest aiohttp release on pypi as well as the master branch pulled directly from github. In the past few weeks, the master branch tests have been breaking because aiohttp wouldn't build. The error was like this:

    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c aiohttp/_websocket.c -o build/temp.macosx-10.9-x86_64-3.6/aiohttp/_websocket.o
    clang: error: no such file or directory: 'aiohttp/_websocket.c'
    clang: error: no input files
    error: command 'gcc' failed with exit status 1

Investing the issue today, it appears that this problem is related to #3095. Reverting the change on this line to add CCompilerError back into the caught exceptions list now allows aiohttp to build again. It does generate this warning:

************************************************************
Cannot compile C accelerator module, use pure python version
************************************************************

At any rate, I figured I'd raise this as an issue first before annoying y'all with a trivial PR.

Expected behaviour

aiohttp master will successfully build.

Actual behaviour

aiohttp master does not successfully build.

Steps to reproduce

python3 -m pip install git+https://github.com/aio-libs/aiohttp.git

Your environment

macOS High Sierra 10.13.5
Python 3.6.5

@webknjaz
Copy link
Member

It looks like sdist is missing C-sources. Or if you are compiling from master they might be not produced by Cython.

@webknjaz
Copy link
Member

Also tell us version of your python and stuff.

@germanjoey
Copy link
Author

Oh, right! Python 3.6.5.

@asvetlov
Copy link
Member

The change pursuits the target to not hide compilation error.
In your case, something was broken (maybe for a very long time period) but you were not aware of it).

Without additional info I cannot tell what is broken

@webknjaz
Copy link
Member

@asvetlov isn't it about missing c-file? shouldn't we include it in the manifest?

@asvetlov
Copy link
Member

'aiohttp/_websocket.c' is generated from 'aiohttp/_websocket.pyx' on complation stage.
Have no idea why it is not present on @germanjoey box

@webknjaz
Copy link
Member

I think we need to inspect our OS X build job logs to find out whether it still works for us.

@webknjaz
Copy link
Member

@germanjoey you have to do git clone with --recurse-submodules argument to also grab a vendored http client in C.

@webknjaz
Copy link
Member

I assume that the issue has been figured out.

@webknjaz
Copy link
Member

JFYI this is tracked in a duplicate issue #3162 and PR #3164.

@lock
Copy link

lock bot commented Oct 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs.
If you feel like there's important points made in this discussion, please include those exceprts into that [new issue].
[new issue]: https://github.com/aio-libs/aiohttp/issues/new

@lock lock bot added the outdated label Oct 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants