Skip to content

Micro-XRCE-DDS on Adafruit Feather M0 using PlatformIO + Zephyr framework #397

@Kara-Ro

Description

@Kara-Ro

Hello,
I am trying to compile Micro-XRCE-DDS-Client library to be used on Adafruit Feather M0 using PlatformIO with Zephyr framework.
It is rather similar to the other open topic "Adafruit Feather M0 using PlatformIO + Zephyr framework"
I got a lot of inspiration from there but I am still not quite there.

I follow: #208 (comment)
I successfully compiled Micro-CDR without any warnings.
When I try to compile the MicroXRCE-DDS-Client it fails when compiling time.c.obj.

`~/rfm69hcw/lib/MicroXRCE-DDS-Client/build$ make

[ 2%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/session/stream/input_best_effort_stream.c.obj
[ 5%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/session/stream/input_reliable_stream.c.obj
[ 8%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/session/stream/output_best_effort_stream.c.obj
[ 11%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/session/stream/output_reliable_stream.c.obj
[ 14%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/session/stream/stream_storage.c.obj
[ 17%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/session/stream/stream_id.c.obj
[ 20%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/session/stream/seq_num.c.obj
[ 23%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/session/session.c.obj
[ 26%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/session/session_info.c.obj
[ 29%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/session/submessage.c.obj
[ 32%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/session/object_id.c.obj
[ 35%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/serialization/xrce_types.c.obj
[ 38%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/serialization/xrce_header.c.obj
[ 41%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/core/serialization/xrce_subheader.c.obj
[ 44%] Building C object CMakeFiles/microxrcedds_client.dir/src/c/util/time.c.obj
In file included from /home/kara_ro/.platformio/packages/framework-zephyr/include/toolchain.h:50,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel_includes.h:19,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel.h:17,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/posix/time.h:59,
from /home/kara_ro/rfm69hcw/lib/MicroXRCE-DDS-Client/src/c/util/time.c:3:
/home/kara_ro/.platformio/packages/framework-zephyr/include/toolchain/gcc.h:509:2: error: #error processor architecture not supported
509 | #error processor architecture not supported
| ^~~~~
In file included from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel_includes.h:28,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel.h:17,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/posix/time.h:59,
from /home/kara_ro/rfm69hcw/lib/MicroXRCE-DDS-Client/src/c/util/time.c:3:
/home/kara_ro/.platformio/packages/framework-zephyr/include/kernel_structs.h:136:19: error: 'CONFIG_MP_NUM_CPUS' undeclared here (not in a function)
136 | struct _cpu cpus[CONFIG_MP_NUM_CPUS];
| ^~~~~~~~~~~~~~~~~~
In file included from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel_includes.h:33,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel.h:17,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/posix/time.h:59,
from /home/kara_ro/rfm69hcw/lib/MicroXRCE-DDS-Client/src/c/util/time.c:3:
/home/kara_ro/.platformio/packages/framework-zephyr/include/arch/cpu.h:33:2: error: #error "Unknown Architecture"
33 | #error "Unknown Architecture"
| ^~~~~
In file included from /home/kara_ro/.platformio/packages/framework-zephyr/include/sys_clock.h:25,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel_includes.h:35,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel.h:17,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/posix/time.h:59,
from /home/kara_ro/rfm69hcw/lib/MicroXRCE-DDS-Client/src/c/util/time.c:3:
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'sys_clock_hw_cycles_per_sec':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:55:9: error: 'CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC' undeclared (first use in this function)
55 | return CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:55:9: note: each undeclared identifier is reported only once for each function it appears in
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ms_to_ticks_floor32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:302:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
302 | return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, true, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ms_to_ticks_floor64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:316:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
316 | return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, false, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ms_to_ticks_near32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:330:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
330 | return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, true, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ms_to_ticks_near64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:344:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
344 | return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, false, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ms_to_ticks_ceil32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:358:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
358 | return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, true, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ms_to_ticks_ceil64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:372:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
372 | return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, false, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_us_to_ticks_floor32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:470:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
470 | return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, true, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_us_to_ticks_floor64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:484:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
484 | return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, false, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_us_to_ticks_near32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:498:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
498 | return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, true, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_us_to_ticks_near64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:512:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
512 | return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, false, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_us_to_ticks_ceil32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:526:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
526 | return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, true, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_us_to_ticks_ceil64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:540:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
540 | return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, false, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ns_to_ticks_floor32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:638:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
638 | return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, true, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ns_to_ticks_floor64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:652:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
652 | return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, false, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ns_to_ticks_near32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:666:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
666 | return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, true, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ns_to_ticks_near64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:680:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
680 | return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, false, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ns_to_ticks_ceil32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:694:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
694 | return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, true, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ns_to_ticks_ceil64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:708:29: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
708 | return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, false, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_cyc_to_ticks_floor32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:974:30: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
974 | return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, true, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_cyc_to_ticks_floor64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:988:30: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
988 | return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, false, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_cyc_to_ticks_near32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1002:30: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1002 | return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, true, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_cyc_to_ticks_near64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1016:30: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1016 | return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, false, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_cyc_to_ticks_ceil32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1030:30: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1030 | return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, true, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_cyc_to_ticks_ceil64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1044:30: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1044 | return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, false, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ms_floor32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1058:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1058 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, true, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ms_floor64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1072:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1072 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, false, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ms_near32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1086:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1086 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, true, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ms_near64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1100:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1100 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, false, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ms_ceil32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1114:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1114 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, true, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ms_ceil64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1128:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1128 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, false, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_us_floor32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1142:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1142 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, true, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_us_floor64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1156:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1156 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, false, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_us_near32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1170:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1170 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, true, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_us_near64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1184:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1184 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, false, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_us_ceil32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1198:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1198 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, true, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_us_ceil64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1212:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1212 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, false, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ns_floor32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1226:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1226 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, true, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ns_floor64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1240:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1240 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, false, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ns_near32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1254:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1254 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, true, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ns_near64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1268:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1268 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, false, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ns_ceil32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1282:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1282 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, true, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_ns_ceil64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1296:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1296 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, false, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_cyc_floor32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1310:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1310 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, true, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_cyc_floor64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1324:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1324 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, false, false, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_cyc_near32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1338:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1338 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, true, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_cyc_near64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1352:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1352 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, false, false, true);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_cyc_ceil32':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1366:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1366 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, true, true, false);
| ^~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h: In function 'k_ticks_to_cyc_ceil64':
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/time_units.h:1380:20: error: 'CONFIG_SYS_CLOCK_TICKS_PER_SEC' undeclared (first use in this function)
1380 | return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, false, true, false);
| ^~~~~~~~~~
In file included from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel_includes.h:37,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel.h:17,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/posix/time.h:59,
from /home/kara_ro/rfm69hcw/lib/MicroXRCE-DDS-Client/src/c/util/time.c:3:
/home/kara_ro/.platformio/packages/framework-zephyr/include/fatal.h: At top level:
/home/kara_ro/.platformio/packages/framework-zephyr/include/fatal.h:83:59: error: unknown type name 'z_arch_esf_t'
83 | void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *esf);
| ^~~~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/fatal.h:99:47: error: unknown type name 'z_arch_esf_t'
99 | void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf);
| ^~~~~~~~~~~~
In file included from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel/sched_priq.h:9,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel_includes.h:23,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel.h:17,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/posix/time.h:59,
from /home/kara_ro/rfm69hcw/lib/MicroXRCE-DDS-Client/src/c/util/time.c:3:
/home/kara_ro/.platformio/packages/framework-zephyr/include/kernel/thread_stack.h: In function 'z_stack_ptr_align':
/home/kara_ro/.platformio/packages/framework-zephyr/include/kernel/thread_stack.h:71:17: error: 'ARCH_STACK_PTR_ALIGN' undeclared (first use in this function)
71 | return (char *)ROUND_DOWN(ptr, ARCH_STACK_PTR_ALIGN);
| ^~~~~~~~~~
In file included from /home/kara_ro/.platformio/packages/framework-zephyr/include/app_memory/mem_domain.h:15,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel_includes.h:40,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel.h:17,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/posix/time.h:59,
from /home/kara_ro/rfm69hcw/lib/MicroXRCE-DDS-Client/src/c/util/time.c:3:
/home/kara_ro/.platformio/packages/framework-zephyr/include/kernel/thread.h: At top level:
/home/kara_ro/.platformio/packages/framework-zephyr/include/kernel/thread.h:206:23: error: field 'callee_saved' has incomplete type
206 | struct _callee_saved callee_saved;
| ^~~~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/kernel/thread.h:292:22: error: field 'arch' has incomplete type
292 | struct _thread_arch arch;
| ^~~~
In file included from /home/kara_ro/.platformio/packages/framework-zephyr/include/posix/time.h:59,
from /home/kara_ro/rfm69hcw/lib/MicroXRCE-DDS-Client/src/c/util/time.c:3:
/home/kara_ro/.platformio/packages/framework-zephyr/include/kernel.h:43:2: error: #error Zero available thread priorities defined!
43 | #error Zero available thread priorities defined!
| ^~~~~
In file included from /home/kara_ro/.platformio/packages/framework-zephyr/include/arch/cpu.h:12,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel_includes.h:33,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/kernel.h:17,
from /home/kara_ro/.platformio/packages/framework-zephyr/include/posix/time.h:59,
from /home/kara_ro/rfm69hcw/lib/MicroXRCE-DDS-Client/src/c/util/time.c:3:
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/arch_interface.h:59:24: warning: 'arch_k_cycle_get_32' used but never defined
59 | static inline uint32_t arch_k_cycle_get_32(void);
| ^~~~~~~~~~~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/arch_interface.h:240:28: warning: 'arch_irq_lock' used but never defined
240 | static inline unsigned int arch_irq_lock(void);
| ^~~~~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/arch_interface.h:247:20: warning: 'arch_irq_unlock' used but never defined
247 | static inline void arch_irq_unlock(unsigned int key);
| ^~~~~~~~~~~~~~~
/home/kara_ro/.platformio/packages/framework-zephyr/include/sys/arch_interface.h:256:20: warning: 'arch_irq_unlocked' declared 'static' but never defined [-Wunused-function]
256 | static inline bool arch_irq_unlocked(unsigned int key);
| ^~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/microxrcedds_client.dir/build.make:272: CMakeFiles/microxrcedds_client.dir/src/c/util/time.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/microxrcedds_client.dir/all] Error 2
make: *** [Makefile:136: all] Error 2`

