Menu

#77 [Build Error]: CUNIT build error for arm-none-eabi-gcc toolchain

v1.0_(example)
open
nobody
Build (2)
1
2021-02-16
2021-02-16
Anonymous
No

Hi,

I am using Cunit testing framework for NXP project using arm-none-eabi-gcc compiler, i was able to use Cuint library for C/C++ projects in NXP S32DS IDE, but i am getting lots of error for NXP's S32DS project (arm-none-eabi-gcc) i have added headers, library and library path to project build settings.

and the error are as follows

make -j4 all 
Building target: Test_Arm.elf
Invoking: Standard S32DS C Linker
arm-none-eabi-gcc -o "Test_Arm.elf" "@Test_Arm.args"  
./src/testC.o: In function `main':
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testC.c:18: undefined reference to `CU_initialize_registry'
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testC.c:26: undefined reference to `CU_basic_set_mode'
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testC.c:28: undefined reference to `CU_set_error_action'
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testC.c:31: undefined reference to `CU_basic_run_tests'
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testC.c:33: undefined reference to `CU_cleanup_registry'
./src/testsource.o: In function `test_Subtract':
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testsource.c:26: undefined reference to `CU_assertImplementation'
./src/testsource.o: In function `test_Add_02':
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testsource.c:19: undefined reference to `CU_assertImplementation'
./src/testsource.o: In function `test_Add_01':
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testsource.c:14: undefined reference to `CU_assertImplementation'
./src/testsource.o: In function `AddTests':
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testsource.c:47: undefined reference to `CU_get_registry'
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testsource.c:49: undefined reference to `CU_is_test_running'
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testsource.c:51: undefined reference to `CU_register_suites'
C:\CUNIT_DIR\Test_Arm\Test_Arm\Debug_FLASH/../src/testsource.c:53: undefined reference to `CU_get_error_msg'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:42: Test_Arm.elf] Error 1

Kindly let me what is wrong here with arm compiler

and one more important doubt i have is "is this cunit library will support arm-noneeabi-gcc compiler?"

Thanks in advance

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB