Compilation Error

Hi,

I Vivek Dutt facing these issues while build the project. i’m unable to get how to resolve it.

Description Resource Path Location Type
c:/program files (x86)/on semiconductor/ide_v3.3.0.16/arm_tools/bin/…/lib/gcc/arm-none-eabi/8.3.1/…/…/…/…/arm-none-eabi/lib/thumb/v7-m/nofp\libg.a(lib_a-closer.o): in function `_close_r’: example C/C++ Problem
c:/program files (x86)/on semiconductor/ide_v3.3.0.16/arm_tools/bin/…/lib/gcc/arm-none-eabi/8.3.1/…/…/…/…/arm-none-eabi/lib/thumb/v7-m/nofp\libg.a(lib_a-exit.o): in function `exit’: example C/C++ Problem
c:/program files (x86)/on semiconductor/ide_v3.3.0.16/arm_tools/bin/…/lib/gcc/arm-none-eabi/8.3.1/…/…/…/…/arm-none-eabi/lib/thumb/v7-m/nofp\libg.a(lib_a-fstatr.o): in function `_fstat_r’: example C/C++ Problem
c:/program files (x86)/on semiconductor/ide_v3.3.0.16/arm_tools/bin/…/lib/gcc/arm-none-eabi/8.3.1/…/…/…/…/arm-none-eabi/lib/thumb/v7-m/nofp\libg.a(lib_a-isattyr.o): in function `_isatty_r’: example C/C++ Problem
c:/program files (x86)/on semiconductor/ide_v3.3.0.16/arm_tools/bin/…/lib/gcc/arm-none-eabi/8.3.1/…/…/…/…/arm-none-eabi/lib/thumb/v7-m/nofp\libg.a(lib_a-lseekr.o): in function `_lseek_r’: example C/C++ Problem
c:/program files (x86)/on semiconductor/ide_v3.3.0.16/arm_tools/bin/…/lib/gcc/arm-none-eabi/8.3.1/…/…/…/…/arm-none-eabi/lib/thumb/v7-m/nofp\libg.a(lib_a-readr.o): in function `_read_r’: example C/C++ Problem
c:/program files (x86)/on semiconductor/ide_v3.3.0.16/arm_tools/bin/…/lib/gcc/arm-none-eabi/8.3.1/…/…/…/…/arm-none-eabi/lib/thumb/v7-m/nofp\libg.a(lib_a-sbrkr.o): in function `_sbrk_r’: example C/C++ Problem
c:/program files (x86)/on semiconductor/ide_v3.3.0.16/arm_tools/bin/…/lib/gcc/arm-none-eabi/8.3.1/…/…/…/…/arm-none-eabi/lib/thumb/v7-m/nofp\libg.a(lib_a-writer.o): in function `_write_r’: example C/C++ Problem
make: *** [makefile:43: example.elf] Error 1 example C/C++ Problem
1 Like

Hi,

Please check if you have ticked ‘Use newlib -nano’ option in your linker settings to resolve this. Right click on your project and then navigate to: Properties-> C/C++ Build-> Settings-> Cross ARM C Linker-> Miscellaneous
Please refer to picture below.

Thank you for using our Community Forum

Hi,

The ‘Use newlib -nano’ option is ticked. I still have the issue. It occured only when the Bletooth mesh project is used.

The family package version is 3.5.285
The mesh package version is 1.6.79

1 Like

Hi @akoriche,

We were unable to reproduce this issue using mentioned Mesh and RSL10 CMSIS packs and ble_mesh firmware.
However, please try to uninstall both Mesh and RSL10 CMSIS packs, delete all residuals and perform fresh install of both packs.

Thank you for using our Community Forum.

Hi @akoriche and @vivek.d ,

How did you solve this problem?
I am facing the same problem now.
The package I’m using version is:
RSL10 package = 3.5.285
BDK package = 1.17.5

Uninstalling the package did not resolve this issue.

Thank you for your help.

HI @satogata-s

It still doesn’t work. Even by installing it in diffrent computers.

Hi,

Solution how to resolve this issue can be found in Release Notes of IDE V3.4.0.48.

According to the documentation the RSL10 Mesh Package ONSemiconductor.RSL10Mesh.1.6.79.pack is not compatible with the RSL10 CMSIS-Pack 3.5 and ON Semiconductor IDE 3.4.0.48 because of Bluetooth Low Energy stack changes and the Arm toolchain update to version 10.

To build the RSL10 Mesh Package with the RSL10 CMSIS-Pack 3.5 and ON Semiconductor IDE 3.4.0.48, follow these steps:

  • RSL10 CMSIS-Pack - Open the ble_mesh/code/ble_std.c file, go to line 1080 and replace cfm->auth = GAP_AUTH_REQ_NO_MITM_BOND; with
    cfm->pairing_lvl = GAP_PAIRING_BOND_UNAUTH;
  • IDE - Right click on the ble_mesh project and go to Properties-> C/C++ Build->Settings-> Tool Settings-> Cross ARM C Linker-> Miscellaneous and check the checkbox ‘Do not use syscalls (–specs=nosys.specs)‘.
  • IDE - Go to Properties-> C/C++ Build-> Settings-> Optimization-> Other Optimization flags and add -fcommon and click ‘Apply and Close‘.

Thank you for using our Community Forum.

3 Likes