I am trying to use compiler, settings, header files, and flags that I exctracted from platformIO after running:
`pio run -v

...
arm-none-eabi-gcc -o .pio/build/adafruit_feather_m0/src/main.o -c -Os -imacros /home/kara_ro/rfm69hcw/.pio/build/adafruit_feather_m0/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee -imacros /home/kara_ro/.platformio/packages/framework-zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/kara_ro/rfm69hcw/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/kara_ro/.platformio/packages/framework-zephyr=ZEPHYR_BASE -ffunction-sections -fdata-sections -std=c99 -nostdinc -isystem /home/kara_ro/.platformio/packages/framework-zephyr/lib/libc/minimal/include -isystem /home/kara_ro/.platformio/packages/toolchain-gccarmnoneeabi@1.80201.181220/bin/../lib/gcc/arm-none-eabi/8.2.1/include -isystem /home/kara_ro/.platformio/packages/toolchain-gccarmnoneeabi@1.80201.181220/bin/../lib/gcc/arm-none-eabi/8.2.1/include-fixed -DPLATFORMIO=60118 -DARDUINO_SAMD_ZERO -DARDUINO_SAMD_FEATHER_M0 -DARM_MATH_CM0PLUS -D__SAMD21G18A__ -DBUILD_VERSION=zephyr-v20701 -DKERNEL -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -Iinclude -Isrc -Ilib/MicroXRCE-DDS-Client/include -I/home/kara_ro/.platformio/packages/framework-zephyr/include -I.pio/build/adafruit_feather_m0/zephyr/include/generated -I/home/kara_ro/.platformio/packages/framework-zephyr/soc/arm/atmel_sam0/samd21 -I/home/kara_ro/.platformio/packages/framework-zephyr/drivers -I/home/kara_ro/.platformio/packages/framework-zephyr/soc/arm/atmel_sam0/common -I/home/kara_ro/.platformio/packages/framework-zephyr/_pio/modules/hal/cmsis/CMSIS/Core/Include -I/home/kara_ro/.platformio/packages/framework-zephyr/_pio/modules/hal/atmel/asf/sam0/include/samd21 src/main.c
...
`

