Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
713 Views

syscalls for uCos-II / libc CycloneV SoC

Hi! 

 

I'm trying to compile uCos-II for Altera CycloneV SoC HPS using the mentor/codesourcery gcc toolchain. Linking currently fails because of missing systemcalls _exit _kill and _sbrk 

 

For Nios Alteraofficially ships alt_syscall.h in nios2eds/components/altera_hal/HAL/inc which defines for example _exit. Is there an official implementation for the ARM SoC ? 

 

 

d:/altera/13.0sp1/embedded/host_tools/mentor/gnu/arm/baremetal/bin/../lib/gcc/arm-none-eabi/4.6.3/../../../../arm-none-eabi/lib\libc.a(lib_a-abort.o): In function `abort': abort.c:(.text+0x10): undefined reference to `_exit' d:/altera/13.0sp1/embedded/host_tools/mentor/gnu/arm/baremetal/bin/../lib/gcc/arm-none-eabi/4.6.3/../../../../arm-none-eabi/lib\libc.a(lib_a-signalr.o): In function `_kill_r': signalr.c:(.text+0x1c): undefined reference to `_kill' d:/altera/13.0sp1/embedded/host_tools/mentor/gnu/arm/baremetal/bin/../lib/gcc/arm-none-eabi/4.6.3/../../../../arm-none-eabi/lib\libc.a(lib_a-signalr.o): In function `_getpid_r': signalr.c:(.text+0x44): undefined reference to `_getpid' d:/altera/13.0sp1/embedded/host_tools/mentor/gnu/arm/baremetal/bin/../lib/gcc/arm-none-eabi/4.6.3/../../../../arm-none-eabi/lib\libc.a(lib_a-sbrkr.o): In function `_sbrk_r': sbrkr.c:(.text+0x18): undefined reference to `_sbrk'
0 Kudos
2 Replies
Highlighted
Valued Contributor III
8 Views

Re: syscalls for uCos-II / libc CycloneV SoC

Moving to the new "Other Operating Systems" forum. This is where all non-Linux OS related questions will go moving forward.

0 Kudos
Highlighted
Valued Contributor III
8 Views

Re: syscalls for uCos-II / libc CycloneV SoC

i meet the same problems!is there anyone help

0 Kudos