Skip to content

Mark zephyr install world-writable in docker image to unblock #7995. - #8037

Merged
tqchen merged 1 commit into
apache:mainfrom
areusch:ci_1804-fix-qemu-build
May 14, 2021
Merged

Mark zephyr install world-writable in docker image to unblock #7995.#8037
tqchen merged 1 commit into
apache:mainfrom
areusch:ci_1804-fix-qemu-build

Conversation

@areusch

@areusch areusch commented May 13, 2021

Copy link
Copy Markdown
Contributor

Unclear what happened here, but upon rebuilding ci-qemu, lots of:

:~/tests/micro/zephyr/test_zephyr_qemu_x86_workspace/2021-05-13T17-30-31/build/utvm_rpc_server/__tvm_build$ make
cmake -E touch_nocreate: failed to update "zephyr/misc/generated/syscalls_links/include_usb_class".
zephyr/CMakeFiles/parse_syscalls_target.dir/build.make:521: recipe for target 'zephyr/misc/generated/syscalls_links/include_usb_class' failed
make[2]: *** [zephyr/misc/generated/syscalls_links/include_usb_class] Error 1
CMakeFiles/Makefile2:2048: recipe for target 'zephyr/CMakeFiles/parse_syscalls_target.dir/all' failed
make[1]: *** [zephyr/CMakeFiles/parse_syscalls_target.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

marking Zephyr world-writable, which should resolve the need for make to touch the syscalls dependencies. This isn't strictly ideal, since a test could make modifications to Zephyr and corrupt following tests, but we have this issue everywhere and I believe Zephyr assumes it is writable when building.

Also remove some commented lines in the install script.

@areusch

areusch commented May 13, 2021

Copy link
Copy Markdown
Contributor Author

@mehrdadh

Copy link
Copy Markdown
Member

@areusch I'm working on reproducing the issue.

Comment thread docker/install/ubuntu_install_zephyr.sh Outdated
# As part of the build process, Zephyr needs to touch some symlinks in zephyr/misc/generated/syscalls_links (this path is relative to the
# build directory for a project). Mark the zephyr installation world-writable since this is a docker
# container
chmod -R o+w /opt/zephyrproject

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe change it to ZEPHYR_PROJECT_PATH?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread Jenkinsfile Outdated
ci_i386 = "tlcpack/ci-i386:v0.72-t0"
ci_qemu = "tlcpack/ci-qemu:v0.04"
ci_arm = "tlcpack/ci-arm:v0.03"
ci_lint = "tkonolige/ci-lint:latest"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert these to tlcpack?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, based on the wrong thing, reverted

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, based on the wrong thing, reverted

@areusch
areusch force-pushed the ci_1804-fix-qemu-build branch from 57b338a to 6755c3c Compare May 13, 2021 21:27

@mehrdadh mehrdadh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Thanks @areusch!

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 this pull request may close these issues.

3 participants