{"id":40,"date":"2008-03-22T15:14:00","date_gmt":"2008-03-22T19:14:00","guid":{"rendered":"http:\/\/72.167.111.237\/wpmgreene\/?p=40"},"modified":"2008-03-22T15:14:00","modified_gmt":"2008-03-22T19:14:00","slug":"easy-gcc-build-environment","status":"publish","type":"post","link":"https:\/\/www.mgreene.org\/?p=40","title":{"rendered":"Easy gcc build environment"},"content":{"rendered":"<p>Open Office for eCS-OS\/2 2.4 Beta1 is available <a href=\"http:\/\/www.os2world.com\/content\/view\/17561\/1\/\">(news post)<\/a> and I installed it on my old SMP PIII box.  Seems to work well!  I guess the big milestone was just getting it going in the previous version.<\/p>\n<p>Also, Pasha has his updated os2ldr on hobbes <a href=\"http:\/\/hobbes.nmsu.edu\/cgi-bin\/h-viewer?sh=1&amp;fname=\/pub\/os2\/system\/os2ldr.zip\">(here)<\/a>.  No chance to try it yet, but I wish it was open source.  Guess that is up to ecomstation.ru.<\/p>\n<p>I am in the process of rebuilding my sandbox system and I reached the point where I setup the gcc environment.  The easiest way to do this, especially since I rarely use gcc, is to use <a href=\"http:\/\/www.smedley.info\/os2ports\/index.php?page=build-environment\">Paul Smedley&#8217;s build environment<\/a>, currently buildenv_20071022.zip  and a size of 234,635,207 bytes.<\/p>\n<p>I know Paul has it on his U: drive and that the setup could be changed to use another drive, but I don&#8217;t want to invest the time.  So, I created a U: drive during the system setup.<\/p>\n<p>First thing to do was to unzip the file.  A quick dir \/s gave me the unarchived space required:<\/p>\n<p>686,439,038 bytes in 26,738 files and 8,057 dirs<\/p>\n<p>So, plan ahead because the zip file contains gcc, qt, perl, and all kinds of other libraries and executables.<\/p>\n<p>First thing was to cd into extraslib and run makeomflibs, as instructed on Paul&#8217;s site.  I got this at the end but I believe it is expected:<\/p>\n<p>warning: one or more operations failed, check the above output. :-).<\/p>\n<p>Also, if you look in gcc335.cmd there are a bunch of e:python25 statements, but python is not in the zip archive.  I just grabbed Paul&#8217;s <a href=\"http:\/\/www.smedley.info\/os2ports\/index.php?page=python\">Python v2.5.1 for OS\/2 &amp; eComStation<\/a>.  I just did:<\/p>\n<p>unzip python-2.5.1-os2-20071223.zip<\/p>\n<p>and changed the references in gcc335.cmd from e: to u:.<\/p>\n<p>With that done I gave it an easy test, compiling nasm-2.02.  I first ran <span style=\"font-style: italic; font-weight: bold;\">sh .\/configure<\/span><br \/>and after it finished <span style=\"font-weight: bold; font-style: italic;\">make<\/span>.  The problem I ran into is that Paul&#8217;s gcc335.cmd defines tmp to u:tmp which did not exist:<\/p>\n<p>&#8216;set tmp=u:\/tmp&#8217;<br \/>&#8216;SET TEMP=%TMP%&#8217;<br \/>&#8216;SET TMPDIR=%TMP%&#8217;<\/p>\n<p>I thought it was a good idea to keep the tmp drive on u: for my gcc stuff so a quick md tmp and I was off to run make again.  The result was an complete nasm.exe build  so I was happy.<\/p>\n<p>Things to note: Paul has a newer version  of perl on his site and I think qt has been updated, but I have yet to download them.  There may even be an  updated gcc package on netlabs by now.<\/p>\n<p>Anyway, that&#8217;s it &#8211; short and sweet.  Thanks to both Knut and Paul.<\/p>\n<p>Other stuff:<br \/><a href=\"http:\/\/technomania.net\/100000-customers-tell-microsoft-to-save-xp.html\">100,000 customers tell Microsoft to save XP<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open Office for eCS-OS\/2 2.4 Beta1 is available (news post) and I installed it on my old SMP PIII box. Seems to work well! I guess the big milestone was [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[24,27,31],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-os2","category-personal","category-programming"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":69,"url":"https:\/\/www.mgreene.org\/?p=69","url_meta":{"origin":40,"position":0},"title":"Quick Perl install and setup","author":"Mike","date":"April 26, 2007","format":false,"excerpt":"Finally had the need to use Perl standalone so I setup Paul Smedley's GCC port. Then I set up a script to just initialize the perl stuff:Note:I unzip'd the archive to my D drive and I have sh.exe (ash.exe renamed to sh.exe) in d:moztools.----- perlenv.cmd -----set PATH=%PATH%;d:perlbin;set BEGINLIBPATH=d:perlbinset PERLIB_PREFIX=u:\/perl\/lib;d:\/perl\/libset PERL_SH_DIR=d:\/moztoolsNow\u2026","rel":"","context":"In &quot;ecomstation&quot;","block_context":{"text":"ecomstation","link":"https:\/\/www.mgreene.org\/?cat=9"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":187,"url":"https:\/\/www.mgreene.org\/?p=187","url_meta":{"origin":40,"position":1},"title":"Virtual Box 5.0 in Portage!","author":"Mike","date":"July 14, 2015","format":false,"excerpt":"I guess just in time for Windows 10??? emerge --unmerge -p virtualbox Same old catch if you want the BIOS compiled then Open Watcom is needed. \u00a0To be specific, I have had to use Open Watcom 1.9. \u00a0The emerge output if OW is not found: >>> Source prepared. >>> Configuring\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"vb5","src":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2015\/07\/vb5.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2015\/07\/vb5.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2015\/07\/vb5.png?resize=525%2C300 1.5x"},"classes":[]},{"id":859,"url":"https:\/\/www.mgreene.org\/?p=859","url_meta":{"origin":40,"position":2},"title":"New System76 Darter Pro 10 with Gentoo","author":"Mike","date":"December 28, 2024","format":false,"excerpt":"I decided to get a System76 Darter Pro 10. It was to replace my Thinkbook 14s which was over 5 years old. The Thinkbook had been a replacement for an IdeaPad Y470p purchased early in 2012. Before the IdeaPad and Thinkbook, there were Thinkpads of various types. I had a\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2024\/12\/system76_DP_spec.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2024\/12\/system76_DP_spec.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2024\/12\/system76_DP_spec.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":64,"url":"https:\/\/www.mgreene.org\/?p=64","url_meta":{"origin":40,"position":3},"title":"Misc. Crap","author":"Mike","date":"May 12, 2007","format":false,"excerpt":"Recovering from a damn mess trying ACPI 2.21 on the laptop...Funny - from OS\/2 World or old pagePaul's page has a new lookkLIBC version 0.6.2 and GCC 3.3.5 CSD2 released","rel":"","context":"In &quot;ecomstation&quot;","block_context":{"text":"ecomstation","link":"https:\/\/www.mgreene.org\/?cat=9"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":57,"url":"https:\/\/www.mgreene.org\/?p=57","url_meta":{"origin":40,"position":4},"title":"Better late than never&#8230;","author":"Mike","date":"July 18, 2007","format":false,"excerpt":"Knut released gcc 3.3.5 csd3 12 June 2007 ftp:\/\/ftp.netlabs.org\/pub\/libc\/Open Watcom v1.7, RC1 is now available July 10, 2007 ftp:\/\/ftp.openwatcom.org\/devel\/Also, made some progress on a Hello World device driver","rel":"","context":"In &quot;Open Watcom&quot;","block_context":{"text":"Open Watcom","link":"https:\/\/www.mgreene.org\/?cat=22"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":51,"url":"https:\/\/www.mgreene.org\/?p=51","url_meta":{"origin":40,"position":5},"title":"Storm&#8230;","author":"Mike","date":"August 24, 2007","format":false,"excerpt":"Lucky me! While I was out of town Tuesday night we had the mother of all storms. It didn't whack me through the power cords, but rather through a hub. My 8 port hub was fried and every network item attached to it was trashed. This includes the network card\u2026","rel":"","context":"In &quot;personal&quot;","block_context":{"text":"personal","link":"https:\/\/www.mgreene.org\/?cat=27"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":0,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}