United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8003819 build-infra: backslashes at end of LIB and INCLUDE in spec.gmk
JDK-8003819 : build-infra: backslashes at end of LIB and INCLUDE in spec.gmk

Details
Type:
Bug
Submit Date:
2012-11-21
Status:
Closed
Updated Date:
2013-11-28
Project Name:
JDK
Resolved Date:
2012-12-03
Component:
infrastructure
OS:
windows
Sub-Component:
build
CPU:
Priority:
P2
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports

Sub Tasks

Description
Sometimes vcvars*.bat seems to generate LIB and INCLUDE variables with a backslash at the end. This breaks make in the generated spec.gmk since the backslash cancels out the next line. We either need to filter away any trailing backslash or add newlines between these export lines in spec.gmk.in.

Reported by Phil Race on the build-infra-dev.
                                    

Comments
While working on JDK-8003414 on Kumar's system, I hit this problem too. With a repro case, fixing it was easy.

The cause in this case was LIB and INCLUDE already being set in the environment and SetEnv.cmd from the sdk just adding to it.
                                     
2012-11-30
URL:   http://hg.openjdk.java.net/jdk8/build/rev/98a7af257bee
User:  erikj
Date:  2012-12-03 09:29:03 +0000

                                     
2012-12-03
URL:   http://hg.openjdk.java.net/jdk8/jdk8/rev/98a7af257bee
User:  katleman
Date:  2012-12-05 21:45:09 +0000

                                     
2012-12-05
Transitioned from Resolved to Closed / Not Verified on behalf of mikhail.kondratyev@oracle.com.
                                     
2013-11-28



Hardware and Software, Engineered to Work Together