Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests get stuck on aarch64 with openjdk 11 (Alpine Linux) #109

Open
jirutka opened this issue Jun 13, 2021 · 1 comment
Open

Tests get stuck on aarch64 with openjdk 11 (Alpine Linux) #109

jirutka opened this issue Jun 13, 2021 · 1 comment

Comments

@jirutka
Copy link

jirutka commented Jun 13, 2021

ant test gets stuck indefinitely on Alpine Linux on aarch64 platform.

Buildfile: /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build.xml
-pre-init:
-init-vars:
-post-init:
-init:
   [tstamp] Honouring environment variable SOURCE_DATE_EPOCH which has been set to 1623615286
-pre-compile:
-do-compile:
-generate-version-source:
     [echo] Generating Version.java
-generate-version:
    [javac] Compiling 1 source file to /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
    [javac] 1 warning
-compile-java:
-generate-native-headers:
    [javac] /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build.xml:324: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/jni
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
    [javac] 1 warning
-build-native-library:
     [exec] make: Nothing to be done for 'all'.
-post-compile:
compile:
-pre-compile-test:
-do-compile-test:
    [mkdir] Created dir: /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/test/classes
    [javac] Compiling 13 source files to /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/test/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 warning
-build-native-testlib:
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/Benchmark.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/Benchmark.o
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/BufferTest.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/BufferTest.o
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/ClosureTest.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/ClosureTest.o
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/EnumTest.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/EnumTest.o
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/GlobalVariable.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/GlobalVariable.o
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/LastErrorTest.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/LastErrorTest.o
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/NumberTest.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/NumberTest.o
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/PointerTest.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/PointerTest.o
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/ReferenceTest.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/ReferenceTest.o
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/StringTest.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/StringTest.o
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/StructTest.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/StructTest.o
     [exec] gcc -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Werror -Wall -Wno-unused -Wno-unused-parameter -Wno-parentheses -I"/builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build" -fPIC -D_REENTRANT -c libtest/VariadicTest.c -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/VariadicTest.o
     [exec] gcc -o /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest.so -Wl,--as-needed,-O1,--sort-common -shared -Wl,-O1 -Wl,-soname,libtest.so  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/Benchmark.o  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/BufferTest.o  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/ClosureTest.o  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/EnumTest.o  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/GlobalVariable.o  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/LastErrorTest.o  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/NumberTest.o  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/PointerTest.o  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/ReferenceTest.o  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/StringTest.o  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/StructTest.o  /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/libtest/VariadicTest.o -lm
-post-compile-test:
-compile-test:
test:
    [mkdir] Created dir: /builds/alpine/aports/community/java-jffi/src/jffi-jffi-1.3.4/build/test/results
     [echo] test with jni libraries from sources
    [junit] Running com.kenai.jffi.ClosureTest
    [junit] Tests run: 35, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.559 sec
    [junit] Running com.kenai.jffi.ForeignTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
    [junit] Running com.kenai.jffi.InvokerTest
    [junit] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec
    [junit] Running com.kenai.jffi.JSR292Test
    [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033 sec
    [junit] Running com.kenai.jffi.LibraryTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
    [junit] Running com.kenai.jffi.MemoryTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
    [junit] Running com.kenai.jffi.NumberTest
    [junit] Tests run: 43, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.098 sec
    [junit] Running com.kenai.jffi.ObjectParameterInfoTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.045 sec
    [junit] Running com.kenai.jffi.PlatformTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
    [junit] Running com.kenai.jffi.StructTest
    [junit] Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec
    [junit] Running com.kenai.jffi.TypeTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
    [junit] Running com.kenai.jffi.internal.StubLoaderTest
    [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
     [echo] test with unpack of jni library

Environment:

  • Alpine Linux Edge / aarch64
  • jffi 1.3.4
  • openjdk 11.0.11
  • gcc 10.3.1
  • musl 1.2.2
@jirutka jirutka changed the title Tests get stuck on aarch64 (Alpine Linux) Tests get stuck on aarch64 with openjdk 11 (Alpine Linux) Jun 13, 2021
algitbot pushed a commit to alpinelinux/aports that referenced this issue Jun 13, 2021
Tests get stuck on aarch64 with openjdk 11
(jnr/jffi#109). Moreover, upstream still
builds the native library using OpenJDK 8.
@headius
Copy link
Member

headius commented Sep 1, 2021

Interesting. Will look at this after a round of releases.

@headius headius modified the milestones: 1.3.5, 1.3.6 Sep 1, 2021
@headius headius modified the milestones: 1.3.6, 1.3.7 Oct 26, 2021
@headius headius removed this from the 1.3.7 milestone Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants