building OpenJDK on Mac OS X 1.5.8?

View: New views
5 Messages — Rating Filter:   Alert me  

building OpenJDK on Mac OS X 1.5.8?

by Ray Kiddy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hey -

A bit new to this project. Not sure what the procedure is here. I  
found this doc to work from and it got me pretty far:

        http://confluence.concord.org/display/CCTR/Build+OpenJDK+Java+1.7.0+on+Mac+OS+X+10.5

But then after quite a while building, I get the following. Yet, as  
you can see, javah does exist, though perhaps not in the right place....

I have a pretty standard dev setup. I removed X11, but that should not  
matter, yes? I work on WebObjects and Project Wonder with java and I  
build Firefox with some scripts and run mochitests and reftests. And  
stuff.

Any suggestions?

Full build log is at www.wykiwyk.com/openjdk/log004.txt. Except is  
below.

cheers - ray


Wed Nov  4 14:16:43 PST 2009
Control bsd i586 1.7.0-internal all build started:
( cd  ./jdk/make && \
           make sanity HOTSPOT_IMPORT_CHECK=false JDK_TOPDIR=/Users/
ray/Projects/OpenJDK/bsd-port/jdk JDK_MAKE_SHARED_DIR=/Users/ray/
Projects/OpenJDK/bsd-port/jdk/make/common/shared
  EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7  
TARGET_CLASS_VERSION=7 MILESTONE=internal BUILD_NUMBER=b00  
JDK_BUILD_NUMBER=b00 FULL_VERSION=1.7.0-internal-ray_2009_11_04_14_
16-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/ray/Projects/OpenJDK/
bsd-port/build/bsd-i586 ALT_LANGTOOLS_DIST=/U
sers/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/langtools/dist  
ALT_CORBA_DIST=/Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/
corba/dist ALT_JAXP_DIST=/Users/ray/Projects/Ope
nJDK/bsd-port/build/bsd-i586/jaxp/dist ALT_JAXWS_DIST=/Users/ray/
Projects/OpenJDK/bsd-port/build/bsd-i586/jaxws/dist  
ALT_HOTSPOT_IMPORT_PATH=/Users/ray/Projects/OpenJDK/bsd-port/bu
ild/bsd-i586/hotspot/import BUILD_HOTSPOT=true ; )

Build Machine Information:
    build machine = arist.local

Build Directory Structure:
    CWD = /Users/ray/Projects/OpenJDK/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
    DEBUG_CLASSFILES =
    DEBUG_BINARIES =

Hotspot Settings: \n      HOTSPOT_BUILD_JOBS  = 1 \n      
HOTSPOT_OUTPUTDIR   = /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-
i586/hotspot/outputdir \n      HOTSPOT_EXPORT_PATH =
/Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/hotspot/import \n \n

... and so on ....

# Running javac:
/usr/local/soylatte16-i386-1.0.3//bin/java -XX:-PrintVMOptions -XX:
+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx896m -Xms128m -
XX:PermSize=32m -XX:MaxPermSize=160m -Xbootclasspath/p:/Users/ray/
Projects/OpenJDK/bsd-port/build/bsd-i586/langtools/dist/bootstrap/lib/
javac.jar -jar /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/
langtools/dist/bootstrap/lib/javac.jar -source 7 -target 7 -encoding  
ascii -Xbootclasspath:/Users/ray/Projects/OpenJDK/bsd-port/build/bsd-
i586/classes -sourcepath /Users/ray/Projects/OpenJDK/bsd-port/build/
bsd-i586/gensrc:../../../src/solaris/classes:../../../src/share/
classes -d /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/classes  
@/Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/java/
java.lang/java/.classes.list.filtered
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/bin/mkdir -p /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/
java/java.lang/java/obj
rm -f /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/java/
java.lang/java/obj/.class.headers.i586
# Running javah:
/NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javah -
bootclasspath /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/
classes -d /Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/
java/java.lang/java/CClassHeaders/ \
                java.lang.Object java.lang.Class java.lang.Compiler java.lang.String  
