Using RTEMS cross tool chain to build project

Fabio Piemontesi fpiemont at crg.ee.uct.ac.za
Wed Jan 9 13:33:18 UTC 2002


Hi

 

A previously working project by several students which I am trying to rebuild consists of a linker script, several object files which I wish to link, including a c-runtime object file (which is referenced in the linker script), and the necessary libraries including libc, libgcc etc.  

 

I'm trying to use the RTEM cross tool chain to build this project.  Several RTEMS include directories are being searched during the linking stage which are causing 'multiple definition' linking messages to be displayed.  I'm also experiencing several other problems during the build which I not sure if they are originating from my project or the way the RTEMS cross tool chain is set up.  

 

When I run m68k-rtems-gcc currently, it says that it is reading the spec file in /opt/rtems/lib/ . and then runs collect2.exe appending a whole string of include directories including the RTEMS crt0.o. which I think is causing me problems.

 

What changes do I need to make to the spec files or anything else for that matter, to make sure that when I use m68k-rtems-gcc, only the files and include directories that I specify will be searched and used in the build process?  This way, I can be sure that any further problems that I might experience will be originating from my own files only.  

 

Thanks very much

Fabio

University of Cape Town, South Africa



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20020109/84211c7c/attachment.html>


More information about the users mailing list