Mac OS X build fails

Nicholas Shanny nshanny at me.com
Thu Aug 21 06:09:19 PDT 2008


Rob,

My Bad. You do need XCode 3.1 but the real problem lies elsewhere.

Take a look at the following file (from your email):


>> /Users/user1/mercurial/
>> bsd-jdk/bsd-port/build/bsd-i586/langtools/build/ant-diagnostics.log

In there you are likely to find the following error:

Error: JAVA_HOME is not defined correctly.
   We cannot execute /usr/local/soylatte-i386-1.0.3/bin/java

That is because if you download the binary version of SoyLatte from  
Landon's site it is uncompressed into:

soylatte16-i386-1.0.3

but the build script in his email uses /usr/local/soylatte-i386-1.0.3

Change the build command line to use the correct java directory.

Cheers
Nick Shanny
CarGurus, LLC
nshanny at cargurus.com

On Aug 21, 2008, at 7:51 AM, Nick Shanny wrote:

> Rob,
>
> I found that using XCode 3.0 caused all sorts of compile issues. I
> switched to XCode 3.1 and it all worked.
>
> I am still having problems building the 64 bit version, but I am
> looking into that as well.
>
> Thanks
> Nick Shanny
> CarGurus, LLC
> nshanny at cargurus.com
>
>
>
> On Aug 21, 2008, at 5:23 AM, Rob Ross wrote:
>
>> Well I didn't expect it to work the first time. But it claims to pass
>> the sanity test; so far this is a lot better than my experience
>> trying to build on Windows.
>>
>> Towards the top of the log there's 4 reported problems with /bin/sh.
>> I am not unix enough to know what it is complaining about.
>>
>> When I first ran make it complained that it was using UTF-8 for the
>> source files and I should use LANG=C instead, so I added that to the
>> arguments from the example make invocation on Landon's blog.
>>
>> Also, at the end it fails and reports 3 errors but it doesn't state
>> what they are. I've included the entire console log below.
>>
>> I'm building this on a recent dual core 2 Intel Mac Mini with the
>> latest 10.5.4, Xcode 3.0. Are you using 3.1 or 3.0?
>>
>>
>> Rob Ross, Lead Software Engineer
>> E! Networks
>>
>> ---------------------------------------------------
>> "Beware of he who would deny you access to information, for in his
>> heart he dreams himself your master." -- Commissioner Pravin Lal
>>
>> m5:bsd-port user1$ make \
>>> ALT_BOOTDIR=/usr/local/soylatte-i386-1.0.3 \
>>> ALT_BINARY_PLUGS_PATH=/usr/local/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 \
>>> NO_DOCS=true \
>>> HOTSPOT_BUILD_JOBS=1 \
>>> LANG=C
>> Control bsd i586 1.7.0-internal all build started:
>> /bin/sh: findbugs: command not found
>> /Users/user1/mercurial/bsd-jdk/bsd-port/jdk/make/common/shared/ 
>> Sanity-
>> Settings.gmk:122: WARNING: FINDBUGS_VER should not be empty [Sanity-
>> Settings.gmk]
>> /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 = m5.local
>>
>> Build Directory Structure:
>>   CWD = /Users/user1/mercurial/bsd-jdk/bsd-port
>>   TOPDIR = .
>>   CONTROL_TOPDIR = .
>>   LANGTOOLS_TOPDIR = ./langtools
>>   JAXP_TOPDIR = ./jaxp
>>   JAXWS_TOPDIR = ./jaxws
>>   CORBA_TOPDIR = ./corba
>>   HOTSPOT_TOPDIR = ./hotspot
>>   JDK_TOPDIR = ./jdk
>>
>> Build Directives:
>>   BUILD_LANGTOOLS = true
>>   BUILD_JAXP = true
>>   BUILD_JAXWS = true
>>   BUILD_CORBA = true
>>   BUILD_HOTSPOT = true
>>   BUILD_JDK    = true
>>
>> Hotspot Settings:
>>      HOTSPOT_BUILD_JOBS  = 1
>>      HOTSPOT_OUTPUTDIR   = /Users/user1/mercurial/bsd-jdk/bsd-port/
>> build/bsd-i586/hotspot/outputdir
>>      HOTSPOT_EXPORT_PATH = /Users/user1/mercurial/bsd-jdk/bsd-port/
>> build/bsd-i586/hotspot/import
>>
>>
>>
>>
>> Bootstrap Settings:
>>  BOOTDIR = /usr/local/soylatte-i386-1.0.3
>>    ALT_BOOTDIR = /usr/local/soylatte-i386-1.0.3
>>  BOOT_VER = /bin/sh: /usr/local/soylatte-i3861.0 [requires at least
>> 1.5]
>>  OUTPUTDIR = /Users/user1/mercurial/bsd-jdk/bsd-port/build/bsd-i586
>>    ALT_OUTPUTDIR = /Users/user1/mercurial/bsd-jdk/bsd-port/build/
>> bsd-i586
>>  ABS_OUTPUTDIR = /Users/user1/mercurial/bsd-jdk/bsd-port/build/bsd-
>> i586
>>
>> Build Tool Settings:
>>  SLASH_JAVA = /NOT-SET
>>    ALT_SLASH_JAVA =
>>  VARIANT = OPT
>>  JDK_DEVTOOLS_DIR = /NOT-SET/devtools
>>    ALT_JDK_DEVTOOLS_DIR =
>>  ANT_HOME = /usr/share/ant
>>  FINDBUGS_HOME =
>>  UNIXCOMMAND_PATH = /bin/
>>    ALT_UNIXCOMMAND_PATH =
>>  COMPILER_PATH = /usr/bin/
>>    ALT_COMPILER_PATH =
>>  DEVTOOLS_PATH = /usr/bin/
>>    ALT_DEVTOOLS_PATH =
>>  COMPILER_NAME = GCC
>>  COMPILER_VERSION =
>>  CC_VER = 4.0 [requires at least 3.2]
>>  ZIP_VER = 2.32 [requires at least 2.2]
>>  UNZIP_VER = 5.52 [requires at least 5.12]
>>  ANT_VER = Error: JAVA_HOME is not defined correctly.   We cannot
>> execute /usr/local/soylatte-i3861.0 [requires at least 1.6.3]
>>  TEMPDIR = /Users/user1/mercurial/bsd-jdk/bsd-port/build/bsd-i586/tmp
>>
>> Build Directives:
>>  OPENJDK = true
>>  USE_HOTSPOT_INTERPRETER_MODE =
>>  PEDANTIC =
>>  DEV_ONLY =
>>  NO_DOCS = true
>>  NO_IMAGES =
>>  TOOLS_ONLY =
>>  INSANE =
>>  COMPILE_APPROACH = parallel
>>  PARALLEL_COMPILE_JOBS = 2
>>    ALT_PARALLEL_COMPILE_JOBS =
>>  FASTDEBUG =
>>  COMPILER_WARNINGS_FATAL = false
>>  COMPILER_WARNING_LEVEL =
>>  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 -mstackrealign
>>  CFLAGS =  -O2   -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -
>> Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN -
>> mstackrealign
>>  BOOT_JAVA_CMD = /usr/local/soylatte-i386-1.0.3/bin/java  -client -
>> Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m
>>  BOOT_JAVAC_CMD = /usr/local/soylatte-i386-1.0.3/bin/javac  -J-
>> XX:ThreadStackSize=768 -J-client -J-Xmx896m -J-Xms128m -J-
>> XX:PermSize=32m -J-XX:MaxPermSize=160m -encoding ascii
>>  BOOT_JAR_CMD = /usr/local/soylatte-i386-1.0.3/bin/jar
>>  BOOT_JARSIGNER_CMD = /usr/local/soylatte-i386-1.0.3/bin/jarsigner
>>  JAVAC_CMD = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-
>> i586/bin/javac  -J-XX:ThreadStackSize=768 -J-client -J-Xmx896m -J-
>> Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m  -source 1.5 -
>> target 5 -encoding ascii -Xbootclasspath:/Users/user1/mercurial/bsd-
>> jdk/bsd-port/build/bsd-i586/classes
>>  JAVAH_CMD = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-
>> i586/bin/javah -bootclasspath /Users/user1/mercurial/bsd-jdk/bsd- 
>> port/
>> build/bsd-i586/classes
>>  JAVADOC_CMD = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-
>> i586/bin/javadoc -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -
>> J-XX:MaxPermSize=160m
>>
>> Build Platform Settings:
>>  USER = user1
>>  PLATFORM = bsd
>>  ARCH = i586
>>  LIBARCH = i386
>>  ARCH_FAMILY = i586
>>  ARCH_DATA_MODEL = 32
>>  ARCHPROP = i386
>>  OS_VERSION = 9.4.0 [requires at least 8.0]
>>  OS_NAME = darwin
>>  TEMP_FREE_SPACE = 233769824
>>  FREE_SPACE = 233769824
>>  MB_OF_MEMORY = 2048
>>
>> GNU Make Settings:
>>  MAKE = make
>>  MAKE_VER = 3.81 [requires at least 3.78]
>>  MAKECMDGOALS = sanity
>>  MAKEFLAGS =
>>  SHELL = /bin/sh
>>
>> Target Build Versions:
>>  JDK_VERSION = 1.7.0
>>  MILESTONE = internal
>>  RELEASE = 1.7.0-internal
>>  FULL_VERSION = 1.7.0-internal-user1_2008_08_21_02_09-b00
>>  BUILD_NUMBER = b00
>>
>> External File/Binary Locations:
>>  USRJDKINSTANCES_PATH = /usr/local
>>  BUILD_JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/
>> binaries
>>    ALT_BUILD_JDK_IMPORT_PATH =
>>  JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/
>> bsd-i586
>>    ALT_JDK_IMPORT_PATH =
>>  LANGTOOLS_DIST =
>>    ALT_LANGTOOLS_DIST = /Users/user1/mercurial/bsd-jdk/bsd-port/
>> build/bsd-i586/langtools/dist
>>  CORBA_DIST =
>>    ALT_CORBA_DIST = /Users/user1/mercurial/bsd-jdk/bsd-port/build/
>> bsd-i586/corba/dist
>>  JAXP_DIST =
>>    ALT_JAXP_DIST = /Users/user1/mercurial/bsd-jdk/bsd-port/build/
>> bsd-i586/jaxp/dist
>>  JAXWS_DIST =
>>    ALT_JAXWS_DIST = /Users/user1/mercurial/bsd-jdk/bsd-port/build/
>> bsd-i586/jaxws/dist
>>  HOTSPOT_DOCS_IMPORT_PATH = /NO_DOCS_DIR
>>    ALT_HOTSPOT_DOCS_IMPORT_PATH =
>>  HOTSPOT_IMPORT_PATH = /Users/user1/mercurial/bsd-jdk/bsd-port/
>> build/bsd-i586/hotspot/import
>>    ALT_HOTSPOT_IMPORT_PATH = /Users/user1/mercurial/bsd-jdk/bsd-
>> port/build/bsd-i586/hotspot/import
>>  HOTSPOT_CLIENT_PATH = /Users/user1/mercurial/bsd-jdk/bsd-port/
>> build/bsd-i586/hotspot/import/jre/lib/i386/client
>>    ALT_HOTSPOT_CLIENT_PATH =
>>  HOTSPOT_SERVER_PATH = /Users/user1/mercurial/bsd-jdk/bsd-port/
>> build/bsd-i586/hotspot/import/jre/lib/i386/server
>>    ALT_HOTSPOT_SERVER_PATH =
>>  CACERTS_FILE = ./../src/share/lib/security/cacerts
>>    ALT_CACERTS_FILE =
>>  CUPS_HEADERS_PATH = /usr/include
>>    ALT_CUPS_HEADERS_PATH = /usr/include
>>
>> OpenJDK-specific settings:
>>  FREETYPE_HEADERS_PATH = /usr/X11R6/include
>>    ALT_FREETYPE_HEADERS_PATH = /usr/X11R6/include
>>  FREETYPE_LIB_PATH = /usr/X11R6/lib
>>    ALT_FREETYPE_LIB_PATH = /usr/X11R6/lib
>>
>> OPENJDK Import Binary Plug Settings:
>>  BINARY_PLUGS_JARFILE = /usr/local/jdk-7-icedtea-plugs/jre/lib/rt-
>> closed.jar
>>    ALT_BINARY_PLUGS_JARFILE =
>>  BINARY_PLUGS_PATH = /usr/local/jdk-7-icedtea-plugs
>>    ALT_BINARY_PLUGS_PATH = /usr/local/jdk-7-icedtea-plugs
>>  BUILD_BINARY_PLUGS_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/
>> openjdk/binaryplugs
>>    ALT_BUILD_BINARY_PLUGS_PATH =
>>  PLUG_LIBRARY_NAMES =
>>
>> Previous JDK Settings:
>>  PREVIOUS_RELEASE_PATH = /NOT-SET/re/jdk/1.6.0/archive/fcs/bundles/
>> bsd-i586
>>    ALT_PREVIOUS_RELEASE_PATH =
>>  PREVIOUS_JDK_VERSION = 1.6.0
>>    ALT_PREVIOUS_JDK_VERSION =
>>  PREVIOUS_JDK_FILE = jdk-6-bsd-i586.tar.gz
>>    ALT_PREVIOUS_JDK_FILE =
>>  PREVIOUS_JRE_FILE = jre-6-bsd-i586.tar.gz
>>    ALT_PREVIOUS_JRE_FILE =
>>  PREVIOUS_RELEASE_IMAGE =
>>    ALT_PREVIOUS_RELEASE_IMAGE =
>>
>>
>> WARNING: The version of findbugs being used is older than
>>       the required version of '1.2'.
>>       The version of findbugs found was ''.
>>
>> Sanity check passed.
>> Control bsd i586 1.7.0-internal all_product_build build started:
>> Control bsd i586 1.7.0-internal build_product_image build started:
>> make \
>> 	        SKIP_FASTDEBUG_BUILD=true \
>> 	        SKIP_DEBUG_BUILD=true \
>> 	         \
>> 	        generic_build_repo_series
>> mkdir -p ./build/bsd-i586
>> mkdir -p ./build/bsd-i586/j2sdk-image
>> mkdir -p /Users/user1/mercurial/bsd-jdk/bsd-port/build/bsd-i586/
>> langtools
>> (cd  ./langtools/make && \
>> 	 make JDK_TOPDIR=/Users/user1/mercurial/bsd-jdk/bsd-port/jdk
>> JDK_MAKE_SHARED_DIR=/Users/user1/mercurial/bsd-jdk/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-user1_2008_08_21_02_09-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" ALT_OUTPUTDIR=/Users/user1/mercurial/bsd-
>> jdk/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/user1/mercurial/bsd-jdk/bsd-port/build/bsd-i586/langtools/ 
>> build/
>> ant-tmp' /usr/share/ant/bin/ant -diagnostics > /Users/user1/ 
>> mercurial/
>> bsd-jdk/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
>>
>>
>
>




More information about the bsd-port-dev mailing list