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: 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.  |
`------------------------------^-------^------------------^--------------------'


--
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]