TUD-OS / NRE

NOVA runtime environment (official branch)
GNU General Public License v2.0
33 stars 12 forks source link

Build scripts. #16

Closed Nils-TUD closed 11 years ago

Nils-TUD commented 11 years ago

Some minor changes on the build scripts. Cherry pick what you want. :) The rationale behind some of them is, I like that stuff builds also on non-Linux, mainly FreeBSD.

2 questions:

Do you think we could just reuse Genode's toolchain or do they do something special with it?

Why are there separate toolchains for 32 and 64 bit?

Julian

Nils-TUD commented 11 years ago

Do you think we could just reuse Genode's toolchain or do they do something special with it?

That's probably possible. But I've just tried it and couldn't get exception-handling to work so far. I'm also not sure if it works with multithreading. There are problably other issues that need to be solved. I don't know if its worth the effort.

Why are there separate toolchains for 32 and 64 bit?

Well, it was the simplest way to get it working :) It should be possible to build just one cross compiler for both x86_32 and x86_64.

Nils-TUD commented 11 years ago

To "Updated to GCC 4.6.2 and binutils 2.22.": Have you really tried to build the cross compiler after that change? Because I can't imagine that the patches for gcc and binutils (cross/x86_{32,64}/{binutils,gcc}.diff) still work...

Nils-TUD commented 11 years ago

Works. I have built everything and run the test configuration.

Nils-TUD commented 11 years ago

If they silently fail, this would be bad. ;-) I think I didn't try 32 bit. Anyway, I think it would be good to have the toolchain in a redistributable form.

Nils-TUD commented 11 years ago

Yes, I've already done that yesterday (not commited yet). I moved the toolchain to /opt/nre-cross-$arch. This way, the absolute path is the same for everyone, so that we can provide precompiled versions.

Nils-TUD commented 11 years ago

Nice! I'll write a Gentoo ebuild if I have time. :-)

Nils-TUD commented 11 years ago

I guess this is closed. Let's move the toolchain update to a new issue.