linking libjvm.so failed because "cmsLockVerifier.o: file not recognized: File truncated"
Alan Bateman
Alan.Bateman at oracle.com
Mon Oct 17 03:07:07 PDT 2011
Jovi Zhang wrote:
> Hi,
> When I link libjvm.so, it report "cmsLockVerifier.o: file not
> recognized: File truncated".
>
> So I checked the object file, then I found below:
>
> [root at localhost fastdebug]# pwd
> /root/Hotspot/hotspot/build/linux/linux_i486_compiler1/fastdebug
>
> [root at localhost fastdebug]# file *|grep empty
> cmsLockVerifier.o: empty
> cmsPermGen.o: empty
>
> [root at localhost fastdebug]# gcc --version
> gcc (GCC) 4.4.2 20091027 (Red Hat 4.4.2-7)
>
> [root at localhost fastdebug]# uname -a
> Linux localhost.localdomain 3.1.0-rc2+ #1 SMP Fri Aug 12 08:43:42 CST
> 2011 i686 i686 i386 GNU/Linux
>
> Obviously, cmsLockVerifier.cpp compiled successful, but I don't
> know why its content is empty.
> Is anybody also encounter this problem?
>
> The code is lastest hotspot code download from openjdk website,
> and I use command "make ALT_BOOTDIR=/usr/lib/jvm/java-1.6.0-openjdk"
>
> .jovi
>
Any chance the build aborted (file system full for example) and was
restarted? Did you try removing the empty .o files and rebuilding?
-Alan.
More information about the hotspot-dev
mailing list