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

travis unix linux builds can't find gcc sometimes #266

Closed
itsayellow opened this issue Oct 30, 2019 · 5 comments · Fixed by #269
Closed

travis unix linux builds can't find gcc sometimes #266

itsayellow opened this issue Oct 30, 2019 · 5 comments · Fixed by #269

Comments

@itsayellow
Copy link
Contributor

Describe the bug
Travis linux builds seem to fail occasionally. The culprit seems to be packages that need gcc to install cannot find gcc.

unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1

How to reproduce

Run code through Travis CI tests

Expected behavior

if local tests pass, they should pass on Travis, but often they fail.

@itsayellow
Copy link
Contributor Author

https://travis-ci.org/pipxproject/pipx/builds/604553890?utm_source=github_status&utm_medium=notification

That one seems to have a passing test for python3.6, and a failing one for python3.7. The failing test has the missing gcc problem.

Is this a Travis problem?

@itsayellow
Copy link
Contributor Author

Could this have anything to do with us removing sudo from .travis.yml ? #243

@itsayellow
Copy link
Contributor Author

I just saw a weird error running make test on my local computer, similar but different, while a test was trying to install black.

  In file included from regex_3/_regex.c:48:
  /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/Python.h:25:10: fatal error: 'stdio.h' file not found
  #include <stdio.h>
           ^~~~~~~~~
  1 error generated.
  error: command '/Library/Developer/CommandLineTools/usr/bin/clang' failed with exit status 1

Oddly the other python versions worked fine.

@itsayellow
Copy link
Contributor Author

This seems to happen in particular with the linux python 3.7 tests.

That one uses dist: xenial so I tried removing it to see if that helped. It did not help.

@michaeljoseph
Copy link

psf/black#1112 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants