# Compiling problem

**URL:** <https://forum.zubax.com/t/compiling-problem/1305>\
**Category:** Cyphal & DroneCAN\
**Created:** [May 7, 2019, 9:50am UTC](https://forum.zubax.com/t/compiling-problem/1305 "2019-05-07T09:50:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anemostec](https://forum.zubax.com/user_avatar/forum.zubax.com/anemostec/32/463_2.png) [@anemostec](https://forum.zubax.com/u/anemostec)\
**Post date:** [May 7, 2019, 9:50am UTC](https://forum.zubax.com/t/compiling-problem/1305/1 "2019-05-07T09:50:08Z")

</div>

Hello, I have the following error when trying to compile the zubax\_babel product

Compiling config.cpp  
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++  
zubax\_chibios///zubax\_chibios/config/config.cpp: In function ‘void configRegisterParam\_(const ConfigParam\*)’:  
zubax\_chibios///zubax\_chibios/config/config.cpp:173:22: warning: declaration of ‘ch’ shadows a global declaration [-Wshadow]  
for (const char\* ch = param-\>name; _ch; ch++)  
^~  
In file included from zubax\_chibios///chibios/os/rt/include/ch.h:78:0,  
from zubax\_chibios///chibios/os/various/cpp\_wrappers/ch.hpp:25,  
from zubax\_chibios///zubax\_chibios/config/config.cpp:14:  
zubax\_chibios///chibios/os/rt/include/chschd.h:521:20: note: shadowed declaration is here  
extern ch\_system\_t ch;  
^~  
zubax\_chibios///zubax\_chibios/config/config.cpp: In function 'bool isValid(const ConfigParam_, float)':  
zubax\_chibios///zubax\_chibios/config/config.cpp:114:9: error: this statement may fall through [-Werror=implicit-fallthrough=]  
}  
^  
zubax\_chibios///zubax\_chibios/config/config.cpp:117:5: note: here  
case CONFIG\_TYPE\_FLOAT:  
^~~~  
cc1plus: all warnings being treated as errors  
make: \*\*\* [zubax\_chibios///chibios/os/common/ports/ARMCMx/compilers/GCC/rules.mk:194: build/obj/config.o] Error 1

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [May 7, 2019, 10:14am UTC](https://forum.zubax.com/t/compiling-problem/1305/2 "2019-05-07T10:14:25Z")

</div>

Wrong toolchain. You need GCC v6.3.

---

<div class="post-metadata">

**Author:** ![anemostec](https://forum.zubax.com/user_avatar/forum.zubax.com/anemostec/32/463_2.png) [@anemostec](https://forum.zubax.com/u/anemostec)\
**Post date:** [May 7, 2019, 11:34am UTC](https://forum.zubax.com/t/compiling-problem/1305/3 "2019-05-07T11:34:15Z")

</div>

why do we need a precise version of the toolchain ?  
this is not very convenient, especially if an other project needs an other gcc version.

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [May 7, 2019, 12:26pm UTC](https://forum.zubax.com/t/compiling-problem/1305/4 "2019-05-07T12:26:32Z")

</div>

Ultimately, this question should be directed towards the GCC maintainers. There is no guarantee that a binary compiled with a newer or older toolchain will work as expected, so we freeze the version number per release.
