Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12596 Discussions

syscalls for uCos-II / libc CycloneV SoC

Altera_Forum
Honored Contributor II
1,108 Views

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
Altera_Forum
Honored Contributor II
403 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
403 Views

i meet the same problems!is there anyone help

0 Kudos
Reply