This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SPARC support


On Wed, Mar 30, 2011 at 3:28 PM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
> Arnaud, Sam, Xun, All,
>
> On Wednesday 30 March 2011 20:02:05 Sam Ravnborg wrote:
>> On Wed, Mar 30, 2011 at 01:12:36PM -0400, Arnaud Lacombe wrote:
>> > On Wed, Mar 30, 2011 at 12:27 PM, Xun Li <lxfind@gmail.com> wrote:
>> > > Is crosstool-ng going to support sparc?
>
> I do have old Sparcs here, but they have evolved into a small table
> by my armchair, where I can put my beer while reading a good book! :-)
>
> But I will gladly apply patches adding new architectures, of course!
>
>> > AFAIR, Sam Ravnborg posted patches a few weeks ago about that. Yann do
>> > not seem to have pulled them in.
>>
>> I posted something preliminary - I have not yet got around to post
>> final patches.
>
> Yes, I do remember. I did not poke you, as you clearly stated that you
> still had to do some work on this.
>
>> I need to sync up with Gaisler for the LEON specific bits first.
>> As things stand now I need to finish some sparc genirq stuff
>> first.
>
> Maybe you could push your changes to support generic SPARC, and then once
> this is in, work on LEON. It might be easier this way, rather than trying
> to do all of it in one go. Maybe you could just submit the v2 of your
> initial patch?
>

How was the sparc patch going now? Has it been pushed in?
I recently need a cross compiler targeting to sparc.
I tried to patch crosstool-ng by myself to support sparc. (I simply
added an entry in the config menu and an .sh file under arch, copying
most of the scripts from mips.
But after the toolchain finishes building successfully (with
bare-metal and newlib), I run the resulting gcc on a simple test
program, it gives the following error:

/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `start':
(.text+0x0): undefined reference to `__stack'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `start':
(.text+0x4): undefined reference to `__stack'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `init':
(.text+0xbc): undefined reference to `hardware_init_hook'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `init':
(.text+0xc0): undefined reference to `hardware_init_hook'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `init':
(.text+0xd0): undefined reference to `hardware_init_hook'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `init':
(.text+0xd8): undefined reference to `software_init_hook'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `init':
(.text+0xdc): undefined reference to `software_init_hook'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `init':
(.text+0xec): undefined reference to `software_init_hook'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `init':
(.text+0xfc): undefined reference to `exit'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `win_ovf_trap':
(.text+0x110): undefined reference to `win_ovf'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `win_ovf_trap':
(.text+0x114): undefined reference to `win_ovf'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `win_unf_trap':
(.text+0x120): undefined reference to `win_unf'
/research/tools/ct-ng/build-ct-ng-1.10.1/x-tools/sparc-unknown-elf/sysroot/lib/crt0.o:
In function `win_unf_trap':
(.text+0x124): undefined reference to `win_unf'

Any clues?
Thanks.

> Regards,
> Yann E. MORIN.
>
> --
> .-----------------.--------------------.------------------.--------------------.
> | ?Yann E. MORIN ?| Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software ?Designer | \ / CAMPAIGN ? ? | ?___ ? ? ? ? ? ? ? |
> | +33 223 225 172 `------------.-------: ?X ?AGAINST ? ? ?| ?\e/ ?There is no ?|
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL ? ?| ? v ? conspiracy. ?|
> '------------------------------^-------^------------------^--------------------'
>



-- 
Xun Li
Computer Architecture Lab
Department of Computer Science
University of California, Santa Barbara

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]