{"id":93,"date":"2012-07-05T21:33:24","date_gmt":"2012-07-05T21:33:24","guid":{"rendered":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/?p=93"},"modified":"2012-07-06T06:16:57","modified_gmt":"2012-07-06T06:16:57","slug":"compiling-the-compiler-gnu-toolchain-on-solaris-7","status":"publish","type":"post","link":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/2012\/07\/05\/compiling-the-compiler-gnu-toolchain-on-solaris-7\/","title":{"rendered":"Compiling the compiler &#8211; GNU toolchain on Solaris 7"},"content":{"rendered":"<p>The last couple of days, having configured the pre-installed copy of Solaris 7 on the Ultra 5 I&#8217;ve been looking to get enough of the GNU toolchain on the box to allow me to compile <a title=\"SIMH\" href=\"http:\/\/simh.trailing-edge.com\/\" target=\"_blank\">SIMH<\/a> successfully.<\/p>\n<p>In the past, when I had the Tadpole Sparcstation and I&#8217;d installed Solaris 2.6 I retrieve binary packages from <a title=\"Sun Freeware\" href=\"http:\/\/sunfreeware.com\" target=\"_blank\">SunFreeware<\/a>. However, since that time the service has been locked down to paying customers only, and I don&#8217;t know about you but it just feels wrong to be paying for GNU software, compiled or not.<\/p>\n<p>My quest for alterative binary packages for Solaris 7 was through a very bleak land until after hours of searching I knocked on the door of <a title=\"ibiblio solaris binary packages\" href=\"http:\/\/www.ibiblio.org\/pub\/packages\/solaris\/sparc\/\" target=\"_blank\">ibiblio<\/a>. The coverage of all tools and applications isn&#8217;t fantastic but there was enough there to enable me to boostrap my own compilations.<\/p>\n<p>After installing gcc, autoconf, make and m4 I was able to start compiling more modern versions. First stop was GCC. I started with the latest, 4.7.1, but had no joy: &#8216;<span style=\"font-family: 'Courier New';\">target platform sparc-sun-solaris2.7 not supported<\/span>&#8216;. After more searching it became clear that the best initial bet was gcc-3.2.3 as this could be build with gcc-2.9.5 &#8211; later versions had trouble.<\/p>\n<div class=\"separator\" style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"https:\/\/i0.wp.com\/www.wickensonline.co.uk\/rc2012sc\/wp-content\/uploads\/2012\/07\/wpid-Photo-5-Jul-2012-2110.jpg\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" id=\"blogsy-1341524214208.5186\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/www.wickensonline.co.uk\/rc2012sc\/wp-content\/uploads\/2012\/07\/wpid-Photo-5-Jul-2012-2110.jpg?resize=400%2C298\" alt=\"Sun Type 5 keyboard\" width=\"400\" height=\"298\" \/><\/a><\/div>\n<p>Building gcc is fairly straightforward, the main thing is to use the <span style=\"font-family: 'Courier New';\">&#8211;enable-languages=c,c++,fortran<\/span> switch so that I didn&#8217;t start building Objective C, Ada, Java etc. I&#8217;ve also built newer versions of some of the other essential tools including autoconf, awk, bash, bison, bzip2, awk, flex, make, tar, gzip, m4, nedit, perl and wget. This is not a requirement when you use any modern linux distro, but I&#8217;ve done it <strong>so<\/strong> many times in the past and it does make you appreciate how much code there is in even the lowest level of utilities (e.g, the latest version of GCC is a cool 1GB of source code!)<\/p>\n<div class=\"separator\" style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"https:\/\/i0.wp.com\/www.wickensonline.co.uk\/rc2012sc\/wp-content\/uploads\/2012\/07\/wpid-Photo-2-Jul-2012-2215.jpg\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" id=\"blogsy-1341524214149.2734\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/www.wickensonline.co.uk\/rc2012sc\/wp-content\/uploads\/2012\/07\/wpid-Photo-2-Jul-2012-2215.jpg?resize=400%2C298\" alt=\"Ultra 5's Seagate IDE Hard Drive\" width=\"400\" height=\"298\" \/><\/a><\/div>\n<p>I then downloaded the latest version of GCC in the -3 branch, gcc 3.6.3 and am now attempting to compile that with version 3.2.3. The builds are a good few hours each! The IDE hard disk is taking a bit of a hammering and apparently the chipset is such a poor choice in the Ultra 5 that only programmed mode and not DMA mode is supported resulting in a 20% CPU overhead for disk access! All is not lost as I&#8217;ve been promised a PCI SCSI card which will rid me of the poor performance.<\/p>\n<p>The nice thing about the IDE hard drive is that it lets you know its working &#8211; no noticable spin noise once it is up to speed but the head movement can be quite musical at times:<\/p>\n<div class=\"separator\" style=\"text-align: center;\"><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"http:\/\/www.youtube.com\/embed\/W8InPWqXixc\" frameborder=\"0\" width=\"500\" height=\"305\"><\/iframe><\/div>\n<p>&nbsp;<\/p>\n<p>So what is the plan? Well, I almost didn&#8217;t start down this route because I&#8217;m planning on installing Solaris 9 on a SCSI disk when I get the PCI SCSI card. Why bother with this? I believe I can do the retrocomputing community a service by providing the GNU utility binaries for Solaris 2.7 when I have finished &#8211; it should save some considerable time now that freeware is no longer free.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"blogsy_footer\" style=\"text-align: right; font-size: small;\"><a href=\"http:\/\/blogsyapp.com\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"vertical-align: middle; margin-right: 5px;\" src=\"https:\/\/i0.wp.com\/blogsyapp.com\/images\/blogsy_footer_icon.png?resize=20%2C20\" alt=\"Posted with Blogsy\" width=\"20\" height=\"20\" \/>Posted with Blogsy<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The last couple of days, having configured the pre-installed copy of Solaris 7 on the Ultra 5 I&#8217;ve been looking to get enough of the GNU toolchain on the box to allow me to compile SIMH successfully. In the past, when I had the Tadpole Sparcstation and I&#8217;d installed Solaris 2.6 I retrieve binary packages &#8230;<\/p>\n<p><a href=\"http:\/\/www.wickensonline.co.uk\/rc2012sc\/2012\/07\/05\/compiling-the-compiler-gnu-toolchain-on-solaris-7\/\" class=\"more-link\">Continue reading &lsquo;Compiling the compiler &#8211; GNU toolchain on Solaris 7&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[10,9,14,13,6,11,12,7],"class_list":["post-93","post","type-post","status-publish","format-standard","hentry","category-general","tag-gcc","tag-gnu","tag-gnu-solaris-2-7-binaries","tag-gnu-toolchain","tag-solaris","tag-solaris-2-7","tag-solaris-7","tag-sun-ultra5"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p73JhD-1v","jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/wp-json\/wp\/v2\/posts\/93"}],"collection":[{"href":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":5,"href":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":98,"href":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/wp-json\/wp\/v2\/posts\/93\/revisions\/98"}],"wp:attachment":[{"href":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wickensonline.co.uk\/rc2012sc\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}