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

unable to follow directions to install Crosstool-NG on OS X #3683

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

unable to follow directions to install Crosstool-NG on OS X #3683

zephyrbot opened this issue Jun 5, 2017 · 8 comments
Assignees
Labels
area: Build 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 5, 2017

Reported by Andrew Boie:

https://www.zephyrproject.org/doc/getting_started/installation_mac.html

At the step where we invoke CrossTool-NG to build the compiler, I am getting:

[INFO ]  Installing cross-gdb: done in 137.00s (at 24:44)
[INFO ]  =================================================================
[INFO ]  Finalizing the toolchain's directory
[INFO ]    Stripping all toolchain executables
[EXTRA]    Creating toolchain aliases
[EXTRA]    Removing installed documentation
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
[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: 24:45.00)
make: *** [build] Error 1
andrew@magrathea:/Volumes/CrossToolNG/build (2)

(Imported from Jira ZEP-2247)

@zephyrbot
Copy link
Collaborator Author

zephyrbot commented Jun 5, 2017

by Andrew Boie:

@zephyrbot
Copy link
Collaborator Author

zephyrbot commented Jun 5, 2017

by Andrew Boie:

@zephyrbot
Copy link
Collaborator Author

by Andrew Boie:

Attaching build.log and the .config I was using.

@zephyrbot
Copy link
Collaborator Author

by Andrew Boie:

Possibly related? https://stackoverflow.com/questions/10666570/binutils-stat-illegal-option-c

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

workaround:

modify /usr/local/lib/crosstool-ng-1.23.0/scripts/functions to change calls to "stat" to use "gstat" (2 places)

@andrewboie
Copy link
Contributor

by the way the crosstool-ng package in Brew is out but totally broken for me. built from source instead.

@nashif
Copy link
Member

nashif commented Oct 12, 2017

run ct-ng oldconfig, this should resolve this. the tool can handle both bsd and gnu implementations of stat, the config was created on Linux and the configuration was gnu specific.

@andrewboie
Copy link
Contributor

@nashif since the xtools configuration in Zephyr is primarily for OS X users, can we revise the config in our tree to have this done already so they can omit this step?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Build 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

3 participants