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

./build.sh error #171

Closed
Allenhanbo opened this issue Sep 30, 2019 · 6 comments
Closed

./build.sh error #171

Allenhanbo opened this issue Sep 30, 2019 · 6 comments

Comments

@Allenhanbo
Copy link

After I Installed the dependencies and cloned the repository into my workspace, then I run the ./build.sh, I meet some error like this:

./build.sh
arm-none-eabi-size cf2_nrf.elf
text data bss dec hex filename
27320 452 2656 30428 76dc cf2_nrf.elf
S110 Activated
BLE Disabled
Built for platform cf2
CLEAN_VERSION
CC usddeck.o
src/deck/drivers/src/usddeck.c: In function 'f_gets_without_comments':
src/deck/drivers/src/usddeck.c:239:5: error: array subscript has type 'char' [-Werror=char-subscripts]
if (isspace(c)) {
^
cc1: all warnings being treated as errors
tools/make/targets.mk:26: recipe for target 'usddeck.o' failed
make[1]: *** [usddeck.o] Error 1
Makefile:338: recipe for target 'build' failed
make: *** [build] Error 2

@whoenig
Copy link
Contributor

whoenig commented Sep 30, 2019

Your compiler for building the firmware is too old. You can find a newer compiler at https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads. (Make sure to uninstall the previous compiler version before installing the new one.)

@Allenhanbo
Copy link
Author

Hi, thanks for replying me. Could you provide the command to uninstall the previous complier version? I searched for a while, but I didn't find a right to uninstall it.

@whoenig
Copy link
Contributor

whoenig commented Sep 30, 2019

Depends on how you installed it. sudo apt-get remove gcc-arm-none-eabi or sudo apt-get remove gcc-arm-embedded on Ubuntu should do the trick.

@Allenhanbo
Copy link
Author

Thank you so much! I've already delete the old one. I download the newest version pack from the website you provide. After I unpacked the download, I can not open the arm-none-eabi-gcc file like this:
hc@hc-Lenovo:~/gcc-arm-none-eabi-8-2019-q3-update/bin$ arm-none-eabi-gcc
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

@whoenig
Copy link
Contributor

whoenig commented Sep 30, 2019

That's normal. You need to follow the readme.txt in the archive for installation instructions. Once successfully installed, ./build.sh should run successfully.

@Allenhanbo
Copy link
Author

Thanks I've already build successfully.

@whoenig whoenig closed this as completed Oct 4, 2019
jpreiss pushed a commit to jpreiss/crazyswarm that referenced this issue Mar 16, 2024
Added multiagent simulation fix for new crazyflie-firmware
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