make/common/shared/Sanity.gmk

Print this page


   1 #
   2 # Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


1014         fi
1015 endif
1016         @if [ ! -r $(HOTSPOT_SERVER_PATH)/$(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX) ]; then \
1017           $(ECHO) "ERROR: HOTSPOT_SERVER_PATH does not point to a valid HotSpot VM. \n" \
1018             "      Please check your access to \n" \
1019             "          $(HOTSPOT_SERVER_PATH)/$(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX) \n" \
1020             "      and/or check your value of ALT_HOTSPOT_SERVER_PATH. \n" \
1021             "" >> $(ERROR_FILE) ; \
1022         fi
1023         @#
1024         @# Check value of HOTSPOT_LIB_PATH
1025         @#
1026 ifeq ($(PLATFORM), windows)
1027         @if [ ! -r $(HOTSPOT_LIB_PATH)/jvm.lib ]; then \
1028           $(ECHO) "ERROR: HOTSPOT_LIB_PATH does not point to a valid HotSpot library. \n" \
1029             "      Please check your access to \n" \
1030             "          $(HOTSPOT_LIB_PATH)/jvm.lib \n" \
1031             "      and/or check your value of ALT_HOTSPOT_LIB_PATH. \n" \
1032             "" >> $(ERROR_FILE) ; \
1033         fi

1034         @#
1035         @# Check for the .map files - its OK if they are not there..
1036         @#
1037   ifeq ($(ARCH_DATA_MODEL), 32)
1038         @# There is no 64-bit HotSpot client VM










1039         @if [ ! -r $(HOTSPOT_CLIENT_PATH)/jvm.map ]; then \
1040           $(ECHO) "WARNING: HOTSPOT_CLIENT_PATH does not point to valid HotSpot .map files. \n" \
1041             "        These files are optional and aid in the debugging of the JVM. \n" \
1042             "        Please check your access to \n" \
1043             "          $(HOTSPOT_CLIENT_PATH)/jvm.map \n" \
1044             "        and/or check your value of ALT_HOTSPOT_CLIENT_PATH. \n" \
1045             "" >> $(WARNING_FILE) ; \
1046         fi
1047         @if [ ! -r $(HOTSPOT_CLIENT_PATH)/jvm.pdb ]; then \
1048           $(ECHO) "WARNING: HOTSPOT_CLIENT_PATH does not point to valid HotSpot .pdb files. \n" \
1049             "        These files are optional and aid in the debugging of the JVM. \n" \
1050             "        Please check your access to \n" \
1051             "          $(HOTSPOT_CLIENT_PATH)/jvm.pdb \n" \
1052             "        and/or check your value of ALT_HOTSPOT_CLIENT_PATH. \n" \
1053             "" >> $(WARNING_FILE) ; \
1054         fi
1055   endif











1056         @if [ ! -r $(HOTSPOT_SERVER_PATH)/jvm.map ]; then \
1057           $(ECHO) "WARNING: HOTSPOT_SERVER_PATH does not point to valid HotSpot .map files. \n" \
1058             "        These files are optional and aid in the debugging of the JVM. \n" \
1059             "        Please check your access to \n" \
1060             "          $(HOTSPOT_SERVER_PATH)/jvm.map \n" \
1061             "        and/or check your value of ALT_HOTSPOT_SERVER_PATH. \n" \
1062             "" >> $(WARNING_FILE) ; \
1063         fi
1064         @if [ ! -r $(HOTSPOT_SERVER_PATH)/jvm.pdb ]; then \
1065           $(ECHO) "WARNING: HOTSPOT_SERVER_PATH does not point to valid HotSpot .pdb files. \n" \
1066             "        These files are optional and aid in the debugging of the JVM. \n" \
1067             "        Please check your access to \n" \
1068             "          $(HOTSPOT_SERVER_PATH)/jvm.pdb \n" \
1069             "        and/or check your value of ALT_HOTSPOT_SERVER_PATH. \n" \
1070             "" >> $(WARNING_FILE) ; \
1071         fi


1072 endif   
1073 
1074 
1075 ######################################################
1076 # Check for existence of misc Hotspot imported files
1077 ######################################################
1078 HOTSPOT_INCLUDE_FILE_LIST  = jvmti.h
1079 HOTSPOT_INCLUDE_FILE_LIST  += jvmticmlr.h
1080 #HOTSPOT_INCLUDE_FILE_LIST += jni.h jni_md.h
1081 #HOTSPOT_INCLUDE_FILE_LIST += jvm.h jvm_md.h
1082 #HOTSPOT_INCLUDE_FILE_LIST += jmm.h
1083 TMP_SDK_INCLUDE_FILE_LIST=$(HOTSPOT_INCLUDE_FILE_LIST:%.h=$(TEMPDIR)/%.h)
1084 TMP_SDK_INCLUDE_FILE_DIFFS=$(HOTSPOT_INCLUDE_FILE_LIST:%.h=$(TEMPDIR)/%.hdiffs)
1085 
1086 # These include files must have a pattern: 'version: MAJOR.MINOR.MICRO'
1087 #    where MACRO, MINOR, and MICRO are numbers, e.g. 1.0.1, 0.2.90, etc.
1088 #    The critical version we are checking is MAJOR.MINOR, we print all three
1089 #    when we detect an error.
1090 
1091 TMP_SDK_INCLUDE_FIND_VERSION= $(EGREP) 'version:'


   1 #
   2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


