Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-26-2007, 07:40 AM
Steffen Nissen Steffen Nissen is online now
Registered User
 
Join Date: 06-25-2007
Location: Copenhagen
Posts: 3
Problem using Borland Developer Studio 2006 and Visual Build Pro

We are using Visual Build Pro in combination with Borland Developer Studio 2006 (C++ projects).

Our problem is that if there is a compilation error, then the project continous and the build step is not marked in an error state.

I was able to reproduce this problem with the canvas example project, in both version 6.3 and 6.4 of Visual Build Pro.

Is there anyway to force Visual Build Pro to stop whenever a compilation problem occurs?

Best Regards,
Steffen
Reply With Quote
  #2  
Old 06-26-2007, 09:07 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The Make Delphi action will fail as long as bds.exe returns a non-zero exit code. In our tests w/ a bogus line added to canmain.cpp in the Canvas sample from BDS 2006, the attached .bld file produced build output of:

6/26/2007 6:59:36 AM: --------------------Starting Build: 'canvas.bld'--------------------
6/26/2007 6:59:36 AM: Building project step 'Canvas'...
building...

[C++ Error] canmain.cpp(8): E2048 Unknown preprocessor directive: 'testx'
[ more error output snipped ]
[C++ Error] iosfwd(238): E2228 Too many error or warning messages

Process completed with exit code 1
6/26/2007 6:59:44 AM: Step 'Canvas' failed
6/26/2007 6:59:44 AM: Build ended.


Please ZIP and send or post:
1) The info from Help | About | Install Info
2) The .bld file
3) A build log file
4) The modified canvas sample
5) The version of BDS being used

Thanks.
Attached Files
File Type: bld canvas.bld (425 Bytes, 1961 views)
Reply With Quote
  #3  
Old 06-26-2007, 09:59 AM
Steffen Nissen Steffen Nissen is online now
Registered User
 
Join Date: 06-25-2007
Location: Copenhagen
Posts: 3
Hi,

I tried the .bld file that you have attached, and I got the following result:

26-06-2007 16:53:39: --------------------Starting Build: 'canvas.bld'--------------------
26-06-2007 16:53:39: Building project step 'Project steps'...
26-06-2007 16:53:39: Building project step 'Canvas'...
building...

[C++ Error] Canvas.cpp(19): E2451 Undefined symbol 'Applicat'
[C++ Error] Canvas.cpp(19): E2379 Statement missing ;

26-06-2007 16:54:22: Build successfully completed.

This is when running in a trial version of 6.4, but I have also had similar results with a production version of version 6.3.

The results from Help->About->Install Info is:
Visual Build Professional 6.4
Evaluation Version: 29 days remaining
Windows Version: 5.1.2600.2.0
Install path: C:\Program Files\VisBuildPro6
SftTree_IX86_U_50.dll version 5.06
unins000.exe version 51.46.0.0
VisBuildCmd.exe version 6.4.0.2
VisBuildPro.exe version 6.4.0.2
VisBuildBld.dll version 6.4.0.2
VisBuildBurn.dll version 6.4.0.2
VisBuildCore.dll version 6.4.0.2
VisBuildDotNET.dll version 6.4.0.0
VisBuildExt.dll version 6.4.0.3
VisBuildLog.dll version 6.4.0.2
VisBuildMisc.dll version 6.4.0.3
VisBuildMS.dll version 6.4.0.2
VisBuildMS2.dll version 6.4.0.2
VisBuildNet.dll version 6.4.0.3
VisBuildSvr.dll version 6.4.0.2
VisBuildSvr.Interop.dll version 1.0.0.0
VisBuildVCS.dll version 6.4.0.4
Reply With Quote
  #4  
Old 06-26-2007, 10:12 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Apparently bds.exe is returning an exit code of 0 in your case. To reproduce the problem outside of VBP:
1) Check the 'Log command-line...' checkbox on the Options tab of the Make Delphi action
2) Rebuild the step
3) Using Notepad or a text editor, create a batch file with the bds.exe command-line from the build log on the first line, followed by

echo %errorlevel%

on the second line, and run the batch file at a Command Prompt. It should return a non-zero exit code (errorlevel) if errors occurred. If not, you can open a support incident w/ CodeGear regarding the problem.

You may also be able to work around the problem by parsing the output for error conditions in the step's vbld_StepDone script event:

Code:
Sub vbld_StepDone()
  If InStr(vbld_AllMacros()("LASTSTEP_OUTPUT"), "[C++ Error]") > 0 Then
    Step.BuildStatus = vbldStepStatFailed
  End If
End Sub
http://www.visualbuild.com/Manual/scriptevents.htm
Reply With Quote
  #5  
Old 06-27-2007, 05:57 AM
Steffen Nissen Steffen Nissen is online now
Registered User
 
Join Date: 06-25-2007
Location: Copenhagen
Posts: 3
Thanks a lot, the script works like a charm.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 09:23 AM.


Copyright © 1999-2023 Kinook Software, Inc.