public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* PR16923
@ 2009-02-20  4:30 Jack Howarth
  2009-02-20 11:24 ` PR16923 Andrew Haley
  0 siblings, 1 reply; 7+ messages in thread
From: Jack Howarth @ 2009-02-20  4:30 UTC (permalink / raw)
  To: java

   I am trying to debug the failure of PR16923 on darwin at -m64 a bit further,
however I can't seem to get this testcase to work outside of the build system
(using the installed compiler). The libjava log shows for instance...

Executing on host: /sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/gcc/ /sw/src/fink.build/g
cc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/libjava.jni/invocation/PR16923.c   -bind_at_load -multiply_defined suppress -I. -I.. -I/sw/src/fink.build/gcc4
4-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/libjava.jni -I/sw/src/fink.build/gcc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/../include -I/sw/src/f
ink.build/gcc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/../classpath/include -fdollars-in-identifiers -L/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_ob
jdir/i686-apple-darwin9/./libjava/.libs -ljvm -shared-libgcc -lgcj -liconv  -lm   -m32 -o PR16923    (timeout = 300)
PASS: PR16923.c compilation
set_ld_library_path_env_vars: ld_library_path=.:/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/i686-apple-darwin9/./libjava/.libs
Setting LD_LIBRARY_PATH to .:/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/i686-apple-darwin9/./libjava/.libs:.:/sw/src/fink.build/gcc44-4.3.999-20090218/dar
win_objdir/i686-apple-darwin9/./libjava/.libs:/usr/local/NMRPipe/xview/mac/lib:/usr/openwin/lib:/usr/local/NMRPipe/nmrbin.mac/lib:/usr/local/lib
optionReceived
PASS: PR16923 output

If I copy PR16923.c to a separate directory and compile it with the installed gcc trunk
compiler using...

gcc-4 ./PR16923.c -bind_at_load -multiply_defined suppress -fdollars-in-identifiers -L/sw/lib/gcc4.4/lib -L/sw/lib/gcc4.4/lib/gcj-4.4.0-10 -ljvm -shared-libgcc -lgcj -liconv -lm -m32 -o PR16923

The compilation succeeds but when I try to run the test case, I get...

Assertion failed: (class_id), function main, file ./PR16923.c, line 35.
Abort

What am I missing here with regards to running these testcases outside of the
build directories? Thanks in advance for any help.
                  Jack
ps I guess it would be too much to hope that one of the java developers has
a Darwin machine now?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PR16923
  2009-02-20  4:30 PR16923 Jack Howarth
@ 2009-02-20 11:24 ` Andrew Haley
  2009-02-20 13:45   ` PR16923 Jack Howarth
  2009-02-21 17:42   ` PR16923 Jack Howarth
  0 siblings, 2 replies; 7+ messages in thread
From: Andrew Haley @ 2009-02-20 11:24 UTC (permalink / raw)
  To: Jack Howarth; +Cc: java

Jack Howarth wrote:
>    I am trying to debug the failure of PR16923 on darwin at -m64 a bit further,
> however I can't seem to get this testcase to work outside of the build system
> (using the installed compiler). The libjava log shows for instance...
> 
> Executing on host: /sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/gcc/ /sw/src/fink.build/g
> cc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/libjava.jni/invocation/PR16923.c   -bind_at_load -multiply_defined suppress -I. -I.. -I/sw/src/fink.build/gcc4
> 4-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/libjava.jni -I/sw/src/fink.build/gcc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/../include -I/sw/src/f
> ink.build/gcc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/../classpath/include -fdollars-in-identifiers -L/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_ob
> jdir/i686-apple-darwin9/./libjava/.libs -ljvm -shared-libgcc -lgcj -liconv  -lm   -m32 -o PR16923    (timeout = 300)
> PASS: PR16923.c compilation
> set_ld_library_path_env_vars: ld_library_path=.:/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/i686-apple-darwin9/./libjava/.libs
> Setting LD_LIBRARY_PATH to .:/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/i686-apple-darwin9/./libjava/.libs:.:/sw/src/fink.build/gcc44-4.3.999-20090218/dar
> win_objdir/i686-apple-darwin9/./libjava/.libs:/usr/local/NMRPipe/xview/mac/lib:/usr/openwin/lib:/usr/local/NMRPipe/nmrbin.mac/lib:/usr/local/lib
> optionReceived
> PASS: PR16923 output
> 
> If I copy PR16923.c to a separate directory and compile it with the installed gcc trunk
> compiler using...
> 
> gcc-4 ./PR16923.c -bind_at_load -multiply_defined suppress -fdollars-in-identifiers -L/sw/lib/gcc4.4/lib -L/sw/lib/gcc4.4/lib/gcj-4.4.0-10 -ljvm -shared-libgcc -lgcj -liconv -lm -m32 -o PR16923
> 
> The compilation succeeds but when I try to run the test case, I get...
> 
> Assertion failed: (class_id), function main, file ./PR16923.c, line 35.
> Abort
> 
> What am I missing here with regards to running these testcases outside of the
> build directories? Thanks in advance for any help.

