Re: Cross Compiling for x86_64 on x86

2009-12-07 Thread Deepak Mathews
Hi, Thank you guys for your info. I will try to do what Christian said. Hope it works. Anyways if it does not work correctly then, it cannot be cross compiled I guess. Thanks a lot. Regards, Deepak On Mon, Dec 7, 2009 at 3:55 PM, Erik Trimble wrote: > Christian Thalinger wrote: > >> On Mon,

Re: Cross Compiling for x86_64 on x86

2009-12-07 Thread Erik Trimble
Christian Thalinger wrote: On Mon, 2009-12-07 at 10:39 +0100, Christian Thalinger wrote: There problem here is ADLC, which is part of the server compiler. Let me try to get it built for a 32-bit host... A really ugly (but possibly working) hack to build a full OpenJDK successfully wou

Re: Cross Compiling for x86_64 on x86

2009-12-07 Thread Christian Thalinger
On Mon, 2009-12-07 at 10:39 +0100, Christian Thalinger wrote: > There problem here is ADLC, which is part of the server compiler. Let > me try to get it built for a 32-bit host... A really ugly (but possibly working) hack to build a full OpenJDK successfully would be to copy a 32-bit adlc over th

Re: Cross Compiling for x86_64 on x86

2009-12-07 Thread Christian Thalinger
On Mon, 2009-12-07 at 14:55 +0530, Deepak Mathews wrote: > Can the building of OpenJDK made independant of the host machine. Or > does it run some programs which are dependant (like adlc) which will > make cross compilation impossible? > > > What about cross compiling for MIPS or PPC from the sam

Re: Cross Compiling for x86_64 on x86

2009-12-07 Thread David Holmes - Sun Microsystems
Deepak, To cross-compile you need a toolset that supports cross-compilation - including any tools used internally in the JDK. I'm not sure if the existing toolsets - eg adlc - qualify. At a minimum you need to ensure you explicitly set the following: os_family = linux arch = x86 arch_model =

Re: Cross Compiling for x86_64 on x86

2009-12-07 Thread Deepak Mathews
Vikram and Erik, Thank you so much for your info. I will give the details. $ uname -a Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006 i686 i686 i386 GNU/Linux $ cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 3) I am new to this and have some doubts. It mi

Re: Cross Compiling for x86_64 on x86

2009-12-07 Thread Vikram A
resending- adding the alias. On Mon, Dec 7, 2009 at 2:35 PM, Vikram A wrote: > hi Deepak, > > Incomplete information, please also specify the workspace you are trying to > build. Also, please share the errors generated. > Putting uname -a in the first mail itself helps alongwith appropriate cat

Re: Cross Compiling for x86_64 on x86

2009-12-06 Thread Deepak Mathews
Hi, Thank you Eric, for your quick reply. Sorry, I had forgot to mention the platform. It is Linux. Thanks. Deepak On Mon, Dec 7, 2009 at 12:16 PM, Erik Trimble wrote: > Deepak Mathews wrote: > >> Hi, >> >> I am trying to cross compile for x86 64 bit from a x86 32 bit host >> machine. >> >>

Re: Cross Compiling for x86_64 on x86

2009-12-06 Thread Erik Trimble
Deepak Mathews wrote: Hi, I am trying to cross compile for x86 64 bit from a x86 32 bit host machine. I am facing a lot of issues in this regard. Has anyone been able to successfully do this. Why is the target being linked against libjvm.so which is in the ALT_BOOTDIR on the host system.