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

Fail to compile Arch Linux #340

Closed
snyderth opened this issue Jun 27, 2018 · 2 comments
Closed

Fail to compile Arch Linux #340

snyderth opened this issue Jun 27, 2018 · 2 comments
Milestone

Comments

@snyderth
Copy link

I am trying to build the firmware on arch and every time I make compile or make build it returns the following error:
In file included from **src/modules/src/crtp_commander_generic.c:35: /usr/arm-none-eabi/include/math.h:133:12: error:** expected identifier or '(' before '**double**' extern int isnan (double);
'src/utils/interface/num.h:41:28: error: expected ')' before '?' token
#define isnan(n) ((n !- n) ? 1: 0)`

I just updated my local copy today. I'm building with config.mk options:
PLATFORM=CF2 ESTIMATOR=kalman LPS_TDOA_ENABLE=1 CLOAD=1

@snyderth
Copy link
Author

Compiling with toolbelt works

@ataffanel
Copy link
Member

Good that it worked with the toolbelt/docker.

The original problem was most likely caused by a wrong version of GCC, the Crazyflie firmware should be compiled with gcc-arm-embedded. If you add it in your path you will be able to compile crazyflie-firmware directly from arch.

@krichardsson krichardsson added this to the next-version milestone Aug 6, 2018
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

3 participants