{"id":1458,"date":"2009-05-16T22:34:56","date_gmt":"2009-05-17T05:34:56","guid":{"rendered":"http:\/\/multimedia.cx\/eggs\/?p=1458"},"modified":"2009-05-16T22:34:56","modified_gmt":"2009-05-17T05:34:56","slug":"constantly-compiling-compilers","status":"publish","type":"post","link":"https:\/\/multimedia.cx\/eggs\/constantly-compiling-compilers\/","title":{"rendered":"Constantly Compiling Compilers"},"content":{"rendered":"<p>At the outset of this <a href=\"http:\/\/fate.multimedia.cx\/\">FATE<\/a> journey, I <a href=\"http:\/\/multimedia.cx\/eggs\/up-to-date-gcc\/\">pondered how frequently I ought to update gcc from SVN<\/a> and put new experimental gcc versions into service. At that point, I had some logistical difficulties in upgrading compilers due to my computer setup which made it a serious chore. But it&#8217;s much easier to do now&#8211; at least for x86_32 and x86_64, I know how to build one compiler that can build both binaries. Further, the C compiler only takes about 45 minutes to compile on my 2.13 GHz Core 2 Duo, leveraging both cores, and barring any other CPU activity.<\/p>\n<p>So, if you know me, you should know that right about now I&#8217;m thinking&#8230; <strong>automated script!<\/strong> Here&#8217;s the pitch:<\/p>\n<ul>\n<li>Write a new Python script that runs continuously which performs the following steps:<\/li>\n<li>&#8216;svn update&#8217; of my local copy of gcc-svn<\/li>\n<li>If the SVN number is higher than the latest build, automatically build a new version and install it in its own directory<\/li>\n<li>Wait 24 hours and repeat<\/li>\n<\/ul>\n<p>This will run on my main FATE machine, so run the script at a low priority so it doesn&#8217;t take time away from the more important build\/test operations.<\/p>\n<p>So that seems straightforward enough, especially drawing on the experience I have with FATE already (this is basically a simpler version of the main FATE script). For bonus points, the script should also put the freshest compiler into service automatically so I don&#8217;t have to be bothered with the tedious, error-prone process. This will be a bit trickier, but it should be possible:<\/p>\n<ul>\n<li>Contact the primary FATE MySQL database @ fate.multimedia.cx and update the relevant records in the configuration table.<\/li>\n<li>Signal the FATE script to start using the new compiler versions. In the present arrangement, while I have 2 scripts in order to leverage 2 CPU cores, 1 of the scripts is in charge of the 2 gcc-svn configuration for x86_32 and x86_64. The compiler path is specified in a Python configuration file. I may have to modify FATE a little bit so that the script checks some independent file for the compiler location. Then, this new script can update that location.<\/li>\n<\/ul>\n<p>There is also the matter of storing so many old gcc-svn compiler versions. I&#8217;ll likely clean that up manually at various intervals but its not terribly pressing; the main FATE build\/test machine inherited a 400 GB hard drive when it went into service (which, you&#8217;ll be pleased to hear, is partially used in performing backup duty for the various multimedia.cx domains).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Developing a plan for keeping on top of new gcc-svn versions<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[108,116,285,178],"class_list":["post-1458","post","type-post","status-publish","format-standard","hentry","category-fate-server","tag-fate","tag-gcc","tag-python","tag-svn"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/1458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/comments?post=1458"}],"version-history":[{"count":3,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/1458\/revisions"}],"predecessor-version":[{"id":1461,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/1458\/revisions\/1461"}],"wp:attachment":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/media?parent=1458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/categories?post=1458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/tags?post=1458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}