Build errors

Stephen Bannasch stephen.bannasch at deanbrook.org
Sun Jan 24 21:40:19 PST 2010


At 8:11 PM -0800 1/24/10, Greg Lewis wrote:
>On Sun, Jan 24, 2010 at 07:51:50PM -0500, Stephen Bannasch wrote:
>> >On Mon, Jan 18, 2010 at 08:13:56PM +0100, Christian Thalinger wrote:
>> >> On Mon, 2010-01-18 at 11:02 -0800, David Green wrote:
>> >> > I'm attempting to build OpenJDK from source according to these
>> >> > instructions and I'm running into the following error:
>> >> >
>> >> >
>> >> >         cc1plus: warnings being treated as errors
>> > > >         >
>> >> It's a small problem that has already been fixed:
>> >>
>> > > http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/b1f619d38249
>> >>
>> >> It will just take some time to promote to your repository.
>> >
>> >I've merged build 80, so this should be fixed.
>>
>> I'm getting similar errors:
>>
>> Compiling /Users/stephen/dev/java/src/bsd-port/hotspot/src/share/vm/code/nmethod.cpp
>>
>> results in this error:
>>
>> cc1plus: warnings being treated as errors
>> /Users/stephen/dev/java/src/bsd-port/hotspot/src/share/vm/code/nmethod.cpp: In member function 'bool nmethod::make_not_entrant_or_zombie(int)':
>
>That doesn't look like you've updated.


I was missing this error reported in the console in response to:

  $ hg fpull -u


  [hotspot]
  pulling from http://hg.openjdk.java.net/bsd-port/bsd-port/hotspot
  searching for changes
  skipped: journal already exists - run hg recover
  abort: journal already exists - run hg recover!

I'm not sure what the problem is but this appeared to fix it:

  $ cd hotspot
  $ hg recover
  $ cd -


> > I think I have the latest code -- ran hg fpull -u
>
>You need to run hg fupdate after you run hg fpull

It appears that adding '-u' to hg fpull does the fupdate after completing the fpull.

I now seem to have the updated code and the build completes

But I am getting this error running a simple test after the build:

[bsd-port]$ ./build/bsd-i586/j2sdk-image/bin/java -version
Error occurred during initialization of VM
Unable to load native library: dlopen(/Users/stephen/dev/java/src/bsd-port/build/bsd-i586/j2sdk-image/jre/lib/i386/libjava.dylib, 1): Library not loaded: libjvm.dylib
  Referenced from: /Users/stephen/dev/java/src/bsd-port/build/bsd-i586/j2sdk-image/jre/lib/i386/libjava.dylib
  Reason: image not found

The image *is* there:

[bsd-port]$ ls -l /Users/stephen/dev/java/src/bsd-port/build/bsd-i586/j2sdk-image/jre/lib/i386/libjava.dylib
-rwxr-xr-x  1 stephen  staff  152564 Jan 25 00:03 /Users/stephen/dev/java/src/bsd-port/build/bsd-i586/j2sdk-image/jre/lib/i386/libjava.dylib



More information about the bsd-port-dev mailing list