The NPE is a known issue with antlr that happens on all platforms and is unrelated to your gcc error.

-- Kevin


d...@libertysurf.fr wrote:
No, I did not install any new packages after the first build failure. In fact, 
I am building the javafx in a docker container restarting from the beginning at 
each test !

Looking at the long output of the build, I noticed this :

...
:buildSrc:generateGrammarSource
error(10):  internal error: Can't get property indirectDelegates using method 
get/isIndirectDelegates from org.antlr.tool.Grammar instance : 
java.lang.NullPointerException
java.util.Objects.requireNonNull(Objects.java:203)
java.util.ArrayList.removeAll(ArrayList.java:689)
org.antlr.tool.CompositeGrammar.getIndirectDelegates(CompositeGrammar.java:222)
org.antlr.tool.Grammar.getIndirectDelegates(Grammar.java:2620)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.antlr.stringtemplate.language.ASTExpr.invokeMethod(ASTExpr.java:563)
org.antlr.stringtemplate.language.ASTExpr.rawGetObjectProperty(ASTExpr.java:514)
org.antlr.stringtemplate.language.ASTExpr.getObjectProperty(ASTExpr.java:416)
org.antlr.stringtemplate.language.ActionEvaluator.attribute(ActionEvaluator.java:351)
org.antlr.stringtemplate.language.ActionEvaluator.expr(ActionEvaluator.java:136)
org.antlr.stringtemplate.language.ActionEvaluator.templateApplication(ActionEvaluator.java:216)
org.antlr.stringtemplate.language.ActionEvaluator.expr(ActionEvaluator.java:126)
org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:84)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:86)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:86)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:86)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
org.antlr.codegen.CodeGenerator.write(CodeGenerator.java:1278)
org.antlr.codegen.Target.genRecognizerFile(Target.java:94)
org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:463)
org.antlr.Tool.generateRecognizer(Tool.java:607)
org.antlr.Tool.process(Tool.java:429)
org.antlr.Tool.main(Tool.java:91)
:buildSrc:compileJava
...

May be there is a relationship between this and the final error ?

Didier

----- Mail original -----
Did you install any new packages after the first time you got a build
failure? If so, you might try manually doing:

    rm -rf build

This will cause the various properties files in build to be
recreated.

-- Kevin



d...@libertysurf.fr wrote:
Hi all,

I'm trying to build JavaFX 8 taken from mercurial repo with Gradle
1.8 (as explained in
https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX)
for alpine linux amd64 and face the following error :


bash-4.3# gradle
...
OS_NAME: linux
OS_ARCH: amd64
JAVA_HOME: /usr/lib/jvm/java-1.8-openjdk
JDK_HOME: /usr/lib/jvm/java-1.8-openjdk
java.runtime.version: 1.8.0_92-internal-alpine-r1-b14
java version: 1.8.0_92
java build number: 14
jdk.runtime.version: 1.8.0_92-internal-alpine-r1-b14
jdk version: 1.8.0_92
jdk build number: 14
minimum java build number: 26
CONF: Debug
NUM_COMPILE_THREADS: 8
COMPILE_TARGETS: linux
COMPILE_FLAGS_FILES: buildSrc/linux.gradle
HUDSON_JOB_NAME: not_hudson
HUDSON_BUILD_NUMBER: 0000
PROMOTED_BUILD_NUMBER: 00
PRODUCT_NAME: OpenJFX
RAW_VERSION: 8.0.132
RELEASE_NAME: 8u132
RELEASE_MILESTONE: ea
UPDATE_STUB_CACHE: false
The CompileOptions.useAnt property has been deprecated and is
scheduled to be
removed in Gradle 2.0. There is no replacement for this property.
:checkJfxrtJar
...
:graphics:compileDecoraNativeShadersLinux
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
gcc: error: : No such file or directory
:graphics:compileDecoraNativeShadersLinux FAILED
...

We can notice there are 33 "gcc: error: : No such file or
directory"

Build with --stacktrace does not give more hints :

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for
task
':graphics:compileDecoraNativeShadersLinux'.
        at
        
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
        at
        
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
...
        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
