intalling the rtems

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


Hi
 
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!
Regards
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':
>
/root/baishw/rtems/rtems480/c/posix/cpukit/libmisc/../../../../../rtems-4.8.
0/c/src/../../cpukit/libmisc/monitor/mon-command.c:516:
> warning: the `gets' function is dangerous and should not be used.
>../../../../../posix/lib/librtemscpu.a(libscorecpu_a-cpu.o): In function
> `cpy_jmpbuf':
>
/root/baishw/rtems/rtems480/c/posix/cpukit/score/cpu/unix/../../../../../../
../rtems-4.8.0/c/src/../../cpukit/score/cpu/unix/cpu.c:498:
> 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
in
> 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 gmail.com
<http://rtems.rtems.org/mailman/listinfo/rtems-users> 
> Motto: Fighting For Freedom
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
http://rtems.rtems.org/pipermail/rtems-users/attachments/20080822/686b5212/a
ttachment.html 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20081017/d184b779/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpu.c.diff
Type: application/octet-stream
Size: 730 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20081017/d184b779/attachment.obj>


More information about the users mailing list