From mar.burtscher at gmail.com Mon Mar 5 06:08:59 2012 From: mar.burtscher at gmail.com (martin burtscher) Date: Mon, 5 Mar 2012 15:08:59 +0100 Subject: Port to VxWorks Message-ID: Hello, I try to port OpenJDK to the OS VxWorks. The Problem is, that i cant compile it on a VxWorks-Machine, so i have to cross-compile it from a Linux machine. What I've read so far is, that i have to use openembedded to successfully cross compile OpenJDK. All sources I've found, were dated 2008. Therefore, my question is: Do I still need openembedded, or is this issue fixed now, and can i cross-compile the OpenJDK (6 or 7) project out of the box (out of the box = mainly just replace the compiler)? Greetings, Marty -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/porters-dev/attachments/20120305/b993d399/attachment.html From neugens.limasoftware at gmail.com Mon Mar 5 06:41:53 2012 From: neugens.limasoftware at gmail.com (Mario Torre) Date: Mon, 5 Mar 2012 15:41:53 +0100 Subject: Port to VxWorks In-Reply-To: References: Message-ID: 2012/3/5 martin burtscher : > Hello, > > I try to port OpenJDK to the OS VxWorks. The Problem is, that i cant compile > it on a VxWorks-Machine, so i have to cross-compile it from a Linux machine. > What I've read so far is, that i have to use openembedded to successfully > cross compile OpenJDK. > > All sources I've found, were dated 2008. Therefore, my question is: > > Do I still need openembedded, or is this issue fixed now, and can i > cross-compile the OpenJDK (6 or 7) project out of the box (out of the box = > mainly just replace the compiler)? > > Greetings, > > Marty I'm not sure if it will be easily doable with OpenEmbedded, but you may give it a try. The native layer will need some patches too, as things don't work out of the box. What version of VxWorks do you use? Also (just curious) do you have a realtime VM already? Cheers, Mario -- pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA? FC7C 4086 63E3 80F2 40CF IcedRobot: www.icedrobot.org Proud GNU Classpath developer: http://www.classpath.org/ Read About us at: http://planet.classpath.org OpenJDK: http://openjdk.java.net/projects/caciocavallo/ Please, support open standards: http://endsoftpatents.org/ From dalibor.topic at oracle.com Mon Mar 5 08:57:02 2012 From: dalibor.topic at oracle.com (Dalibor Topic) Date: Mon, 05 Mar 2012 17:57:02 +0100 Subject: Port to VxWorks In-Reply-To: References: Message-ID: <4F54F05E.5070900@oracle.com> On 3/5/12 3:08 PM, martin burtscher wrote: > > Do I still need openembedded, or is this issue fixed now, and can i cross-compile the OpenJDK (6 or 7) project out of the box (out of the box = mainly just replace the compiler)? > To quote from the README-builds.html file in the top-level source directory: Cross-Compilation Support: CROSS_COMPILE_ARCH Set to the target architecture of a cross-compilation build. If set, this variable is used to signify that we are cross-compiling. The expectation is that ALT_COMPILER_PATH is set to point to the cross-compiler and that any cross-compilation specific flags are passed using EXTRA_CFLAGS. The ALT_OPENWIN_HOME variable should also be set to point to the graphical header files (e.g. X11) provided with the cross-compiler. When cross-compiling we skip execution of any demos etc that may be built, and also skip binary-file verification. EXTRA_CFLAGS Used to pass cross-compilation options to the cross-compiler. These are added to the CFLAGS and CXXFLAGS variables. USE_ONLY_BOOTDIR_TOOLS Used primarily for cross-compilation builds (and always set in that case) this variable indicates that tools from the boot JDK should be used during the build process, not the tools (javac, javah, jar) just built (which can't execute on the build host). HOST_CC The location of the C compiler to generate programs to run on the build host. Some parts of the build generate programs that are then compiled and executed to produce other parts of the build. Normally the primary C compiler is used to do this, but when cross-compiling that would be the cross-compiler and the resulting program could not be executed. On Linux this defaults to /usr/bin/gcc; on other platforms it must be set explicitly. cheers, dalibor topic -- Oracle Dalibor Topic | Principal Product Manager Phone: +494089091214 | Mobile: +491737185961 Oracle Java Platform Group ORACLE Deutschland B.V. & Co. KG | Nagelsweg 55 | 20097 Hamburg ORACLE Deutschland B.V. & Co. KG Hauptverwaltung: Riesstr. 25, D-80992 M?nchen Registergericht: Amtsgericht M?nchen, HRA 95603 Gesch?ftsf?hrer: J?rgen Kunz Komplement?rin: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697 Gesch?ftsf?hrer: Alexander van der Ven, Astrid Kepper, Val Maher Green Oracle Oracle is committed to developing practices and products that help protect the environment From mark at klomp.org Tue Mar 6 01:51:48 2012 From: mark at klomp.org (Mark Wielaard) Date: Tue, 06 Mar 2012 10:51:48 +0100 Subject: Port to VxWorks In-Reply-To: References: Message-ID: <1331027508.2928.21.camel@springer.wildebeest.org> On Mon, 2012-03-05 at 15:41 +0100, Mario Torre wrote: > 2012/3/5 martin burtscher : > > I try to port OpenJDK to the OS VxWorks. The Problem is, that i cant compile > > it on a VxWorks-Machine, so i have to cross-compile it from a Linux machine. > > What I've read so far is, that i have to use openembedded to successfully > > cross compile OpenJDK. > > > > All sources I've found, were dated 2008. Therefore, my question is: > > > > Do I still need openembedded, or is this issue fixed now, and can i > > cross-compile the OpenJDK (6 or 7) project out of the box (out of the box = > > mainly just replace the compiler)? > > I'm not sure if it will be easily doable with OpenEmbedded, but you > may give it a try. If you mean the IcedTea/OpenEmbedded Cross Compile FAQ, it is described here and has some pointers to tutorials (some of them are a bit old though): http://icedtea.classpath.org/wiki/CrossCompileFaq Cheers, Mark