First build-infra push to jdk8 -- try out the new build system!

Mahesh Pujari pujarimahesh_kumar at yahoo.com
Fri Apr 20 04:51:22 UTC 2012


 > The file appears truncated so something went wrong creating it (or else 
 > one process was trying to write to it at the same time another process 
 > was trying to read?)

The file graphKit.o existed but with a size of zero.

 > Can you see where graphKit.cpp was compiled? Was there any error 
 > indicator at that time?

When I looked into the compilation of graphKit.cpp, there were no such error, below are the lines taken from build.log (I am new to make and know little about thie env, I hope I am providing the right stuff, and as build.og)


CCACHE_COMPRESS=1  CCACHE_SLOPPINESS=time_macros /usr/bin/ccache /usr/lib/ccache/g++ -DLINUX -D_GNU_SOURCE -DIA32 -DASSERT -DFASTDEBUG -I. -I/disk1/development/jdk/jdk8/jdk8/hotspot/src/share/vm/prims -I/disk1/development/jdk/jdk8/jdk8/hotspot/src/share/vm -I/disk1/development/jdk/jdk8/jdk8/hotspot/src/share/vm/precompiled -I/disk1/development/jdk/jdk8/jdk8/hotspot/src/cpu/x86/vm -I/disk1/development/jdk/jdk8/jdk8/hotspot/src/os_cpu/linux_x86/vm -I/disk1/development/jdk/jdk8/jdk8/hotspot/src/os/linux/vm -I/disk1/development/jdk/jdk8/jdk8/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"24.0-b07\"" -DHOTSPOT_BUILD_TARGET="\"fastdebug\"" -DHOTSPOT_BUILD_USER="\"mpujari\"" -DHOTSPOT_LIB_ARCH=\"i386\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_32 -DTARGET_OS_ARCH_linux_x86 -DTARGET_OS_ARCH_MODEL_linux_x86_32 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti
 -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -m32 -march=i586 -pipe -O3 -fno-strict-aliasing  -gstabs -DVM_LITTLE_ENDIAN -DINCLUDE_TRACE -Werror -Wpointer-arith -Wsign-compare    -c -MMD -MP -MF ../generated/dependencies/graphKit.o.d -o graphKit.o /disk1/development/jdk/jdk8/jdk8/hotspot/src/share/vm/opto/graphKit.cpp

after the statement above I can not see any errors, every thing looks fine.


 > Can you make the build more verbose so that the actual link command can 
 > be seen - that would show whether the set of files being linked appears 
 > correct or not.


I hope the you were talking about the above log.


 > If you delete graphKit.o and rebuild does the error disappear?
I deleted graphKit.o and did a rebuild but ended in the same error.

Please direct me if I am missing something.

thanks and regards,
Mahesh Pujari



________________________________
 From: David Holmes <david.holmes at oracle.com>
To: Mahesh Pujari <pujarimahesh_kumar at yahoo.com> 
Cc: Magnus Ihse Bursie <magnus.ihse.bursie at oracle.com>; "jdk8-dev at openjdk.java.net" <jdk8-dev at openjdk.java.net>; "build-dev at openjdk.java.net" <build-dev at openjdk.java.net> 
Sent: Tuesday, April 17, 2012 9:06 AM
Subject: Re: First build-infra push to jdk8 -- try out the new build system!
 
On 17/04/2012 12:48 PM, Mahesh Pujari wrote:
> Its not the issue with the disk space, I am sure of that.

The file appears truncated so something went wrong creating it (or else 
one process was trying to write to it at the same time another process 
was trying to read?)

Can you see where graphKit.cpp was compiled? Was there any error 
indicator at that time?

Can you make the build more verbose so that the actual link command can 
be seen - that would show whether the set of files being linked appears 
correct or not.

If you delete graphKit.o and rebuild does the error disappear?

David
-----

