Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8004897

deploy repository building: ant fails during arm build

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P2
    • Resolution: Fixed
    • 8
    • 8
    • deploy
    • Not verified

    Description

      During a cross compile build (I believe that is the correct term for it) ant.gmk sets up the environment so as to attempt to execute the JRE just built for the other architecture. This will not work, so ant fails:

      /usr/bin/ant: line 326: /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/images/j2sdk-image/jre/bin/java: cannot execute binary file


      -------- Original Message --------
      Subject: Re: modified files between profiles and build-infra
      Date: Tue, 11 Dec 2012 15:17:55 -0800
      From: Gary Collins <gary.collins@oracle.com>
      To: Tim Bell <tim.bell@oracle.com>


      I believe below error is because cross-compile JDK is not used instead of one built ..i.e.arm

      ## Starting deploy
      Copying images for deploy
      INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
      INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
      INFO: STRIP_POLICY=min_strip
      INFO: ZIP_DEBUGINFO_FILES=1
      /bin/sh: line 0: [: /usr/bin/ant:: integer expression expected
      /bin/sh: line 0: [: /usr/bin/ant:: integer expression expected
      /bin/sh: line 0: [: line: integer expression expected
      /bin/sh: line 0: [: line: integer expression expected
      /bin/sh: line 0: [: 326:: integer expression expected
      /bin/sh: line 0: [: 326:: integer expression expected


      Bootstrap Settings:
        BOOTDIR = /java/re/jdk/8/promoted/latest/binaries/linux-i586
          ALT_BOOTDIR = /java/re/jdk/8/promoted/latest/binaries/linux-i586
        BOOT_VER = 1.8.0 [requires at least 1.7]
        OUTPUTDIR = /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/deploy
          ALT_OUTPUTDIR =
        ABS_OUTPUTDIR = /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/deploy
       
      Build Tool Settings:
        SLASH_JAVA = /java
          ALT_SLASH_JAVA =
        VARIANT = OPT
        JDK_DEVTOOLS_DIR = /java/devtools
          ALT_JDK_DEVTOOLS_DIR =
        ANT_HOME =
        UNIXCOMMAND_PATH = /bin/
          ALT_UNIXCOMMAND_PATH =
        COMPILER_PATH =
          ALT_COMPILER_PATH =
        DEVTOOLS_PATH =
          ALT_DEVTOOLS_PATH =
        UNIXCCS_PATH = /usr/ccs/bin/
          ALT_UNIXCCS_PATH =
        USRBIN_PATH = /usr/bin/
          ALT_USRBIN_PATH =
        GCC29_COMPILER_PATH = /java/devtools/linux/gcc29/usr/
          ALT_GCC29_COMPILER_PATH =
        COMPILER_NAME = GCC4
        COMPILER_VERSION = GCC4
        CC_VER = 4.7.2 [requires at least 4.3.0]
        ZIP_VER = 3.0 [requires at least 2.2]
        UNZIP_VER = 6.00 [requires at least 5.12]
        ANT_VER = /usr/bin/ant: line 326: /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/images/j2sdk-image/jre/bin/java: cannot execute binary file /usr/bin/ant: line 326: /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/images/j2sdk-image/jre/bin/java: Success [requires at least 1.7.1]
        TEMPDIR = /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/deploy/tmp
       
      Build Directives:
        OPENJDK =
        USE_HOTSPOT_INTERPRETER_MODE =
        PEDANTIC =
        DEV_ONLY =
        NO_DOCS =
        NO_DEMOS =
        NO_SAMPLES =
        NO_IMAGES =
        TOOLS_ONLY =
        INSANE =
        COMPILE_APPROACH = parallel
        PARALLEL_COMPILE_JOBS = 2
          ALT_PARALLEL_COMPILE_JOBS =
        FASTDEBUG =
        COMPILER_WARNINGS_FATAL = false
        COMPILER_WARNING_LEVEL =
        SHOW_ALL_WARNINGS =
        INCREMENTAL_BUILD = false
        CC_HIGHEST_OPT =
        CC_HIGHER_OPT =
        CC_LOWER_OPT =
        CXXFLAGS = -O2 -fPIC -DCC_NOEX -W -Wall -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN
        CFLAGS = -O2 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -pipe -fno-omit-frame-pointer -D_LITTLE_ENDIAN
        BOOT_JAVA_CMD = /java/re/jdk/8/promoted/latest/binaries/linux-i586/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx512m -Xms512m -XX:PermSize=32m -XX:MaxPermSize=160m
        BOOT_JAVAC_CMD = /java/re/jdk/8/promoted/latest/binaries/linux-i586/bin/javac -J-XX:ThreadStackSize=768 -J-XX:-PrintVMOptions -J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-client -J-Xmx512m -J-Xms512m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -Xlint:-path -encoding ascii -XDignore.symbol.file=true
        BOOT_JAR_CMD = /java/re/jdk/8/promoted/latest/binaries/linux-i586/bin/jar
        BOOT_JARSIGNER_CMD = /java/re/jdk/8/promoted/latest/binaries/linux-i586/bin/jarsigner
        JAVAC_CMD = /java/re/jdk/8/promoted/latest/binaries/linux-i586/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx512m -Xms512m -XX:PermSize=32m -XX:MaxPermSize=160m -Xbootclasspath/p:/export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/langtools/dist/bootstrap/lib/javac.jar -jar /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/langtools/dist/bootstrap/lib/javac.jar -Xlint:-path -source 8 -target 8 -encoding ascii -Xbootclasspath:/export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/deploy/classes
        JAVAH_CMD = /java/re/jdk/8/promoted/latest/binaries/linux-i586/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx512m -Xms512m -XX:PermSize=32m -XX:MaxPermSize=160m -Xbootclasspath/p:/export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/langtools/dist/bootstrap/lib/javah.jar:/export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/langtools/dist/bootstrap/lib/javac.jar -jar /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/langtools/dist/bootstrap/lib/javah.jar -bootclasspath /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/deploy/classes
        JAVADOC_CMD = /java/re/jdk/8/promoted/latest/binaries/linux-i586/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx512m -Xms512m -XX:PermSize=32m -XX:MaxPermSize=160m -Xbootclasspath/p:/export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/langtools/dist/bootstrap/lib/javadoc.jar:/export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/langtools/dist/bootstrap/lib/javac.jar:/export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/langtools/dist/bootstrap/lib/doclets.jar -jar /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/langtools/dist/bootstrap/lib/javadoc.jar -bootclasspath /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/deploy/classes
       
      Build Platform Settings:
        USER = gmcollin
        PLATFORM = linux
        ARCH = amd64
        LIBARCH = amd64
        ARCH_FAMILY = amd64
        ARCH_DATA_MODEL = 32
        ARCHPROP = amd64
        ALSA_VERSION = 1.0.25
        OS_VERSION = 3.2.0-23-generic [requires at least 2.6]
        OS_VARIANT_NAME = Ubuntu
        OS_VARIANT_VERSION = 12.04
        MB_OF_MEMORY = 145063
       
      GNU Make Settings:
        MAKE = /usr/bin/make
        MAKE_VER = 3.81 [requires at least 3.81]
        MAKECMDGOALS = sanity deploy images
        MAKEFLAGS = s
        SHELL = /bin/sh
       
      Target Build Versions:
        JDK_VERSION = 1.8.0
        MILESTONE = ea
        RELEASE = 1.8.0-ea
        FULL_VERSION = 1.8.0-ea-b00
        BUILD_NUMBER = b00
       
      External File/Binary Locations:
        USRJDKINSTANCES_PATH = /opt/java
        BUILD_JDK_IMPORT_PATH = /java/re/jdk/1.8.0/promoted/latest/binaries
          ALT_BUILD_JDK_IMPORT_PATH =
        JDK_IMPORT_PATH = /java/re/jdk/1.8.0/promoted/latest/binaries/linux-amd64
          ALT_JDK_IMPORT_PATH =
        LANGTOOLS_DIST = /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/langtools/dist
          ALT_LANGTOOLS_DIST = /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/langtools/dist
        CORBA_DIST =
          ALT_CORBA_DIST =
        JAXP_DIST =
          ALT_JAXP_DIST =
        JAXWS_DIST =
          ALT_JAXWS_DIST =
        HOTSPOT_DOCS_IMPORT_PATH = /java/re/jdk/1.8.0/promoted/latest/docs
          ALT_HOTSPOT_DOCS_IMPORT_PATH =
        HOTSPOT_IMPORT_PATH = /java/re/jdk/1.8.0/promoted/latest/binaries/linux-amd64
          ALT_HOTSPOT_IMPORT_PATH =
        HOTSPOT_CLIENT_PATH = /java/re/jdk/1.8.0/promoted/latest/binaries/linux-amd64/jre/lib/amd64/client
          ALT_HOTSPOT_CLIENT_PATH =
        HOTSPOT_SERVER_PATH = /java/re/jdk/1.8.0/promoted/latest/binaries/linux-amd64/jre/lib/amd64/server
          ALT_HOTSPOT_SERVER_PATH =
        CACERTS_FILE = ../../jdk/make/../src/closed/share/lib/security/cacerts.internal
          ALT_CACERTS_FILE =
        MOZILLA_HEADERS_PATH = /java/devtools/share/plugin
          ALT_MOZILLA_HEADERS_PATH =
        CUPS_HEADERS_PATH = /java/devtools/share/cups/include
          ALT_CUPS_HEADERS_PATH =


      WARNING: The official builds on linux use OS version 2.6. You appear to be using OS version 3.2.0-23-generic.

      WARNING: The official builds on linux use OS variant Fedora. You appear to be using OS variant Ubuntu.

      WARNING: The linux compiler is not version GCC4 4.3.0
             Specifically the GCC4 compiler.
              You appear to be using GCC4: 4.7.2
             The compiler was obtained from the following location:
                  
       
      Sanity check passed.
      Removing ant config file ../make/ant/workspace-generated.properties
      INFO: ENABLE_FULL_DEBUG_SYMBOLS=1
      INFO: /usr/bin/objcopy cmd found so will create .debuginfo files.
      INFO: STRIP_POLICY=min_strip
      INFO: ZIP_DEBUGINFO_FILES=1
      Generating ant environment to ../../make/ant/workspace-generated.properties
      /usr/bin/ant: line 326: /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/images/j2sdk-image/jre/bin/java: cannot execute binary file
      /usr/bin/ant: line 326: /export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/images/j2sdk-image/jre/bin/java: Success
      make[3]: *** [jars] Error 126
      make[2]: *** [javaws-all] Error 2
      make[1]: *** [/export/users/gmcollin/ws/8-profiles-build-infra/builds/b00/linux-arm-hflt-ea/deploy/_deploy.timestamp] Error 2
      make: *** [deploy-only] Error 2

      Attachments

        Issue Links

          Activity

            People

              nam Nam Nguyen (Inactive)
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: