-
Notifications
You must be signed in to change notification settings - Fork 3k
Fixing toolchain executable not found error for build.py #3587
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
Fixing toolchain executable not found error for build.py #3587
Conversation
/morph test |
% (toolchain, search_path)) | ||
for target in targets: | ||
for toolchain in toolchains: | ||
if not TOOLCHAIN_CLASSES[toolchain].check_executable(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we do these checks all up front? to fail fast.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we can!
Commit 19d56fd removed the default file paths for the toolchains. This was done under the assumption that the top-level compile scripts were properly checking that the toolchain executable was availble. The build.py script was doing this in the wrong place. This commit rearranges the script a bit so the check is performed properly.
8ea389c
to
938ac93
Compare
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Gonna restart the bot since I pushed another change. /morph test |
This is the new error printed by the tools when the toolchain executable is not found:
|
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this locally and worked fine in my environment. Thanks.
@mazimkhan @AlessandroA uvisor tests are failing for some newer PR? /retest uvisor |
|
@AlessandroA @Patater Failing tests:
|
@mazimkhan Those tests are expected to fail for now. |
@sg- what should we do about expected failure? |
Results must be green,thus we either fix tests now or remove those from being tested for now. |
retest uvisor |
@Patater your PR https://github.com/ARMmbed/uvisor-tests/pull/85 doesnot fix the failing tests. |
retest uvisor |
1 similar comment
retest uvisor |
@0xc0170 finally it passed! |
+1 |
Description
Commit 19d56fd removed the default file
paths for the toolchains. This was done under the assumption that the
top-level compile scripts were properly checking that the toolchain
executable was availble. The build.py script was doing this in the wrong
place. This commit rearranges the script a bit so the check is performed
properly.
Should fix #3581.
Status
READY
Migrations
If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.
NO
Todos
Notes to reviewers
@toyowata - Could you please confirm that I've fixed your issue?
@theotherjimmy - General code review please!