LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (http://www.linuxquestions.org/questions/gentoo-87/)
-   -   Make Portage use a different compiler? (http://www.linuxquestions.org/questions/gentoo-87/make-portage-use-a-different-compiler-4175453453/)

1337snake 03-09-2013 09: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-10-2013 12:55 AM

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 05: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 11:35 AM

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

www.gentoo-wiki.info/HOWTO_ICC_and_Portage


All times are GMT -5. The time now is 01:06 PM.