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

Issue with the tools/build-env.sh file #748

Open
Abdullah-Shahid01 opened this issue Aug 2, 2024 · 3 comments
Open

Issue with the tools/build-env.sh file #748

Abdullah-Shahid01 opened this issue Aug 2, 2024 · 3 comments

Comments

@Abdullah-Shahid01
Copy link

Hi,

I am trying to go through the build process on Sony Spresense, but whenever I run the command source tools/build-env.sh I get an error saying the following:
tools/build-env.sh:225: = not found

@SPRESENSE
Copy link
Collaborator

Hi, @Abdullah-Shahid01,

Is there a problem with your bash path settings?
When you enter "bash --version", does the version number appear?

Also, Is your build platform environment one of the following?
https://developer.sony.com/spresense/development-guides/sdk_set_up_en.html#_development_environment

@Abdullah-Shahid01
Copy link
Author

Output of "bash --version"
Screenshot 2024-08-07 at 6 25 19 PM

Output of "arm-none-eabi-gcc -v"
gcc version 10.3.1 20210824 (release) (GNU Arm Embedded Toolchain 10.3-2021.10)

I am not sure if this is relevant but I am using an Apple M1 macbook.

@SPRESENSE
Copy link
Collaborator

Hi @Abdullah-Shahid01

On the Apple M1 macbook, the default shell is zsh and it's not possible to run build-env.sh on zsh shell.

Please switch to bash shell and then run source tools/build-env.sh on your terminal.

$ bash
$ source tools/build-env.sh

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

No branches or pull requests

2 participants