# Delphi Win32 build fails strangely

**URL:** https://www.finalbuilder.com/forums/t/delphi-win32-build-fails-strangely/1678
**Category:** Discussion
**Created:** [December 30, 2010, 11:07am UTC](https://www.finalbuilder.com/forums/t/delphi-win32-build-fails-strangely/1678 "2010-12-30T11:07:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [December 30, 2010, 11:07am UTC](https://www.finalbuilder.com/forums/t/delphi-win32-build-fails-strangely/1678/1 "2010-12-30T11:07:37Z")

</div>

Run in DOS&nbsp;box, Win 2003, works fine.

S:\Somedir\>"C:\Program Files\Borland\Delphi7\Bin\DCC32.EXE" /B "S:\PV\_9.8.0\PV\source\PV.DPR" /Q  
Borland Delphi Version 15.0  
Copyright (c) 1983,2002 Borland Software Corporation  
221562 lines, 1.34 seconds, 5004120 bytes code, 47521 bytes data.

Works fine. No special variable setup was run to do this. I booted the machine, started a CMD prompt, changed to the directory and ran this command line.

FinalBuilder 7&nbsp;(build 934), on the other hand, does this:

Running Delphi compiler....  
Using Command Line :&nbsp; /B "S:\PV\_9.8.0\PV\source\PV.DPR" /Q  
Borland Delphi Version 15.0  
Copyright (c) 1983,2002 Borland Software Corporation  
**Fatal: Could not create output file '$(BUILD\_SANDBOX)\Runtime Files\Program Files\PV\Bin\PV.exe'**

BUILD\_SANDBOX is a global environment variable on the build machine, set to "S:\PV\_9.8.0". It is used in the Delphi action definition to describe the location of the .DPR file and the directory to start in. Furthermore, I don't understand why it's not being expanded in this context - it doesn't appear anywhere in any Delphi file, meaning that FinalBuilder is passing it in, unexpanded.

I've been trying all kinds of things to get this to work, and I'm totally baffled. There is no other information provided.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 30, 2010, 11:56am UTC](https://www.finalbuilder.com/forums/t/delphi-win32-build-fails-strangely/1678/2 "2010-12-30T11:56:41Z")

</div>

Hi   
  
 I just tried to reproduce this here and it worked fine. Can you send you FinalBuilder Project to support at [finalbuilder.com](http://finalbuilder.com) so we can take a look and see if we are doing things the same.