Caused by: org.gradle.api.GradleException: Could not call
NativeCompileTask.compile() on task
':graphics:compileDecoraNativeShadersLinux'
        at org.gradle.util.JavaMethod.invoke(JavaMethod.java:69)
        at
        
org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:219)
        at
        
org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:212)
        at
        
org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:201)
        at
        
org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:527)
        at
        
org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:510)
        at
        
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
        at
        
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
        ... 49 more
Caused by: java.util.concurrent.ExecutionException:
org.gradle.process.internal.ExecException: Process 'command 'gcc''
finished with non-zero exit value 1
        at java_util_concurrent_Future$get.call(Unknown Source)
        at
        NativeCompileTask$_compile_closure6.doCall(NativeCompileTask.groovy:161)
        at NativeCompileTask.compile(NativeCompileTask.groovy:161)
        at org.gradle.util.JavaMethod.invoke(JavaMethod.java:62)
        ... 56 more
Caused by: org.gradle.process.internal.ExecException: Process
'command 'gcc'' finished with non-zero exit value 1
        at
        
org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:361)
        at
        
org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:36)
        at
        
org.gradle.api.internal.file.DefaultFileOperations.exec(DefaultFileOperations.java:179)
        at
        
org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:836)
        at
        org.gradle.api.internal.ProcessOperations$exec$5.call(Unknown
        Source)
        at CCTask.doCompile(CCTask.groovy:52)
        at
        NativeCompileTask.this$dist$invoke$3(NativeCompileTask.groovy)
        at
        NativeCompileTask$1.methodMissing(NativeCompileTask.groovy)
        at NativeCompileTask$1.run(NativeCompileTask.groovy:150)

If I compile by myself the 33 files (from --debug output) :

Compiling native files:
[/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEPerspectiveTransformPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_REDPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_SRC_ATOPPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEColorAdjustPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_SCREENPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSESepiaTonePeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_SOFT_LIGHTPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_GREENPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_BLUEPeer.cc,
/tmp/javafx/rt/modules/graphics/src/main/native-decora/SSEBoxShadowPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_COLOR_BURNPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEPhongLighting_DISTANTPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_OVERLAYPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEDisplacementMapPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_DARKENPeer.cc,
/tmp/javafx/rt/modules/graphics/src/main/native-decora/SSEUtils.cc,
/tmp/javafx/rt/modules/graphics/src/main/native-decora/SSELinearConvolveShadowPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEInvertMaskPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEPhongLighting_SPOTPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_DIFFERENCEPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEPhongLighting_POINTPeer.cc,
/tmp/javafx/rt/modules/graphics/src/main/native-decora/SSEBoxBlurPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_EXCLUSIONPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_MULTIPLYPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_HARD_LIGHTPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_COLOR_DODGEPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBrightpassPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_SRC_OUTPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_ADDPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_LIGHTENPeer.cc,
/tmp/javafx/rt/modules/graphics/src/main/native-decora/SSELinearConvolvePeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_SRC_INPeer.cc,
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/SSEBlend_SRC_OVERPeer.cc]

with the same command as gradle uses :

gcc -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -W -Wall
-Wno-unused
-Wno-parentheses -Werror=implicit-function-declaration
-I/usr/lib/jvm/java-1.8-openjdk/include
-I/usr/lib/jvm/java-1.8-openjdk/include/linux -c -O2 -DNDEBUG
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng16
-I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/atk-1.0
-pthread -ffast-math
-I/tmp/javafx/rt/modules/graphics/build/generated-src/headers/jsl-decora
-I/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora
-I/tmp/javafx/rt/modules/graphics/src/main/native-decora -o
/tmp/javafx/rt/modules/graphics/build/native/jsl-decora/linux/file.obj
/tmp/javafx/rt/modules/graphics/build/generated-src/jsl-decora/file.cc

the 33 files compiles without error ...


I have also tested by setting NUM_COMPILE_THREADS to 1, without
change.
Any thoughts about what's happening ?


Thx

Reply via email to