zephyrproject-rtos / meta-zephyr-sdk

Zephyr SDK (obsolete)
MIT License
44 stars 29 forks source link

SDK installer fails silently if xz-utils is missing #67

Closed zephyrbot closed 7 years ago

zephyrbot commented 7 years ago

Reported by David Brown:

I often do my development in a container. The containers are generally very minimal installs of the distribution. In this case, I'm starting with the official Ubuntu 16.04 docker container. Generally, this helps find missing dependencies.

The SDK installer seems to have a dependency on 'xz-utils', however, it fails silently when this is the case, giving no information about what might have gone wrong, or how to fix it. Perhaps we should check for 'xz' and print a friendly error.

I can reproduce this by doing something like:

{code} $ docker run --rm -ti ubuntu:16.04 ..# cd /tmp ..# apt-get -y update ..# apt-get -y install wget ..# wget https://nexus.zephyrproject.org/content/repositories/releases/org/zephyrproject/zephyr-sdk/0.9/zephyr-sdk-0.9-setup.run ..# sh zephyr-sdk-0.9-setup.run -- -d /opt/zephyr-sdk {code}

This gives output: {code} Verifying archive integrity... All good. Uncompressing SDK for Zephyr 100% Installing SDK to /opt/zephyr-sdk Creating directory /opt/zephyr-sdk Success [] Installing x86 tools... [] Installing arm tools... [] Installing arc tools... [] Installing iamcu tools... [] Installing nios2 tools... [] Installing xtensa tools... [] Installing riscv32 tools... [] Installing additional host tools... rm: cannot remove 'environment-setup': No such file or directory mv: cannot stat 'version-': No such file or directory Success installing SDK. SDK is ready to be used. {code}

Other than the weird errors (which 0.8 doesn't give), the /opt/zephyr-sdk directory is nearly empty.

(Imported from Jira SDK-48)

zephyrbot commented 7 years ago

by Anas Nashif:

Juro Bystricky What is the status of this.

zephyrbot commented 7 years ago

by Mark Linkmeyer:

Per review with Juro Bystricky , this will be fixed as part of the fix for GH-52.

zephyrbot commented 7 years ago

Related to GH-52