Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation errors with newer update on static-scheduler branch #4

Open
erlingrj opened this issue Oct 24, 2024 · 0 comments
Open

Compilation errors with newer update on static-scheduler branch #4

erlingrj opened this issue Oct 24, 2024 · 0 comments

Comments

@erlingrj
Copy link
Contributor

This should point to a specific commit of lingua-franca, not a branch. I also tried the branch static-schedule-emsoft24-checkpoint without luck. Errors on that branch look like:

lfc: info: Generating code for: file:/home/erling/dev/satellite-attitude-control/src/ReactionWheel.lf
lfc: info: Generation mode: STANDALONE
lfc: info: Generating sources into: /home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel
lfc: info: Target Configuration:
      - cmake-include: [./mujoco.cmake]
      - scheduler: SchedulerOptions[type=STATIC, staticScheduler=LOAD_BALANCED, mocasinMapping=null]
      - files: [../models/3_axis_reaction_wheel.xml, reaction_wheel.h]
      - build-type: Debug
Cleaning /home/erling/dev/satellite-attitude-control/bin
Cleaning /home/erling/dev/satellite-attitude-control/src-gen
lfc: info: Copied '../models/3_axis_reaction_wheel.xml' from the file system.
lfc: info: Copied 'reaction_wheel.h' from the file system.
lfc: info: Copied './mujoco.cmake' from the file system.
lfc: info: Copied './common.c' from the file system.
lfc: info: Copied './common.h' from the file system.
lfc: info: Copied 'GroundStation.cmake' from the file system.
Cleaning /home/erling/dev/satellite-attitude-control/include
--- Generating a static schedule
--- Current working directory: /home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/build
--- Executing command: cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/erling/dev/satellite-attitude-control -DCMAKE_INSTALL_BINDIR=bin -DLF_FILE_SEPARATOR="/" -DLF_SOURCE_DIRECTORY="/home/erling/dev/satellite-attitude-control/src" -DLF_PACKAGE_DIRECTORY="/home/erling/dev/satellite-attitude-control" -DLF_SOURCE_GEN_DIRECTORY="/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel" /home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel
-- The C compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Including sources for threaded runtime with 1 worker(s) with scheduler=SCHED_STATIC and tracing=.
-- Including the following sources: tag.c, clock.c, port.c, mixed_radix.c, reactor_common.c, lf_token.c, environment.c, threaded/reactor_threaded.c, threaded/scheduler_adaptive.c, threaded/scheduler_static.c, threaded/scheduler_GEDF_NP.c, threaded/scheduler_NP.c, threaded/scheduler_sync_tag_advance.c, threaded/scheduler_instance.c, threaded/watchdog.c, utils/vector.c, utils/pqueue_base.c, utils/pqueue_tag.c, utils/pqueue.c, utils/util.c, utils/lf_semaphore.c, utils/circular_buffer.c, utils/hashset/hashset.c, utils/hashset/hashset_itr.c, modal_models/modes.c, platform/lf_unix_clock_support.c, platform/lf_unix_syscall_support.c, platform/lf_linux_support.c, platform/lf_macos_support.c, platform/lf_windows_support.c, platform/lf_nrf52_support.c, platform/lf_zephyr_support.c, platform/lf_zephyr_clock_counter.c, platform/lf_zephyr_clock_kernel.c, platform/lf_rp2040_support.c, platform/lf_atomic_windows.c, platform/lf_atomic_gcc_clang.c, platform/lf_atomic_irq.c
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Applying preprocessor definitions...
-- LF_REACTION_GRAPH_BREADTH=6
-- LOG_LEVEL=2
-- NUMBER_OF_WORKERS=1
-- NUMBER_OF_WATCHDOGS=0
-- SCHEDULER=SCHED_STATIC
-- LF_SOURCE_DIRECTORY="/home/erling/dev/satellite-attitude-control/src"
-- LF_SOURCE_GEN_DIRECTORY="/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel"
-- LF_PACKAGE_DIRECTORY="/home/erling/dev/satellite-attitude-control"
-- LF_FILE_SEPARATOR="/"
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/build
--- Current working directory: /home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/build
--- Executing command: cmake --build . --target install --parallel 14 --config Debug
[  1%] Building C object core/CMakeFiles/reactor-c.dir/reactor_common.c.o
[  7%] Building C object core/CMakeFiles/reactor-c.dir/mixed_radix.c.o
[  7%] Building C object core/CMakeFiles/reactor-c.dir/port.c.o
[  7%] Building C object core/CMakeFiles/reactor-c.dir/clock.c.o
[ 11%] Building C object core/CMakeFiles/reactor-c.dir/lf_token.c.o
[ 11%] Building C object core/CMakeFiles/reactor-c.dir/threaded/reactor_threaded.c.o
[ 17%] Building C object core/CMakeFiles/reactor-c.dir/threaded/scheduler_GEDF_NP.c.o
[ 17%] Building C object core/CMakeFiles/reactor-c.dir/tag.c.o
[ 17%] Building C object core/CMakeFiles/reactor-c.dir/threaded/scheduler_adaptive.c.o
[ 21%] Building C object core/CMakeFiles/reactor-c.dir/threaded/scheduler_sync_tag_advance.c.o
[ 21%] Building C object core/CMakeFiles/reactor-c.dir/environment.c.o
[ 25%] Building C object core/CMakeFiles/reactor-c.dir/threaded/scheduler_static.c.o
[ 25%] Building C object core/CMakeFiles/reactor-c.dir/threaded/scheduler_NP.c.o
[ 26%] Building C object core/CMakeFiles/reactor-c.dir/threaded/scheduler_instance.c.o
[ 28%] Building C object core/CMakeFiles/reactor-c.dir/threaded/watchdog.c.o
[ 30%] Building C object core/CMakeFiles/reactor-c.dir/utils/vector.c.o
[ 32%] Building C object core/CMakeFiles/reactor-c.dir/utils/pqueue_base.c.o
[ 34%] Building C object core/CMakeFiles/reactor-c.dir/utils/pqueue_tag.c.o
[ 36%] Building C object core/CMakeFiles/reactor-c.dir/utils/pqueue.c.o
[ 38%] Building C object core/CMakeFiles/reactor-c.dir/utils/util.c.o
[ 40%] Building C object core/CMakeFiles/reactor-c.dir/utils/lf_semaphore.c.o
[ 42%] Building C object core/CMakeFiles/reactor-c.dir/utils/hashset/hashset.c.o
[ 44%] Building C object core/CMakeFiles/reactor-c.dir/utils/hashset/hashset_itr.c.o
[ 46%] Building C object core/CMakeFiles/reactor-c.dir/utils/circular_buffer.c.o
[ 48%] Building C object core/CMakeFiles/reactor-c.dir/modal_models/modes.c.o
[ 50%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_unix_clock_support.c.o
[ 51%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_unix_syscall_support.c.o
[ 53%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_linux_support.c.o
[ 57%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_nrf52_support.c.o
[ 57%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_windows_support.c.o
[ 59%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_macos_support.c.o
[ 61%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_zephyr_support.c.o
[ 63%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_zephyr_clock_counter.c.o
[ 65%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_zephyr_clock_kernel.c.o
[ 67%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_atomic_windows.c.o
[ 69%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_rp2040_support.c.o
[ 73%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_atomic_irq.c.o
[ 73%] Building C object core/CMakeFiles/reactor-c.dir/platform/lf_atomic_gcc_clang.c.o
[ 75%] Linking C static library libreactor-c.a
In file included from /home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/../include/core/reactor_common.h:28,
                 from /home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:43:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c: In function ‘execute_inst_ADVI’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:154:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘reg_t’ {aka ‘long unsigned int’} [-Wformat=]
  154 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu advance reactor time (%p) from %lld to %lld by %lld", *pc, worker_number, &(reactor->tag.time), *base, reactor->tag.time, op3.imm);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                            ~~~~~
      |                                                                                                                                               |
      |                                                                                                                                               reg_t {aka long unsigned int}
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/../include/core/utils/util.h:203:36: note: in definition of macro ‘LF_PRINT_DEBUG’
  203 |                     lf_print_debug(format, ##__VA_ARGS__); \
      |                                    ^~~~~~
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:154:81: note: format string is defined here
  154 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu advance reactor time (%p) from %lld to %lld by %lld", *pc, worker_number, &(reactor->tag.time), *base, reactor->tag.time, op3.imm);
      |                                                                              ~~~^
      |                                                                                 |
      |                                                                                 long long int
      |                                                                              %ld
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:154:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 6 has type ‘instant_t’ {aka ‘long int’} [-Wformat=]
  154 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu advance reactor time (%p) from %lld to %lld by %lld", *pc, worker_number, &(reactor->tag.time), *base, reactor->tag.time, op3.imm);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                   ~~~~~~~~~~~~~~~~~
      |                                                                                                                                                                  |
      |                                                                                                                                                                  instant_t {aka long int}
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/../include/core/utils/util.h:203:36: note: in definition of macro ‘LF_PRINT_DEBUG’
  203 |                     lf_print_debug(format, ##__VA_ARGS__); \
      |                                    ^~~~~~
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:154:89: note: format string is defined here
  154 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu advance reactor time (%p) from %lld to %lld by %lld", *pc, worker_number, &(reactor->tag.time), *base, reactor->tag.time, op3.imm);
      |                                                                                      ~~~^
      |                                                                                         |
      |                                                                                         long long int
      |                                                                                      %ld
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:154:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 7 has type ‘imm_t’ {aka ‘long unsigned int’} [-Wformat=]
  154 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu advance reactor time (%p) from %lld to %lld by %lld", *pc, worker_number, &(reactor->tag.time), *base, reactor->tag.time, op3.imm);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                      ~~~~~~~
      |                                                                                                                                                                            |
      |                                                                                                                                                                            imm_t {aka long unsigned int}
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/../include/core/utils/util.h:203:36: note: in definition of macro ‘LF_PRINT_DEBUG’
  203 |                     lf_print_debug(format, ##__VA_ARGS__); \
      |                                    ^~~~~~
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:154:97: note: format string is defined here
  154 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu advance reactor time (%p) from %lld to %lld by %lld", *pc, worker_number, &(reactor->tag.time), *base, reactor->tag.time, op3.imm);
      |                                                                                              ~~~^
      |                                                                                                 |
      |                                                                                                 long long int
      |                                                                                              %ld
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c: In function ‘execute_inst_BEQ’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:177:55: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘reg_t’ {aka ‘long unsigned int’} [-Wformat=]
  177 |         if (_rs1 != NULL) lf_print("DEBUG: *_rs1 = %lld", *_rs1);
      |                                                    ~~~^   ~~~~~
      |                                                       |   |
      |                                                       |   reg_t {aka long unsigned int}
      |                                                       long long int
      |                                                    %ld
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:178:55: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘reg_t’ {aka ‘long unsigned int’} [-Wformat=]
  178 |         if (_rs2 != NULL) lf_print("DEBUG: *_rs2 = %lld", *_rs2);
      |                                                    ~~~^   ~~~~~
      |                                                       |   |
      |                                                       |   reg_t {aka long unsigned int}
      |                                                       long long int
      |                                                    %ld
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c: In function ‘execute_inst_BGE’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:198:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘reg_t’ {aka ‘long unsigned int’} [-Wformat=]
  198 |     LF_PRINT_DEBUG("Worker %zu: BGE : operand 1 = %lld, operand 2 = %lld", worker_number, *_rs1, *_rs2);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                 ~~~~~
      |                                                                                           |
      |                                                                                           reg_t {aka long unsigned int}
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/../include/core/utils/util.h:203:36: note: in definition of macro ‘LF_PRINT_DEBUG’
  203 |                     lf_print_debug(format, ##__VA_ARGS__); \
      |                                    ^~~~~~
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:198:54: note: format string is defined here
  198 |     LF_PRINT_DEBUG("Worker %zu: BGE : operand 1 = %lld, operand 2 = %lld", worker_number, *_rs1, *_rs2);
      |                                                   ~~~^
      |                                                      |
      |                                                      long long int
      |                                                   %ld
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:198:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘reg_t’ {aka ‘long unsigned int’} [-Wformat=]
  198 |     LF_PRINT_DEBUG("Worker %zu: BGE : operand 1 = %lld, operand 2 = %lld", worker_number, *_rs1, *_rs2);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        ~~~~~
      |                                                                                                  |
      |                                                                                                  reg_t {aka long unsigned int}
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/../include/core/utils/util.h:203:36: note: in definition of macro ‘LF_PRINT_DEBUG’
  203 |                     lf_print_debug(format, ##__VA_ARGS__); \
      |                                    ^~~~~~
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:198:72: note: format string is defined here
  198 |     LF_PRINT_DEBUG("Worker %zu: BGE : operand 1 = %lld, operand 2 = %lld", worker_number, *_rs1, *_rs2);
      |                                                                     ~~~^
      |                                                                        |
      |                                                                        long long int
      |                                                                     %ld
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c: In function ‘execute_inst_DU’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:259:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘instant_t’ {aka ‘long int’} [-Wformat=]
  259 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu delaying, current_physical_time: %lld, wakeup_time: %lld, wait_interval: %lld", *pc, worker_number, current_time, wakeup_time, wait_interval);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                      ~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   instant_t {aka long int}
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/../include/core/utils/util.h:203:36: note: in definition of macro ‘LF_PRINT_DEBUG’
  203 |                     lf_print_debug(format, ##__VA_ARGS__); \
      |                                    ^~~~~~
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:259:83: note: format string is defined here
  259 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu delaying, current_physical_time: %lld, wakeup_time: %lld, wait_interval: %lld", *pc, worker_number, current_time, wakeup_time, wait_interval);
      |                                                                                ~~~^
      |                                                                                   |
      |                                                                                   long long int
      |                                                                                %ld
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:259:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘instant_t’ {aka ‘long int’} [-Wformat=]
  259 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu delaying, current_physical_time: %lld, wakeup_time: %lld, wait_interval: %lld", *pc, worker_number, current_time, wakeup_time, wait_interval);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                    ~~~~~~~~~~~
      |                                                                                                                                                                 |
      |                                                                                                                                                                 instant_t {aka long int}
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/../include/core/utils/util.h:203:36: note: in definition of macro ‘LF_PRINT_DEBUG’
  203 |                     lf_print_debug(format, ##__VA_ARGS__); \
      |                                    ^~~~~~
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:259:102: note: format string is defined here
  259 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu delaying, current_physical_time: %lld, wakeup_time: %lld, wait_interval: %lld", *pc, worker_number, current_time, wakeup_time, wait_interval);
      |                                                                                                   ~~~^
      |                                                                                                      |
      |                                                                                                      long long int
      |                                                                                                   %ld
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:259:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 6 has type ‘instant_t’ {aka ‘long int’} [-Wformat=]
  259 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu delaying, current_physical_time: %lld, wakeup_time: %lld, wait_interval: %lld", *pc, worker_number, current_time, wakeup_time, wait_interval);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                 ~~~~~~~~~~~~~
      |                                                                                                                                                                              |
      |                                                                                                                                                                              instant_t {aka long int}
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/../include/core/utils/util.h:203:36: note: in definition of macro ‘LF_PRINT_DEBUG’
  203 |                     lf_print_debug(format, ##__VA_ARGS__); \
      |                                    ^~~~~~
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/threaded/scheduler_static.c:259:123: note: format string is defined here
  259 |     LF_PRINT_DEBUG("*** [Line %zu] Worker %zu delaying, current_physical_time: %lld, wakeup_time: %lld, wait_interval: %lld", *pc, worker_number, current_time, wakeup_time, wait_interval);
      |                                                                                                                        ~~~^
      |                                                                                                                           |
      |                                                                                                                           long long int
      |                                                                                                                        %ld
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/utils/circular_buffer.c: In function ‘cb_dump_events’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/core/utils/circular_buffer.c:88:30: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘instant_t’ {aka ‘long int’} [-Wformat=]
   88 |         lf_print("Event @ %lld w/ token %p", e->time, e->token);
      |                           ~~~^               ~~~~~~~
      |                              |                |
      |                              long long int    instant_t {aka long int}
      |                           %ld
[ 75%] Built target reactor-c
[ 78%] Building C object CMakeFiles/ReactionWheel.dir/lib/schedule.c.o
[ 78%] Building C object CMakeFiles/ReactionWheel.dir/_mujocosimulator.c.o
[ 82%] Building C object CMakeFiles/ReactionWheel.dir/_angularratesensor.c.o
[ 84%] Building C object CMakeFiles/ReactionWheel.dir/_gyroscope.c.o
[ 82%] Building C object CMakeFiles/ReactionWheel.dir/_userinput.c.o
[ 86%] Building C object CMakeFiles/ReactionWheel.dir/_reactionwheel_main.c.o
[ 88%] Building C object CMakeFiles/ReactionWheel.dir/_controller.c.o
[ 92%] Building C object CMakeFiles/ReactionWheel.dir/_simulatorinterface.c.o
[ 90%] Building C object CMakeFiles/ReactionWheel.dir/_tcpsocketclient.c.o
[ 94%] Building C object CMakeFiles/ReactionWheel.dir/static_schedule.c.o
[ 96%] Building C object CMakeFiles/ReactionWheel.dir/ReactionWheel.c.o
[ 98%] Building C object CMakeFiles/ReactionWheel.dir/common.c.o
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_angularratesensor.c: In function ‘_angularratesensorreaction_function_1’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_angularratesensor.c:27:26: error: cast specifies array type
   27 |             sim->value = (float[3])sim->token;
      |                          ^
gmake[2]: *** [CMakeFiles/ReactionWheel.dir/build.make:118: CMakeFiles/ReactionWheel.dir/_angularratesensor.c.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_simulatorinterface.c: In function ‘_simulatorinterfacereaction_function_2’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_simulatorinterface.c:56:40: error: cast specifies array type
   56 |             controller_output->value = (float[3])controller_output->token;
      |                                        ^
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_controller.c: In function ‘_controllerreaction_function_0’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_controller.c:21:36: error: cast specifies array type
   21 |             desired_angle->value = (float[3])desired_angle->token;
      |                                    ^
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_gyroscope.c: In function ‘_gyroscopereaction_function_1’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_gyroscope.c:27:26: error: cast specifies array type
   27 |             sim->value = (float[3])sim->token;
      |                          ^
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_controller.c: In function ‘_controllerreaction_function_1’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_controller.c:40:36: error: cast specifies array type
   40 |             current_speed->value = (float[3])current_speed->token;
      |                                    ^
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_controller.c: In function ‘_controllerreaction_function_2’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_controller.c:59:36: error: cast specifies array type
   59 |             current_angle->value = (float[3])current_angle->token;
      |                                    ^
In file included from /home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_controller.c:134:
/home/erling/dev/satellite-attitude-control/src/ReactionWheel.lf: In function ‘_controllerreaction_function_4’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_tcpsocketclient.c: In function ‘_tcpsocketclientreaction_function_1’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_tcpsocketclient.c:44:13: error: conversion to non-scalar type requested
   44 |             to_ground->value = (TcpMessage)to_ground->token;
      |             ^~~~~~~~~
/home/erling/dev/satellite-attitude-control/src/ReactionWheel.lf:200:27: error: incompatible types when assigning to type ‘lf_token_t *’ from type ‘TcpMessage’
  200 |         lf_set(update_status, message);
      |                           ^~~~~~~
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/include/api/reaction_macros.h:77:18: note: in definition of macro ‘lf_set’
   77 |     out->token = val; /* The long-term solution is to generate an event type for each connection buffer of primitive type. */ \
      |                  ^~~
In file included from /home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_tcpsocketclient.c:59:
/home/erling/dev/satellite-attitude-control/src/TcpSocketClient.lf: In function ‘_tcpsocketclientreaction_function_2’:
/home/erling/dev/satellite-attitude-control/src/TcpSocketClient.lf:108:25: error: incompatible types when assigning to type ‘lf_token_t *’ from type ‘TcpMessage’
  108 |         lf_set(from_ground, message);
      |                         ^~~~~~~
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/include/api/reaction_macros.h:77:18: note: in definition of macro ‘lf_set’
   77 |     out->token = val; /* The long-term solution is to generate an event type for each connection buffer of primitive type. */ \
      |                  ^~~
gmake[2]: *** [CMakeFiles/ReactionWheel.dir/build.make:132: CMakeFiles/ReactionWheel.dir/_gyroscope.c.o] Error 1
gmake[2]: *** [CMakeFiles/ReactionWheel.dir/build.make:174: CMakeFiles/ReactionWheel.dir/_simulatorinterface.c.o] Error 1
gmake[2]: *** [CMakeFiles/ReactionWheel.dir/build.make:188: CMakeFiles/ReactionWheel.dir/_tcpsocketclient.c.o] Error 1
gmake[2]: *** [CMakeFiles/ReactionWheel.dir/build.make:146: CMakeFiles/ReactionWheel.dir/_controller.c.o] Error 1
In file included from /home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_mujocosimulator.c:15:
/home/erling/dev/satellite-attitude-control/src/MujocoSimulator.lf: In function ‘_mujocosimulatorreaction_function_0’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/include/api/reaction_macros.h:77:16: warning: assignment to ‘lf_token_t *’ from incompatible pointer type ‘mjModel *’ {aka ‘struct mjModel_ *’} [-Wincompatible-pointer-types]
   77 |     out->token = val; /* The long-term solution is to generate an event type for each connection buffer of primitive type. */ \
      |                ^
/home/erling/dev/satellite-attitude-control/src/MujocoSimulator.lf:117:5: note: in expansion of macro ‘lf_set’
  117 |         lf_set(model_pointer, self->model);
      |     ^   ~~
In file included from /home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_mujocosimulator.c:88:
/home/erling/dev/satellite-attitude-control/src/MujocoSimulator.lf: In function ‘_mujocosimulatorreaction_function_1’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/include/api/reaction_macros.h:77:16: warning: assignment to ‘lf_token_t *’ from incompatible pointer type ‘mjData *’ {aka ‘struct mjData_ *’} [-Wincompatible-pointer-types]
   77 |     out->token = val; /* The long-term solution is to generate an event type for each connection buffer of primitive type. */ \
      |                ^
/home/erling/dev/satellite-attitude-control/src/MujocoSimulator.lf:127:5: note: in expansion of macro ‘lf_set’
  127 |         lf_set(call_controller, new_data);
      |     ^   ~~
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_mujocosimulator.c: In function ‘_mujocosimulatorreaction_function_2’:
/home/erling/dev/satellite-attitude-control/src-gen/ReactionWheel/_mujocosimulator.c:108:40: error: cast specifies array type
  108 |             return_controller->value = (float[3])return_controller->token;
      |                                        ^
gmake[2]: *** [CMakeFiles/ReactionWheel.dir/build.make:104: CMakeFiles/ReactionWheel.dir/_mujocosimulator.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/ReactionWheel.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
lfc: error: CMake failed with error code 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant