2008/9/11 Attila Szegedi <szegedia@gmail.com>:
Hi folks, I'm trying to build the bsd-port of OpenJDK on Mac OS X 10.5.4 (32-bit Intel CPU), and failing. I'm following Landon Fuller's instructions at <http://landonf.bikemonkey.org/code/java/SoyLatte_Meets_OpenJDK.20080819.html>. First off (I assume Landon is reading this), the command line for build needs an additional item, namely: FINDBUGS_HOME=/usr/local/findbugs-1.3.5-rc3 \ or whereever you care to put FindBugs. It seems mandatory to have FindBugs installed.
I've never installed FindBugs, so you certainly don't need it to build. I believe a patch was recently committed to remove some of this too.
The build also issued few warnings and errors first: ERROR: Your JAVA_HOME environment variable is set. This will most likely cause the build to fail. Please unset it and start your build again. WARNING: LANG has been set to en_US.UTF-8, this can cause build failures. Try setting LANG to "C". I eliminated these with export JAVA_HOME= export LANG=C
yeah, everyone sees this, it's the fun of Sun's crazy build system ;)
After all these, still no joy. I'm unable to debug the make process. I don't want to drop the full build output here, but here are few suspicious things from both the end and the start of the output: 1. it ends with: mkdir -p ./build/bsd-i586 mkdir -p ./build/bsd-i586/j2sdk-image mkdir -p /Users/aszegedi/Documents/projects/openjdk/bsd-port/build/bsd-i586/langtools (cd ./langtools/make && \ make JDK_TOPDIR=/Users/aszegedi/Documents/projects/openjdk/bsd-port/jdk JDK_MAKE_SHARED_DIR=/Users/aszegedi/Documents/projects/openjdk/bsd-port/jdk/make/common/shared EXTERNALSANITYCONTROL=true TARGET_CLASS_VERSION=5 MILESTONE=internal BUILD_NUMBER=b00 JDK_BUILD_NUMBER=b00 FULL_VERSION=1.7.0-internal-aszegedi_2008_09_11_18_25-b00 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0 JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0 PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0 ARCH_DATA_MODEL=32 COOKED_BUILD_NUMBER=0 ANT_HOME="/usr/share/ant" FINDBUGS_HOME="/usr/local/findbugs-1.3.5-rc3" ALT_OUTPUTDIR=/Users/aszegedi/Documents/projects/openjdk/bsd-port/build/bsd-i586/langtools ALT_BOOTDIR=/usr/local/soylatte-i386-1.0.3 all) JAVA_HOME=/usr/local/soylatte-i386-1.0.3 ANT_OPTS=-Djava.io.tmpdir='/Users/aszegedi/Documents/projects/openjdk/bsd-port/build/bsd-i586/langtools/build/ant-tmp' /usr/share/ant/bin/ant -diagnostics > /Users/aszegedi/Documents/projects/openjdk/bsd-port/build/bsd-i586/langtools/build/ant-diagnostics.log make[2]: *** [build] Error 1 make[1]: *** [langtools-build] Error 2 make: *** [build_product_image] Error 2 2. It starts with: MacBook-Ati:bsd-port aszegedi$ make ALT_BOOTDIR=/usr/local/soylatte-i386-1.0.3 ALT_BINARY_PLUGS_PATH=~/Downloads/jdk-7-icedtea-plugs ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib ALT_CUPS_HEADERS_PATH=/usr/include ANT_HOME=/usr/share/ant FINDBUGS_HOME=/usr/local/findbugs-1.3.5-rc3 NO_DOCS=true HOTSPOT_BUILD_JOBS=1 Control bsd i586 1.7.0-internal all build started: /bin/sh: line 0: [: /bin/sh:: integer expression expected /bin/sh: line 0: [: /bin/sh:: integer expression expected /bin/sh: line 0: [: Error:: integer expression expected /bin/sh: line 0: [: Error:: integer expression expected Build Machine Information: build machine = MacBook-Ati.local I have the iced tea binaries, I have the latest SoyLatte binaries installed (and verified SoyLatte can actually run). Any help welcome.
Looks like a problem with your Ant installation. Does it run normally? Specifically, can you run ant -diagnostics?
Attila. -- home: http://www.szegedi.org weblog: http://constc.blogspot.com
-- Andrew :-) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8