harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geir Magnusson Jr <g...@pobox.com>
Subject Re: [drlvm] Trouble Building DRLVM
Date Tue, 19 Sep 2006 10:11:31 GMT
For grins, can you set JAVA_HOME to the deploy/jre directory and PATH to
 include jre/bin?

geir


Egor Pasko wrote:
> On the 0x1E9 day of Apache Harmony Geir Magnusson, Jr. wrote:
>> What's different about how you build? 
> 
> I just run "ant" from "enhanced/trunk", and when it breaks, I do what
> you suggested. There is almost no difference because not many things
> are done additionally to switch_svn_vm and switch_svn_classlib.
> 
>> Are you building from SVN source?
> 
> yes, sure, I tried various scenarios of building, but result is the
> same: segmentation fault somewhere sopposedly in launcher. At least,
> Alexey Varlamov could reproduce it..
> 
>>  Is it release or debug?
> 
> This is debug config. Now I am building the launcher in debug mode and
> trying to investivate more...
>  
>> What happens when you run?
> 
> currently it is like this:
> 
> $ ./java -showversion Hello
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or
its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r447722, (Sep 19 2006), Linux/ia32/gcc 3.3.3, debug build
> http://incubator.apache.org/harmony
> SIGSEGV in VM code.
> Stack trace:
>         1: free (??:-1)
>         2: ?? (??:-1)
>         3: ?? (??:-1)
>         4: hymem_free_memory (/export/users/evpasko/svn/2/harmony/enhanced/trunk/working_classlib/modules/luni/src/main/native/port/linux/hymem.c:115)
>         5: ?? (??:-1)
>         6: properties_free (../shared/strhelp.c:97)
> <end of stack trace>
> Segmentation fault
> 
> 
>> Egor Pasko wrote:
>>> On the 0x1E9 day of Apache Harmony Geir Magnusson, Jr. wrote:
>>>> $ svn co https://svn.apache.org/repos/asf/incubator/harmony/enhanced/
>>>> trunk
>>>> $ cd trunk
>>>> $ ant switch_svn_vm
>>>> $ ant switch_svn_classlib
>>>>
>>>> which should result in a a checkout of classlib SVN head into
>>>> 'working_classlib', a checkout of DRLVM SVN head into 'working_vm'.
>>>> (You could have done just an 'ant' w/ no arguments, that would have
>>>> done the above, plus a full build, but that's really targetted at
>>>> building snapshots.
>>>>
>>>> Then you have each tree that you can build independently. (I'm doing
>>>> all of this from memory, so if some of the ant targets are slightly
>>>> wrong, I apologize in advance...) For classlib :
>>>>
>>>> $ cd working_classlib
>>>> $ ant fetch-depends
>>>> $ ant
>>>>
>>>> and then
>>>>
>>>> $ cd working_vm/build
>>>> $ sh build.sh update
>>>> $ sh build.sh
>>> Geir, thanks for clarification. I do almost the same thing, but it
>>> does NOT solve the problem on SUSE for me yet. The most unpleasant for
>>> me here is that GDB does not help:
>>>
>>> $ gdb java
>>> GNU gdb 6.3
>>> Copyright 2004 Free Software Foundation, Inc.
>>> GDB is free software, covered by the GNU General Public License, and you are
>>> welcome to change it and/or distribute copies of it under certain conditions.
>>> Type "show copying" to see the conditions.
>>> There is absolutely no warranty for GDB.  Type "show warranty" for details.
>>> This GDB was configured as "i586-suse-linux"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".
>>>
>>> (gdb) handle SIGSEGV stop
>>> Signal        Stop      Print   Pass to program Description
>>> SIGSEGV       Yes       Yes     Yes             Segmentation fault
>>> (gdb) set args -showversion Hello
>>> (gdb) r
>>> Starting program: /export/users/evpasko/svn/2/harmony/enhanced/trunk/working_vm/build/deploy/jre/bin/java
-showversion Hello
>>> [Thread debugging using libthread_db enabled]
>>> [New Thread 1080381568 (LWP 4658)]
>>> [New Thread 1083587504 (LWP 4661)]
>>> Cannot find user-level thread for LWP 4658: generic error
>>> (gdb)
>>>
>>> does GDB work for you?
>>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
>>
> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message