linking libjvm.so failed because "cmsLockVerifier.o: file not recognized: File truncated"

Christian Thalinger christian.thalinger at oracle.com
Mon Oct 17 03:06:55 PDT 2011


Are you sure the files compiled correctly?  Maybe you're out of disk space or something like that.  Does it happen again after a clean and rebuild?

-- Chris

On Oct 17, 2011, at 11:59 AM, 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



More information about the hotspot-dev mailing list