{"id":1186,"date":"2013-04-26T20:52:48","date_gmt":"2013-04-27T00:52:48","guid":{"rendered":"http:\/\/yuguangzhang.com\/blog\/?p=1186"},"modified":"2013-06-04T20:40:58","modified_gmt":"2013-06-05T00:40:58","slug":"upgrading-sabayon-and-building-chrome","status":"publish","type":"post","link":"http:\/\/yuguangzhang.com\/blog\/upgrading-sabayon-and-building-chrome\/","title":{"rendered":"Upgrading Sabayon and Building Chrome"},"content":{"rendered":"<p>One advantage of using Sabayon is that you can compile programs to be optimized for your CPU architecture. There are many <a href=\"http:\/\/gcc.gnu.org\/onlinedocs\/gcc\/Optimize-Options.html\">optimization options<\/a> and I use -march=native -O3 -pipe -fomit-frame-pointer -ftracer -floop-interchange -floop-block -ftree-loop-distribution -freorder-blocks-and-partition. <a href=\"http:\/\/www.tomshardware.com\/reviews\/chrome-17-firefox-10-ubuntu,3129-6.html\">Chrome on Linux is the fastest browser for sites that you visit often<\/a>, as they are cached. Furthermore, you can <a href=\"https:\/\/wiki.sabayon.org\/index.php?title=How_to_optimize_and_accelerate_your_system#Chrome_Tweaks\">boost Chrome performance beyond the benchmarks<\/a>.<br \/>\nI follow a few simple steps for upgrading Sabayon:<\/p>\n<ol>\n<li>equo update<\/li>\n<li>equo install entropy equo<\/li>\n<li>equo repo mirrorsort sabayon-weekly<\/li>\n<li>equo upgrade<\/li>\n<li>equo conf update<\/li>\n<\/ol>\n<p>Wolfden has <a href=\"http:\/\/wolf911.us\/wgo\/?p=797\">a nice article explaining these steps<\/a>. To upgrade Chrome, I use the Portage package manager:<\/p>\n<ol>\n<li>emerge &#8211;sync<\/li>\n<li>layman -S<\/li>\n<li>equo install sys-devel\/gcc-[version]<\/li>\n<li>gcc-config -c<\/li>\n<li>equo install www-client\/chromium-[version]<\/li>\n<li>emerge -av &#8211;oneshot &#8211;nodeps =www-client\/chromium-[version]<\/li>\n<\/ol>\n<p>There were errors coming from different packages when I tried to compile them without steps 3-5, such as configure: error: C compiler cannot create executables and  gcc-config: error: could not run\/locate &#8216;g++&#8217;. Installing the gcc version listed in gcc-config -c fixed the problem. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>One advantage of using Sabayon is that you can compile programs to be optimized for your CPU architecture. There are many optimization options and I use -march=native -O3 -pipe -fomit-frame-pointer -ftracer -floop-interchange -floop-block -ftree-loop-distribution -freorder-blocks-and-partition. Chrome on Linux is the fastest browser for sites that you visit often, as they are cached. Furthermore, you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[5],"tags":[104,19],"class_list":["post-1186","post","type-post","status-publish","format-standard","hentry","category-linux","tag-gentoo","tag-sabayon"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/posts\/1186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/comments?post=1186"}],"version-history":[{"count":0,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/posts\/1186\/revisions"}],"wp:attachment":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/media?parent=1186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/categories?post=1186"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/tags?post=1186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}