Error in "exploded-image-optimize' on Ubuntu

Erik Joelsson erik.joelsson at oracle.com
Tue Apr 25 10:29:10 UTC 2017


Hello,

First of all, are you expecting to build linux or windows binaries in 
the ubuntu subsystem? Our interest is to use it to replace cygwin when 
producing windows binaries.

In theory it should be possible to build linux binaries, but AFAIK, 
current OpenJDK linux binaries crash on startup when trying to run 
there, which prevents building since we need a bootjdk to run the build 
(a JDK 8 boot to build JDK 9). I have not investigated this any further, 
just a college's first impression when it was first released. If you got 
this to work, we would likely be able to build linux binaries at least. 
Though, while amusing, that wouldn't be particularly useful for me at least.

The next hurdle is crossing the linux/windows barrier again when running 
native windows applications from the linux subsystem. This was not 
possible at all in the current release, but I know it's being worked on. 
Perhaps it even works in some kind of beta at this point. From what I've 
read about it there are some limitations which would require some 
trickery from us to get around. For example environment variables are 
not shared between the environments.

All in all this looks like very interesting for the future.

/Erik


On 2017-04-24 19:35, Ted Neward wrote:
> Can you be more specific as to which features it’s lacking? (Having spent a fair amount of time on Windows in my career, I might be able to suggest some ways to work with/around it, though I’ll be the first to admit the Linux-on-Windows subsystem is new to me. The other thing is, I live in Redmond, and I have several friends who work on DotNetCore, and can maybe ask them for some ideas on how to work around whatever issues that are coming up.)
>
> Meanwhile, I’ll see if the build works. (I’m not in front of that machine as I write this.)
>
> Ted Neward
> Author, Speaker, Mentor
> http://www.newardassociates.com
> t: @tedneward | m: (425) 647-4526
>
> On 4/24/17, 5:10 AM, "Erik Joelsson" <erik.joelsson at oracle.com> wrote:
>
>      Hello Ted,
>      
>      I do not recognize the error, but I suspect that the failing command is
>      the first time the build is running the newly built jdk to generate
>      something. Can you try this and see if that works?
>      
>      $ build/linux-x64/jdk/bin/java
>      
>      The build should work on Ubuntu 16.04 (it's what I use personally most
>      of the time). The ubuntu shell on Win10 however is not going to work.
>      It's certainly something we would like to leverage in the future, but so
>      far, it's lacking vital features to be feasible.
>      
>      /Erik
>      
>      On 2017-04-24 10:41, Ted Neward wrote:
>      > Tried using Ubuntu 16 (in a Virtual Box image, if that makes a difference) and the Ubuntu shell in Win10, and keep getting the same error:
>      >
>      >
>      >
>      > ExplodedImageOptimize.gmk:40: recipe for target ‘…/jdk_packages_attribute.done’ failed
>      >
>      >
>      >
>      > Happens for any kind of configured build (fastdebug, slowdebug, release, tried all three). Not sure how to start debugging this. Hoping that somebody has seen this before and has a quick one-line fix.
>      >
>      >
>      >
>      > Error messages suggest checking the build log; where is that? (I’m guessing build/<target>/build.log, but just checking to make sure there isn’t another one I should be looking at…)
>      >
>      >
>      >
>      > Ted Neward
>      >
>      > Author, Speaker, Mentor
>      >
>      > http://www.newardassociates.com
>      >
>      > t: @tedneward | m: (425) 647-4526
>      >
>      
>      
>
>




More information about the build-dev mailing list