Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12453 Discussions

syscalls for uCos-II / libc CycloneV SoC

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

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

Altera_Forum
Honored Contributor II
154 Views

i meet the same problems!is there anyone help

Reply