Skip to content
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

OS X Setup Instructions Not Working on macOS Sierra #3688

Closed
zephyrbot opened this issue Jun 7, 2017 · 8 comments
Closed

OS X Setup Instructions Not Working on macOS Sierra #3688

zephyrbot opened this issue Jun 7, 2017 · 8 comments
Assignees
Labels
area: Build System area: Configuration System bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@zephyrbot
Copy link
Collaborator

zephyrbot commented Jun 7, 2017

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)

@zephyrbot
Copy link
Collaborator Author

zephyrbot commented Jun 7, 2017

by Vijay Rao:

@zephyrbot
Copy link
Collaborator Author

by Anas Nashif:

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

@zephyrbot
Copy link
Collaborator Author

by Vijay Rao:

Yes. mkdir works.

@zephyrbot
Copy link
Collaborator Author

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 CT_PREFIX=/Volumes/CrossToolNG. Maybe I left out on some environment variable?

@zephyrbot
Copy link
Collaborator Author

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)

@zephyrbot zephyrbot added priority: low Low impact/importance bug area: Build System area: Configuration System bug The issue is a bug, or the PR is fixing a bug labels Sep 23, 2017
@nashif
Copy link
Member

nashif commented Oct 12, 2017

can't reproduce

@nashif nashif closed this as completed Oct 12, 2017
@tofutim
Copy link

tofutim commented Feb 24, 2018

Not sure why, but I had to chmod the crosstool-NG.sh to 755

@malachib
Copy link

malachib commented Jun 4, 2018

@tofutim not sure why either, but your findings helped me a lot. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Build System area: Configuration System bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants