United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7006659 temporary adlc files are added to the build variables
JDK-7006659 : temporary adlc files are added to the build variables

Details
Type:
Bug
Submit Date:
2010-12-14
Status:
Closed
Updated Date:
2011-04-23
Project Name:
JDK
Resolved Date:
2011-04-23
Component:
hotspot
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs20
Fixed Versions:
hs20 (b04)

Related Reports
Backport:
Backport:

Sub Tasks

Description
The adlc makefiles create temporary source files, which might not get cleaned away. If they are not deleted the build system will find them and try to included them in the build. The build will then fail at the linking stage.

                                    

Comments
WORK AROUND

Delete the temporary directories in build/.../generated/adfiles/
                                     
2010-12-14
SUGGESTED FIX

diff -r 06ba96862949 make/linux/makefiles/vm.make
--- a/make/linux/makefiles/vm.make	Mon Dec 13 14:46:51 2010 -0800
+++ b/make/linux/makefiles/vm.make	Tue Dec 14 14:39:29 2010 +0100
@@ -168,7 +168,9 @@
 
 # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
 define findsrc
-	$(notdir $(shell find $(1) \( -name \*.c -o -name \*.cpp -o -name \*.s \) -a \! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \) ))
+	$(notdir $(shell find $(1)/. ! -name . -prune \
+		-a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
+		-a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \)))
 endef
 
 Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e)))
diff -r 06ba96862949 make/solaris/makefiles/vm.make
--- a/make/solaris/makefiles/vm.make	Mon Dec 13 14:46:51 2010 -0800
+++ b/make/solaris/makefiles/vm.make	Tue Dec 14 14:39:29 2010 +0100
@@ -184,7 +184,9 @@
 
 # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
 define findsrc
-	$(notdir $(shell find $(1) \( -name \*.c -o -name \*.cpp -o -name \*.s \) -a \! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \) ))
+	$(notdir $(shell find $(1)/. ! -name . -prune \
+		-a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
+		-a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \)))
 endef
 
 Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e)))
diff -r 06ba96862949 make/windows/create_obj_files.sh
--- a/make/windows/create_obj_files.sh	Mon Dec 13 14:46:51 2010 -0800
+++ b/make/windows/create_obj_files.sh	Tue Dec 14 14:39:29 2010 +0100
@@ -107,8 +107,12 @@
 	"x86_64") Src_Files_EXCLUDE="${Src_Files_EXCLUDE} *x86_32*" ;;
 esac
 
+# Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
 function findsrc {
-    $FIND ${1} \( -name \*.c -o -name \*.cpp -o -name \*.s \) -a \! \( -name ${Src_Files_EXCLUDE// / -o -name } \) | sed 's/.*\/\(.*\)/\1/';
+    $FIND ${1}/. ! -name . -prune \
+		-a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
+		-a \! \( -name ${Src_Files_EXCLUDE// / -o -name } \) \
+		| sed 's/.*\/\(.*\)/\1/';
 }
 
 Src_Files=
                                     
2010-12-14
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/e7ad5f6f4d29
                                     
2010-12-15
EVALUATION

http://hg.openjdk.java.net/jdk7/build/hotspot/rev/e7ad5f6f4d29
                                     
2010-12-25



Hardware and Software, Engineered to Work Together