Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 2665 invoked from network); 24 May 2006 21:11:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 May 2006 21:11:14 -0000 Received: (qmail 17023 invoked by uid 500); 24 May 2006 21:11:10 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 16978 invoked by uid 500); 24 May 2006 21:11:10 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 16920 invoked by uid 99); 24 May 2006 21:11:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 14:11:10 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [202.54.40.208] (HELO mailrelay.zensar.com) (202.54.40.208) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 14:11:07 -0700 Received: from BRIDGEHEAD.ind.zensar.com ([10.42.2.95]) by mailrelay.zensar.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 25 May 2006 02:48:18 +0530 Received: from zenmailfe.ind.zensar.com ([10.42.2.88]) by BRIDGEHEAD.ind.zensar.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 25 May 2006 02:46:29 +0530 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 Received: from sanky ([10.42.100.37]) by zenmailfe.ind.zensar.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 25 May 2006 02:46:29 +0530 From: Sanket Sharma Organization: ZenSar Technologies To: harmony-dev@incubator.apache.org Subject: bootJVM linux build... Date: Thu, 25 May 2006 02:40:39 +0530 User-Agent: KMail/1.8.2 CC: bootjvm@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200605250240.39741.sanket.sharma@zensar.com> X-OriginalArrivalTime: 24 May 2006 21:16:29.0432 (UTC) FILETIME=[52D75F80:01C67F77] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hey everyone.. I was trying to build the jvm on Linux. I=C2=B4m using SUSE Linux and = GCC 4.=20 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:=20 class.c: In function =E2=80=98class_load_resolve_clinit=E2=80=99: class.c:1631: error: invalid lvalue in assignment which is a Macro=20 PUSH_FRAME(thridx, pca->max_locals);=20 When I do a gcc - E and save output to file, I can see the macro being = expanded to: (pjvm->thread[thridx].sp) +=3D ((pca->max_locals)); (pjvm->thread[thridx].sp) +=3D (1); pjvm->thread[thridx].stack[pjvm->thread[thridx].sp - 0] =3D (jint) = (((pca->max_locals))); (pjvm->thread[thridx].sp) +=3D (1); (rvoid *) *(&(pjvm->thread[thridx].stack[((pjvm->thread[thridx].sp) - = (1 +1))])) =3D GC_STACK_NEW(thridx, (pca->max_locals)); (pjvm->thread[thridx].sp) +=3D (1);=20 pjvm->thread[thridx].stack[pjvm->thread[thridx].sp - 0] =3D (jint) = ((pjvm->thread[thridx].fp)); pjvm->thread[thridx].fp =3D (((pjvm->thread[thridx].sp) - ((1 + 1 + = 1)))); (pjvm->thread[thridx].sp) +=3D (1); pjvm->thread[thridx].stack[pjvm->thread[thridx].sp - 0] =3D (jint) = ((pjvm->thread[thridx].pc.offset)); (pjvm->thread[thridx].sp) +=3D (1); pjvm->thread[thridx].stack[pjvm->thread[thridx].sp - 0] =3D (jint) = ((pjvm->thread[thridx].pc.excpatridx)); (pjvm->thread[thridx].sp) +=3D (1); pjvm->thread[thridx].stack[pjvm->thread[thridx].sp - 0] =3D (jint) = ((pjvm->thread[thridx].pc.codeatridx)); (pjvm->thread[thridx].sp) +=3D (1); pjvm->thread[thridx].stack[pjvm->thread[thridx].sp - 0] =3D (jint) = ((pjvm->thread[thridx].pc.mthidx)); (pjvm->thread[thridx].sp) +=3D (1);=20 pjvm->thread[thridx].stack[pjvm->thread[thridx].sp - 0] =3D (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=20 intended recipient(s) and the views expressed in the same are not=20 necessarily the views of Zensar Technologies Ltd. If you are not the = intended=20 recipient or have received this e-mail by error, its use is strictly=20 prohibited, please delete the e-mail and notify the sender. Zensar=20 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: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org