Re: bootJVM linux build...

2006-05-25 Thread Tim Ellison
Hi Sanket, welcome.

Good to hear you are trying to build the boot VM.  The expert on that
code is Dan Lydick -- hopefully he will see your note and be able to help.

If you don't hear from him soon I'll try my best g

Regards,
Tim

Sanket Sharma wrote:
 Hey everyone..
 
 I was trying to build the jvm on Linux. I´m using SUSE Linux and GCC 4. 
 I am facing a little problem with macro expansion and some help would be 
 greatly appreciated.
 
 While trying to build the jvm, I get the following error: 
 
 class.c: In function ‘class_load_resolve_clinit’:
 class.c:1631: error: invalid lvalue in assignment
 
 
 which is a Macro 
 
  PUSH_FRAME(thridx, pca-max_locals); 
 
 When I do a gcc - E and save output to file, I can see the macro being 
 expanded to:
 
 (pjvm-thread[thridx].sp) += ((pca-max_locals));
 (pjvm-thread[thridx].sp) += (1);
  pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint) 
 (((pca-max_locals)));
 (pjvm-thread[thridx].sp) += (1);
  (rvoid *) *((pjvm-thread[thridx].stack[((pjvm-thread[thridx].sp) - (1 
 +1))])) = GC_STACK_NEW(thridx, (pca-max_locals));
 (pjvm-thread[thridx].sp) += (1); 
 pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint) 
 ((pjvm-thread[thridx].fp));
 pjvm-thread[thridx].fp = (((pjvm-thread[thridx].sp) - ((1 + 1 + 1;
 (pjvm-thread[thridx].sp) += (1);
  pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint) 
 ((pjvm-thread[thridx].pc.offset));
  (pjvm-thread[thridx].sp) += (1);
  pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint) 
 ((pjvm-thread[thridx].pc.excpatridx));
  (pjvm-thread[thridx].sp) += (1);
  pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint) 
 ((pjvm-thread[thridx].pc.codeatridx));
  (pjvm-thread[thridx].sp) += (1);
  pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint) 
 ((pjvm-thread[thridx].pc.mthidx));
  (pjvm-thread[thridx].sp) += (1); 
 pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint) 
 ((pjvm-thread[thridx].pc.clsidx));;;
 
 I tried putting brackets in various macros but nothing helped.
 
 Any help would be greatly appreciated.
 
 Best Regards,
 Sanket Sharma
 
 
 This email may contain confidential or privileged information for the 
 intended recipient(s) and the views expressed in the same are not 
 necessarily the views of Zensar Technologies Ltd. If you are not the intended 
 recipient or have received this e-mail by error, its use is strictly 
 prohibited, please delete the e-mail and notify the sender. Zensar 
 Technologies Ltd. does not accept any liability for virus infected mails.
 
 
 -
 Terms of use : http://incubator.apache.org/harmony/mailing.html
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-- 

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: bootJVM linux build...

2006-05-25 Thread bootjvm

Tim,

Thanks for you offer of assistance to Sanket.
I've given him some suggestions on how do
diagnose the issue inside of this macro and
we'll see what he comes up with.  I think that
the Harmony crowd will be an inspiration
and support to him in this Summer of Code
as he is getting his career started.

Best regards,


Dan Lydick

 [Original Message]
 From: Tim Ellison [EMAIL PROTECTED]
 To: harmony-dev@incubator.apache.org
 Date: 5/25/06 5:24:17 AM
 Subject: Re: bootJVM linux build...

 Hi Sanket, welcome.

 Good to hear you are trying to build the boot VM.  The expert on that
 code is Dan Lydick -- hopefully he will see your note and be able to help.

 If you don't hear from him soon I'll try my best g

 Regards,
 Tim

 Sanket Sharma wrote:
  Hey everyone..
  
  I was trying to build the jvm on Linux. I´m using SUSE Linux and GCC
4. 
  I am facing a little problem with macro expansion and some help would
be greatly appreciated.
  
  While trying to build the jvm, I get the following error: 
  
  class.c: In function ‘class_load_resolve_clinit’:
  class.c:1631: error: invalid lvalue in assignment
  
  
  which is a Macro 
  
   PUSH_FRAME(thridx, pca-max_locals); 
  
  When I do a gcc - E and save output to file, I can see the macro being
expanded to:
  
  (pjvm-thread[thridx].sp) += ((pca-max_locals));
  (pjvm-thread[thridx].sp) += (1);
   pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)
(((pca-max_locals)));
  (pjvm-thread[thridx].sp) += (1);
   (rvoid *) *((pjvm-thread[thridx].stack[((pjvm-thread[thridx].sp) -
(1 +1))])) = GC_STACK_NEW(thridx, (pca-max_locals));
  (pjvm-thread[thridx].sp) += (1); 
  pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)
