This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

armds no link with c lib cfg failed( __use_no_semihosting)

with assembly declear:

#ifdef STANDALONE
#define USE_SERIAL_PORT 1
asm(".global __use_no_semihosting");
#endif

to exclude any c clib being linked to output file

but i get the error info as follows:

Error: L6915E: Library reports error: __use_no_semihosting was requested, but _sys_command_string was referenced.

the question is, target is aarch64 cortex-a53,

no choice for me to link micro lib

what should I do?

Parents
  • Hi

    My name is Stephen and I work at Arm.

    The error message
    Error: L6915E: Library reports error: __use_no_semihosting was requested, but _sys_command_string was referenced.
    is saying you requested no semihosting functions may be linked-in from the C libraries, but _sys_command_string (which uses semihosting) was referenced.

    You will need to either add your own retargeted version of _sys_command_string into retarget.c, or remove the use of argv and argc to pass parameters to main().  See:

    developer.arm.com/.../-sys-command-string--

    Hope this helps

    Stephen

Reply
  • Hi

    My name is Stephen and I work at Arm.

    The error message
    Error: L6915E: Library reports error: __use_no_semihosting was requested, but _sys_command_string was referenced.
    is saying you requested no semihosting functions may be linked-in from the C libraries, but _sys_command_string (which uses semihosting) was referenced.

    You will need to either add your own retargeted version of _sys_command_string into retarget.c, or remove the use of argv and argc to pass parameters to main().  See:

    developer.arm.com/.../-sys-command-string--

    Hope this helps

    Stephen

Children