From danieltes at gmail.com Wed Feb 2 09:35:39 2011 From: danieltes at gmail.com (Daniel Testa) Date: Wed, 2 Feb 2011 14:35:39 -0300 Subject: porting OpenJDK to a different OS not having java In-Reply-To: References: Message-ID: Hi all, I'm trying to port OpenJDK 6 to Minix3 but when run "gmake all" it says that "ant", along with other software, is needed. Ant needs java to run but I don't have java on Minix3 thus is why I'm trying to port OpenJDK. Is there any other way to build OpenJDK without having java preinstalled? at least a minimum set to be able to run "ant" and build the package in the default way. Any thoughts? advice on how to build and/or port? Thanks. Regards. Daniel. From gnu_andrew at member.fsf.org Wed Feb 2 09:41:30 2011 From: gnu_andrew at member.fsf.org (Dr Andrew John Hughes) Date: Wed, 2 Feb 2011 17:41:30 +0000 Subject: porting OpenJDK to a different OS not having java In-Reply-To: References: Message-ID: On 2 February 2011 17:35, Daniel Testa wrote: > Hi all, I'm trying to port OpenJDK 6 to Minix3 but when run "gmake > all" it says that "ant", along with other software, is needed. Ant > needs java to run but I don't have java on Minix3 thus is why I'm > trying to port OpenJDK. > > Is there any other way to build OpenJDK without having java > preinstalled? at least a minimum set to be able to run "ant" and build > the package in the default way. > > Any thoughts? advice on how to build and/or port? > > Thanks. > > Regards. > Daniel. > You probably want to look at IcedTea: http://icedtea.classpath.org IcedTea has support to bootstrap with gcj which is part of gcc (built with --enable-languages=java) and should allow you to get around the whole 'I need Java' issue with OpenJDK. gcj can be built without an existing JDK and can run ant in order to build OpenJDK. -- Andrew :-) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: F5862A37 (https://keys.indymedia.org/) Fingerprint = EA30 D855 D50F 90CD F54D ?0698 0713 C3ED F586 2A37 From danieltes at gmail.com Wed Feb 2 09:44:48 2011 From: danieltes at gmail.com (Daniel Testa) Date: Wed, 2 Feb 2011 14:44:48 -0300 Subject: porting OpenJDK to a different OS not having java In-Reply-To: References: Message-ID: thanks! I'll try that and let you know. Thanks again for you answer. On Wed, Feb 2, 2011 at 2:41 PM, Dr Andrew John Hughes wrote: > On 2 February 2011 17:35, Daniel Testa wrote: >> Hi all, I'm trying to port OpenJDK 6 to Minix3 but when run "gmake >> all" it says that "ant", along with other software, is needed. Ant >> needs java to run but I don't have java on Minix3 thus is why I'm >> trying to port OpenJDK. >> >> Is there any other way to build OpenJDK without having java >> preinstalled? at least a minimum set to be able to run "ant" and build >> the package in the default way. >> >> Any thoughts? advice on how to build and/or port? >> >> Thanks. >> >> Regards. >> Daniel. >> > > You probably want to look at IcedTea: http://icedtea.classpath.org > > IcedTea has support to bootstrap with gcj which is part of gcc (built > with --enable-languages=java) and should allow you to get around the > whole 'I need Java' issue with OpenJDK. ?gcj can be built without an > existing JDK and can run ant in order to build OpenJDK. > -- > Andrew :-) > > Free Java Software Engineer > Red Hat, Inc. (http://www.redhat.com) > > Support Free Java! > Contribute to GNU Classpath and the OpenJDK > http://www.gnu.org/software/classpath > http://openjdk.java.net > > PGP Key: F5862A37 (https://keys.indymedia.org/) > Fingerprint = EA30 D855 D50F 90CD F54D ?0698 0713 C3ED F586 2A37 > From kelly.ohair at oracle.com Wed Feb 2 09:54:08 2011 From: kelly.ohair at oracle.com (Kelly O'Hair) Date: Wed, 2 Feb 2011 09:54:08 -0800 Subject: porting OpenJDK to a different OS not having java In-Reply-To: References: Message-ID: <4D2DDD4F-8D9B-4246-9213-2579C85E589F@oracle.com> Basically, you need a JDK (or a javac, javah and jar) to build the JDK. Creation of a JDK on an OS/architecture that has never had one would involve some kind of cross compilation or cross build solution to get bootstrapped onto the system. Similar to how the gcc compiler was initially created for a new OS/ architecture. -kto On Feb 2, 2011, at 9:35 AM, Daniel Testa wrote: > Hi all, I'm trying to port OpenJDK 6 to Minix3 but when run "gmake > all" it says that "ant", along with other software, is needed. Ant > needs java to run but I don't have java on Minix3 thus is why I'm > trying to port OpenJDK. > > Is there any other way to build OpenJDK without having java > preinstalled? at least a minimum set to be able to run "ant" and build > the package in the default way. > > Any thoughts? advice on how to build and/or port? > > Thanks. > > Regards. > Daniel. From gnu_andrew at member.fsf.org Wed Feb 2 10:03:27 2011 From: gnu_andrew at member.fsf.org (Dr Andrew John Hughes) Date: Wed, 2 Feb 2011 18:03:27 +0000 Subject: porting OpenJDK to a different OS not having java In-Reply-To: References: Message-ID: On 2 February 2011 17:44, Daniel Testa wrote: > thanks! I'll try that and let you know. Thanks again for you answer. > Please feel free to ask questions if you get stuck. distro-pkg-dev at openjdk.java.net is the main hang out for the IcedTea hackers. We had a similar issue with having to bootstrap OpenJDK when it was first released (having no Free JDK other than the GNU Classpath-based projects such as gcj) so this is familiar territory :-) > On Wed, Feb 2, 2011 at 2:41 PM, Dr Andrew John Hughes > wrote: >> On 2 February 2011 17:35, Daniel Testa wrote: >>> Hi all, I'm trying to port OpenJDK 6 to Minix3 but when run "gmake >>> all" it says that "ant", along with other software, is needed. Ant >>> needs java to run but I don't have java on Minix3 thus is why I'm >>> trying to port OpenJDK. >>> >>> Is there any other way to build OpenJDK without having java >>> preinstalled? at least a minimum set to be able to run "ant" and build >>> the package in the default way. >>> >>> Any thoughts? advice on how to build and/or port? >>> >>> Thanks. >>> >>> Regards. >>> Daniel. >>> >> >> You probably want to look at IcedTea: http://icedtea.classpath.org >> >> IcedTea has support to bootstrap with gcj which is part of gcc (built >> with --enable-languages=java) and should allow you to get around the >> whole 'I need Java' issue with OpenJDK. ?gcj can be built without an >> existing JDK and can run ant in order to build OpenJDK. >> -- >> Andrew :-) >> >> Free Java Software Engineer >> Red Hat, Inc. (http://www.redhat.com) >> >> Support Free Java! >> Contribute to GNU Classpath and the OpenJDK >> http://www.gnu.org/software/classpath >> http://openjdk.java.net >> >> PGP Key: F5862A37 (https://keys.indymedia.org/) >> Fingerprint = EA30 D855 D50F 90CD F54D ?0698 0713 C3ED F586 2A37 >> > -- Andrew :-) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: F5862A37 (https://keys.indymedia.org/) Fingerprint = EA30 D855 D50F 90CD F54D ?0698 0713 C3ED F586 2A37 From aph at redhat.com Wed Feb 2 10:13:48 2011 From: aph at redhat.com (Andrew Haley) Date: Wed, 02 Feb 2011 18:13:48 +0000 Subject: porting OpenJDK to a different OS not having java In-Reply-To: References: Message-ID: <4D499EDC.2090205@redhat.com> On 02/02/2011 05:36 PM, Daniel Testa wrote: > I'm sorry. Wrong list. I think I should be writing to porters-dev. > > > On Wed, Feb 2, 2011 at 2:31 PM, Daniel Testa wrote: >> Hi all, I'm trying to port OpenJDK 6 to Minix3 but when run "gmake >> all" it says that "ant", along with other software, is needed. Ant >> needs java to run but I don't have java on Minix3 thus is why I'm >> trying to port OpenJDK. >> >> Is there any other way to build OpenJDK without having java >> preinstalled? at least a minimum set to be able to run "ant" and build >> the package in the default way. >> >> Any thoughts? advice on how to build and/or port? We in linuxland use gcj, but AFAICR Minix doesn't have that either. Andrew. From landonf at bikemonkey.org Wed Feb 2 10:28:54 2011 From: landonf at bikemonkey.org (Landon J Fuller) Date: Wed, 2 Feb 2011 13:28:54 -0500 Subject: porting OpenJDK to a different OS not having java In-Reply-To: References: Message-ID: <508579DE-8B00-481E-AC9D-34C94BDE92A6@bikemonkey.org> On Feb 2, 2011, at 12:35 PM, Daniel Testa wrote: > Hi all, I'm trying to port OpenJDK 6 to Minix3 but when run "gmake > all" it says that "ant", along with other software, is needed. Ant > needs java to run but I don't have java on Minix3 thus is why I'm > trying to port OpenJDK. > > Is there any other way to build OpenJDK without having java > preinstalled? at least a minimum set to be able to run "ant" and build > the package in the default way. > > Any thoughts? advice on how to build and/or port? Havard Eidnes came up with a handy approach that uses NFS+SSH with a supported platform to bootstrap a new platform: http://mail.openjdk.java.net/pipermail/porters-dev/2008-February/000080.html I've used Havard's scripts to bootstrap FreeBSD/sparc and Mac/PPC. -landonf From danieltes at gmail.com Wed Feb 2 10:31:45 2011 From: danieltes at gmail.com (Daniel Testa) Date: Wed, 2 Feb 2011 15:31:45 -0300 Subject: porting OpenJDK to a different OS not having java In-Reply-To: <0F4298B0-2900-4C08-B8F4-ADEBA8752E03@plausible.coop> References: <0F4298B0-2900-4C08-B8F4-ADEBA8752E03@plausible.coop> Message-ID: Ok, by the moment I'm trying to build gcj and IcedTea. I'll let you know how it goes. Thanks to all of you for your help. On Wed, Feb 2, 2011 at 3:26 PM, Landon Fuller wrote: > > On Feb 2, 2011, at 12:35 PM, Daniel Testa wrote: > >> Hi all, I'm trying to port OpenJDK 6 to Minix3 but when run "gmake >> all" it says that "ant", along with other software, is needed. Ant >> needs java to run but I don't have java on Minix3 thus is why I'm >> trying to port OpenJDK. >> >> Is there any other way to build OpenJDK without having java >> preinstalled? at least a minimum set to be able to run "ant" and build >> the package in the default way. >> >> Any thoughts? advice on how to build and/or port? > > Havard Eidnes came up with a handy approach that uses NFS+SSH with a supported platform to bootstrap an new platform: > ? ? ? ?http://mail.openjdk.java.net/pipermail/porters-dev/2008-February/000080.html > > I've used Havard's scripts to bootstrap FreeBSD/sparc and Mac/PPC. > > -landonf > > From Richard.Barnes at stratus.com Thu Feb 3 11:59:40 2011 From: Richard.Barnes at stratus.com (Barnes, Richard) Date: Thu, 3 Feb 2011 14:59:40 -0500 Subject: Problems with large maxOccurs attribute in XML TCK tests Message-ID: <5AA430FFE4486C448003201AC83BC85EC62F72@EXHQ.corp.stratus.com> We have recently successfully ported OpenJDK6 b12 to our proprietary OpenVOS operating systems, and are now running the TCK tests against our implementation. When running tests such as xml_schema/msData/modelGroups/jaxb/mgG014.html#mgG014 in JCK-devtools-6b, we get the following error: [ERROR] Current configuration of the parser doesn't allow a maxOccurs attribute value to be set greater than the value 5,000. We have tried ways of getting around this, such as trying Andrew Haley's fix documented at http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2008-October/00370 3.html or another fix we found in a build of OpenJDK7, and we get the following warning before getting successful compilation of the schemas: [WARNING] Unable to check the correctness of the schema due to OutOfMemoryError. This typically happens when your schema contains constructs like maxOccurs="999". In the future compilation, add the -nv option to skip the correctness check for faster compilation. unknown location We have tried adding the "-nv" option, but when we do that, other tests that are expected to fail, suddenly pass, so we think that doing that would not be correct. We recognize that the above warning comes from the fact that SchemaConstraintChecker.java actually builds the nodes that represent the schema, and with a large maxOccurs attribute, this uses up tons of space. So far, we have found versions of Xerces after Version 2.9.1 that deal with this problem, but the changes to put this in to our current implementation are quite large. Has anybody else run into this problem and found a good solution? Thanks, Richard Barnes Senior Technical Consultant Stratus Technologies -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/porters-dev/attachments/20110203/8e0bafca/attachment.html From gmmajia at gmail.com Fri Feb 25 00:54:55 2011 From: gmmajia at gmail.com (majia gm) Date: Fri, 25 Feb 2011 16:54:55 +0800 Subject: Dose OpenJDK need gcc unwind support? Message-ID: Hi, everyone. I'd like to use zero. But the current gcc in our platform use setjmp/longjmp to implement c++ exception and has no support for one-by-one frame unwinding. And I want to know, whether zero need gcc unwind support or not? I know gcj need this to implement classloader inheritance. For example , Loader A load Class A, and Class A calls method in Class B. Then Class B need to be loaded by using the same class loader, Loader A. In order to know which class call the method in Class B, JVM in gcj need to unwind the stack to find out in which class the calling method is. Dose OpenJDK has the similar implementation on abi stack unwind? Thank you. From aph at redhat.com Fri Feb 25 01:22:54 2011 From: aph at redhat.com (Andrew Haley) Date: Fri, 25 Feb 2011 09:22:54 +0000 Subject: Dose OpenJDK need gcc unwind support? In-Reply-To: References: Message-ID: <4D6774EE.4040905@redhat.com> On 02/25/2011 08:54 AM, majia gm wrote: > I'd like to use zero. But the current gcc in our platform use > setjmp/longjmp to implement c++ exception and has no support for > one-by-one frame unwinding. And I want to know, whether zero need gcc > unwind support or not? > > I know gcj need this to implement classloader inheritance. For example > , Loader A load Class A, and Class A calls method in Class B. Then > Class B need to be loaded by using the same class loader, Loader A. > > In order to know which class call the method in Class B, JVM in gcj > need to unwind the stack to find out in which class the calling method > is. > > Dose OpenJDK has the similar implementation on abi stack unwind? No it doesn't, but it does need a fully-working C++ compiler. Andrew.