Subject: Re: jthread.c:420: `sc' undeclared - msg#00287
List: java.vm.kaffe.general
Hi Greg,
Could you try the attached patch file ? This problem is already known
and we need to rewrite
this part of profiling. However for the moment it is not done. :(
Cheers,
Guilhem.
Index: config/i386/openbsd2/md.h
===================================================================
RCS file: /cvs/kaffe/kaffe/config/i386/openbsd2/md.h,v
retrieving revision 1.2
diff -u -r1.2 md.h
--- config/i386/openbsd2/md.h 1 Apr 1998 04:18:48 -0000 1.2
+++ config/i386/openbsd2/md.h 23 Aug 2003 08:00:39 -0000
@@ -21,6 +21,12 @@
#undef SP_OFFSET
#define SP_OFFSET 2
+/* Define signal context macros for xprofiling */
+#define SIGNAL_ARGS(sig, sc) int sig, int __code, struct sigcontext *sc
+#define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext *scp
+#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
+#define SIGNAL_PC(scp) (scp)->sc_pc
+
#if defined(TRANSLATOR)
#include "jit-md.h"
#endif
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
jthread.c:420: `sc' undeclared
Current Kaffe CVS (a couple hours ago), OpenBSD 3.3 i386.
Configured with:
LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure
--enable-debug
Says:
gcc -DTRANSLATOR -DJIT3 -DKVER=\"1.1.1\" -I. -I. -I../../../../config
-I../../../../include/kaffe -I. -I. -I../.. -I./../.. -I../../../../config
-I../../../../config -I../../../../include -I../../../../include
-I../../../../kaffe/xprof -I../../../../include -DKVER=\"1.1.1\"
-I/usr/local/src/kaffe/./kaffe/kaffevm
-I/usr/local/src/kaffe/./kaffe/kaffevm/jit3
-I/usr/local/src/kaffe/./kaffe/kaffevm/systems/unix-jthreads
-I../../../../config -I../../../../include -I/usr/local/include -DKAFFE_VMDEBUG
-g -O2 -Wall -Wstrict-prototypes -c jthread.c -Wp,-MD,.deps/jthread.TPlo -fPIC
-DPIC -o .libs/jthread.o
jthread.c: In function `interrupt':
jthread.c:420: `sc' undeclared (first use in this function)
jthread.c:420: (Each undeclared identifier is reported only once
jthread.c:420: for each function it appears in.)
gmake[4]: *** [jthread.lo] Error 1
gmake[4]: Leaving directory
`/usr/local/src/kaffe/kaffe/kaffevm/systems/unix-jthreads'
CVS/Entries says:
/jthread.c/1.98/Fri Aug 22 22:11:55 2003//
--
Greg Wooledge | "Truth belongs to everybody."
greg@xxxxxxxxxxxx | - The Red Hot Chili Peppers
http://wooledge.org/~greg/ |
pgpDrLdoOrWpd.pgp
Description: PGP signature
Next Message by Date:
click to view message preview
Re: jthread.c:420: `sc' undeclared
Guilhem Lavaux (guilhem@xxxxxxxxx) wrote:
> Could you try the attached patch file ? This problem is already known
> and we need to rewrite
> this part of profiling. However for the moment it is not done. :(
Yes, it compiles with this.
> Index: config/i386/openbsd2/md.h
> ===================================================================
> RCS file: /cvs/kaffe/kaffe/config/i386/openbsd2/md.h,v
> retrieving revision 1.2
> diff -u -r1.2 md.h
> --- config/i386/openbsd2/md.h 1 Apr 1998 04:18:48 -0000 1.2
> +++ config/i386/openbsd2/md.h 23 Aug 2003 08:00:39 -0000
> @@ -21,6 +21,12 @@
> #undef SP_OFFSET
> #define SP_OFFSET 2
>
> +/* Define signal context macros for xprofiling */
> +#define SIGNAL_ARGS(sig, sc) int sig, int __code, struct sigcontext *sc
> +#define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext *scp
> +#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
> +#define SIGNAL_PC(scp) (scp)->sc_pc
> +
> #if defined(TRANSLATOR)
> #include "jit-md.h"
> #endif
--
Greg Wooledge | "Truth belongs to everybody."
greg@xxxxxxxxxxxx | - The Red Hot Chili Peppers
http://wooledge.org/~greg/ |
pgpO3eaLlAhdg.pgp
Description: PGP signature
Previous Message by Thread:
click to view message preview
jthread.c:420: `sc' undeclared
Current Kaffe CVS (a couple hours ago), OpenBSD 3.3 i386.
Configured with:
LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure
--enable-debug
Says:
gcc -DTRANSLATOR -DJIT3 -DKVER=\"1.1.1\" -I. -I. -I../../../../config
-I../../../../include/kaffe -I. -I. -I../.. -I./../.. -I../../../../config
-I../../../../config -I../../../../include -I../../../../include
-I../../../../kaffe/xprof -I../../../../include -DKVER=\"1.1.1\"
-I/usr/local/src/kaffe/./kaffe/kaffevm
-I/usr/local/src/kaffe/./kaffe/kaffevm/jit3
-I/usr/local/src/kaffe/./kaffe/kaffevm/systems/unix-jthreads
-I../../../../config -I../../../../include -I/usr/local/include -DKAFFE_VMDEBUG
-g -O2 -Wall -Wstrict-prototypes -c jthread.c -Wp,-MD,.deps/jthread.TPlo -fPIC
-DPIC -o .libs/jthread.o
jthread.c: In function `interrupt':
jthread.c:420: `sc' undeclared (first use in this function)
jthread.c:420: (Each undeclared identifier is reported only once
jthread.c:420: for each function it appears in.)
gmake[4]: *** [jthread.lo] Error 1
gmake[4]: Leaving directory
`/usr/local/src/kaffe/kaffe/kaffevm/systems/unix-jthreads'
CVS/Entries says:
/jthread.c/1.98/Fri Aug 22 22:11:55 2003//
--
Greg Wooledge | "Truth belongs to everybody."
greg@xxxxxxxxxxxx | - The Red Hot Chili Peppers
http://wooledge.org/~greg/ |
pgpDrLdoOrWpd.pgp
Description: PGP signature
Next Message by Thread:
click to view message preview
Re: jthread.c:420: `sc' undeclared
Guilhem Lavaux (guilhem@xxxxxxxxx) wrote:
> Could you try the attached patch file ? This problem is already known
> and we need to rewrite
> this part of profiling. However for the moment it is not done. :(
Yes, it compiles with this.
> Index: config/i386/openbsd2/md.h
> ===================================================================
> RCS file: /cvs/kaffe/kaffe/config/i386/openbsd2/md.h,v
> retrieving revision 1.2
> diff -u -r1.2 md.h
> --- config/i386/openbsd2/md.h 1 Apr 1998 04:18:48 -0000 1.2
> +++ config/i386/openbsd2/md.h 23 Aug 2003 08:00:39 -0000
> @@ -21,6 +21,12 @@
> #undef SP_OFFSET
> #define SP_OFFSET 2
>
> +/* Define signal context macros for xprofiling */
> +#define SIGNAL_ARGS(sig, sc) int sig, int __code, struct sigcontext *sc
> +#define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext *scp
> +#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
> +#define SIGNAL_PC(scp) (scp)->sc_pc
> +
> #if defined(TRANSLATOR)
> #include "jit-md.h"
> #endif
--
Greg Wooledge | "Truth belongs to everybody."
greg@xxxxxxxxxxxx | - The Red Hot Chili Peppers
http://wooledge.org/~greg/ |
pgpO3eaLlAhdg.pgp
Description: PGP signature