((pjvm-thread[thridx].fp));
  pjvm-thread[thridx].fp = (((pjvm-thread[thridx].sp) - ((1 + 1 + 1;
  (pjvm-thread[thridx].sp) += (1);
   pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)
((pjvm-thread[thridx].pc.offset));
   (pjvm-thread[thridx].sp) += (1);
   pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)
((pjvm-thread[thridx].pc.excpatridx));
   (pjvm-thread[thridx].sp) += (1);
   pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)
((pjvm-thread[thridx].pc.codeatridx));
   (pjvm-thread[thridx].sp) += (1);
   pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)
((pjvm-thread[thridx].pc.mthidx));
   (pjvm-thread[thridx].sp) += (1); 
  pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)
((pjvm-thread[thridx].pc.clsidx));;;
  
  I tried putting brackets in various macros but nothing helped.
  
  Any help would be greatly appreciated.
  
  Best Regards,
  Sanket Sharma
  
  
  This email may contain confidential or privileged information for the 
  intended recipient(s) and the views expressed in the same are not 
  necessarily the views of Zensar Technologies Ltd. If you are not the
intended 
  recipient or have received this e-mail by error, its use is strictly 
  prohibited, please delete the e-mail and notify the sender. Zensar 
  Technologies Ltd. does not accept any liability for virus infected
mails.
  
  
  -
  Terms of use : http://incubator.apache.org/harmony/mailing.html
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  

 -- 

 Tim Ellison ([EMAIL PROTECTED])
 IBM Java technology centre, UK.

 -
 Terms of use : http://incubator.apache.org/harmony/mailing.html
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: bootJVM linux build...

2006-05-25 Thread Geir Magnusson Jr

Where did you give him the suggestions? Here?

bootjvm wrote:

Tim,

Thanks for you offer of assistance to Sanket.
I've given him some suggestions on how do
diagnose the issue inside of this macro and
we'll see what he comes up with.  I think that
the Harmony crowd will be an inspiration
and support to him in this Summer of Code
as he is getting his career started.

Best regards,


Dan Lydick


[Original Message]
From: Tim Ellison [EMAIL PROTECTED]
To: harmony-dev@incubator.apache.org
Date: 5/25/06 5:24:17 AM
Subject: Re: bootJVM linux build...

Hi Sanket, welcome.

Good to hear you are trying to build the boot VM.  The expert on that
code is Dan Lydick -- hopefully he will see your note and be able to help.

If you don't hear from him soon I'll try my best g

Regards,
Tim

Sanket Sharma wrote:

Hey everyone..

I was trying to build the jvm on Linux. I´m using SUSE Linux and GCC
4. 

I am facing a little problem with macro expansion and some help would

be greatly appreciated.
While trying to build the jvm, I get the following error: 


class.c: In function ‘class_load_resolve_clinit’:
class.c:1631: error: invalid lvalue in assignment


which is a Macro 

 PUSH_FRAME(thridx, pca-max_locals); 


When I do a gcc - E and save output to file, I can see the macro being

expanded to:

(pjvm-thread[thridx].sp) += ((pca-max_locals));
(pjvm-thread[thridx].sp) += (1);
 pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)

(((pca-max_locals)));

(pjvm-thread[thridx].sp) += (1);
 (rvoid *) *((pjvm-thread[thridx].stack[((pjvm-thread[thridx].sp) -

(1 +1))])) = GC_STACK_NEW(thridx, (pca-max_locals));
(pjvm-thread[thridx].sp) += (1); 
pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)

((pjvm-thread[thridx].fp));

pjvm-thread[thridx].fp = (((pjvm-thread[thridx].sp) - ((1 + 1 + 1;
(pjvm-thread[thridx].sp) += (1);
 pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)

((pjvm-thread[thridx].pc.offset));

 (pjvm-thread[thridx].sp) += (1);
 pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)

((pjvm-thread[thridx].pc.excpatridx));

 (pjvm-thread[thridx].sp) += (1);
 pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)

((pjvm-thread[thridx].pc.codeatridx));

 (pjvm-thread[thridx].sp) += (1);
 pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)

((pjvm-thread[thridx].pc.mthidx));
 (pjvm-thread[thridx].sp) += (1); 
pjvm-thread[thridx].stack[pjvm-thread[thridx].sp - 0] = (jint)

((pjvm-thread[thridx].pc.clsidx));;;

I tried putting brackets in various macros but nothing helped.

Any help would be greatly appreciated.

Best Regards,
Sanket Sharma


This email may contain confidential or privileged information for the 
intended recipient(s) and the views expressed in the same are not 
necessarily the views of Zensar Technologies Ltd. If you are not the
intended 
recipient or have received this e-mail by error, its use is strictly 
prohibited, please delete the e-mail and notify the sender. Zensar 
Technologies Ltd. does not accept any liability for virus infected

mails.


-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--

Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.

-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]