Problem building gcc 4.3.1 cross-compiler with ada

Joel Sherrill joel.sherrill at OARcorp.com
Sun Aug 24 17:49:24 UTC 2008


Dirk Heinrichs wrote:
> Am Samstag, 23. August 2008 11:54:56 schrieb Dirk Heinrichs:
>   
>> Am Donnerstag, 21. August 2008 18:39:37 schrieb Dirk Heinrichs:
>>     
>>> Am Mittwoch, 20. August 2008 21:27:28 schrieb Joel Sherrill:
>>>       
>>>>> just wanted to ask wether there is any news about this problem.
>>>>>           
>>>> I've been building and testing off the GCC SVN trunk
>>>> and RTEMS head with no problems.
>>>>         
>>> OK, I'll try that.
>>>       
>> Just found the solution to my problem. I had a native gnatgcc installed and
>> $ADA_INCLUDE_PATH was set to that installation. After unsetting all ADA
>> related env variables in the shell where I built the toolchain everything
>> built just fine with gcc 4.3.1.
>>     
>
> Unfortunately, compiling the test program from the WIKI page fails at link
> stage:
>
> i386-rtems-gnatmake -f -g t -largs -B/opt/i386-rtems/pck6 -specs /opt/i386-
> rtems/pck6/lib/bsp_specs -qrtems
> i386-rtems-gcc -c -g t.adb
> i386-rtems-gnatbind -x t.ali
> i386-rtems-gnatlink t.ali -g -B/opt/i386-rtems/pck6 -specs /opt/i386-
> rtems/pck6/lib/bsp_specs -qrtems
> /opt/bin/i386-rtems-ld: cannot open linker script file linkcmds: No such file
> or directory
> collect2: ld returned 1 exit status
> i386-rtems-gnatlink: error when calling /opt/bin/i386-rtems-gcc
> i386-rtems-gnatmake: *** link failed.
>
> What to do now?
>
>   
Is there a linkcmds in /opt/i386-rtems/pck6/lib? 

Did you try checking out the ada-examples CVS module and seing how it
builds and links the examples?  I know that works.  I tested the Ada 
interrupt
task support on sparc last week.
> Bye...
>
>         Dirk
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list