It's trying to load PR16923.class, so that file has to be in the CLASSPATH.

> ps I guess it would be too much to hope that one of the java developers has
> a Darwin machine now?

Err, what for?

Andrew.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PR16923
  2009-02-20 11:24 ` PR16923 Andrew Haley
@ 2009-02-20 13:45   ` Jack Howarth
  2009-02-21 17:42   ` PR16923 Jack Howarth
  1 sibling, 0 replies; 7+ messages in thread
From: Jack Howarth @ 2009-02-20 13:45 UTC (permalink / raw)
  To: Andrew Haley; +Cc: java

On Fri, Feb 20, 2009 at 11:24:33AM +0000, Andrew Haley wrote:
> Jack Howarth wrote:
> >    I am trying to debug the failure of PR16923 on darwin at -m64 a bit further,
> > however I can't seem to get this testcase to work outside of the build system
> > (using the installed compiler). The libjava log shows for instance...
> > 
> > Executing on host: /sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/gcc/ /sw/src/fink.build/g
> > cc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/libjava.jni/invocation/PR16923.c   -bind_at_load -multiply_defined suppress -I. -I.. -I/sw/src/fink.build/gcc4
> > 4-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/libjava.jni -I/sw/src/fink.build/gcc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/../include -I/sw/src/f
> > ink.build/gcc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/../classpath/include -fdollars-in-identifiers -L/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_ob
> > jdir/i686-apple-darwin9/./libjava/.libs -ljvm -shared-libgcc -lgcj -liconv  -lm   -m32 -o PR16923    (timeout = 300)
> > PASS: PR16923.c compilation
> > set_ld_library_path_env_vars: ld_library_path=.:/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/i686-apple-darwin9/./libjava/.libs
> > Setting LD_LIBRARY_PATH to .:/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/i686-apple-darwin9/./libjava/.libs:.:/sw/src/fink.build/gcc44-4.3.999-20090218/dar
> > win_objdir/i686-apple-darwin9/./libjava/.libs:/usr/local/NMRPipe/xview/mac/lib:/usr/openwin/lib:/usr/local/NMRPipe/nmrbin.mac/lib:/usr/local/lib
> > optionReceived
> > PASS: PR16923 output
> > 
> > If I copy PR16923.c to a separate directory and compile it with the installed gcc trunk
> > compiler using...
> > 
> > gcc-4 ./PR16923.c -bind_at_load -multiply_defined suppress -fdollars-in-identifiers -L/sw/lib/gcc4.4/lib -L/sw/lib/gcc4.4/lib/gcj-4.4.0-10 -ljvm -shared-libgcc -lgcj -liconv -lm -m32 -o PR16923
> > 
> > The compilation succeeds but when I try to run the test case, I get...
> > 
> > Assertion failed: (class_id), function main, file ./PR16923.c, line 35.
> > Abort
> > 
> > What am I missing here with regards to running these testcases outside of the
> > build directories? Thanks in advance for any help.
> 
> It's trying to load PR16923.class, so that file has to be in the CLASSPATH.
> 
> > ps I guess it would be too much to hope that one of the java developers has
> > a Darwin machine now?
> 
> Err, what for?
> 
> Andrew.

Andrew,
   The last time I checked none of the java maintainers had a
darwin machine so they couldn't look directly at these issues
that appear to be failing only on that target.
                     Jack

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PR16923
  2009-02-20 11:24 ` PR16923 Andrew Haley
  2009-02-20 13:45   ` PR16923 Jack Howarth
@ 2009-02-21 17:42   ` Jack Howarth
  2009-02-23 11:07     ` PR16923 Andrew Haley
  1 sibling, 1 reply; 7+ messages in thread
From: Jack Howarth @ 2009-02-21 17:42 UTC (permalink / raw)
  To: Andrew Haley; +Cc: java

How does one run single test cases from the dejangnu harness in
libjava? I had expected that either...

make -k check RUNTESTFLAGS="site.exp=libjava.jni/invocation/PR16923.c --target_board=unix'{-m32,-m64}'"

or

make -k check RUNTESTFLAGS="jni.exp=invocation/PR16923.c --target_board=unix'{-m32,-m64}'"

would work in darwin_objdir/i686-apple-darwin9/libjava. However I can't seem to get the
failing test case to run in this fashion. What am I missing here?
                  Jack

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PR16923
  2009-02-21 17:42   ` PR16923 Jack Howarth