> Mahesh Pujari
>
> ------------------------------------------------------------------------
> *From:* David Holmes <david.holmes at oracle.com>
> *To:* Mahesh Pujari <pujarimahesh_kumar at yahoo.com>
> *Cc:* Magnus Ihse Bursie <magnus.ihse.bursie at oracle.com>;
> "jdk8-dev at openjdk.java.net" <jdk8-dev at openjdk.java.net>;
> "build-dev at openjdk.java.net" <build-dev at openjdk.java.net>
> *Sent:* Tuesday, April 17, 2012 7:02 AM
> *Subject:* Re: First build-infra push to jdk8 -- try out the new build
> system!
>
> On 17/04/2012 12:49 AM, Mahesh Pujari wrote:
>  > I used the new build system to build on windows and Linux (32 bit
> binary). On Windows, I was able to sucessfully build with out any issues
> (release only, haven't build with debug), and on Linux
> (3.3.0-4.fc16.i686) I was able to build clientAndServer release
> succesfully, but when I tried to build with clientAndServer debug I
> ended up with below error, I am missing any config which is needed for
> debug build.
>  >
>  > Compiling
> /disk1/development/jdk/jdk8/jdk8/hotspot/src/share/vm/utilities/yieldingWorkgroup.cpp
>  > Making signal interposition lib...
>  > Making SA debugger back-end...
>  > Compiling
> /disk1/development/jdk/jdk8/jdk8/hotspot/src/share/vm/runtime/vm_version.cpp
>  > Linking vm...
>  > graphKit.o: file not recognized: File truncated
>
> You didn't happen to run out of disk space during the compile did you?
>
> David
>
>  > collect2: ld returned 1 exit status
>  > /usr/bin/chcon: cannot access `libjvm.so'ERROR: Cannot chcon libjvm.so
>  > : No such file or directory
>  > /usr/bin/objcopy: 'libjvm.so': No such file
>  > make[5]: *** [libjvm.so] Error 1
>  > make[4]: *** [the_vm] Error 2
>  > make[3]: *** [fastdebug] Error 2
>  > make[2]: *** [generic_build2] Error 2
>  > make[1]: *** [fastdebug] Error 2
>  >
>  > thanks and regards,
>  > Mahesh Pujari
>  >
>  >
>  >
>  >
>  > ________________________________
>  > From: Magnus Ihse Bursie<magnus.ihse.bursie at oracle.com
> <mailto:magnus.ihse.bursie at oracle.com>>
>  > To: jdk8-dev at openjdk.java.net <mailto:jdk8-dev at openjdk.java.net>
>  > Cc: build-dev at openjdk.java.net <mailto:build-dev at openjdk.java.net>
>  > Sent: Thursday, April 12, 2012 3:17 PM
>  > Subject: First build-infra push to jdk8 -- try out the new build system!
>  >
>  > The build-infra project [1] has been working for a while with
> creating a new build system. The goals of the project include, but are
> not limited to, improved build performance and improved ease of use.
>  >
>  > The first part of this project has now been pushed to the jdk8 master
> forest. This means that the new build system is available for you to try
> out! The old build system is still there, and if you want to continue to
> use it, you will notice no difference (for now...).
>  >
>  > But if you are interested in trying the new build system, we welcome
> you to experiment with it! The basic operation is:
>  > cd common/makefiles
>  > ../autoconf/configure
>  > make
>  >
>  > More information is available in the new build README [2]. If you
> want to try the new build system, please read it first.
>  >
>  > Please note that the new build system is not yet complete. We do not
> yet have full platform support, nor are all parts of the old build
> converted (but then we fall back on the old build system), and there are
> likely to be bugs. Most of all, we need to have exposure on a wide range
> of different build systems, since the reality is always so much messier
> than you'd want to believe. :-) Please help us to resolve such issues
> early by trying the new build system!
>  >
>  > Any questions or discussions on the new build system should be sent
> to build-dev at openjdk.java.net <mailto:build-dev at openjdk.java.net>.
>  >
>  > /Magnus
>  >
>  > [1] http://openjdk.java.net/projects/build-infra/index.html
>  > [2] http://openjdk.java.net/projects/build-infra/guide.html
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/build-dev/attachments/20120419/490ccfe2/attachment.html>


More information about the build-dev mailing list