java.lang.Thread java.lang.ThreadGroup java.lang.StrictMath  
java.lang.Number java.lang.Byte java.lang.Short java.lang.Integer  
java.lang.Long java.lang.Float java.lang.Double java.lang.Boolean  
java.lang.Character java.lang.System java.lang.ClassLoader  
java.lang.Runtime java.lang.SecurityManager java.lang.Shutdown  
java.lang.Package java.lang.ref.Finalizer  
java.lang.reflect.AccessibleObject java.lang.reflect.Field  
java.lang.reflect.Method java.lang.reflect.Constructor  
java.lang.reflect.InvocationTargetException java.lang.reflect.Array  
java.lang.reflect.Proxy java.security.AccessController java.util.Date  
java.util.TimeZone java.util.ResourceBundle  
java.util.concurrent.atomic.AtomicLong  
java.util.prefs.FileSystemPreferences java.io.Console  
java.io.FileDescriptor java.io.InputStream java.io.FileInputStream  
java.io.FileOutputStream java.io.PrintStream java.io.RandomAccessFile  
java.io.DataInputStream java.io.DataOutputStream java.io.File  
java.io.FileSystem java.io.UnixFileSystem java.io.ObjectInputStream  
java.io.ObjectOutputStream java.io.ObjectStreamClass  
java.lang.Throwable java.lang.NoClassDefFoundError  
java.lang.StringIndexOutOfBoundsException java.lang.OutOfMemoryError  
sun.misc.Version sun.misc.VM sun.misc.VMSupport sun.misc.Signal  
sun.misc.MessageUtils sun.misc.NativeSignalHandler sun.misc.GC  
sun.reflect.ConstantPool sun.reflect.NativeConstructorAccessorImpl  
sun.reflect.NativeMethodAccessorImpl sun.reflect.Reflection    
java.lang.ClassLoader\$NativeLibrary
make[4]: /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/
javah: Command not found
make[4]: *** [/Users/ray/Projects/OpenJDK/bsd-port/build/bsd-i586/tmp/
java/java.lang/java/obj/.class.headers.i586] Error 127
make[3]: *** [all] Error 1
make[2]: *** [all] Error 1
make[1]: *** [jdk-build] Error 2
make: *** [build_product_image] Error 2
Wed Nov  4 14:53:09 PST 2009
bash-3.2$
bash-3.2$
bash-3.2$
bash-3.2$ find * -name javah -type f
build/bsd-i586/langtools/build/bootstrap/bin/javah
build/bsd-i586/langtools/dist/bootstrap/bin/javah
bash-3.2$


Re: building OpenJDK on Mac OS X 1.5.8?

by Mario Torre-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Il 05/11/2009 00:05, Ray Kiddy ha scritto:

>
> Hey -
>
> A bit new to this project. Not sure what the procedure is here. I found
> this doc to work from and it got me pretty far:
>
> http://confluence.concord.org/display/CCTR/Build+OpenJDK+Java+1.7.0+on+Mac+OS+X+10.5
>
>
> But then after quite a while building, I get the following. Yet, as you
> can see, javah does exist, though perhaps not in the right place....
>
> I have a pretty standard dev setup. I removed X11, but that should not
> matter, yes? I work on WebObjects and Project Wonder with java and I
> build Firefox with some scripts and run mochitests and reftests. And stuff.
>
> Any suggestions?
>
> Full build log is at www.wykiwyk.com/openjdk/log004.txt. Except is below.
>
> cheers - ray

Hi!

There is a thread on this error on the BSD Port mailing list, maybe of
some help for you:

http://mail.openjdk.java.net/pipermail/bsd-port-dev/2009-September/000852.html

Cheers,
Mario
--
pgp key: http://subkeys.pgp.net/

Proud GNU Classpath developer: http://www.classpath.org/
Read About us at: http://planet.classpath.org
OpenJDK: http://openjdk.java.net/projects/caciocavallo/

Please, support open standards:
http://endsoftpatents.org/


Re: building OpenJDK on Mac OS X 1.5.8?

by Andrei Dmitriev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mario,
well, that looks a bit different than the discussing thread. I'd say
it's more with the value of JAVAH_CMD which equals to  

/NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javah

May you try to explicitly set it and rebuild?
BTW, perhaps the better fix would be to set SLASH_JAVA (ALT_SLASH_JAVA).
Thanks,
  Andrei


Mario Torre wrote:

> Il 05/11/2009 00:05, Ray Kiddy ha scritto:
>>
>> Hey -
>>
>> A bit new to this project. Not sure what the procedure is here. I found
>> this doc to work from and it got me pretty far:
>>
>> http://confluence.concord.org/display/CCTR/Build+OpenJDK+Java+1.7.0+on+Mac+OS+X+10.5 
>>
>>
>>
>> But then after quite a while building, I get the following. Yet, as you
>> can see, javah does exist, though perhaps not in the right place....
>>
>> I have a pretty standard dev setup. I removed X11, but that should not
>> matter, yes? I work on WebObjects and Project Wonder with java and I
>> build Firefox with some scripts and run mochitests and reftests. And
>> stuff.
>>
>> Any suggestions?
>>
>> Full build log is at www.wykiwyk.com/openjdk/log004.txt. Except is
>> below.
>>
>> cheers - ray
>
> Hi!
>
> There is a thread on this error on the BSD Port mailing list, maybe of
> some help for you:
>
> http://mail.openjdk.java.net/pipermail/bsd-port-dev/2009-September/000852.html 
>
>
> Cheers,
> Mario


Re: building OpenJDK on Mac OS X 1.5.8?

by Mario Torre-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Il 05/11/2009 11:56, Andrei Dmitriev ha scritto:
> Mario,
> well, that looks a bit different than the discussing thread. I'd say
> it's more with the value of JAVAH_CMD which equals to
> /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javah
> May you try to explicitly set it and rebuild? BTW, perhaps the better
> fix would be to set SLASH_JAVA (ALT_SLASH_JAVA).
> Thanks,
> Andrei

Hi Andrei!

Ugh! Because I replied to the wrong thread :)

There is another thread about building on OS X :P

Anyway, I think I know this guy, try to set this:

export ALT_BOOTDIR=/usr/lib/jvm/java-1.6.0
export ALT_JDK_IMPORT_PATH=$ALT_BOOTDIR

Of course, with ALT_BOOTDIR being something meaningful for you.

Cheers,
Mario

Re: building OpenJDK on Mac OS X 1.5.8?

by Kelly O'Hair :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just some background.

ALT_BOOTDIR is required and is usually the previously released jdk,
in this case any jdk6 should work, but a jdk7 should work too, assuming
it's not jdk7 b74 :^(  Heck, a jdk5 might even work.

ALT_JDK_IMPORT_DIR is only needed when just building part of the
entire openjdk forest, and usually needs to refer to a jdk release that
is of the same vintage as the jdk you are building, e.g. jdk7.
But you might be able to get away with a jdk6 in some situations.
Again, if you are building the entire openjdk forest, ALT_JDK_IMPORT_DIR
should not be needed, or if set, should not be used at all.

Normally in a full forest build, the javac used comes from a langtools
repository build (refer to LANGTOOLS_DIST in the makefiles) run with
the ALT_BOOTDIR java VM. If langtools isn't available, the
ALT_JDK_IMPORT_DIR javac will be used, not the ALT_BOOTDIR one,
because we need to be able to pass in -target 7, which
the ALT_BOOTDIR javac does not normally understand.

So unless the -target 7 options were turned off, ALT_JDK_IMPORT_DIR being
jdk6 might not work.

Hope that helps a bit...

-kto

Mario Torre wrote:

> Il 05/11/2009 11:56, Andrei Dmitriev ha scritto:
>> Mario,
>> well, that looks a bit different than the discussing thread. I'd say
>> it's more with the value of JAVAH_CMD which equals to
>> /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/bsd-i586/bin/javah
>> May you try to explicitly set it and rebuild? BTW, perhaps the better
>> fix would be to set SLASH_JAVA (ALT_SLASH_JAVA).
>> Thanks,
>> Andrei
>
> Hi Andrei!
>
> Ugh! Because I replied to the wrong thread :)
>
> There is another thread about building on OS X :P
>
> Anyway, I think I know this guy, try to set this:
>
> export ALT_BOOTDIR=/usr/lib/jvm/java-1.6.0
> export ALT_JDK_IMPORT_PATH=$ALT_BOOTDIR
>
> Of course, with ALT_BOOTDIR being something meaningful for you.
>
> Cheers,
> Mario