On 9/05/2018 5:40 PM, Yasumasa Suenaga wrote:
Hi David,

2018-05-09 16:26 GMT+09:00 David Holmes <david.hol...@oracle.com>:
On 9/05/2018 5:19 PM, Yasumasa Suenaga wrote:

Hi David,

I uploaded trace log:
    http://cr.openjdk.java.net/~ysuenaga/openjdk-fc28/trace-all.log

It seems to open module file, but any class is not loaded from there.


The last line I see is:

[0.266s][trace][gc,tlab              ] TLAB: fill thread: 0x00007fd7c801f800
[id: 17487] desired_size: 491KB slow allocs: 0 refill waste: 7864B alloc:
0.99999     2048KB refills: 1 waste  0.0% gc: 0B slow: 0B fast: 0B

is that right? Seems we just have a silent abort during VM initialization.
This seems quite bizarre.

Yes, I guess VM was aborted because it could not load java/lang/Object.
   http://mail.openjdk.java.net/pipermail/build-dev/2018-May/021999.html

Ah so you still see:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

I'm surprised there isn't more in the log prior to reaching that point.

David
-----


Can you run it in the debugger?

No, I ran `./java -Xlog:all=trace:/home/ysuenaga/trace-all.log --version`


Thanks,

Yasumasa


Thanks,
David


Thanks,

Yasumasa



2018-05-09 15:31 GMT+09:00 David Holmes <david.hol...@oracle.com>:

On 9/05/2018 1:46 PM, Yasumasa Suenaga wrote:


Hi David,

I uploaded build.log:
     http://cr.openjdk.java.net/~ysuenaga/openjdk-fc28/build.log

Is it enough?



It's all there is. :) But no errors. It all is fine right up to the part
that it isn't.

Can you run:


/home/ysuenaga/OpenJDK/jdk/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java

with full logging enabled - -Xlog:all=trace (I think that's the right
syntax). It may show how far the VM gets before something goes wrong.

Thanks,
David



Thanks,

Yasumasa



2018-05-09 11:17 GMT+09:00 David Holmes <david.hol...@oracle.com>:


On 9/05/2018 12:09 PM, Yasumasa Suenaga wrote:



Hi David,

2018-05-09 10:48 GMT+09:00 David Holmes <david.hol...@oracle.com>:



Can you build with LOG=trace to try and see the actual command that
is
failing?




I tried it and got following logs. They look good to me.




Not enough there for me to comment :)




* Creating interim-image

+


/home/ysuenaga/OpenJDK/jdk/build/linux-x86_64-normal-server-fastdebug/jdk/bin/jlink
-J-XX:+UseSerialGC -J-Xms32M -J-Xmx512M -J-XX:TieredStopAtLevel=1
-J-Djlin
k.debug=true --module-path



/home/ysuenaga/OpenJDK/jdk/build/linux-x86_64-normal-server-fastdebug/support/interim-jmods
--endian little --output



/home/ysuenaga/OpenJDK/jdk/build/linux-x86_64-normal-server-fastdebug/support/interim-image
--disable-plugin generate-jli-classes --add-modules
java.base,java.logging




So this seems to produce an interim image that won't run - correct? I'd
be
scouring the log in the lead up to this to see if anything seems to be
unusual. Can you upload the log to cr.openjdk.java.net? Or email me
directly?

Thanks,
David



* Command on error:

+


/home/ysuenaga/OpenJDK/jdk/build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java



-XX:DumpLoadedClassList=/home/ysuenaga/OpenJDK/jdk/build/linux-x86_64-normal-server-fastdebug/support/link_opt/classlist.raw
-Djava.lang.invoke.MethodHandle.TRACE_RESOLVE=true -cp



/home/ysuenaga/OpenJDK/jdk/build/linux-x86_64-normal-server-fastdebug/support/classlist.jar
build.tools.classlist.HelloClasslist

Thanks,

Yasumasa


David


On 9/05/2018 11:39 AM, Yasumasa Suenaga wrote:




Hi,

2018-05-09 0:27 GMT+09:00 Erik Joelsson <erik.joels...@oracle.com>:




Hello,

Your assessment is looks correct so far. At this point, one would
have
to
start debugging the image to figure out what's wrong with it. Are
you
able
to run the exploded image in
./build/linux-x86_64-normal-server-fastdebug/jdk/bin/java?





It works. So I wonder why invalid image was built.

```
$ ./build/linux-x86_64-normal-server-fastdebug/jdk/bin/java
--version
openjdk 11-internal 2018-09-25
OpenJDK Runtime Environment (fastdebug build
11-internal+0-adhoc.ysuenaga.jdk)
OpenJDK 64-Bit Server VM (fastdebug build
11-internal+0-adhoc.ysuenaga.jdk, mixed mode)
```

I'm waiting for Severin's evaluation :-)


Thanks,

Yasumasa


Has anyone at Redhat built successfully on Fedora 28 yet?

/Erik



On 2018-05-08 06:42, Yasumasa Suenaga wrote:





Hi all,

I tried to build OpenJDK (jdk/jdk) on Fedora 28 x64, but it failed
as
following:

```
[ysuenaga@fc28 jdk]$ make images
Building target 'images' in configuration
'linux-x86_64-normal-server-fastdebug'
gmake[3]: *** [GenerateLinkOptData.gmk:64:




/home/ysuenaga/OpenJDK/jdk/build/linux-x86_64-normal-server-fastdebug/support/link_opt/classlist]
Error 1
gmake[2]: *** [make/Main.gmk:448: generate-link-opt-data] Error 2

ERROR: Build failed for target 'images' in configuration
'linux-x86_64-normal-server-fastdebug' (exit code 2)

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

make[1]: *** [/home/ysuenaga/OpenJDK/jdk/make/Init.gmk:305: main]
Error
2
make: *** [/home/ysuenaga/OpenJDK/jdk/make/Init.gmk:186: images]
Error
2
```

It seems "interim-image" is not valid:

```
[ysuenaga@fc28 jdk]$




./build/linux-x86_64-normal-server-fastdebug/support/interim-image/bin/java
--version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
```

It can succeed on Fedora 27. So I think it causes by OS.
I've disabled SELinux, and warnings / errors are nothing in
`journalctl
-a`.

Do you have any idea to resolve this issue?


Thanks,

Yasumasa










Reply via email to