[gccsdk] Problems building crosscompiler

Peter Naulls peter at chocky.org
Sun Nov 8 17:46:34 PST 2009


John Tytgat wrote:
> In message <mpro.kstgn305m9dmo03d4.lists at stevefryatt.org.uk>
>           Steve Fryatt <lists at stevefryatt.org.uk> wrote:
> 
>> Peter Naulls <peter at chocky.org> wrote:
>>
>>> A simple Makefile might therefore look like this:
>>>
>>>
>>> CFLAGS  = -I $(GCCSDK_INSTALL_ENV)/include
>>> LDFLAGS = -L $(GCCSDK_INSTALL_ENV)/lib
>> etc.
>>
>> OK, that all seems to work, and it's a lot neater than having to use the
>> riscos user -- thanks for the help.
>>
>> It now falls over on linking, with "file not recognized: File format not
>> recognized" on the old OSLib32.o library.  I assume this to simply be AOF vs
>> ELF, in which case I'll return to it another day.
> 
> You need OSLib 7 but that hasn't been released yet.  An older set
> of binaries can be found at <URL:http://joty.drobe.co.uk/oslib/>, if you
> use UnixLib as runtime library, take the softfloat one; if you use
> SharedUnixLibrary in your program, take the 'module' one (SCL build & SCL
> for module build should be the same for OSLib).

In practice, it's probably just easier to build it yourself.  This is
very easy, e.g.:

/usr/src/gccsdk/autobuilder/build oslib

Also, DeskLib and a couple of other RISC OS libraries are there.




More information about the gcc mailing list