@ 2009-02-23 11:07     ` Andrew Haley
  2009-02-23 11:09       ` PR16923 Andrew Haley
  2009-02-23 11:15       ` PR16923 Andrew Haley
  0 siblings, 2 replies; 7+ messages in thread
From: Andrew Haley @ 2009-02-23 11:07 UTC (permalink / raw)
  To: Jack Howarth; +Cc: java

Jack Howarth wrote:
> How does one run single test cases from the dejangnu harness in
> libjava? I had expected that either...
> 
> make -k check RUNTESTFLAGS="site.exp=libjava.jni/invocation/PR16923.c --target_board=unix'{-m32,-m64}'"
> 
> or
> 
> make -k check RUNTESTFLAGS="jni.exp=invocation/PR16923.c --target_board=unix'{-m32,-m64}'"
> 
> would work in darwin_objdir/i686-apple-darwin9/libjava. However I can't seem to get the
> failing test case to run in this fashion. What am I missing here?

I think Tom Tromey knows how to do this; I can't remember.

But really, all you need to do to run it outside dejagnu is ensure that
the file PR16923.c exists in a directory named in the environment variable
CLASSPATH.

My CLASSPATH is .:/home/aph/gcc/trunk/libjava/testsuite/libjava.jni:/home/aph/gcc/trunk/obj-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/libjava/testsuite:/home/aph/gcc/trunk/obj-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/libjava/testsuite/../libgcj-4.4.0.jar

Andrew.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PR16923
  2009-02-23 11:07     ` PR16923 Andrew Haley
@ 2009-02-23 11:09       ` Andrew Haley
  2009-02-23 11:15       ` PR16923 Andrew Haley
  1 sibling, 0 replies; 7+ messages in thread
From: Andrew Haley @ 2009-02-23 11:09 UTC (permalink / raw)
  To: Jack Howarth; +Cc: java

Andrew Haley wrote:
> Jack Howarth wrote:
>> How does one run single test cases from the dejangnu harness in
>> libjava? I had expected that either...
>>
>> make -k check RUNTESTFLAGS="site.exp=libjava.jni/invocation/PR16923.c --target_board=unix'{-m32,-m64}'"
>>
>> or
>>
>> make -k check RUNTESTFLAGS="jni.exp=invocation/PR16923.c --target_board=unix'{-m32,-m64}'"
>>
>> would work in darwin_objdir/i686-apple-darwin9/libjava. However I can't seem to get the
>> failing test case to run in this fashion. What am I missing here?
> 
> I think Tom Tromey knows how to do this; I can't remember.
> 
> But really, all you need to do to run it outside dejagnu is ensure that
> the file PR16923.c exists in a directory named in the environment variable
> CLASSPATH.

Oh duh, PR16923.class.

> My CLASSPATH is .:/home/aph/gcc/trunk/libjava/testsuite/libjava.jni:/home/aph/gcc/trunk/obj-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/libjava/testsuite:/home/aph/gcc/trunk/obj-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/libjava/testsuite/../libgcj-4.4.0.jar

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: PR16923
  2009-02-23 11:07     ` PR16923 Andrew Haley
  2009-02-23 11:09       ` PR16923 Andrew Haley
@ 2009-02-23 11:15       ` Andrew Haley
  1 sibling, 0 replies; 7+ messages in thread
From: Andrew Haley @ 2009-02-23 11:15 UTC (permalink / raw)
  To: Jack Howarth; +Cc: java

Andrew Haley wrote:
> Jack Howarth wrote:
>> How does one run single test cases from the dejangnu harness in
>> libjava? I had expected that either...
>>
>> make -k check RUNTESTFLAGS="site.exp=libjava.jni/invocation/PR16923.c --target_board=unix'{-m32,-m64}'"
>>
>> or
>>
>> make -k check RUNTESTFLAGS="jni.exp=invocation/PR16923.c --target_board=unix'{-m32,-m64}'"
>>
>> would work in darwin_objdir/i686-apple-darwin9/libjava. However I can't seem to get the
>> failing test case to run in this fashion. What am I missing here?
> 
> I think Tom Tromey knows how to do this; I can't remember.
> 
> But really, all you need to do to run it outside dejagnu is ensure that
> the file [PR16923.class] exists in a directory named in the environment variable
> CLASSPATH.

Run it ike this:

zorro:libjava $ /home/aph/gcc/trunk/obj-x86_64-unknown-linux-gnu/gcc/xgcc -B/home/aph/gcc/trunk/obj-x86_64-unknown-linux-gnu/gcc/ /home/aph/gcc/trunk/libjava/testsuite/libjava.jni/invocation/PR16923.c  -I. -I.. -I/home/aph/gcc/trunk/libjava/testsuite/libjava.jni -I/home/aph/gcc/trunk/libjava/testsuite/../include -I/home/aph/gcc/trunk/libjava/testsuite/../classpath/include -fdollars-in-identifiers -L/home/aph/gcc/trunk/obj-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/./libjava/.libs -ljvm  -lm   -o PR16923
zorro:libjava $ LD_LIBRARY_PATH=.libs CLASSPATH=/home/aph/gcc/trunk/libjava/testsuite/libjava.jni/invocation/PR16923.jar ./PR16923
optionReceived

Andrew.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-02-23 11:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-20  4:30 PR16923 Jack Howarth
2009-02-20 11:24 ` PR16923 Andrew Haley
2009-02-20 13:45   ` PR16923 Jack Howarth
2009-02-21 17:42   ` PR16923 Jack Howarth
2009-02-23 11:07     ` PR16923 Andrew Haley
2009-02-23 11:09       ` PR16923 Andrew Haley
2009-02-23 11:15       ` PR16923 Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).