Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 94031 invoked from network); 20 Feb 2006 16:12:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Feb 2006 16:12:06 -0000 Received: (qmail 62685 invoked by uid 500); 20 Feb 2006 16:12:02 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 62631 invoked by uid 500); 20 Feb 2006 16:12:01 -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 62620 invoked by uid 99); 20 Feb 2006 16:12:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2006 08:12:01 -0800 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 [212.39.12.10] (HELO deck1210.hostdeck.com) (212.39.12.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2006 08:11:59 -0800 Received: (qmail 18108 invoked from network); 20 Feb 2006 17:11:34 +0100 Received: from host70-41.pool82106.interbusiness.it (HELO fatti.com) (82.106.41.70) by deck1210.hostdeck.com with SMTP; 20 Feb 2006 17:11:34 +0100 Message-ID: <43F9EA2D.9040705@fatti.com> Date: Mon, 20 Feb 2006 17:11:25 +0100 From: Enrico Migliore Reply-To: enrico.migliore@fatti.com Organization: - User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [jchevm] Cygwin issues References: <1140102032.9742.43.camel@localhost.localdomain> <1140104812.9742.46.camel@localhost.localdomain> <1140118870.4859.34.camel@localhost.localdomain> <43F4EE7B.5020806@object-refinery.com> <43F60951.6000304@fatti.com> <43F7219B.2060004@academ.org> <43F74992.3050600@fatti.com> <43F765F7.7030706@academ.org> <43F80CFC.4080703@academ.org> <43F842F0.1040800@fatti.com> <43F8D326.6080709@dellroad.org> <43F97FAD.1060501@fatti.com> <43F9DD3C.4010501@academ.org> In-Reply-To: <43F9DD3C.4010501@academ.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N snowdosker wrote: > Hello, Enrico > > 2) in order to proceed, let's "align" our development environment in > terms > >> of source code modifications. In fact, to build jchevm, just like >> you, I had >> to add some declarations in some header files, and modify the pread() >> call into a read(). My proposal is the following: >> let's install the new versions of Cygwin, Classpath, and jchevm, >> build them from scratch, produce a written document with all the steps >> and modifications, and post it this mailing list. >> Afterwards, we will be able to write and debug some test cases. >> >> what do you think? >> > > I think that I already did this since started.. Just recorded all (or > I hope all) I did > Below is copy of my records.... > > > Install Cygwin ( > http://developer.classpath.org/mediation/ClasspathOnCygwin ) > + gcc-core > + gcc-g++ > + gcc-java > + make > + zip > + GTK > + pkgconfig > + autocofig > + automake > + libtool > (not sure that I recorded all optional packages I installed) > > > Download jikes from > http://prdownloads.sourceforge.net/jikes/jikes-1.22.tar.bz2?download > > Apply this patch > http://sourceforge.net/tracker/index.php?func=detail&aid=1202863&group_id=128803&atid=712760 > > > > build jikes ( cygwin version ) > ----------------- > $ tar -xjf jikes-1.22.tar.bz2 > $ cd jikes-1.22 > $ ./configure > $ make && make install > > > > Build Classpth-0.20 > ----------------- > $ ./configure --with-jikes --enable-gtk-peer --enable-jni > $ make > $install > > > Build JCHEVM > ----------------- > $ ./configure --with-classpath=/usr/local/classpath > Add cache clean to autogen.sh before each call automake or autoconfig > -- > rm -rf autom4te*.cache > echo "running automake" > .... > rm -rf autom4te*.cache > echo "running autoconf" > --- > > > libjc/definitions.h ADD > -------------------- > #if defined (__CYGWIN__) > #define PTHREAD_STACK_MIN 1024 > #endif > > > libjc/properties.c ADD > -------------------- > #if defined(__CYGWIN__) > if (_jc_set_property(env, > "user.timezone", _tzname[0]) != JNI_OK) > return JNI_ERR; > #else > > if (_jc_set_property(env, > "user.timezone", localtime(&now)->tm_zone) != JNI_OK) > return JNI_ERR; > #endif > > > libjc/os_functions.c ADD > -------------------- > /************************************************************************ > * CYGWIN * > ************************************************************************/ > > #elif defined(__CYGWIN__) > > #include > > int > _jc_num_cpus(_jc_env *env) > { > > return (int)sysconf(_SC_NPROCESSORS_ONLN); > } > > > > in libjc/zip.c replace > --------------------------------- > pread(3) with lseek,read > > > libjc/arch/arch_definitions.h > ----------------------------------- > Remove: > #define _JC_LIBRARY_FMT "lib%s.so" > > Add: > #define _JC_LIBRARY_FMT "lib%s.dll.a" > > > > libjc/arch/i386/i386_libjc.h ( not sure for this is correct! ) > ------------------- > #elif defined(__CYGWIN__) > extern inline const void * > _jc_jmpbuf_sp(const sigjmp_buf buf) > { > return (const void *)buf[7]; > } > > > > > libjc\native\java_lang_VMThread.c ADD > -------------------------------------------- > /* Cygwin pthread_create() with supplied attributes is completely > broken! */ > #ifdef __CYGWIN__ > #define _JC_NO_THREAD_ATTRIBUTES 1 > #endif > > > > libjc\jc_invoke.c > --------------------------------------------- > in "static const struct poptOption jc_popt_options[] = {" remove > POPT_AUTOHELP > > > in libjc\arch\arch_definitions.h > redefine dll name format for cygwin > -------------------------------- > #if defined(__CYGWIN__) > #define _JC_LIBRARY_FMT "cyg%s-0.dll" > #elif > #define _JC_LIBRARY_FMT "lib%s.dll.a" > #endif Hi Ivan, ok, in order to double check these guidelines, I'll do the whole build from scratch and see if they lead me to the point where you are now. I'll have the time to do it tomorrow or wednsday, though. In the mean time, could you try to: apply the latest Archie's patch, enable the assertions, and see where jchevm exits? Enrico