Bug 923 - Gluegen fails to build from source using JDK8 EA b119
: Gluegen fails to build from source using JDK8 EA b119
Product: Gluegen
Classification: JogAmp_Core
Component: core
: 2
: All all
: --- enhancement
Assigned To: Sven Gothel
Depends on:
  Show dependency treegraph
Reported: 2013-12-13 09:50 CET by Xerxes Rånby
Modified: 2013-12-13 11:48 CET (History)
0 users

See Also:
Type: ---
SCM Refs:
Workaround: ---

jdk-8-ea-bin-b119-linux-i586-05_dec_2013.gluegen.2.1.3.build.log (100.08 KB, text/plain)
2013-12-13 09:50 CET, Xerxes Rånby

Note You need to log in before you can comment on or make changes to this bug.
Description Xerxes Rånby 2013-12-13 09:50:18 CET
Created attachment 567 [details]

Gluegen fails to build from source using JDK8 EA b119
JDK8 Build b119 is available at:

Gluegen succeeds to build using JDK7 7u60 Build b01
JDK7 7u60 Build b01 is available at:

Gluegen succeeds to build using OpenJDK 7u25
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2)

Gluegen succeeds to build using OpenJDK 6u27
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.4)

Tested using gluegen git tag v2.1.3
OS: Ubuntu 12.04 LTS Linux 32bit.


Steps to reproduce:
tar zxvf jdk-8-ea-bin-b119-linux-i586-05_dec_2013.tar.gz
git clone git://jogamp.org/srv/scm/gluegen.git
cd gluegen/make
JAVA_HOME=/home/xranby/jdk1.8.0/ ant


JDK8 EA b119 Build Output:

     [echo]  - - - compiling all java files - - -
     [echo]  test.base.dir ../src/junit
     [echo]  build_t.gen     ../build/test/build/gensrc
    [javac] Compiling 1 source file to /home/xranby/gluegen/build/test/build/classes
    [javac] CStruct: @com.jogamp.gluegen.structgen.CStruct(name=_default_, header=TestStruct01.h), package com.jogamp.gluegen.test.junit.structgen, header TestStruct01.h
    [javac] CStruct.0: user.dir: /home/xranby/gluegen/make
    [javac] generating struct accessor for struct: RenderingConfig
    [javac] CStruct.0: element: config0, .simpleName config0
    [javac] CStruct.0: enclElement: com.jogamp.gluegen.test.junit.structgen.TestStructGen01, .simpleName TestStructGen01, .package com.jogamp.gluegen.test.junit.structgen
    [javac] CStruct.locateSource.0: p com.jogamp.gluegen.test.junit.structgen, r TestStruct01.h
    [javac] Catched FileNotFoundException: com.jogamp.gluegen.test.junit.structgen/TestStruct01.h
    [javac] CStruct.locateSource.0: p , r TestStruct01.h
    [javac] CStruct.locateSource.1: h file:/home/xranby/gluegen/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStruct01.h
    [javac] CStruct: /home/xranby/gluegen/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStruct01.h, abs: true, root /home/xranby/gluegen/src/junit/..
    [javac] CStruct: OutputDir: ../build/test/build/gensrc/classes, is-abs false
    [javac] CStruct: OutputPath: /home/xranby/gluegen/src/junit/../../build/test/build/gensrc/classes
    [javac] CStruct: ConfigFile: /home/xranby/gluegen/src/junit/../../build/test/build/gensrc/classes/TestStruct01.h.cfg
    [javac] generating -> Camera
    [javac] generating -> Vec3f
    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.jogamp.gluegen.structgen.CStructAnnotationProcessor' less than -source '1.7'
    [javac] generating -> RenderingConfig
    [javac] /home/xranby/gluegen/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen01.java:4: error: package com.jogamp.junit.util does not exist
    [javac] import com.jogamp.junit.util.JunitTracer;
    [javac]                             ^
    [javac] /home/xranby/gluegen/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen01.java:13: error: cannot find symbol
    [javac] public class TestStructGen01 extends JunitTracer {
    [javac]                                      ^
    [javac]   symbol: class JunitTracer
    [javac] /home/xranby/gluegen/src/junit/com/jogamp/gluegen/test/junit/structgen/TestStructGen01.java:22: error: cannot find symbol
    [javac]     RenderingConfig config0;
    [javac]     ^
    [javac]   symbol:   class RenderingConfig
    [javac]   location: class TestStructGen01
    [javac] 3 errors
    [javac] 1 warning
Comment 1 Sven Gothel 2013-12-13 11:48:14 CET
A quick analysis reveals that the new annotation tool does not tolerate missing
dependencies of the processed java file anymore.

I.e. we run the annotation tool on a java file w/ dependencies
which are not yet generated and hence not resolvable in the classpath.

This has worked w/ Java7.
W/ Java6 and Java7, the annotation tool produced the new artifacts
despite the warning/error messages of unresolved symbols.
Then a later compilation process of ours produces the class files.

We will adapt to this behavioral change.