Closed vmsav closed 1 year ago
Try make dsdl
or any other make rules that may be necessary to run before the build. @vmsav
EDIT: I checked that only make dsdl
should be necessary to run before the general build process and also added this to the readme.
Thank you, @silverv! I've got another error probably connected with gcc compatibility: firmware/src/main.cpp:168:3: error: #error "This compiler is not supported"
I suppose __GNUC__
macro is not defined at all.
If I comment line main.cpp:168, I get further error:
(venv) vms@vms-ThinkPad-X13-Gen-1:~/workspace/sapog/sapog_3/firmware$ make dsdl
rm -f master.zip*
rm -rf public_regulated_data_types-master
Downloaded master.zip
Unpacked master.zip into the firmware folder
(venv) vms@vms-ThinkPad-X13-Gen-1:~/workspace/sapog/sapog_3/firmware$ make RELEASE=1
Compiler Options
arm-none-eabi-gcc -c -mcpu=cortex-m3 -falign-functions=16 -U__STRICT_ANSI__ -fno-exceptions -fno-unwind-tables -fno-stack-protector -fno-builtin-printf -fno-builtin-fprintf -fno-builtin-vprintf -fno-builtin-vfprintf -fno-builtin-puts -u_port_lock -u_port_unlock -u_exit -u_kill -u_getpid -uchThdExit -u__errno -nodefaultlibs -lc -lgcc -lm -O3 -fomit-frame-pointer -DNDEBUG=1 -DCANARD_ASSERT(x) -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-common -std=c99 -Wshadow -Wpointer-arith -Wno-packed -Wno-attributes -Wno-error=undef -Wno-error=shadow -Wno-error=array-bounds -Wno-error=implicit-fallthrough -Wno-deprecated -Wall -Wextra -Wa,-alms=build/lst/ -DBUILD_TIMESTAMP_UTC=1679664899 -DDIRTY_BUILD=1 -DCORTEX_VTOR_INIT=32768 -DCRT1_AREAS_NUMBER=0 -DCONFIG_PARAMS_MAX=50 -DBXCAN_MAX_IFACE_INDEX=1 -DBXCAN_BUSYWAIT_DELAY_SYSTEM_CORE_CLOCK=72000000 -DRELEASE_BUILD=1 -DNDEBUG=1 -Dasm=__asm -DCORTEX_USE_FPU=FALSE -DFW_VERSION_MAJOR=3 -DFW_VERSION_MINOR=0 -DHW_VERSION_MAJOR=1 -DNODE_NAME="io.px4.sapog" -DCONFIG_PARAM_MAX_NAME_LENGTH=92 -DGIT_HASH=0x849714830c54b60f -DVCS_REVISION_ID=0x849714830c54b60f -DSTDOUT_SD=SD1 -DSTDIN_SD=STDOUT_SD -DSERIAL_CLI_PORT_NUMBER=1 -DCORTEX_ENABLE_WFI_IDLE=1 -fno-single-precision-constant -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -MD -MP -MF .dep/build.d -I. -Izubax_chibios///chibios/os/rt/ports/ARMCMx -Izubax_chibios///chibios/os/rt/ports/ARMCMx/compilers/GCC -Izubax_chibios///chibios/os/rt/include -Izubax_chibios///chibios/os/hal/include -Izubax_chibios//chibios/os/hal/ports/common/ARMCMx -Izubax_chibios//chibios/os/hal/ports/STM32/STM32F1xx -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/CANv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/DACv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/DMAv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/EXTIv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/GPIOv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/I2Cv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/MACv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/OTGv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/RTCv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/SDIOv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/SPIv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/TIMv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/USARTv1 -Izubax_chibios//chibios/os/hal/ports/STM32/LLD/xWDGv1 -Izubax_chibios///chibios/os/various/cpp_wrappers -Izubax_chibios///chibios/os/common/ports/ARMCMx/compilers/GCC -Izubax_chibios///chibios/os/common/ports/ARMCMx/devices/STM32F1xx -Izubax_chibios///chibios/os/ext/CMSIS/include -Izubax_chibios///chibios/os/ext/CMSIS/ST/STM32F1xx -Izubax_chibios///chibios/os/hal/osal/rt -Izubax_chibios///chibios/os/various -Izubax_chibios///chibios/os/hal/lib/streams -Isrc -Isrc/os_config -Igenerated/nunavut_out -Iinclude -Izubax_chibios// main.c -o main.o
Compiling crt0_v7m.s
Compiling chcoreasm_v7m.s
Compiling motor_adc.c
Compiling motor_debug_cli.c
Compiling motor_forced_rotation_detection.c
Compiling motor_pwm.c
Compiling motor_rtctl.c
Compiling motor_rtctl_test.c
Compiling motor_timer.c
Compiling rpmctl.c
Compiling bxcan.c
Compiling canard.c
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h: In function 'cavlPrivateRotate':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:99:5: note: in expansion of macro 'CAVL_ASSERT'
99 | CAVL_ASSERT((x != NULL) && (x->lr[!r] != NULL) && ((x->bf >= -1) && (x->bf <= +1)));
| ^~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h: In function 'cavlPrivateAdjustBalance':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:120:5: note: in expansion of macro 'CAVL_ASSERT'
120 | CAVL_ASSERT((x != NULL) && ((x->bf >= -1) && (x->bf <= +1)));
| ^~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:128:7: note: in expansion of macro 'CAVL_ASSERT'
128 | CAVL_ASSERT(z != NULL); // Heavy side cannot be empty.
| ^~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:145:9: note: in expansion of macro 'CAVL_ASSERT'
145 | CAVL_ASSERT(y != NULL); // Heavy side cannot be empty.
| ^~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h: In function 'cavlPrivateRetraceOnGrowth':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:177:5: note: in expansion of macro 'CAVL_ASSERT'
177 | CAVL_ASSERT((added != NULL) && (0 == added->bf));
| ^~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:183:7: note: in expansion of macro 'CAVL_ASSERT'
183 | CAVL_ASSERT(p->lr[r] == c);
| ^~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:191:5: note: in expansion of macro 'CAVL_ASSERT'
191 | CAVL_ASSERT(c != NULL);
| ^~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h: In function 'cavlSearch':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:215:9: note: in expansion of macro 'CAVL_ASSERT'
215 | CAVL_ASSERT((NULL == *n) || ((*n)->up == up));
| ^~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h: In function 'cavlRemove':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:242:7: note: in expansion of macro 'CAVL_ASSERT'
242 | CAVL_ASSERT(*root != NULL); // Otherwise, the node would have to be NULL.
| ^~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:243:7: note: in expansion of macro 'CAVL_ASSERT'
243 | CAVL_ASSERT((node->up != NULL) || (node == *root));
| ^~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:251:9: note: in expansion of macro 'CAVL_ASSERT'
251 | CAVL_ASSERT((re != NULL) && (NULL == re->lr[0]) && (re->up != NULL));
| ^~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:258:11: note: in expansion of macro 'CAVL_ASSERT'
258 | CAVL_ASSERT(p->lr[0] == re);
| ^~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:30:25: note: in expansion of macro 'CANARD_ASSERT'
30 | # define CAVL_ASSERT CANARD_ASSERT
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/cavl.h:320:11: note: in expansion of macro 'CAVL_ASSERT'
320 | CAVL_ASSERT(c != NULL);
| ^~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'crcAdd':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:133:3: note: in expansion of macro 'CANARD_ASSERT'
133 | CANARD_ASSERT((data != NULL) || (size == 0U));
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'txMakeMessageSessionSpecifier':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:172:3: note: in expansion of macro 'CANARD_ASSERT'
172 | CANARD_ASSERT(src_node_id <= CANARD_NODE_ID_MAX);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:173:3: note: in expansion of macro 'CANARD_ASSERT'
173 | CANARD_ASSERT(subject_id <= CANARD_SUBJECT_ID_MAX);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'txMakeServiceSessionSpecifier':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:183:3: note: in expansion of macro 'CANARD_ASSERT'
183 | CANARD_ASSERT(src_node_id <= CANARD_NODE_ID_MAX);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:184:3: note: in expansion of macro 'CANARD_ASSERT'
184 | CANARD_ASSERT(dst_node_id <= CANARD_NODE_ID_MAX);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:185:3: note: in expansion of macro 'CANARD_ASSERT'
185 | CANARD_ASSERT(service_id <= CANARD_SERVICE_ID_MAX);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'txMakeCANID':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:215:3: note: in expansion of macro 'CANARD_ASSERT'
215 | CANARD_ASSERT(tr != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:216:3: note: in expansion of macro 'CANARD_ASSERT'
216 | CANARD_ASSERT(presentation_layer_mtu > 0);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:224:7: note: in expansion of macro 'CANARD_ASSERT'
224 | CANARD_ASSERT(out >= 0);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:227:7: note: in expansion of macro 'CANARD_ASSERT'
227 | CANARD_ASSERT((payload != NULL) || (payload_size == 0U));
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:230:7: note: in expansion of macro 'CANARD_ASSERT'
230 | CANARD_ASSERT(spec <= CAN_EXT_ID_MASK);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:245:7: note: in expansion of macro 'CANARD_ASSERT'
245 | CANARD_ASSERT(out >= 0);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'txMakeTailByte':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:275:3: note: in expansion of macro 'CANARD_ASSERT'
275 | CANARD_ASSERT(start_of_transfer ? (toggle == INITIAL_TOGGLE_STATE) : true);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'txRoundFramePayloadSizeUp':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:284:3: note: in expansion of macro 'CANARD_ASSERT'
284 | CANARD_ASSERT(x < (sizeof(CanardCANLengthToDLC) / sizeof(CanardCANLengthToDLC[0])));
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:287:3: note: in expansion of macro 'CANARD_ASSERT'
287 | CANARD_ASSERT(y < (sizeof(CanardCANDLCToLength) / sizeof(CanardCANDLCToLength[0])));
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'txAllocateQueueItem':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:297:3: note: in expansion of macro 'CANARD_ASSERT'
297 | CANARD_ASSERT(ins != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:298:3: note: in expansion of macro 'CANARD_ASSERT'
298 | CANARD_ASSERT(payload_size > 0U);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'txAVLPredicate':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:325:3: note: in expansion of macro 'CANARD_ASSERT'
325 | CANARD_ASSERT((target != NULL) && (other != NULL));
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'txPushSingleFrame':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:338:3: note: in expansion of macro 'CANARD_ASSERT'
338 | CANARD_ASSERT(ins != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:339:3: note: in expansion of macro 'CANARD_ASSERT'
339 | CANARD_ASSERT((payload != NULL) || (payload_size == 0));
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:341:3: note: in expansion of macro 'CANARD_ASSERT'
341 | CANARD_ASSERT(frame_payload_size > payload_size);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:343:3: note: in expansion of macro 'CANARD_ASSERT'
343 | CANARD_ASSERT((padding_size + payload_size + 1U) == frame_payload_size);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:351:7: note: in expansion of macro 'CANARD_ASSERT'
351 | CANARD_ASSERT(payload != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:363:5: note: in expansion of macro 'CANARD_ASSERT'
363 | CANARD_ASSERT(res == &tqi->base.base);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:365:5: note: in expansion of macro 'CANARD_ASSERT'
365 | CANARD_ASSERT(que->size <= que->capacity);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:371:3: note: in expansion of macro 'CANARD_ASSERT'
371 | CANARD_ASSERT((out < 0) || (out == 1));
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'txGenerateMultiFrameChain':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:384:3: note: in expansion of macro 'CANARD_ASSERT'
384 | CANARD_ASSERT(ins != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:385:3: note: in expansion of macro 'CANARD_ASSERT'
385 | CANARD_ASSERT(presentation_layer_mtu > 0U);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:386:3: note: in expansion of macro 'CANARD_ASSERT'
386 | CANARD_ASSERT(payload_size > presentation_layer_mtu); // Otherwise, a single-frame transfer should be used.
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:387:3: note: in expansion of macro 'CANARD_ASSERT'
387 | CANARD_ASSERT(payload != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:463:5: note: in expansion of macro 'CANARD_ASSERT'
463 | CANARD_ASSERT((frame_offset + 1U) == out.tail->base.frame.payload_size);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'txPushMultiFrame':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:482:3: note: in expansion of macro 'CANARD_ASSERT'
482 | CANARD_ASSERT((ins != NULL) && (que != NULL));
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:483:3: note: in expansion of macro 'CANARD_ASSERT'
483 | CANARD_ASSERT(presentation_layer_mtu > 0U);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:484:3: note: in expansion of macro 'CANARD_ASSERT'
484 | CANARD_ASSERT(payload_size > presentation_layer_mtu); // Otherwise, a single-frame transfer should be used.
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:489:3: note: in expansion of macro 'CANARD_ASSERT'
489 | CANARD_ASSERT(num_frames >= 2);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:507:9: note: in expansion of macro 'CANARD_ASSERT'
507 | CANARD_ASSERT(res == &next->base);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:508:9: note: in expansion of macro 'CANARD_ASSERT'
508 | CANARD_ASSERT(que->root != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:511:7: note: in expansion of macro 'CANARD_ASSERT'
511 | CANARD_ASSERT(num_frames == sq.size);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:513:7: note: in expansion of macro 'CANARD_ASSERT'
513 | CANARD_ASSERT(que->size <= que->capacity);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:514:7: note: in expansion of macro 'CANARD_ASSERT'
514 | CANARD_ASSERT((sq.size + 0ULL) <= INT32_MAX); // +0 is to suppress warning.
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:531:3: note: in expansion of macro 'CANARD_ASSERT'
531 | CANARD_ASSERT((out < 0) || (out >= 2));
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'rxTryParseFrame':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:578:3: note: in expansion of macro 'CANARD_ASSERT'
578 | CANARD_ASSERT(frame != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:579:3: note: in expansion of macro 'CANARD_ASSERT'
579 | CANARD_ASSERT(frame->extended_can_id <= CAN_EXT_ID_MASK);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:580:3: note: in expansion of macro 'CANARD_ASSERT'
580 | CANARD_ASSERT(out != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:584:5: note: in expansion of macro 'CANARD_ASSERT'
584 | CANARD_ASSERT(frame->payload != NULL);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'rxInitTransferMetadataFromFrame':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:646:3: note: in expansion of macro 'CANARD_ASSERT'
646 | CANARD_ASSERT(frame != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:647:3: note: in expansion of macro 'CANARD_ASSERT'
647 | CANARD_ASSERT(frame->payload != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:648:3: note: in expansion of macro 'CANARD_ASSERT'
648 | CANARD_ASSERT(out_transfer != NULL);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'rxComputeTransferIDDifference':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:659:3: note: in expansion of macro 'CANARD_ASSERT'
659 | CANARD_ASSERT(a <= CANARD_TRANSFER_ID_MAX);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:660:3: note: in expansion of macro 'CANARD_ASSERT'
660 | CANARD_ASSERT(b <= CANARD_TRANSFER_ID_MAX);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'rxSessionWritePayload':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:676:3: note: in expansion of macro 'CANARD_ASSERT'
676 | CANARD_ASSERT(ins != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:677:3: note: in expansion of macro 'CANARD_ASSERT'
677 | CANARD_ASSERT(rxs != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:678:3: note: in expansion of macro 'CANARD_ASSERT'
678 | CANARD_ASSERT((payload != NULL) || (payload_size == 0U));
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:679:3: note: in expansion of macro 'CANARD_ASSERT'
679 | CANARD_ASSERT(rxs->payload_size <= extent); // This invariant is enforced by the subscription logic.
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:680:3: note: in expansion of macro 'CANARD_ASSERT'
680 | CANARD_ASSERT(rxs->payload_size <= rxs->total_payload_size);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:687:5: note: in expansion of macro 'CANARD_ASSERT'
687 | CANARD_ASSERT(rxs->payload_size == 0);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:698:7: note: in expansion of macro 'CANARD_ASSERT'
698 | CANARD_ASSERT(rxs->payload_size <= extent);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:700:7: note: in expansion of macro 'CANARD_ASSERT'
700 | CANARD_ASSERT((rxs->payload_size + bytes_to_copy) == extent);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:701:7: note: in expansion of macro 'CANARD_ASSERT'
701 | CANARD_ASSERT(bytes_to_copy < payload_size);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:711:5: note: in expansion of macro 'CANARD_ASSERT'
711 | CANARD_ASSERT(rxs->payload_size <= extent);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:714:5: note: in expansion of macro 'CANARD_ASSERT'
714 | CANARD_ASSERT(rxs->payload_size == 0);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:717:3: note: in expansion of macro 'CANARD_ASSERT'
717 | CANARD_ASSERT(out <= 0);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'rxSessionRestart':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:723:3: note: in expansion of macro 'CANARD_ASSERT'
723 | CANARD_ASSERT(ins != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:724:3: note: in expansion of macro 'CANARD_ASSERT'
724 | CANARD_ASSERT(rxs != NULL);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'rxSessionAcceptFrame':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:741:3: note: in expansion of macro 'CANARD_ASSERT'
741 | CANARD_ASSERT(ins != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:742:3: note: in expansion of macro 'CANARD_ASSERT'
742 | CANARD_ASSERT(rxs != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:743:3: note: in expansion of macro 'CANARD_ASSERT'
743 | CANARD_ASSERT(frame != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:744:3: note: in expansion of macro 'CANARD_ASSERT'
744 | CANARD_ASSERT(frame->payload != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:745:3: note: in expansion of macro 'CANARD_ASSERT'
745 | CANARD_ASSERT(frame->transfer_id <= CANARD_TRANSFER_ID_MAX);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:746:3: note: in expansion of macro 'CANARD_ASSERT'
746 | CANARD_ASSERT(out_transfer != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:764:5: note: in expansion of macro 'CANARD_ASSERT'
764 | CANARD_ASSERT(-CANARD_ERROR_OUT_OF_MEMORY == out);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:768:5: note: in expansion of macro 'CANARD_ASSERT'
768 | CANARD_ASSERT(0 == out);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:778:7: note: in expansion of macro 'CANARD_ASSERT'
778 | CANARD_ASSERT(rxs->total_payload_size >= rxs->payload_size);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:782:9: note: in expansion of macro 'CANARD_ASSERT'
782 | CANARD_ASSERT(out_transfer->payload_size >= (CRC_SIZE_BYTES - truncated_amount));
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'rxSessionUpdate':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:811:3: note: in expansion of macro 'CANARD_ASSERT'
811 | CANARD_ASSERT(ins != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:812:3: note: in expansion of macro 'CANARD_ASSERT'
812 | CANARD_ASSERT(rxs != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:813:3: note: in expansion of macro 'CANARD_ASSERT'
813 | CANARD_ASSERT(frame != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:814:3: note: in expansion of macro 'CANARD_ASSERT'
814 | CANARD_ASSERT(out_transfer != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:815:3: note: in expansion of macro 'CANARD_ASSERT'
815 | CANARD_ASSERT(rxs->transfer_id <= CANARD_TRANSFER_ID_MAX);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:816:3: note: in expansion of macro 'CANARD_ASSERT'
816 | CANARD_ASSERT(frame->transfer_id <= CANARD_TRANSFER_ID_MAX);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'rxAcceptFrame':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:859:3: note: in expansion of macro 'CANARD_ASSERT'
859 | CANARD_ASSERT(ins != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:860:3: note: in expansion of macro 'CANARD_ASSERT'
860 | CANARD_ASSERT(subscription != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:861:3: note: in expansion of macro 'CANARD_ASSERT'
861 | CANARD_ASSERT(subscription->port_id == frame->port_id);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:862:3: note: in expansion of macro 'CANARD_ASSERT'
862 | CANARD_ASSERT(frame != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:863:3: note: in expansion of macro 'CANARD_ASSERT'
863 | CANARD_ASSERT(frame->payload != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:864:3: note: in expansion of macro 'CANARD_ASSERT'
864 | CANARD_ASSERT(frame->transfer_id <= CANARD_TRANSFER_ID_MAX);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:865:3: note: in expansion of macro 'CANARD_ASSERT'
865 | CANARD_ASSERT((CANARD_NODE_ID_UNSET == frame->destination_node_id) || (ins->node_id == frame->destination_node_id));
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:866:3: note: in expansion of macro 'CANARD_ASSERT'
866 | CANARD_ASSERT(out_transfer != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:896:7: note: in expansion of macro 'CANARD_ASSERT'
896 | CANARD_ASSERT(out == 0);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:907:5: note: in expansion of macro 'CANARD_ASSERT'
907 | CANARD_ASSERT(frame->source_node_id == CANARD_NODE_ID_UNSET);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'canardInit':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:966:3: note: in expansion of macro 'CANARD_ASSERT'
966 | CANARD_ASSERT(memory_allocate != NULL);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:967:3: note: in expansion of macro 'CANARD_ASSERT'
967 | CANARD_ASSERT(memory_free != NULL);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'canardTxPush':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:1013:9: note: in expansion of macro 'CANARD_ASSERT'
1013 | CANARD_ASSERT((out < 0) || (out == 1));
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:1024:9: note: in expansion of macro 'CANARD_ASSERT'
1024 | CANARD_ASSERT((out < 0) || (out >= 2));
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:1031:3: note: in expansion of macro 'CANARD_ASSERT'
1031 | CANARD_ASSERT(out != 0);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'canardRxAccept':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:1096:11: note: in expansion of macro 'CANARD_ASSERT'
1096 | CANARD_ASSERT(sub->port_id == model.port_id);
| ^~~~~~~~~~~~~
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:1111:3: note: in expansion of macro 'CANARD_ASSERT'
1111 | CANARD_ASSERT(out <= 1);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'canardRxSubscribe':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:1147:7: note: in expansion of macro 'CANARD_ASSERT'
1147 | CANARD_ASSERT(res == &out_subscription->base);
| ^~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c: In function 'canardRxUnsubscribe':
<command-line>: warning: statement with no effect [-Wunused-value]
/home/vms/workspace/sapog/sapog_3/firmware/src/../include/libcanard/canard.c:1168:7: note: in expansion of macro 'CANARD_ASSERT'
1168 | CANARD_ASSERT(sub->port_id == port_id);
| ^~~~~~~~~~~~~
Compiling o1heap.c
Compiling crt1.c
Compiling vectors.c
Compiling chsys.c
Compiling chdebug.c
Compiling chvt.c
Compiling chschd.c
Compiling chthreads.c
Compiling chtm.c
Compiling chstats.c
Compiling chdynamic.c
Compiling chregistry.c
Compiling chsem.c
Compiling chmtx.c
Compiling chcond.c
Compiling chevents.c
Compiling chmsg.c
Compiling chmboxes.c
Compiling chqueues.c
Compiling chmemcore.c
Compiling chheap.c
Compiling chmempools.c
Compiling chcore.c
Compiling chcore_v7m.c
Compiling osal.c
Compiling hal.c
Compiling hal_buffers.c
Compiling hal_queues.c
Compiling hal_mmcsd.c
Compiling adc.c
Compiling can.c
Compiling dac.c
Compiling ext.c
Compiling gpt.c
Compiling i2c.c
Compiling i2s.c
Compiling icu.c
Compiling mac.c
Compiling mmc_spi.c
Compiling pal.c
Compiling pwm.c
Compiling rtc.c
Compiling sdc.c
Compiling serial.c
Compiling serial_usb.c
Compiling spi.c
Compiling st.c
Compiling uart.c
Compiling usb.c
Compiling wdg.c
Compiling nvic.c
Compiling hal_lld.c
Compiling adc_lld.c
Compiling ext_lld_isr.c
Compiling can_lld.c
Compiling dac_lld.c
Compiling stm32_dma.c
Compiling ext_lld.c
Compiling pal_lld.c
Compiling i2c_lld.c
Compiling mac_lld.c
Compiling usb_lld.c
Compiling rtc_lld.c
Compiling sdc_lld.c
Compiling spi_lld.c
Compiling gpt_lld.c
Compiling icu_lld.c
Compiling pwm_lld.c
Compiling st_lld.c
Compiling serial_lld.c
Compiling uart_lld.c
Compiling wdg_lld.c
Compiling syscalls.c
Compiling chprintf.c
Compiling memstreams.c
Compiling shell.c
Compiling board.cpp
Compiling led.cpp
Compiling unique_id.cpp
Compiling bootloader_interface.cpp
Compiling console.cpp
Compiling hash.cpp
Compiling main.cpp
Compiling motor.cpp
/home/vms/workspace/sapog/sapog_3/firmware/src/motor/motor.cpp: In member function 'virtual void<unnamed struct>::operator()(node::state::State*)':
/home/vms/workspace/sapog/sapog_3/firmware/src/motor/motor.cpp:228:5: warning: declaration of 'state' shadows a member of '<unnamed struct>' [-Wshadow]
228 | {
| ^
In file included from /home/vms/workspace/sapog/sapog_3/firmware/src/motor/motor_ttl_expiry_handler.hpp:1,
from /home/vms/workspace/sapog/sapog_3/firmware/src/motor/motor.cpp:46:
src/node/interfaces/IHandler.hpp:30:25: note: shadowed declaration is here
30 | node::state::State *state;
| ^~~~~
Compiling BackgroundConfigManager.cpp
Compiling can_interrupt_handler.cpp
Compiling extern_queue.cpp
Compiling wrapper.cpp
Compiling esc_publishers.cpp
Compiling access.cpp
Compiling get_info.cpp
Compiling heartbeat.cpp
Compiling port_list.cpp
In file included from generated/nunavut_out/uavcan/node/port/List_0_1.h:47,
from /home/vms/workspace/sapog/sapog_3/firmware/src/node/essential/port_list.cpp:7:
In function 'void nunavutCopyBits(void*, size_t, size_t, const void*, size_t)',
inlined from 'int8_t uavcan_node_port_SubjectIDList_0_1_serialize_(const uavcan_node_port_SubjectIDList_0_1*, uint8_t*, size_t*)' at generated/nunavut_out/nunavut/support/serialization.h:112:20,
inlined from 'int8_t uavcan_node_port_List_0_1_serialize_(const uavcan_node_port_List_0_1*, uint8_t*, size_t*)' at generated/nunavut_out/uavcan/node/port/List_0_1.h:150:70,
inlined from 'void publish_port_list(CanardInstance&, node::state::State&)' at /home/vms/workspace/sapog/sapog_3/firmware/src/node/essential/port_list.cpp:68:45:
generated/nunavut_out/nunavut/support/serialization.h:128:23: warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' forming offset [513, 1029] is out of the bounds [0, 512] of object 'serialized' with type 'uint8_t [512]' {aka 'unsigned char [512]'} [-Warray-bounds]
128 | (void) memmove(pdst, psrc, length_bytes);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/node/essential/port_list.cpp: In function 'void publish_port_list(CanardInstance&, node::state::State&)':
/home/vms/workspace/sapog/sapog_3/firmware/src/node/essential/port_list.cpp:66:13: note: 'serialized' declared here
66 | uint8_t serialized[512] = {0}; // https://github.com/UAVCAN/nunavut/issues/191
| ^~~~~~~~~~
In file included from generated/nunavut_out/uavcan/node/port/List_0_1.h:47,
from /home/vms/workspace/sapog/sapog_3/firmware/src/node/essential/port_list.cpp:7:
In function 'void nunavutCopyBits(void*, size_t, size_t, const void*, size_t)',
inlined from 'int8_t uavcan_node_port_SubjectIDList_0_1_serialize_(const uavcan_node_port_SubjectIDList_0_1*, uint8_t*, size_t*)' at generated/nunavut_out/nunavut/support/serialization.h:112:20,
inlined from 'int8_t uavcan_node_port_List_0_1_serialize_(const uavcan_node_port_List_0_1*, uint8_t*, size_t*)' at generated/nunavut_out/uavcan/node/port/List_0_1.h:181:70,
inlined from 'void publish_port_list(CanardInstance&, node::state::State&)' at /home/vms/workspace/sapog/sapog_3/firmware/src/node/essential/port_list.cpp:68:45:
generated/nunavut_out/nunavut/support/serialization.h:128:23: warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' forming offset [513, 1034] is out of the bounds [0, 512] of object 'serialized' with type 'uint8_t [512]' {aka 'unsigned char [512]'} [-Warray-bounds]
128 | (void) memmove(pdst, psrc, length_bytes);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/vms/workspace/sapog/sapog_3/firmware/src/node/essential/port_list.cpp: In function 'void publish_port_list(CanardInstance&, node::state::State&)':
/home/vms/workspace/sapog/sapog_3/firmware/src/node/essential/port_list.cpp:66:13: note: 'serialized' declared here
66 | uint8_t serialized[512] = {0}; // https://github.com/UAVCAN/nunavut/issues/191
| ^~~~~~~~~~
Compiling init_can.cpp
Compiling loop.cpp
Compiling pnp.cpp
Compiling reception.cpp
Compiling register_variables.cpp
Compiling subscriptions.cpp
In file included from /home/vms/workspace/sapog/sapog_3/firmware/src/node/register_values/subscriptions.cpp:15:
src/node/esc/esc.hpp: In member function 'virtual void<unnamed struct>::operator()(node::state::State*)':
src/node/esc/esc.hpp:31:5: warning: declaration of 'state' shadows a member of '<unnamed struct>' [-Wshadow]
31 | {
| ^
In file included from src/node/commands/commands.hpp:16,
from /home/vms/workspace/sapog/sapog_3/firmware/src/node/register_values/subscriptions.cpp:10:
src/node/interfaces/IHandler.hpp:30:25: note: shadowed declaration is here
30 | node::state::State *state;
| ^~~~~
Compiling state.cpp
Compiling time.cpp
Compiling transmit.cpp
Compiling uavcan_thread.cpp
Compiling print_can_error.cpp
Compiling pwm_input.cpp
Compiling registers.cpp
Compiling temperature_sensor.cpp
Compiling sys_stm32.cpp
Compiling watchdog_stm32.cpp
Compiling libstdcpp.cpp
Compiling sys_console.cpp
Compiling sys.cpp
zubax_chibios///zubax_chibios/sys/sys.cpp:74:5: error: 'int __errno' redeclared as different kind of entity
74 | int __errno;
| ^~~~~~~
In file included from /opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/errno.h:9,
from /opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/cerrno:42,
from /opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/ext/string_conversions.h:44,
from /opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/bits/basic_string.h:6493,
from /opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/string:55,
from /opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/stdexcept:39,
from /opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/array:39,
from /opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/tuple:39,
from /opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/functional:54,
from /opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/pstl/glue_algorithm_defs.h:13,
from /opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/c++/9.3.1/algorithm:71,
from zubax_chibios//zubax_chibios/util/heapless.hpp:14,
from zubax_chibios///zubax_chibios/sys/sys.cpp:15:
/opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include/sys/errno.h:15:13: note: previous declaration 'int* __errno()'
15 | extern int *__errno (void);
| ^~~~~~~
make: *** [zubax_chibios///chibios/os/common/ports/ARMCMx/compilers/GCC/rules.mk:199: build/obj/sys.o] Error 1
@vmsav please only use the compiler version stated in the README, otherwise you're on your own.
Problem solved by updating arm-none-eabi-gcc to version 10.3-2021.10! Thank you!
I cloned commit 502209b1 (v3 branch), did
git submodule update --init --recursive --force
, activated virtual environment with Python 3.8.16 and got error error: uavcan/node/GetInfo_1_0.h: No such file or directory. What is wrong, @pavel-kirienko?Full build log: