<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - ABLD.BAT exit code - Comments</title>
 <link>http://www.newlc.com/forum/abldbat-exit-code</link>
 <description>Comments for &quot;ABLD.BAT exit code&quot;</description>
 <language>en</language>
<item>
 <title>Re: ABLD.BAT exit code</title>
 <link>http://www.newlc.com/forum/abldbat-exit-code#comment-44338</link>
 <description>&lt;p&gt;There is a lot of things needed to be fixed for a long time in the build environment imo...&lt;/p&gt;

&lt;p&gt;no exit codes, path-problems (infamous no space allowed), drive problems (can only work if project and sdk is on same drive), bad error visibility, slowness (can take it minutes just to walk through all header files), just to name a few.&lt;/p&gt;

&lt;p&gt;The complex and easy-to-break build environment is one of symbians weakest points imo.&lt;/p&gt;

&lt;p&gt;And not that much one can do yourself, without getting stuck in a bog of patches and having to re-do everything each SDK release...&lt;/p&gt;

&lt;p&gt;Please do tell if you find some good way to tackle this to create automated build environments... &lt;br /&gt;
It would be very useful for a lot of people I think.&lt;/p&gt;

&lt;p&gt;I also think you probably will have to parse output for it though...&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;bb-quote&quot;&gt;&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;br /&gt;
Do we all use only Carbide and a desktop PC for during software production cycle?&lt;br /&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;In my experience, it is almost only 3rd party developers that use Carbide.&lt;br /&gt;
The people at Symbian, S60, S-E, UIQ, and others doing lower level work on symbian, still use Metrowerks Codewarrior and the command line tools as their main environment.&lt;/p&gt;

&lt;p&gt;Probably they will never drop support for the command line tools, unless they suddenly decide to rewrite it from scratch and make something easier to use for things like night builds and automated testing... Though unfortunately I don&#039;t think this is a high priority...&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 04 Feb 2008 18:22:23 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 44338 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ABLD.BAT exit code</title>
 <link>http://www.newlc.com/forum/abldbat-exit-code#comment-44270</link>
 <description>&lt;p&gt;Success, yet this is an ugly hack for a good OS.&lt;/p&gt;

&lt;p&gt;Do we all use only Carbide and a desktop PC for during software production cycle? &lt;/p&gt;

&lt;p&gt;Alternatively - I succeeded in modifying  the &quot;Perl build system&quot; so that a kind of continuous integration could take place.&lt;br /&gt;
 &lt;br /&gt;
The amount of Perl coding I had to experience is not one wants to get in the way when dealing with mobile. Nor is a ready made patch for a specific SDK. What comes around with the new SDK coming out? Another patch?&lt;/p&gt;

&lt;p&gt;Has anyone had experience with another approach?&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 31 Jan 2008 21:37:43 +0100</pubDate>
 <dc:creator>atanas.kunev</dc:creator>
 <guid isPermaLink="false">comment 44270 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ABLD.BAT exit code</title>
 <link>http://www.newlc.com/forum/abldbat-exit-code#comment-44246</link>
 <description>&lt;p&gt;Yes, that&#039;s what Carbide does.&lt;/p&gt;

&lt;p&gt;Could give it a try. Doing that in python is not much of a work. Just wonder why  this &quot;feature&quot; does not get fixed.&lt;/p&gt;

&lt;p&gt;Thanks, Iman&lt;/p&gt;</description>
 <pubDate>Wed, 30 Jan 2008 13:13:40 +0100</pubDate>
 <dc:creator>atanas.kunev</dc:creator>
 <guid isPermaLink="false">comment 44246 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ABLD.BAT exit code</title>
 <link>http://www.newlc.com/forum/abldbat-exit-code#comment-44245</link>
 <description>&lt;p&gt;Other option is to grab output of ABLD command ( stdio + stderr ) on the fly and check if some errors/warrnings appears or not .&lt;/p&gt;</description>
 <pubDate>Wed, 30 Jan 2008 13:06:00 +0100</pubDate>
 <dc:creator>lman</dc:creator>
 <guid isPermaLink="false">comment 44245 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ABLD.BAT exit code</title>
 <link>http://www.newlc.com/forum/abldbat-exit-code#comment-44244</link>
 <description>&lt;p&gt;Thanks for the proposal.&lt;/p&gt;

&lt;p&gt;I knew it was just a bat file and already tried that with no luck. Unfortunately bat files do not imply an incorrect exit value. On the contrary - the bat file should exit with the exit code of that same command running the abld.pl Perl script (with the single exception when it&#039;s exit code is 1 - not my case).&lt;/p&gt;

&lt;p&gt;But the Perl build wrappers return 0 themselves. I&#039;ve been diving into Symbian&#039;s Perl tool libs for some time and get more and more frustrated.&lt;/p&gt;

&lt;p&gt;abld.bat is the &quot;user&#039;s view&quot; of the Symbian build system and it should be polished after so many years of history. So I thought there might be a SDK setting that tweaks the default behavior of the build system.&lt;/p&gt;

&lt;p&gt;Looking inside the Perl script I can see no sign that anything like this happens. The only &lt;span style=&quot;font-weight:bold&quot;&gt;exit&lt;/span&gt; calls return either 0 or 1 (in the case of a Perl version mismatch). &lt;span style=&quot;font-weight:bold&quot;&gt;die&lt;/span&gt; calls do really exist bu no one sets the proper errno (exit value) so we end up with a crippled script that cannot tell us whether any command run by the system has failed.&lt;/p&gt;

&lt;p&gt;In Carbide.c++ 1.3 some of the functionality of the perl wrappers has been taken over by the Java plug-ins.&lt;/p&gt;

&lt;p&gt;Because I am aiming an automated build environment this is a noop. It would be much pain to automatically start Build from within Carbide, not to mention the unavailability of build status in that case either.&lt;/p&gt;

&lt;p&gt;Any suggestions for such an environment?&lt;/p&gt;

&lt;p&gt;Regards&lt;/p&gt;</description>
 <pubDate>Wed, 30 Jan 2008 12:59:30 +0100</pubDate>
 <dc:creator>atanas.kunev</dc:creator>
 <guid isPermaLink="false">comment 44244 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: ABLD.BAT exit code</title>
 <link>http://www.newlc.com/forum/abldbat-exit-code#comment-44238</link>
 <description>&lt;p&gt;ABLD is just .bat file which looks like this&lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;@ECHO OFF&lt;br /&gt;&lt;br /&gt;REM Bldmake-generated batch file - ABLD.BAT&lt;br /&gt;REM ** DO NOT EDIT **&lt;br /&gt;&lt;br /&gt;perl -S ABLD.PL &amp;quot;MyProject\group\\&amp;quot; %1 %2 %3 %4 %5 %6 %7 %8 %9&lt;br /&gt;if errorlevel==1 goto CheckPerl&lt;br /&gt;goto End&lt;br /&gt;&lt;br /&gt;:CheckPerl&lt;br /&gt;perl -v &amp;gt;NUL&lt;br /&gt;if errorlevel==1 echo Is Perl, version 5.003_07 or later, installed?&lt;br /&gt;goto End&lt;br /&gt;&lt;br /&gt;:End&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;so maybe you should manually call this &lt;/p&gt;

&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;perl -S ABLD.PL &amp;quot;MyProject\group\\&amp;quot; %1 %2 %3 %4 %5 %6 %7 %8 %9&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;and check code returned by it.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Wed, 30 Jan 2008 10:54:09 +0100</pubDate>
 <dc:creator>lman</dc:creator>
 <guid isPermaLink="false">comment 44238 at http://www.newlc.com</guid>
</item>
<item>
 <title>ABLD.BAT exit code</title>
 <link>http://www.newlc.com/forum/abldbat-exit-code</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I am setting up an automated build environment for the S60 3rd SDK. The software runnig the build is a modified version of Bitten, part of the Trac project.&lt;/p&gt;

&lt;p&gt;Everything works fine till one wants to get the status of the last build. As usual - I am expecting that abld would return an adequate exit code so one would know that build is OK or something went wrong with the it.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/abldbat-exit-code&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/abldbat-exit-code#comments</comments>
 <category domain="http://www.newlc.com/forums/carbide-eclipse">Carbide.c++</category>
 <pubDate>Wed, 30 Jan 2008 10:40:04 +0100</pubDate>
 <dc:creator>atanas.kunev</dc:creator>
 <guid isPermaLink="false">20140 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
