LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices



Reply
 
Search this Thread
Old 03-09-2013, 09:41 PM   #1
1337snake
LQ Newbie
 
Registered: Dec 2012
Distribution: Funtoo
Posts: 5

Rep: Reputation: Disabled
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?
 
Old 03-10-2013, 12:55 AM   #2
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 03-10-2013, 05:58 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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...).
 
Old 03-10-2013, 11:35 AM   #4
1337snake
LQ Newbie
 
Registered: Dec 2012
Distribution: Funtoo
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you, didn't know about that page. Going to try to get it working.

www.gentoo-wiki.info/HOWTO_ICC_and_Portage
 
  


Reply

Tags
compiler, funtoo, gcc, gentoo, portage


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] KDE language packs - Can I make Portage skip over them (emerge kde-meta)? rrrssssss Gentoo 4 11-08-2009 03:45 PM
make & C Compiler? Roy G. Biv Incognito 4 10-01-2009 12:05 PM
Problems emerging " /etc/make.profile symlink?" Portage tree complete? stl222 Linux - Software 2 02-11-2006 11:38 PM
Make and compiler problem fiveball02 Slackware 2 09-28-2005 11:32 PM
Specifying compiler for 'make' to use litlmary Linux - Software 5 07-01-2005 09:27 PM


All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration