zephyriot / zep-jira14

0 stars 0 forks source link

OS X Setup Instructions Not Working on macOS Sierra #2088

Open nashif opened 7 years ago

nashif commented 7 years ago

Reported by Vijay Rao:

Unable to execute the ct-ng build command successfully.

I get the following output.

[INFO ] Performing some trivial sanity checks [INFO ] Build started 20170607.171906 [INFO ] Building environment variables [WARN ] Directory '/Volumes/CrossToolNG/src' does not exist. [WARN ] Will not save downloaded tarballs to local storage. [EXTRA] Preparing working directories [ERROR]
[ERROR] >> [ERROR] >> Build failed in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@297] [ERROR] >> called from: main[scripts/crosstool-NG.sh@266] [ERROR] >> [ERROR] >> For more info on this error, look at the file: 'build.log' [ERROR] >> There is a list of known issues, some with workarounds, in: [ERROR] >> '/usr/local/share/doc/crosstool-ng/crosstool-ng-1.23.0/B - Known issues.txt' [ERROR] >> [ERROR] >> If you feel this is a bug in crosstool-NG, report it at: [ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/ [ERROR] >> [ERROR] >> Make sure your report includes all the information pertinent to this issue. [ERROR] >> Read the bug reporting guidelines here: [ERROR] >> http://crosstool-ng.github.io/support/ [ERROR]
[ERROR] (elapsed: 0:00.00) [00:01] / make: *** [build] Error 1

I think noteworthy lines in build.log are: DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/CrossToolNG/build/.build/tarballs' [DEBUG] ==> Executing: 'mkdir' '-p' '/Volumes/CrossToolNG/build/.build/src' [DEBUG] ==> Executing: 'mkdir' '-p' '/build' [ALL ] mkdir: /build: Permission denied [ERROR]
[ERROR] >> [ERROR] >> Build failed in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@297] [ERROR] >> called from: main[scripts/crosstool-NG.sh@266] [ERROR] >> [ERROR] >> For more info on this error, look at the file: 'build.log' [ERROR] >> There is a list of known issues, some with workarounds, in: [ERROR] >> '/usr/local/share/doc/crosstool-ng/crosstool-ng-1.23.0/B - Known issues.txt' [ERROR] >> [ERROR] >> If you feel this is a bug in crosstool-NG, report it at: [ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/ [ERROR] >> [ERROR] >> Make sure your report includes all the information pertinent to this issue. [ERROR] >> Read the bug reporting guidelines here: [ERROR] >> http://crosstool-ng.github.io/support/ [ERROR]
[ERROR] (elapsed: 0:00.00)

(Imported from Jira ZEP-2252)

nashif commented 7 years ago

by Vijay Rao:

nashif commented 7 years ago

by Anas Nashif:

Can you create directories and files under /Volumes/CrossToolNG/

nashif commented 7 years ago

by Vijay Rao:

Yes. mkdir works.

nashif commented 7 years ago

by Vijay Rao:

The error seems to happen on mkdir /build. Is there a possibility I have left out on some environment variable? I executed the zephyr-env.sh and _export CTPREFIX=/Volumes/CrossToolNG. Maybe I left out on some environment variable?

nashif commented 7 years ago

by Vijay Rao:

With the latest release of v1.8.0 I managed to get the crosstool to start building. However, it ends in error. Unable to attach build.log as it exceeds 10 MB.

Pasting the lines that mention the error in the build.log file: [EXTRA] Creating toolchain aliases [DEBUG] Entering '/Volumes/CrossToolNG/x-tools/i586-zephyr-elf/bin' [EXTRA] Removing installed documentation [ERROR]
[ERROR] >> [ERROR] >> Build failed in step 'Finalizing the toolchain's directory' [ERROR] >> called in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoForceRmdir[scripts/functions@577] [ERROR] >> called from: do_finish[scripts/build/internals.sh@141] [ERROR] >> called from: main[scripts/crosstool-NG.sh@653] [ERROR] >> [ERROR] >> For more info on this error, look at the file: 'build.log' [ERROR] >> There is a list of known issues, some with workarounds, in: [ERROR] >> '/usr/local/share/doc/crosstool-ng/crosstool-ng-1.23.0/B - Known issues.txt' [ERROR] >> [ERROR] >> If you feel this is a bug in crosstool-NG, report it at: [ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/ [ERROR] >> [ERROR] >> Make sure your report includes all the information pertinent to this issue. [ERROR] >> Read the bug reporting guidelines here: [ERROR] >> http://crosstool-ng.github.io/support/ [ERROR]
[ERROR] (elapsed: 55:23.00)