make[1]: *** [estimator_kalman.o] Error 1
make[1]: *** [estimator_kalman.o] Error 1
Hi,
First, thank you in advance for looking at my problem.
I have the crazyflie 2.1 and i am working on unbutu.
I have the followwing when I try to compile the firmware :
CC estimator_kalman.o
In file included from src/modules/src/estimator_kalman.c:73:0:
src/utils/interface/cf_math.h:33:9: error: unknown option after '#pragma GCC diagnostic' kind [-Werror=pragmas]
cc1: all warnings being treated as errors
tools/make/targets.mk:26: recipe for target 'estimator_kalman.o' failed
make[1]: *** [estimator_kalman.o] Error 1
Makefile:326: recipe for target 'build' failed
make: *** [build] Error 2
Does anyone had the same issue ? What did I made wrong ?
First, thank you in advance for looking at my problem.
I have the crazyflie 2.1 and i am working on unbutu.
I have the followwing when I try to compile the firmware :
CC estimator_kalman.o
In file included from src/modules/src/estimator_kalman.c:73:0:
src/utils/interface/cf_math.h:33:9: error: unknown option after '#pragma GCC diagnostic' kind [-Werror=pragmas]
cc1: all warnings being treated as errors
tools/make/targets.mk:26: recipe for target 'estimator_kalman.o' failed
make[1]: *** [estimator_kalman.o] Error 1
Makefile:326: recipe for target 'build' failed
make: *** [build] Error 2
Does anyone had the same issue ? What did I made wrong ?
Re: make[1]: *** [estimator_kalman.o] Error 1
Hi Alain,
Just some questions for you for us to understand your situation better:
Just some questions for you for us to understand your situation better:
- When did you clone the repository?
- Have you changed anything to the firmware itself?
- Does it work if you do "make DEBUG=1"
Re: make[1]: *** [estimator_kalman.o] Error 1
Hi Kimberly,
Thank you very for looking at my issue.
I cloned the repository yesterday, changed nothing for the moment (will change only lighthouse position in the future)
I tried make DEBUG=1 but still have an error.
Thank you very for looking at my issue.
I cloned the repository yesterday, changed nothing for the moment (will change only lighthouse position in the future)
I tried make DEBUG=1 but still have an error.
CLEAN_VERSION
CC estimator_kalman.o
In file included from src/modules/interface/kalman_core.h:57:0,
from src/modules/src/estimator_kalman.c:59:
src/utils/interface/cf_math.h:33:9: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas]
src/modules/src/estimator_kalman.c: In function 'estimatorKalman':
src/modules/src/estimator_kalman.c:253:3: warning: conversion to 'long unsigned int' from 'int32_t' may change the sign of the result [-Wsign-conversion]
src/modules/src/estimator_kalman.c:263:5: warning: conversion to 'float' from 'uint32_t' may alter its value [-Wconversion]
src/modules/src/estimator_kalman.c:264:5: warning: conversion to 'float' from 'uint32_t' may alter its value [-Wconversion]
src/modules/src/estimator_kalman.c:265:5: warning: conversion to 'float' from 'uint32_t' may alter its value [-Wconversion]
src/modules/src/estimator_kalman.c:272:5: warning: conversion to 'float' from 'uint32_t' may alter its value [-Wconversion]
src/modules/src/estimator_kalman.c:273:5: warning: conversion to 'float' from 'uint32_t' may alter its value [-Wconversion]
src/modules/src/estimator_kalman.c:274:5: warning: conversion to 'float' from 'uint32_t' may alter its value [-Wconversion]
src/modules/src/estimator_kalman.c:279:5: warning: conversion to 'float' from 'uint32_t' may alter its value [-Wconversion]
src/modules/src/estimator_kalman.c:291:5: warning: conversion to 'long unsigned int' from 'int32_t' may change the sign of the result [-Wsign-conversion]
src/modules/src/estimator_kalman.c:294:5: warning: conversion to 'int32_t' from 'uint32_t' may change the sign of the result [-Wsign-conversion]
src/modules/src/estimator_kalman.c:310:3: warning: conversion to 'long unsigned int' from 'int32_t' may change the sign of the result [-Wsign-conversion]
src/modules/src/estimator_kalman.c:311:3: warning: conversion to 'int32_t' from 'uint32_t' may change the sign of the result [-Wsign-conversion]
src/modules/src/estimator_kalman.c: In function 'estimatorKalmanInit':
src/modules/src/estimator_kalman.c:440:37: warning: conversion to 'int32_t' from 'TickType_t' may change the sign of the result [-Wsign-conversion]
src/modules/src/estimator_kalman.c:441:37: warning: conversion to 'int32_t' from 'TickType_t' may change the sign of the result [-Wsign-conversion]
src/modules/src/estimator_kalman.c:442:37: warning: conversion to 'int32_t' from 'TickType_t' may change the sign of the result [-Wsign-conversion]
src/modules/src/estimator_kalman.c:443:35: warning: conversion to 'int32_t' from 'TickType_t' may change the sign of the result [-Wsign-conversion]
CC kalman_core.o
In file included from src/modules/interface/kalman_core.h:57:0,
from src/modules/src/kalman_core.c:58:
src/utils/interface/cf_math.h:33:9: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas]
src/modules/src/kalman_core.c:141:1: warning: conversion to 'float' alters 'double' constant value [-Wconversion]
src/modules/src/kalman_core.c:142:1: warning: conversion to 'float' alters 'double' constant value [-Wconversion]
src/modules/src/kalman_core.c:143:1: warning: conversion to 'float' alters 'double' constant value [-Wconversion]
src/modules/src/kalman_core.c: In function 'kalmanCoreUpdateWithFlow':
src/modules/src/kalman_core.c:467:7: warning: conversion to 'float' alters 'double' constant value [-Wconversion]
CC crtp_commander_high_level.o
In file included from src/modules/interface/crtp_commander_high_level.h:45:0,
from src/modules/src/crtp_commander_high_level.c:52:
src/modules/interface/math3d.h: In function 'vmaxelt':
src/modules/interface/math3d.h:170:13: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h: In function 'vminelt':
src/modules/interface/math3d.h:174:13: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h: In function 'vload':
src/modules/interface/math3d.h:243:16: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:243:22: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:243:28: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h: In function 'qvectovec':
src/modules/interface/math3d.h:508:2: warning: conversion to 'float' alters 'double' constant value [-Wconversion]
src/modules/interface/math3d.h:515:39: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:516:39: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h: In function 'mat2quat':
src/modules/interface/math3d.h:557:22: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:558:22: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:559:22: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:560:22: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:561:14: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:562:14: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:563:14: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h: In function 'qload':
src/modules/interface/math3d.h:731:17: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:731:23: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:731:29: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:731:35: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/src/crtp_commander_high_level.c: In function 'crtpCommanderHighLevelGetSetpoint':
src/modules/src/crtp_commander_high_level.c:213:26: warning: conversion to 'double' from 'uint64_t' may alter its value [-Wconversion]
src/modules/src/crtp_commander_high_level.c:213:29: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/src/crtp_commander_high_level.c: In function 'crtpCommanderHighLevelTask':
src/modules/src/crtp_commander_high_level.c:293:5: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
src/modules/src/crtp_commander_high_level.c: In function 'takeoff':
src/modules/src/crtp_commander_high_level.c:311:28: warning: conversion to 'double' from 'uint64_t' may alter its value [-Wconversion]
src/modules/src/crtp_commander_high_level.c:311:31: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/src/crtp_commander_high_level.c: In function 'land':
src/modules/src/crtp_commander_high_level.c:323:28: warning: conversion to 'double' from 'uint64_t' may alter its value [-Wconversion]
src/modules/src/crtp_commander_high_level.c:323:31: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/src/crtp_commander_high_level.c: In function 'go_to':
src/modules/src/crtp_commander_high_level.c:347:28: warning: conversion to 'double' from 'uint64_t' may alter its value [-Wconversion]
src/modules/src/crtp_commander_high_level.c:347:31: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/src/crtp_commander_high_level.c: In function 'start_trajectory':
src/modules/src/crtp_commander_high_level.c:363:32: warning: conversion to 'double' from 'uint64_t' may alter its value [-Wconversion]
src/modules/src/crtp_commander_high_level.c:363:35: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
CC planner.o
In file included from src/modules/interface/planner.h:41:0,
from src/modules/src/planner.c:39:
src/modules/interface/math3d.h: In function 'vmaxelt':
src/modules/interface/math3d.h:170:13: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h: In function 'vminelt':
src/modules/interface/math3d.h:174:13: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h: In function 'vload':
src/modules/interface/math3d.h:243:16: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:243:22: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:243:28: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h: In function 'qvectovec':
src/modules/interface/math3d.h:508:2: warning: conversion to 'float' alters 'double' constant value [-Wconversion]
src/modules/interface/math3d.h:515:39: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:516:39: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h: In function 'mat2quat':
src/modules/interface/math3d.h:557:22: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:558:22: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:559:22: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:560:22: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:561:14: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:562:14: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:563:14: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h: In function 'qload':
src/modules/interface/math3d.h:731:17: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:731:23: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:731:29: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/interface/math3d.h:731:35: warning: conversion to 'float' from 'double' may alter its value [-Wconversion]
src/modules/src/planner.c: In function 'plan_init':
src/modules/src/planner.c:62:18: error: 'NULL' undeclared (first use in this function)
src/modules/src/planner.c:62:18: note: each undeclared identifier is reported only once for each function it appears in
tools/make/targets.mk:26: recipe for target 'planner.o' failed
make[1]: *** [planner.o] Error 1
Makefile:335: recipe for target 'build' failed
make: *** [build] Error 2
Re: make[1]: *** [estimator_kalman.o] Error 1
Hi,
The first error that you got in the first post, was actually a warning, but currently make will treat it as an error (to keep the code clean). With DEBUG=1, it will compile those warnings anyway. But now you have an actuall error later in the build
I'm not getting the same error that you are getting with the same repository. Maybe try again but with:
The first error that you got in the first post, was actually a warning, but currently make will treat it as an error (to keep the code clean). With DEBUG=1, it will compile those warnings anyway. But now you have an actuall error later in the build
I'm not getting the same error that you are getting with the same repository. Maybe try again but with:
Code: Select all
make mrproper && make
Re: make[1]: *** [estimator_kalman.o] Error 1
Hi
just try make mrproper && make but i have the same error.
In file included from src/modules/interface/kalman_core.h:57:0,
from src/modules/src/estimator_kalman.c:59:
src/utils/interface/cf_math.h:33:9: error: unknown option after '#pragma GCC diagnostic' kind [-Werror=pragmas]
cc1: all warnings being treated as errors
tools/make/targets.mk:26: recipe for target 'estimator_kalman.o' failed
make[1]: *** [estimator_kalman.o] Error 1
Makefile:335: recipe for target 'build' failed
make: *** [build] Error 2
just try make mrproper && make but i have the same error.
In file included from src/modules/interface/kalman_core.h:57:0,
from src/modules/src/estimator_kalman.c:59:
src/utils/interface/cf_math.h:33:9: error: unknown option after '#pragma GCC diagnostic' kind [-Werror=pragmas]
cc1: all warnings being treated as errors
tools/make/targets.mk:26: recipe for target 'estimator_kalman.o' failed
make[1]: *** [estimator_kalman.o] Error 1
Makefile:335: recipe for target 'build' failed
make: *** [build] Error 2
Re: make[1]: *** [estimator_kalman.o] Error 1
Interesting... it might not be related to the firmware.,,
A bit of googling got me on the track of the GCC version, which might be different between you and me:
Could you copy paste what you get in your terminal?
A bit of googling got me on the track of the GCC version, which might be different between you and me:
Code: Select all
gcc --version
Re: make[1]: *** [estimator_kalman.o] Error 1
gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
Re: make[1]: *** [estimator_kalman.o] Error 1
Aha you have a much new version (I have gcc version 5.4). Probably that option is deprecated so commenting that line would do the trick (src/utils/interface/cf_math.h line 33). To find the updated option requires some research though, but at least you will know if that solves the warning.
Re: make[1]: *** [estimator_kalman.o] Error 1
The firmware actually uses a different compiler, so you should check instead. I use 2018-q3 and you can get the latest version at https://developer.arm.com/tools-and-sof ... /downloads.
Code: Select all
arm-none-eabi-gcc --version