Bugs item #3416986, was opened at 2011-10-01 13:58
Message generated for change (Comment added) made by rmboggs
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3416986&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: cvs
Status: Open
Resolution: None
Priority: 8
Private: No
Submitted By: Tyler (tylerk1993)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot Compile NAnt CVS Head on Win XP

Initial Comment:
Whenever I try to build NAnt (the CVS head revision) on Windows XP, VS 2010 
Ultimate, .NET Framework 4.0, I get an error when the bootstrapped NAnt is 
trying to build the documentation:

[exec]             BUILD FAILED
[exec]
[exec]             C:\NAnt\NAnt.build(361,14):
[exec]             Error building documentation.
[exec]                 This method implicitly uses CAS policy, which has been 
obsoleted by the .NET Framework. In order to enable CAS policy for 
compatibility reasons, please use the NetFx40_LegacySecurityPolicy 
configuration switch. Please see http://go.microsoft.com/fwlink/?LinkID=155570 
for more information.
[exec]
[exec]             Total time: 1.2 seconds.
[exec]
BUILD FAILED
C:\NAnt\NAnt.build(335,10):
External Program Failed: C:\NAnt/build/nant-0.91-dev/bin/NAnt.exe (return code 
was 1)
Total time: 10.9 seconds.
NMAKE : fatal error U1077: 'bootstrap\NAnt.exe' : return code '0x1'
Stop.
C:\NAnt> 

----------------------------------------------------------------------

Comment By: Ryan Boggs (rmboggs)
Date: 2011-10-01 17:24

Message:
Understandable, there are quite a few files in there.

It sounds like the cause of this bug has been identified.  However I would
like to keep this open until a better solution can be committed.

----------------------------------------------------------------------

Comment By: Tyler (tylerk1993)
Date: 2011-10-01 17:21

Message:
Correction: NAnt.exe was there after all.

----------------------------------------------------------------------

Comment By: Tyler (tylerk1993)
Date: 2011-10-01 16:51

Message:
OK, so I was able to make the "install" target work, but when it installed
into the %programfiles%\NAnt folder, there was no way to launch NAnt (e.g.,
no NAnt.exe file under the bin subdirectory). Does this have to do with the
normal build.type set in the NAnt.build file or something?

----------------------------------------------------------------------

Comment By: Ryan Boggs (rmboggs)
Date: 2011-10-01 16:28

Message:
If you have issues with the diff, I posted the entire modified NAnt.build
file here:
http://pastebin.com/L0mJYQPX

----------------------------------------------------------------------

Comment By: Ryan Boggs (rmboggs)
Date: 2011-10-01 15:55

Message:
I think I am right.  NAnt isn't triggering the exception, NDoc is.  This is
only failing in the doc generation of the build.  That error regarding the
"NetFx40_LegacySecurityPolicy" switch in the config file was the indicator
because I spent a good amount of time weeding out these issues with NAnt
specifically.  The doc generation only occurs for me during nightlys and
release and since we are still building with net-1.0 target for these
releases, I don't see this error.

I was able to get around this issue with the patch to the NAnt.build file
in the link below.  This is a temporary measure until we can find a more
suitable patch to commit.
http://pastebin.com/gC9UcYay

Thanks,
Ryan

----------------------------------------------------------------------

Comment By: Tyler (tylerk1993)
Date: 2011-10-01 15:40

Message:
And the strange thing is that one can build *without* the install target
and it builds successfully (but might not be the complete NAnt distro
needed to build other apps).

----------------------------------------------------------------------

Comment By: Ryan Boggs (rmboggs)
Date: 2011-10-01 15:27

Message:
Ah, I was able to replicate.  I believe that the issue may be with the NDoc
libs that are used to generate NAnt's docs.  I am working on this now.

----------------------------------------------------------------------

Comment By: Tyler (tylerk1993)
Date: 2011-10-01 14:57

Message:
The file I just posted is a log file I generated with the output from the
nmake command.

----------------------------------------------------------------------

Comment By: Ryan Boggs (rmboggs)
Date: 2011-10-01 14:25

Message:
Ok try this then,
nmake -f Makefile.nmake TARGET=net-4.0 prefix="c:\program files"

----------------------------------------------------------------------

Comment By: Tyler (tylerk1993)
Date: 2011-10-01 14:19

Message:
I am using Microsoft NMake. I first ran vsvars32.bat (from
%VS100COMNTOOLS%).

----------------------------------------------------------------------

Comment By: Ryan Boggs (rmboggs)
Date: 2011-10-01 14:13

Message:
If you are using make to build, try using the TARGET=net-4.0 argument.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3416986&group_id=31650

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to