I have created a synergy library project with all the configurations. After that i create another Synergy project using this library.
Even i didnt add any file i cant build the project. I can build library project without error but the other one gives error. I'm pasting the error log, any idea?
'Building target: test_main.elf''Invoking: GNU Arm Cross C Linker'arm-none-eabi-gcc @"test_main.elf.in"D:\projects_spaces\test_lib\synergy\ssp\src\driver\r_fmi\libs\libfmi_cm0_s128_gcc.a(r_fmi.o): In function `R_FMI_Init':r_fmi.c:(.text.R_FMI_Init+0x7c): undefined reference to `g_fmi_data'r_fmi.c:(.text.R_FMI_Init+0x84): undefined reference to `g_fmi_data'D:\projects_spaces\test_lib\synergy\ssp\src\driver\r_fmi\libs\libfmi_cm0_s128_gcc.a(r_fmi.o): In function `R_FMI_FeatureGet':r_fmi.c:(.text.R_FMI_FeatureGet+0x230): undefined reference to `g_fmi_data'collect2.exe: error: ld returned 1 exit statusmakefile:63: recipe for target 'test_main.elf' failedmake: *** [test_main.elf] Error 1"make -j4 all" terminated with exit code 2. Build might be incomplete.
I have updated my eclipse, toolchain and ssp, no luck. I couldnt understand how such an easy task gives error.
SSP : 2.3.0
toolchain : 10.3.1.20210824
eclipse : 2022-04
Building target: test_main2.elfd:/programs/renesas/e2studio_v2022-04_ssp_v2.3.0/toolchains/gcc_arm/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: D:\projects_spaces\test_lib\synergy\ssp\src\driver\r_fmi\libs\libfmi_cm0_s128_gcc.a(r_fmi.o): in function `R_FMI_Init':r_fmi.c:(.text.R_FMI_Init+0x7c): undefined reference to `g_fmi_data'd:/programs/renesas/e2studio_v2022-04_ssp_v2.3.0/toolchains/gcc_arm/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: r_fmi.c:(.text.R_FMI_Init+0x84): undefined reference to `g_fmi_data'd:/programs/renesas/e2studio_v2022-04_ssp_v2.3.0/toolchains/gcc_arm/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: D:\projects_spaces\test_lib\synergy\ssp\src\driver\r_fmi\libs\libfmi_cm0_s128_gcc.a(r_fmi.o): in function `R_FMI_FeatureGet':r_fmi.c:(.text.R_FMI_FeatureGet+0x230): undefined reference to `g_fmi_data'collect2.exe: error: ld returned 1 exit statusmake: *** [makefile:91: test_main2.elf] Error 1"make -j4 all" terminated with exit code 2. Build might be incomplete.
Hello emree! Please check out garyj's response in the following post:https://community.renesas.com/embedded-system-platform/synergy/f/forum/9697/how-to-add-library-to-e2-studio-project---error-when-building-cannot-find--lc-my_library_path-JayeshIf this response, or one provided by another user, answers your question, please verify the answer. Thank you!Renesas Engineering Community Moderatorshttps://community.renesas.com/https://academy.renesas.com/en-support.renesas.com/.../
Finally i could built it by changing the order of libraries on GNU Arm Cross C Linker tab. I really wonder is there a best way to order libraries?
I think this time i found the problem. If i disable parallel build, i can build without error. But this time build gets really slower. Any idea?