-
Notifications
You must be signed in to change notification settings - Fork 320
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
Analyzer for Python returns error: command 'gcc' failed with exit status 1 #4578
Comments
It's known, yes, but so far was not documented as a public issue. Thanks for filing one.
It tries very hard to be, yes. Unfortunately, some languages / build systems are very limited in their features to just query all required metadata without actually building anything. Python / Pip is one of these limited systems. So in general, we have problems analyzing Python projects that depend on native-code packages. For Ruby / Bundler we were recently able to solve that problem. For Python / Pip, we are currently investigating a proper solution. FYI, @pombredanne, this is also something that should get solved by the "Project-Multi Python-version dependencies resolver". |
Is there any workaround I can apply? |
The only work-around I can think of is to install |
Thanks, the workaround (installing gcc) did actually work for me.
|
This is a league of its own, complexity-wise IMHO. This would best done in a second step |
But in the specific case at hand here, a resolver would work assuming we get this fixed aboutcode-org/scancode-toolkit#2742 to feed it the direct, immediate dependencies parsed and collected from https://github.com/BlueBrain/BluePyOpt/blob/6d4185479bc6dddb3daad84fa27e0b8457d69652/setup.py#L35 |
I'll close this in favor of the more general #4637 as the immediate question has been answered and there is a work-around. |
Reopening as #4637 now actually is a epic that refers to this issue. |
I assume the gcc error happens during |
@alex4200 could you verify this please with the latest ORT version? |
This happens when a package is not available on specific abi on machine, so it calls wheel module to compile the native "binding". |
I've verified that this works now with the latest ORT that uses |
Upon trying to run the analyzer on a project, I get an error
two times. Is that a known issue? I though the analyzer works only passive?
I did run the command
docker run -v ${PROJECT}:/project -v ${PWD}/output:/output ort --force-overwrite --info analyze -i /project -o /output/analyze_mime
where PROJECT points to a folder
BluePyOpt
, checked out withgit clone https://github.com/BlueBrain/BluePyOpt.git
.Let me know any further information that are helpful to solve this problem
The text was updated successfully, but these errors were encountered: