FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Small issue with the Build utility

 
Post new topic   Reply to topic     Forum Index -> DSP
View previous topic :: View next topic  
Author Message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Wed May 04, 2005 2:29 pm    Post subject: Small issue with the Build utility Reply with quote

pragma wrote:
I've had some small issues using 'build' to compile servlets. Were this to work properly, I could forego .lib files altoegher and just rely on discrete .obj files for smaller libs. Then again, that would really bog down any given development cycle (longer compile times), so perhaps fat binaries are the best compromise for now.

Is there anything I can look into to help?
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
pragma



Joined: 28 May 2004
Posts: 607
Location: Washington, DC

PostPosted: Thu May 05, 2005 8:34 am    Post subject: Reply with quote

Derek, thank you for replying. I'll get some info to you tonight (EST), after I grab the latest version of build and test things out again. Then I"ll have the fine-grained details for you. Smile

What I recall, is that there was an issue with the -od (ouput directory) option, possibly due to how Build was concatenating paths. It had a hard time placing object files in a deep tree below a the provided temp folder (it choked on mango I think). The error message also seemed to have an embedded double-quote (") between the provided output path and the target object file path:

Code:
c:\dev\dsp\trunk\dspconf\_temp\"mango\io\FileConduit.obj


It generated an error... something about it not being able to write to the file location. Again, my memory is bit hazy, as i've typed hundreds of lines since I put this on the back-burner.

If we can get this licked, it would do wonders for reducing the compile sizes of the servlet libs. It would also simplify deployment, since one could just drop sourcecode wherever, configure the DSP server and off you go. Smile
_________________
-- !Eric.t.Anderton at gmail
Back to top
View user's profile Send private message Yahoo Messenger
pragma



Joined: 28 May 2004
Posts: 607
Location: Washington, DC

PostPosted: Thu May 05, 2005 10:24 pm    Post subject: Reply with quote

Derek, it turns out that I was pretty close.

Code:
Error: Error writing file 'c:\dev\dsp\trunk\dspconf"\mango\http\server\HttpCookies.obj'


... there's our friend, the errant double-quote.

What's odd about this is that even without that mistake, it's still the wrong directory. I would expect it to put temporaries in the directory specified by '-od', so we would get the following:

Code:
c:\dev\dsp\trunk\dspconf\_temp\mango\http\server\HttpCookies.obj


If it helps, the bit to the left of the double-quote is the current location of the source file (in this case, dsp01.def).

Here's the .rsp file (Note: the .def file went to the right place, as shown below):
Code:
"-op"
"-odC:\dev\dsp\trunk\dspconf\_temp\"
"-version=dsp"
"-op"
"-c"
"mango\http\server\HttpCookies.d"
"mango\io\Writer.d"
"mango\http\HttpReader.d"
"mango\io\model\IBuffer.d"
"mango\utils\HeapSlice.d"
"mango\http\utils\Dictionary.d"
"dsp\servlet\IDSPResponse.d"
"mango\io\FileProxy.d"
"mango\format\Int.d"
"mango\log\Logger.d"
"mango\io\FileConst.d"
"mango\io\Buffer.d"
"mango\utils\Text.d"
"mango\utils\model\IServer.d"
"mango\log\Hierarchy.d"
"mango\io\Reader.d"
"mango\io\FileConduit.d"
"dsp\servlet\IDSPRequest.d"
"mango\servlet\ServletContext.d"
"mango\log\Layout.d"
"mango\http\server\model\IProviderBridge.d"
"mango\io\Tokenizer.d"
"mango\io\Socket.d"
"mango\http\server\model\IProvider.d"
"mango\io\FilePath.d"
"mango\format\Double.d"
"mango\http\server\HttpParams.d"
"mango\io\model\IWriter.d"
"mango\format\Number.d"
"mango\http\utils\TokenStack.d"
"mango\io\FileStyle.d"
"mango\servlet\model\IServletResponse.d"
"dsp\servlet\ServletRegistry.d"
"mango\io\DisplayWriter.d"
"mango\http\server\HttpResponse.d"
"mango\log\Event.d"
"mango\format\Formatter.d"
"mango\log\Manager.d"
"mango\io\Conduit.d"
"mango\io\model\IResource.d"
"mango\io\Token.d"
"mango\io\model\IConduit.d"
"mango\io\Utf8.d"
"mango\io\ArrayAllocator.d"
"mango\http\server\HttpHeaders.d"
"mango\io\Uri.d"
"mango\servlet\model\IServletRequest.d"
"mango\io\model\IReader.d"
"dspconf\_temp\dsp01.d"
"mango\servlet\Servlet.d"
"mango\io\AbstractWriter.d"
"mango\io\ConduitStyle.d"
"mango\io\Exception.d"
"mango\http\server\HttpMessage.d"
"mango\format\DateTime.d"
"mango\log\model\ILevel.d"
"mango\log\model\ILogger.d"
"mango\log\Appender.d"
"mango\http\HttpWriter.d"
"mango\http\server\HttpRequest.d"
"mango\format\Long.d"
"mango\base\System.d"
"mango\io\Resource.d"
"mango\io\AbstractReader.d"
"mango\servlet\ServletConfig.d"
"mango\http\server\HttpTokens.d"
"C:\dev\dsp\trunk\dspconf\_temp\dsp01.def"

_________________
-- !Eric.t.Anderton at gmail
Back to top
View user's profile Send private message Yahoo Messenger
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Fri May 06, 2005 1:01 am    Post subject: Reply with quote

I see you are not using the latest version of Build Wink

I fixed the errant quote character in v2.06. That should get you out of trouble, however you should also know that temporary files that Build itself creates are always placed in the directory of the target file. I don't use the -od switch. I could, its just that I never thought of doing it. Embarassed

I'll change that for the next release.
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
pragma



Joined: 28 May 2004
Posts: 607
Location: Washington, DC

PostPosted: Fri May 06, 2005 12:01 pm    Post subject: Reply with quote

Derek Parnell wrote:
I see you are not using the latest version of Build Wink


Guilty as charged. Smile

Derek Parnell wrote:
I fixed the errant quote character in v2.06. That should get you out of trouble, however you should also know that temporary files that Build itself creates are always placed in the directory of the target file. I don't use the -od switch. I could, its just that I never thought of doing it. Embarassed

I'll change that for the next release.


How kind of you. Thanks. This will greatly help DSP out.
_________________
-- !Eric.t.Anderton at gmail
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DSP All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group