United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6511994 Hotspot build fails if the workspace path contains certain strings such as win32, solaris and linux.
JDK-6511994 : Hotspot build fails if the workspace path contains certain strings such as win32, solaris and linux.

Details
Type:
Bug
Submit Date:
2007-01-11
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2007-01-31
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs10 (b07)

Related Reports
Backport:
Backport:

Sub Tasks

Description
The way current hotspot build works is to call a Java program called Makedeps to figure out what files need to be built and what the dependencies are. The way Makedeps figuring out the set of files to be built is to match the file absolute path with a pre-defined set of strings depending on the platform. For example, on Windows 32 bit platform, it tries to match the file path name to see if it contains "win32" or "i586" etc. 

There is a file called dump_md.cpp in each of the src\cpu\<cpu>\vm directory which is supposed to be named as dump_<cpu>.cpp. But for some historical reasons, it is renamed as so and this will cause problem if the directory name of the workspace contains win32, Makedeps will match the first found dump_md.cpp which is located at <ws>/src/cpu/amd64/vm directory based on the alphabetical order. So it will use that instead of using the one in i486 directory. And this will definitely cause the build fail.

                                    

Comments
EVALUATION

The way to fix this is to check the found path name match starts with character after the end of the source base.
                                     
2007-01-11



Hardware and Software, Engineered to Work Together