recent problems with JFX ant script

Kelly O'Hair kelly.ohair at oracle.com
Thu Feb 14 21:39:50 UTC 2013


There are known conflicts with TMP, TEMP, and TMPDIR with many Windows tools.
Having both upper and lowercase names is an additional complication.
Worse is that some tools want paths that are pure Windows, like C:\temp, some will accept
C:/temp, and some might expect their own path style, like /cygdrive/c/temp

In addition, some tools interpret this as a user specific path, and some consider it a global
area, like /tmp or /var/tmp.

It's also important that whatever path it is, that it exists and is writeable.

With VS2010, having TMP not acceptably set might break compilations, or worse
let compilations work but not let devenv.exe work, some kind of license issue.

So TMP/TEMP/TMPDIR is a mess.   

"And now you know the rest of the story" -Paul Harvey  http://en.wikipedia.org/wiki/The_Rest_of_the_Story  ;^)

-kto

On Feb 14, 2013, at 12:32 PM, Pete Brunet wrote:

> I ran into two new problems building JFX on Win 7 this week:
> 
> 1) I had to unset lowercase tmp and temp.  Apparently there is a new
> problem with having duplicates, TMP/tmp and TEMP/temp.  This may be
> related to http://www.cmake.org/Bug/print_bug_page.php?bug_id=13131
> 
> The failure appeared as:
> 
> launcher-win:
>     [echo] STARTING: C:\Program Files (x86)\Microsoft Visual Studio
> 10.0\Common7\IDE\devenv.com native/windows
>     [echo] C:\Program Files (x86)\Microsoft Visual Studio
> 10.0\Common7\IDE\devenv.com /build Release|Win32 IconSwap.vcxproj
>     [exec]
>     [exec] Microsoft (R) Visual Studio Version 10.0.30319.1.
>     [exec] Copyright (coffee) Microsoft Corp. All rights reserved.
>     [exec] 1>------ Build started: Project: IconSwap, Configuration:
> Release Win32 ------
>     [exec] 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5):
> error MSB6001: Invalid command line switch for "CL.exe". Item has
> already been added. Key in dictionary: 'tmp'  Key being added: 'TMP'
>     [exec] ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0
> skipped ===
> 
> 2) DEVENVDIR somehow gets unset.  I had to rerun vsvars.sh to fix it. 
> 
> This failure appeared as:
> 
> needs-devenv:
>     [echo] Using
> C:\Users\Pete\JavaFX\controls-RT-26343\jfx\rt-closed\glass\glass-mat-lib-windows\${windows.vs.DEVENVCMD}.
> 
> BUILD FAILED
> 
> Both of these showed up when building on Windows 7 which I haven't done
> in a while.  I was just rerunning the ant script over and over after
> source code changes.  I use ant -Dhudson.jfx.job.name=8.0-controls-scrum
> sdk-no-docs
> 
> Since the problem is intermittent I supposed these could be related to
> the combination of cygwin/Norton360.  I'll disable Norton auto-protect
> for a while to see if that helps, but wanted to let others know of this
> in case it's helpful.
> 
> Pete




More information about the build-dev mailing list