LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 08: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-09-2013, 11:55 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

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, 04:58 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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, 10: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



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 02:45 PM
make & C Compiler? Roy G. Biv Incognito 4 10-01-2009 11:05 AM
Problems emerging " /etc/make.profile symlink?" Portage tree complete? stl222 Linux - Software 2 02-11-2006 10:38 PM
Make and compiler problem fiveball02 Slackware 2 09-28-2005 10:32 PM
Specifying compiler for 'make' to use litlmary Linux - Software 5 07-01-2005 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 01:52 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
Open Source Consulting | Domain Registration