Skip to content

lingo build failure #3

@remifan

Description

@remifan

Hi, I built with lingo but failed with
lfc 0.10.2-SNAPSHOT 329465817 2025-11-18, Lingua Franca package manager and build tool 0.2.2

[ 97%] Building C object CMakeFiles/MuJoCoBasicDemo.dir/MuJoCoBasicDemo.c.o
/home/remi/Downloads/mujoco-c/build/src-gen/MuJoCoBasicDemo/MuJoCoBasicDemo.c: In function ‘_lf_initialize_trigger_objects’:
/home/remi/Downloads/mujoco-c/build/src-gen/MuJoCoBasicDemo/MuJoCoBasicDemo.c:140:49: error: ‘LF_SOURCE_GEN_DIRECTORY’ undeclared (first use in this function); did you mean ‘LF_TARGET_FILES_DIRECTORY’?
  140 |         mujocobasicdemo_m_self[0]->model_file = LF_SOURCE_GEN_DIRECTORY LF_FILE_SEPARATOR "hello.xml";
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                 LF_TARGET_FILES_DIRECTORY
/home/remi/Downloads/mujoco-c/build/src-gen/MuJoCoBasicDemo/MuJoCoBasicDemo.c:140:49: note: each undeclared identifier is reported only once for each function it appears in
/home/remi/Downloads/mujoco-c/build/src-gen/MuJoCoBasicDemo/MuJoCoBasicDemo.c:140:72: error: expected ‘;’ before ‘LF_FILE_SEPARATOR’
  140 |         mujocobasicdemo_m_self[0]->model_file = LF_SOURCE_GEN_DIRECTORY LF_FILE_SEPARATOR "hello.xml";
      |                                                                        ^~~~~~~~~~~~~~~~~~
      |                                                                        ;
gmake[3]: *** [CMakeFiles/MuJoCoBasicDemo.dir/build.make:118: CMakeFiles/MuJoCoBasicDemo.dir/MuJoCoBasicDemo.c.o] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:106: CMakeFiles/MuJoCoBasicDemo.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/MuJoCoBasicDemo.dir/rule] Error 2
gmake: *** [Makefile:169: MuJoCoBasicDemo] Error 2

thread 'main' (1513893) panicked at /home/remi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/lingua-franca-0.2.2/src/backends/mod.rs:209:21:
build step failed because of MuJoCoBasicDemo with main reactor /home/remi/Downloads/mujoco-c/src/MuJoCoBasicDemo.lf!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

is it version mismatched?

Metadata

Metadata

Assignees

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