1014         fi
1015 endif
1016         @if [ ! -r $(HOTSPOT_SERVER_PATH)/$(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX) ]; then \
1017           $(ECHO) "ERROR: HOTSPOT_SERVER_PATH does not point to a valid HotSpot VM. \n" \
1018             "      Please check your access to \n" \
1019             "          $(HOTSPOT_SERVER_PATH)/$(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX) \n" \
1020             "      and/or check your value of ALT_HOTSPOT_SERVER_PATH. \n" \
1021             "" >> $(ERROR_FILE) ; \
1022         fi
1023         @#
1024         @# Check value of HOTSPOT_LIB_PATH
1025         @#
1026 ifeq ($(PLATFORM), windows)
1027         @if [ ! -r $(HOTSPOT_LIB_PATH)/jvm.lib ]; then \
1028           $(ECHO) "ERROR: HOTSPOT_LIB_PATH does not point to a valid HotSpot library. \n" \
1029             "      Please check your access to \n" \
1030             "          $(HOTSPOT_LIB_PATH)/jvm.lib \n" \
1031             "      and/or check your value of ALT_HOTSPOT_LIB_PATH. \n" \
1032             "" >> $(ERROR_FILE) ; \
1033         fi
1034   ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
1035         @#
1036         @# Check for the .map files - its OK if they are not there..
1037         @#
1038     ifeq ($(ARCH_DATA_MODEL), 32)
1039         @# There is no 64-bit HotSpot client VM
1040       ifeq ($(ZIP_DEBUGINFO_FILES),1)
1041         @if [ ! -r $(HOTSPOT_CLIENT_PATH)/jvm.diz ]; then \
1042           $(ECHO) "WARNING: HOTSPOT_CLIENT_PATH does not point to valid HotSpot .diz files. \n" \
1043             "        These files are optional and aid in the debugging of the JVM. \n" \
1044             "        Please check your access to \n" \
1045             "          $(HOTSPOT_CLIENT_PATH)/jvm.diz \n" \
1046             "        and/or check your value of ALT_HOTSPOT_CLIENT_PATH. \n" \
1047             "" >> $(WARNING_FILE) ; \
1048         fi
1049       else
1050         @if [ ! -r $(HOTSPOT_CLIENT_PATH)/jvm.map ]; then \
1051           $(ECHO) "WARNING: HOTSPOT_CLIENT_PATH does not point to valid HotSpot .map files. \n" \
1052             "        These files are optional and aid in the debugging of the JVM. \n" \
1053             "        Please check your access to \n" \
1054             "          $(HOTSPOT_CLIENT_PATH)/jvm.map \n" \
1055             "        and/or check your value of ALT_HOTSPOT_CLIENT_PATH. \n" \
1056             "" >> $(WARNING_FILE) ; \
1057         fi
1058         @if [ ! -r $(HOTSPOT_CLIENT_PATH)/jvm.pdb ]; then \
1059           $(ECHO) "WARNING: HOTSPOT_CLIENT_PATH does not point to valid HotSpot .pdb files. \n" \
1060             "        These files are optional and aid in the debugging of the JVM. \n" \
1061             "        Please check your access to \n" \
1062             "          $(HOTSPOT_CLIENT_PATH)/jvm.pdb \n" \
1063             "        and/or check your value of ALT_HOTSPOT_CLIENT_PATH. \n" \
1064             "" >> $(WARNING_FILE) ; \
1065         fi
1066       endif
1067     endif
1068     ifeq ($(ZIP_DEBUGINFO_FILES),1)
1069         @if [ ! -r $(HOTSPOT_SERVER_PATH)/jvm.diz ]; then \
1070           $(ECHO) "WARNING: HOTSPOT_SERVER_PATH does not point to valid HotSpot .diz files. \n" \
1071             "        These files are optional and aid in the debugging of the JVM. \n" \
1072             "        Please check your access to \n" \
1073             "          $(HOTSPOT_SERVER_PATH)/jvm.diz \n" \
1074             "        and/or check your value of ALT_HOTSPOT_SERVER_PATH. \n" \
1075             "" >> $(WARNING_FILE) ; \
1076         fi
1077     else
1078         @if [ ! -r $(HOTSPOT_SERVER_PATH)/jvm.map ]; then \
1079           $(ECHO) "WARNING: HOTSPOT_SERVER_PATH does not point to valid HotSpot .map files. \n" \
1080             "        These files are optional and aid in the debugging of the JVM. \n" \
1081             "        Please check your access to \n" \
1082             "          $(HOTSPOT_SERVER_PATH)/jvm.map \n" \
1083             "        and/or check your value of ALT_HOTSPOT_SERVER_PATH. \n" \
1084             "" >> $(WARNING_FILE) ; \
1085         fi
1086         @if [ ! -r $(HOTSPOT_SERVER_PATH)/jvm.pdb ]; then \
1087           $(ECHO) "WARNING: HOTSPOT_SERVER_PATH does not point to valid HotSpot .pdb files. \n" \
1088             "        These files are optional and aid in the debugging of the JVM. \n" \
1089             "        Please check your access to \n" \
1090             "          $(HOTSPOT_SERVER_PATH)/jvm.pdb \n" \
1091             "        and/or check your value of ALT_HOTSPOT_SERVER_PATH. \n" \
1092             "" >> $(WARNING_FILE) ; \
1093         fi
1094     endif
1095   endif 
1096 endif   
1097 
1098 
1099 ######################################################
1100 # Check for existence of misc Hotspot imported files
1101 ######################################################
1102 HOTSPOT_INCLUDE_FILE_LIST  = jvmti.h
1103 HOTSPOT_INCLUDE_FILE_LIST  += jvmticmlr.h
1104 #HOTSPOT_INCLUDE_FILE_LIST += jni.h jni_md.h
1105 #HOTSPOT_INCLUDE_FILE_LIST += jvm.h jvm_md.h
1106 #HOTSPOT_INCLUDE_FILE_LIST += jmm.h
1107 TMP_SDK_INCLUDE_FILE_LIST=$(HOTSPOT_INCLUDE_FILE_LIST:%.h=$(TEMPDIR)/%.h)
1108 TMP_SDK_INCLUDE_FILE_DIFFS=$(HOTSPOT_INCLUDE_FILE_LIST:%.h=$(TEMPDIR)/%.hdiffs)
1109 
1110 # These include files must have a pattern: 'version: MAJOR.MINOR.MICRO'
1111 #    where MACRO, MINOR, and MICRO are numbers, e.g. 1.0.1, 0.2.90, etc.
1112 #    The critical version we are checking is MAJOR.MINOR, we print all three
1113 #    when we detect an error.
1114 
1115 TMP_SDK_INCLUDE_FIND_VERSION= $(EGREP) 'version:'