-   Gentoo (
-   -   Make Portage use a different compiler? (

1337snake 03-09-2013 08:41 PM

Make Portage use a different compiler?
Is there a way in Gentoo/Funtoo to get portage to compile using tcc instead of gcc? I'm using Funtoo, if there would be any difference. If it is possible, can I recompile everything with tcc?

Emerson 03-09-2013 11:55 PM

I fail to see benefits of this. TCC may be faster, but the resulting binaries are way less optimized. Furthermore I do not think the whole base system will build with TCC. However, if you want to try this, google for Gentoo and ICC, there are plenty of instructions how to switch.

i92guboj 03-10-2013 04:58 AM

You can adjust that, as Emerson said, just look for guide on setting ICC as your Gentoo compiler, the procedure should be mostly the same for any other compiler. But be warned that it won't be *that* simple. Some (or even a lot of) packages will fail to compile, and the kernel won't probably compile against anything that's not gcc unless you patch it.

If there are some other problems in the produced object code and/or the ABI and linking you will be, basically, on your own. The place to seek for support on this would be the tcc forums, mailing lists, or whatever they use. Gentoo doesn't provide support for alternative toolchains (the thing is already complex enough as it is...).

1337snake 03-10-2013 10:35 AM

Thank you, didn't know about that page. Going to try to get it working.

All times are GMT -5. The time now is 01:28 AM.