Finally, my toolchain file is:
`
set(CMAKE_CROSSCOMPILING True)
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR ARM)
set(PLATFORM_NAME "zephyr")

set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_CXX_COMPILER_WORKS TRUE)

set(ARM_GCC_BIN "$ENV{HOME}/.platformio/packages/toolchain-gccarmnoneeabi/bin")

set(CMAKE_C_COMPILER "${ARM_GCC_BIN}/arm-none-eabi-gcc")
set(CMAKE_CXX_COMPILER "${ARM_GCC_BIN}/arm-none-eabi-g++")
set(CMAKE_ASM_COMPILER "${ARM_GCC_BIN}/arm-none-eabi-gcc")

set(CMAKE_AR "${ARM_GCC_BIN}/arm-none-eabi-ar")
set(CMAKE_OBJCOPY "${ARM_GCC_BIN}/arm-none-eabi-objcopy")
set(CMAKE_SIZE "${ARM_GCC_BIN}/arm-none-eabi-size")

set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)

set(MCU_FLAGS "-mcpu=cortex-m0plus -mthumb -mabi=aapcs -mfp16-format=ieee")

set(OPT_DEBUG_FLAGS "-Os -g -gdwarf-4 -ffreestanding -fno-common")

set(WARN_FLAGS "-Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fdiagnostics-color=always")

set(OTHER_FLAGS "-fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -ffunction-sections -fdata-sections -std=c99 -nostdinc")

set(CMAKE_C_FLAGS "${MCU_FLAGS} ${OPT_DEBUG_FLAGS} ${WARN_FLAGS} ${OTHER_FLAGS}")

set(CMAKE_CXX_FLAGS "${MCU_FLAGS} ${OPT_DEBUG_FLAGS} ${WARN_FLAGS} ${OTHER_FLAGS} -fno-exceptions -fno-rtti")

add_definitions(
-DPLATFORMIO=60118
-DARDUINO_SAMD_ZERO
-DARDUINO_SAMD_FEATHER_M0
-DARM_MATH_CM0PLUS
-D__SAMD21G18A__
-DBUILD_VERSION=zephyr-v20701
-DKERNEL
-D_FORTIFY_SOURCE=2
-D__PROGRAM_START
-D__ZEPHYR__=1
)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)

include_directories(SYSTEM
"/home/kara_ro/.platformio/packages/framework-zephyr/include"
"/home/kara_ro/.platformio/packages/framework-zephyr/include/kernel"
"/home/kara_ro/.platformio/packages/framework-zephyr/include/zephyr"
"/home/kara_ro/.platformio/packages/framework-zephyr/include/posix"
"/home/kara_ro/.platformio/packages/framework-zephyr/lib/libc/minimal/include"
"/home/kara_ro/.platformio/packages/framework-zephyr/lib/libc/posix/include"
"/home/kara_ro/.platformio/packages/toolchain-gccarmnoneeabi@1.80201.181220/lib/gcc/arm-none-eabi/8.2.1/include"
"/home/kara_ro/.platformio/packages/toolchain-gccarmnoneeabi@1.80201.181220/lib/gcc/arm-none-eabi/8.2.1/include-fixed"
"/home/kara_ro/.platformio/packages/framework-zephyr/soc/arm/atmel_sam0/samd21"
"/home/kara_ro/.platformio/packages/framework-zephyr/drivers"
"/home/kara_ro/.platformio/packages/framework-zephyr/soc/arm/atmel_sam0/common"
"/home/kara_ro/.platformio/packages/framework-zephyr/_pio/modules/hal/cmsis/CMSIS/Core/Include"
"/home/kara_ro/.platformio/packages/framework-zephyr/_pio/modules/hal/atmel/asf/sam0/include/samd21"
"/home/kara_ro/rfm69hcw/.pio/build/adafruit_feather_m0/zephyr/include/generated"
)`

It does not seem to be too plausible that procesorr architecture ARM is not supported as claimed in the error.
Thank you for any advice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions