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 error in usddeck.c (array subscript has type) #418

Closed
whoenig opened this issue Mar 29, 2019 · 7 comments
Closed

build error in usddeck.c (array subscript has type) #418

whoenig opened this issue Mar 29, 2019 · 7 comments

Comments

@whoenig
Copy link
Contributor

whoenig commented Mar 29, 2019

@whoenig : When repo is cloned as instructed, there is on error respond to make command such as:

src/deck/drivers/src/usddeck.c: In function 'f_gets_without_comments':
src/deck/drivers/src/usddeck.c:238: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:327: recipe for target 'build' failed
make: *** [build] Error 2

It has nothing about this issue, this is for micro sd deck I guess, since I am not using this deck, by commenting out problematic section, I am able to make the project and fly.

Originally posted by @tugayalperen in #409 (comment)

@whoenig
Copy link
Contributor Author

whoenig commented Mar 29, 2019

@tugayalperen: This was not picked up by the automated build tests. It is related to a PR I recently created. Could you share details about your build environment (which compiler? Do you have any outstanding changes? Any custom configuration in config.mk?).

@BIsichei
Copy link

@whoenig I'm having this same error when trying to make under the "crazyflie-firmware" directory from the terminal. I cloned the repo, initialized and updated submodules, and ran make. As far as I know i don't have any custom configurations. If it helps, i'm running this on laptop running ubuntu 16.04.

@whoenig
Copy link
Contributor Author

whoenig commented May 21, 2019

Updating your compiler should resolve the issue. I am running locally the following version:

$arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q3-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]

@tugayalperen
Copy link

I can confirm that, version change solves the problem.

@BIsichei
Copy link

That fixed it, thanks

@krichardsson
Copy link
Contributor

Seems as this is solved? If not please re-open

@jungr-ait
Copy link
Contributor

Hi,

I found a simple solution to that issue (USC-ACTLab#1), just a simple C type cast, which has the nice side effect, that not everyone needs to upgrade the official compiler in Ubunutu 16.04. As @whoenig said, we could reopen this issue and apply this change, if desired.

ataffanel added a commit that referenced this issue Jul 2, 2019
Fixes #418: compilation error due to isspace() in usddeck.c
cafeciaojoe pushed a commit to cafeciaojoe/crazyflie-firmware that referenced this issue Sep 27, 2024
Changed color of progressbar in log-config and changes column-headers
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

5 participants