-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Msvc init #174
Msvc init #174
Conversation
AbstractNarMojo. This is required when the Linker.getVersion() is used with a dummy NarCompileMojo.
NarVcprojMojo. This should allow the tests to find the compiler using the path and complete.
NAR plugin for Maven » nar-maven-plugin #335 SUCCESS |
Rock on, we'll see how the Windows build gets on. |
Is it possible to re-configure the jenkins windows build so that it has the invoker.debug=true set. That way we can verify which version of the compiler is being picked up and what the PATH settings look like? If you try a build of a different branch does it work? Is there anyone who can verify if the temp directory is out of space? |
@pauldaustin Thanks for the reminder about the temp folder. I changed the build configuration, adding a call to delete all
I also added http://jenkins.imagej.net/job/NAR-Maven-Plugin-windows/68/console I cannot remote to the Windows VM right now because I'm currently traveling. But can dig further next week when I am back, if you are stuck. |
The extra debug information gets put in the build.log for the test script. For example. http://jenkins.imagej.net/job/NAR-Maven-Plugin-windows/ws/target/it/it0003-jni/build.log From there I was able to get the following PATH and the command run to compile. Is it possible to try that on the command line? Maybe try it with and without the PATH to see if there is a different between the default environment and the one constructed in the plugin
|
@pauldaustin Sorry for the long delay in reply. It's been a busy summer. Looking at the most recent build log, the failure seems very likely related to this part:
In other words: the double quotes are being stripped from the command being passed to @pauldaustin Ideas on how to fix? I thought I'd ask you first, in case you know where/how this might be happening. Otherwise we can dig into the code. But I didn't immediately find it after 10 minutes of grepping. |
Also @GregDomjan, as another Windows guy—any chance the fix here is obvious to you? |
Curtis, Which branch is this on? I’m going off the grid for a few days but might be able to look next week. I’ll run it through a debugger to see where the quotes get stripped off. Hopefully not in the ant code. Paul
|
@pauldaustin It's the master branch. And thanks for looking into it! No rush—just wanted to follow up since we do eventually need to fix it... |
Thanks, will look at this next week
|
@pauldaustin Any word? There has been a burst of activity lately regarding MSVC, and NAR on Windows in general—so it would be really helpful to have a working Windows-based CI system for NAR. Unfortunately, I am woefully unequipped to discuss or troubleshoot Windows-centric issues with NAR. But the good news is that @GregDomjan and @markjohndoyle are much more knowledgeable, and are paying attention (at least for the moment 😉). |
Chris, I’m going away for the next 3 weeks. Also the code to launch the command has changed since what I had working due to some security issues with what I’d done. As such I have no idea now what the correct way to call the commands such that the environment gets passed through correctly. It also gets confusing as the code delegates off to an ant task to launch the executable so trying to figure out what it’s doing was a little tricky and not something we could modify easily. I’m also not a windows developer so don’t know all the ins and outs of calling command line tools. Paul
|
I think when I first used the nar-plugin, I had a similar problem on my first build. Can't remember if I had to change something. But when I build now, it seems to be working on my machine... Could you maybe rebuild again?
|
@kristofmoens wrote:
It could be helpful to know what changed on your system that allowed it to succeed. I ran the build again on our Windows Jenkins node and it still fails. |
Hey all, I'm actually one of those weird people that develop non-specific code on Windows. My target is normally linux so it also helps keeping things portablel. I use gcc and clang not msvc, in fact I don't have much experience using MSVC at all. I'm a bit overloaded at the minute but I can probably test whether the nar plugin doesn't break when using other compilers on Windows. |
Added the Msvc CCTask configuration to the NarTestCompileMojo and NarVcprojMojo. This should allow the tests to find the compiler using the path and complete.