intalling the rtems

Manuel manuel.coutinho at
Fri Oct 17 12:56:20 UTC 2008

We've recently encounter the same problem. We solved it by removing the
"static" attribute of the trampo function (both in the function declaration
and implementation).
This solved the compilation problem. However, when we ran an executable it
always produced an "segmentation fault" error. We solved this by removing
the "   movl $0xdeadcafe,%%ebp\n" instruction of the cpy_jmpbuf of the
cpukit/score/cpu/unix/cpu.c file.
In attach you will find the patch to the RTEMS 4.8.0 version.
Hope this helps!
Manuel Coutinho
> Hi,
>   all.
>   when I compile  RTEMS-4.8.0, I get the below error infomation
> gcc -B../../../../../posix/lib/ -specs bsp_specs -qrtems -D_BSD_SOURCE
> -D_POSIX_C_SOURCE -O2 -g      -o capture.exe init.o test1.o
>../../../../../posix/lib/librtemscpu.a(mon-command.o): In function
> `rtems_monitor_command_read':
> warning: the `gets' function is dangerous and should not be used.
>../../../../../posix/lib/librtemscpu.a(libscorecpu_a-cpu.o): In function
> `cpy_jmpbuf':
> undefined reference to `trampo'
>   From the information, i think there is no trampo definition in the
> library. But when i check the cpu.c file. The prototype of the routine is
> the file. So I want to know why i get the error, and how i do.
>   thanks ALL!
> Best Regards!
> Bai SHuwei
> -- 
> Email: baishuwei at
> Motto: Fighting For Freedom
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpu.c.diff
Type: application/octet-stream
Size: 730 bytes
Desc: not available
URL: <>

More information about the users mailing list