FW: can't build JVM static

Novikov Timofey novikov at seaproject.ru
Sun Jul 15 23:16:05 PDT 2007

Hi Nikolay!

Thanks for your answer!

I tried to build JVM with `make JAVA_BASE_ADDR=`...

And as you see - I got new problem:
make[3]: Выход из каталог `/home/novikov/openjdk/hotspot/build/linux/linux_i486_compiler2/product'
cd linux_i486_compiler2/product && ./test_gamma
./test_gamma: line 11: 30144 Segmentation fault      ./${gamma:-gamma} -Xbatch Queens </dev/null

 ldd -v libjvm.so - statically linked

You can find makefiles in attachments (gcc.make vm.make launcher.make)


Best regards
Timofey Novikov

-----Original Message-----
From: Nikolay.Igotti at Sun.COM [mailto:Nikolay.Igotti at Sun.COM] 
Sent: Friday, July 13, 2007 10:02 AM
To: Novikov Timofey
Cc: hotspot-dev at openjdk.dev.java.net
Subject: Re: can't build JVM static

Try to build with "make JVM_BASE_ADDR=", binary will be a bit slower 
(more PIC code) but could work.


Novikov Timofey wrote:
> Hello!
> I want build HotSpot JVM statically (it's needful for work on system 
> with GLIBC2.1.3)
> When I try build it with -static key I get parse error in 
> libjvm.so.lds script, string 12:
> . = 0x08048000x06000000 + SIZEOF_HEADERS;
> Any changing of this string to the "good" state (. = 0x0804800 + 
> 0x06000000 + SIZEOF_HEADERS;) take the Segmentation Fault error...
> Thanx!
> Tim Novikov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vm.make
Type: application/octet-stream
Size: 8365 bytes
Desc: vm.make
Url : http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20070716/fd5a6573/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc.make
Type: application/octet-stream
Size: 5054 bytes
Desc: gcc.make
Url : http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20070716/fd5a6573/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: launcher.make
Type: application/octet-stream
Size: 2675 bytes
Desc: launcher.make
Url : http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20070716/fd5a6573/attachment-0002.obj 

More information about the hotspot-dev mailing list