AW: Building static core C compiler fails (SH4 config)
Flaig, Patrick
Patrick.Flaig@bdt.de
Fri Oct 24 08:07:00 GMT 2008
Hello Yann!
Hello All!
Which trunk revision should work with the sh4 example config?
I tried to compile the crosscompiler but still getting an error during install of static c core compiler (see attached log).
I'm using trunc revision 1120.
Patrick
-----Ursprüngliche Nachricht-----
Von: Yann E. MORIN [mailto:yann.morin.1998@anciens.enib.fr]
Gesendet: Mi 22.10.2008 23:03
An: crossgcc@sourceware.org
Cc: Flaig, Patrick
Betreff: Re: Building static core C compiler fails (SH4 config)
Hello Patrick!
Hello All!
On Thursday 16 October 2008 12:23:02 Flaig, Patrick wrote:
> I tried some new things.
> I have a working build script for a SH4 toolchain (from a colleague) as
> a reference.
> And I'm using only 2 patches to build the toolchain on my machine.
I've had a look at those. There seems to be no noticeable procedural
difference...
> Now I tried to disable the patches from crosstool-ng and enabled only to
> use my patches.
> The strange thing was, that crosstool-ng ignored this setting and used
> all patches (crosstool-ng patches and my patches).
Ha. Fixed! Thank you for pointing this!
> I only observed a difference in the way the sysroot is created.
And the way the kernel headers are installed seems really weird. You
shouldn't be needing a kernel config to install headers...
> Maybe someone of you will find the problem with crosstool-ng and
> building a SH4 toolchain.
A glibc patch for the Alpha architecture touched the SuperH files. Fixed.
Added a few new SuperH patches to fic _build_ breakage. Not run-tested.
Could you check that they are correct:
http://ymorin.is-a-geek.org/svn/crosstool-ng/trunk/patches/glibc/2.7/240-sh-lowlevellock-asm.patch
http://ymorin.is-a-geek.org/svn/crosstool-ng/trunk/patches/glibc/2.7/250-sh-chop-linux-version.patch
http://ymorin.is-a-geek.org/svn/crosstool-ng/trunk/patches/glibc/2.7/260-sh-syscall-error-path.patch
http://ymorin.is-a-geek.org/svn/crosstool-ng/trunk/patches/glibc/2.7/270-sh-fix-procfs.patch
http://ymorin.is-a-geek.org/svn/crosstool-ng/trunk/patches/glibc/2.7/280-sh-fix-kernel-headers-location.patch
Most notably, the #270 is pure-chance and is highly dubious: it deals with the
registers definitions (which I absolutely have no idea about, except for
looking at the kernel code...)
With those changes, I managed to _build_ an sh4 C-only toolchain.
Could you look at the svn trunk, and comment and improve upon the
sh4-unknown-linux-gnu sample, please?
Notes:
- gcc-4.3 won't build
- I have no idea wether SuperH has an FPU or not, and thus if soft float
should be activated
- no tools are yet built
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software Designer | \ / CAMPAIGN | ___ |
| --==< ^_^ >==-- `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
`------------------------------^-------^------------------^--------------------'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log.tar.gz
Type: application/x-gzip
Size: 254780 bytes
Desc: build.log.tar.gz
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20081024/9638da61/attachment.bin>
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list