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

Building on ARM64 fails #4525

Closed
krautcat opened this issue Jul 11, 2022 · 3 comments
Closed

Building on ARM64 fails #4525

krautcat opened this issue Jul 11, 2022 · 3 comments
Assignees
Labels
topic: Build compile error, jitpack

Comments

@krautcat
Copy link

krautcat commented Jul 11, 2022

System information

java-tron version: GreatVoyage-v4.5.1
OS & Version: Debian 11, ARM64
Commit hash: tag of version

Expected behaviour

TRON node builds from sources on the Debian

Actual behaviour

Build fails

Steps to reproduce the behaviour

./gradlew clean build --info -x test

Backtrace

Initialized native services in: /root/.gradle/native
Removing 0 daemon stop events from registry
Starting a Gradle Daemon (subsequent builds will be faster)
Starting process 'Gradle build daemon'. Working directory: /root/.gradle/daemon/5.6.4 Command: /opt/oracle-jdk/8.0-333/bin/java -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /root/.gradle/wrapper/dists/gradle-5.6.4-all/ankdp27end7byghfw1q2sw75f/gradle-5.6.4/lib/gradle-launcher-5.6.4.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.6.4
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 2.305 secs.
The client will now receive all logging from the daemon (pid: 3821). The daemon log file: /root/.gradle/daemon/5.6.4/daemon-3821.out.log
Starting build in new daemon [memory: 477.6 MB]
Using 8 worker leases.
Starting Build
Settings evaluated using settings file '/opt/tron/java-tron/settings.gradle'.
Projects loaded. Root project using build file '/opt/tron/java-tron/build.gradle'.
Included projects: [root project 'java-tron', project ':actuator', project ':chainbase', project ':common', project ':consensus', project ':crypto', project ':example', project ':framework', project ':plugins', project ':protocol', project ':example:actuator-example']

> Configure project :
Evaluating root project 'java-tron' using build file '/opt/tron/java-tron/build.gradle'.

> Configure project :actuator
Evaluating project ':actuator' using build file '/opt/tron/java-tron/actuator/build.gradle'.

> Configure project :chainbase
Evaluating project ':chainbase' using build file '/opt/tron/java-tron/chainbase/build.gradle'.

> Configure project :common
Evaluating project ':common' using build file '/opt/tron/java-tron/common/build.gradle'.

> Configure project :consensus
Evaluating project ':consensus' using build file '/opt/tron/java-tron/consensus/build.gradle'.

> Configure project :crypto
Evaluating project ':crypto' using build file '/opt/tron/java-tron/crypto/build.gradle'.

> Configure project :example
Evaluating project ':example' using build file '/opt/tron/java-tron/example/build.gradle'.

> Configure project :framework
Evaluating project ':framework' using build file '/opt/tron/java-tron/framework/build.gradle'.
file or directory '/opt/tron/java-tron/app/build/reports', not found

> Configure project :plugins
Evaluating project ':plugins' using build file '/opt/tron/java-tron/plugins/build.gradle'.
file or directory '/opt/tron/java-tron/app/build/reports', not found

> Configure project :protocol
Evaluating project ':protocol' using build file '/opt/tron/java-tron/protocol/build.gradle'.
------------------------------------------------------------------------
Detecting the operating system and CPU architecture
------------------------------------------------------------------------
os.detected.name=linux
os.detected.arch=aarch_64
os.detected.version=5.4
os.detected.version.major=5
os.detected.version.minor=4
os.detected.release=debian
os.detected.release.version=11
os.detected.release.like.debian=true
os.detected.classifier=linux-aarch_64

> Configure project :example:actuator-example
Evaluating project ':example:actuator-example' using build file '/opt/tron/java-tron/example/actuator-example/build.gradle'.
All projects evaluated.
Selected primary task 'clean' from project :
Selected primary task 'build' from project :
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spring.io/plugins-release/com/github/halibobo1205/leveldb-java/leveldb-api/v0.12.5/leveldb-api-v0.12.5.pom)]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spring.io/plugins-release/com/github/halibobo1205/leveldb-java/leveldb/v0.12.5/leveldb-v0.12.5.pom)]
file or directory '/opt/tron/java-tron/plugins/libs', not found
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spring.io/plugins-release/com/github/tronprotocol/zksnark-java-sdk/master-SNAPSHOT/maven-metadata.xml)]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spring.io/plugins-release/io/netty/netty-codec-http2/maven-metadata.xml)]
file or directory '/opt/tron/java-tron/framework/libs', not found
file or directory '/opt/tron/java-tron/framework/libs', not found
file or directory '/opt/tron/java-tron/framework/libs', not found
file or directory '/opt/tron/java-tron/framework/libs', not found
file or directory '/opt/tron/java-tron/framework/libs', not found
Tasks to be executed: [task ':clean', task ':actuator:clean', task ':chainbase:clean', task ':common:clean', task ':consensus:clean', task ':crypto:clean', task ':example:clean', task ':framework:clean', task ':plugins:clean', task ':protocol:clean', task ':example:actuator-example:clean', task ':compileJava', task ':processResources', task ':classes', task ':jar', task ':assemble', task ':check', task ':build', task ':protocol:extractIncludeProto', task ':protocol:extractProto', task ':protocol:generateProto', task ':protocol:compileJava', task ':protocol:processResources', task ':protocol:classes', task ':protocol:jar', task ':common:compileJava', task ':common:processResources', task ':common:classes', task ':common:jar', task ':crypto:compileJava', task ':crypto:processResources', task ':crypto:classes', task ':crypto:jar', task ':chainbase:compileJava', task ':chainbase:processResources', task ':chainbase:classes', task ':chainbase:jar', task ':actuator:compileJava', task ':actuator:processResources', task ':actuator:classes', task ':actuator:jar', task ':actuator:sourcesJar', task ':chainbase:sourcesJar', task ':common:sourcesJar', task ':consensus:compileJava', task ':consensus:processResources', task ':consensus:classes', task ':consensus:jar', task ':consensus:sourcesJar', task ':crypto:sourcesJar', task ':example:compileJava', task ':example:processResources', task ':example:classes', task ':example:jar', task ':example:sourcesJar', task ':framework:compileJava', task ':framework:processResources', task ':framework:classes', task ':framework:buildDBConvertJar', task ':framework:buildFullNodeJar', task ':framework:buildKeystoreFactoryJar', task ':framework:buildLiteFullNodeToolJar', task ':framework:buildSolidityNodeJar', task ':framework:jar', task ':framework:sourcesJar', task ':plugins:compileJava', task ':plugins:processResources', task ':plugins:classes', task ':plugins:buildArchiveManifestJar', task ':plugins:jar', task ':plugins:sourcesJar', task ':protocol:sourcesJar', task ':example:actuator-example:compileJava', task ':example:actuator-example:processResources', task ':example:actuator-example:classes', task ':example:actuator-example:jar', task ':example:actuator-example:sourcesJar', task ':copyToParent', task ':actuator:assemble', task ':actuator:compileTestJava', task ':actuator:processTestResources', task ':actuator:testClasses', task ':actuator:testng', task ':actuator:check', task ':actuator:build', task ':chainbase:assemble', task ':chainbase:compileTestJava', task ':chainbase:processTestResources', task ':chainbase:testClasses', task ':chainbase:testng', task ':chainbase:check', task ':chainbase:jacocoTestReport', task ':chainbase:build', task ':common:assemble', task ':common:check', task ':common:build', task ':consensus:assemble', task ':consensus:compileTestJava', task ':consensus:processTestResources', task ':consensus:testClasses', task ':consensus:testng', task ':consensus:check', task ':consensus:build', task ':crypto:assemble', task ':crypto:check', task ':crypto:build', task ':example:assemble', task ':example:check', task ':example:build', task ':framework:DBConvert', task ':framework:FullNode', task ':framework:KeystoreFactory', task ':framework:LiteFullNodeTool', task ':framework:SolidityNode', task ':framework:startScripts', task ':framework:distZip', task ':framework:assemble', task ':framework:checkstyleMain', task ':framework:compileTestJava', task ':framework:processTestResources', task ':framework:testClasses', task ':framework:checkstyleTest', task ':framework:lint', task ':framework:check', task ':framework:build', task ':framework:copyToParent', task ':plugins:ArchiveManifest', task ':plugins:startScripts', task ':plugins:distTar', task ':plugins:distZip', task ':plugins:assemble', task ':plugins:checkstyleMain', task ':plugins:compileTestJava', task ':plugins:processTestResources', task ':plugins:testClasses', task ':plugins:checkstyleTest', task ':plugins:lint', task ':plugins:check', task ':plugins:build', task ':plugins:copyToParent', task ':protocol:assemble', task ':protocol:check', task ':protocol:build', task ':example:actuator-example:assemble', task ':example:actuator-example:check', task ':example:actuator-example:build']
:clean (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :clean
Caching disabled for task ':clean' because:
  Build cache is disabled
Task ':clean' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:clean (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.169 secs.
:actuator:clean (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :actuator:clean UP-TO-DATE
Caching disabled for task ':actuator:clean' because:
  Build cache is disabled
Task ':actuator:clean' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:actuator:clean (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.005 secs.
:chainbase:clean (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :chainbase:clean UP-TO-DATE
Caching disabled for task ':chainbase:clean' because:
  Build cache is disabled
Task ':chainbase:clean' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:chainbase:clean (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.004 secs.
:common:clean (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :common:clean UP-TO-DATE
Caching disabled for task ':common:clean' because:
  Build cache is disabled
Task ':common:clean' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:common:clean (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.004 secs.
:consensus:clean (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :consensus:clean UP-TO-DATE
Caching disabled for task ':consensus:clean' because:
  Build cache is disabled
Task ':consensus:clean' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:consensus:clean (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.004 secs.
:crypto:clean (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :crypto:clean UP-TO-DATE
Caching disabled for task ':crypto:clean' because:
  Build cache is disabled
Task ':crypto:clean' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:crypto:clean (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.005 secs.
:example:clean (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :example:clean UP-TO-DATE
Caching disabled for task ':example:clean' because:
  Build cache is disabled
Task ':example:clean' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:example:clean (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.004 secs.
:framework:clean (Thread[Execution worker for ':' Thread 6,5,main]) started.

> Task :framework:clean UP-TO-DATE
Caching disabled for task ':framework:clean' because:
  Build cache is disabled
Task ':framework:clean' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:framework:clean (Thread[Execution worker for ':' Thread 6,5,main]) completed. Took 0.011 secs.
:plugins:clean (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :plugins:clean UP-TO-DATE
Caching disabled for task ':plugins:clean' because:
  Build cache is disabled
Task ':plugins:clean' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:plugins:clean (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.005 secs.
:protocol:clean (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :protocol:clean
Caching disabled for task ':protocol:clean' because:
  Build cache is disabled
Task ':protocol:clean' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:protocol:clean (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.022 secs.
:example:actuator-example:clean (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :example:actuator-example:clean UP-TO-DATE
Caching disabled for task ':example:actuator-example:clean' because:
  Build cache is disabled
Task ':example:actuator-example:clean' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
:example:actuator-example:clean (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.005 secs.
:compileJava (Thread[Daemon worker,5,main]) started.

> Task :compileJava NO-SOURCE
file or directory '/opt/tron/java-tron/src/main/java', not found
Skipping task ':compileJava' as it has no source files and no previous output files.
:compileJava (Thread[Daemon worker,5,main]) completed. Took 0.037 secs.
:processResources (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :processResources NO-SOURCE
file or directory '/opt/tron/java-tron/src/main/resources', not found
Skipping task ':processResources' as it has no source files and no previous output files.
:processResources (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.006 secs.
:classes (Thread[Daemon worker,5,main]) started.

> Task :classes UP-TO-DATE
Skipping task ':classes' as it has no actions.
:classes (Thread[Daemon worker,5,main]) completed. Took 0.001 secs.
:jar (Thread[Daemon worker,5,main]) started.

> Task :jar
Caching disabled for task ':jar' because:
  Build cache is disabled
Task ':jar' is not up-to-date because:
  Output property 'archiveFile' file /opt/tron/java-tron/build/libs/java-tron-1.0.0.jar has been removed.
:jar (Thread[Daemon worker,5,main]) completed. Took 0.185 secs.
:assemble (Thread[Execution worker for ':' Thread 6,5,main]) started.

> Task :assemble
Skipping task ':assemble' as it has no actions.
:assemble (Thread[Execution worker for ':' Thread 6,5,main]) completed. Took 0.002 secs.
:check (Thread[Daemon worker,5,main]) started.

> Task :check
Skipping task ':check' as it has no actions.
:check (Thread[Daemon worker,5,main]) completed. Took 0.0 secs.
:build (Thread[Daemon worker,5,main]) started.

> Task :build
Skipping task ':build' as it has no actions.
:build (Thread[Daemon worker,5,main]) completed. Took 0.0 secs.
:protocol:extractIncludeProto (Thread[Daemon worker,5,main]) started.

> Task :protocol:extractIncludeProto
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spring.io/plugins-release/io/grpc/grpc-core/maven-metadata.xml)]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spring.io/plugins-release/io/netty/netty-codec-http2/maven-metadata.xml)]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spring.io/plugins-release/io/grpc/grpc-core/maven-metadata.xml)]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spring.io/plugins-release/io/netty/netty-codec-http2/maven-metadata.xml)]
Caching disabled for task ':protocol:extractIncludeProto' because:
  Build cache is disabled
Task ':protocol:extractIncludeProto' is not up-to-date because:
  Output property '$1' file /opt/tron/java-tron/protocol/build/extracted-include-protos/main has been removed.
  Output property '$1' file /opt/tron/java-tron/protocol/build/extracted-include-protos/main/google has been removed.
  Output property '$1' file /opt/tron/java-tron/protocol/build/extracted-include-protos/main/google/api has been removed.
:protocol:extractIncludeProto (Thread[Daemon worker,5,main]) completed. Took 2.808 secs.
:protocol:extractProto (Thread[Daemon worker,5,main]) started.

> Task :protocol:extractProto
Caching disabled for task ':protocol:extractProto' because:
  Build cache is disabled
Task ':protocol:extractProto' is not up-to-date because:
  Output property '$1' file /opt/tron/java-tron/protocol/build/extracted-protos/main has been removed.
  Output property 'destDir' file /opt/tron/java-tron/protocol/build/extracted-protos/main has been removed.
:protocol:extractProto (Thread[Daemon worker,5,main]) completed. Took 0.013 secs.
:protocol:generateProto (Thread[Daemon worker,5,main]) started.

> Task :protocol:generateProto
file or directory '/opt/tron/java-tron/protocol/src/main/proto', not found
Caching disabled for task ':protocol:generateProto' because:
  Build cache is disabled
Task ':protocol:generateProto' is not up-to-date because:
  Output property 'outputBaseDir' file /opt/tron/java-tron/protocol/src/main/java has been removed.
  Output property 'outputBaseDir' file /opt/tron/java-tron/protocol/src/main/java/Account.java has been removed.
  Output property 'outputBaseDir' file /opt/tron/java-tron/protocol/src/main/java/Block.java has been removed.
Resolving artifact: [group:io.grpc, name:protoc-gen-grpc-java, version:1.26.0, classifier:linux-aarch_64, ext:exe]
Resolved artifact: /root/.gradle/caches/modules-2/files-2.1/io.grpc/protoc-gen-grpc-java/1.26.0/778d97967855d84a4cc15482c13230d3db6a1700/protoc-gen-grpc-java-1.26.0-linux-aarch_64.exe
Resolving artifact: [group:com.google.protobuf, name:protoc, version:3.5.1-1, classifier:linux-aarch_64, ext:exe]
Resolved artifact: /root/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protoc/3.5.1-1/be34f1b8eff35441231f3e769da4046b03df20df/protoc-3.5.1-1-linux-aarch_64.exe
file or directory '/opt/tron/java-tron/protocol/src/main/proto', not found
[/root/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protoc/3.5.1-1/be34f1b8eff35441231f3e769da4046b03df20df/protoc-3.5.1-1-linux-aarch_64.exe, -I/opt/tron/java-tron/protocol/src/main/protos, -I/opt/tron/java-tron/protocol/build/extracted-protos/main, -I/opt/tron/java-tron/protocol/build/extracted-include-protos/main, --java_out=/opt/tron/java-tron/protocol/src//main/java, --plugin=protoc-gen-grpc=/root/.gradle/caches/modules-2/files-2.1/io.grpc/protoc-gen-grpc-java/1.26.0/778d97967855d84a4cc15482c13230d3db6a1700/protoc-gen-grpc-java-1.26.0-linux-aarch_64.exe, --grpc_out=/opt/tron/java-tron/protocol/src//main/java, /opt/tron/java-tron/protocol/src/main/protos/api/api.proto, /opt/tron/java-tron/protocol/src/main/protos/api/zksnark.proto, /opt/tron/java-tron/protocol/src/main/protos/core/Discover.proto, /opt/tron/java-tron/protocol/src/main/protos/core/Tron.proto, /opt/tron/java-tron/protocol/src/main/protos/core/TronInventoryItems.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/account_contract.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/asset_issue_contract.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/balance_contract.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/common.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/exchange_contract.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/market_contract.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/proposal_contract.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/shield_contract.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/smart_contract.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/storage_contract.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/vote_asset_contract.proto, /opt/tron/java-tron/protocol/src/main/protos/core/contract/witness_contract.proto, /opt/tron/java-tron/protocol/src/main/protos/core/tron/account.proto, /opt/tron/java-tron/protocol/src/main/protos/core/tron/block.proto, /opt/tron/java-tron/protocol/src/main/protos/core/tron/delegated_resource.proto, /opt/tron/java-tron/protocol/src/main/protos/core/tron/p2p.proto, /opt/tron/java-tron/protocol/src/main/protos/core/tron/proposal.proto, /opt/tron/java-tron/protocol/src/main/protos/core/tron/transaction.proto, /opt/tron/java-tron/protocol/src/main/protos/core/tron/vote.proto, /opt/tron/java-tron/protocol/src/main/protos/core/tron/witness.proto]
protoc: stdout: . stderr: [libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: core/tron/account.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: core/tron/block.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: core/tron/delegated_resource.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: core/tron/p2p.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: core/tron/proposal.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: core/tron/transaction.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: core/tron/vote.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: core/tron/witness.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)

:protocol:generateProto (Thread[Daemon worker,5,main]) completed. Took 1.72 secs.
:protocol:compileJava (Thread[Daemon worker,5,main]) started.

> Task :protocol:compileJava
Caching disabled for task ':protocol:compileJava' because:
  Build cache is disabled
Task ':protocol:compileJava' is not up-to-date because:
  Task has failed previously.
All input files are considered out-of-date for incremental task ':protocol:compileJava'.
Full recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments.
file or directory '/opt/tron/java-tron/protocol/src/main/gen', not found
Compiling with JDK Java compiler API.
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/DatabaseGrpc.java:278: error: cannot find symbol
  public static final class DatabaseStub extends io.grpc.stub.AbstractAsyncStub<DatabaseStub> {
                                                             ^
  symbol:   class AbstractAsyncStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/DatabaseGrpc.java:331: error: cannot find symbol
  public static final class DatabaseBlockingStub extends io.grpc.stub.AbstractBlockingStub<DatabaseBlockingStub> {
                                                                     ^
  symbol:   class AbstractBlockingStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/DatabaseGrpc.java:380: error: cannot find symbol
  public static final class DatabaseFutureStub extends io.grpc.stub.AbstractFutureStub<DatabaseFutureStub> {
                                                                   ^
  symbol:   class AbstractFutureStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/NetworkGrpc.java:95: error: cannot find symbol
  public static final class NetworkStub extends io.grpc.stub.AbstractAsyncStub<NetworkStub> {
                                                            ^
  symbol:   class AbstractAsyncStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/NetworkGrpc.java:113: error: cannot find symbol
  public static final class NetworkBlockingStub extends io.grpc.stub.AbstractBlockingStub<NetworkBlockingStub> {
                                                                    ^
  symbol:   class AbstractBlockingStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/NetworkGrpc.java:131: error: cannot find symbol
  public static final class NetworkFutureStub extends io.grpc.stub.AbstractFutureStub<NetworkFutureStub> {
                                                                  ^
  symbol:   class AbstractFutureStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/WalletSolidityGrpc.java:1811: error: cannot find symbol
  public static final class WalletSolidityStub extends io.grpc.stub.AbstractAsyncStub<WalletSolidityStub> {
                                                                   ^
  symbol:   class AbstractAsyncStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/WalletSolidityGrpc.java:2145: error: cannot find symbol
  public static final class WalletSolidityBlockingStub extends io.grpc.stub.AbstractBlockingStub<WalletSolidityBlockingStub> {
                                                                           ^
  symbol:   class AbstractBlockingStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/WalletSolidityGrpc.java:2441: error: cannot find symbol
  public static final class WalletSolidityFutureStub extends io.grpc.stub.AbstractFutureStub<WalletSolidityFutureStub> {
                                                                         ^
  symbol:   class AbstractFutureStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/WalletExtensionGrpc.java:278: error: cannot find symbol
  public static final class WalletExtensionStub extends io.grpc.stub.AbstractAsyncStub<WalletExtensionStub> {
                                                                    ^
  symbol:   class AbstractAsyncStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/WalletExtensionGrpc.java:337: error: cannot find symbol
  public static final class WalletExtensionBlockingStub extends io.grpc.stub.AbstractBlockingStub<WalletExtensionBlockingStub> {
                                                                            ^
  symbol:   class AbstractBlockingStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/WalletExtensionGrpc.java:392: error: cannot find symbol
  public static final class WalletExtensionFutureStub extends io.grpc.stub.AbstractFutureStub<WalletExtensionFutureStub> {
                                                                          ^
  symbol:   class AbstractFutureStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/WalletGrpc.java:6487: error: cannot find symbol
  public static final class WalletStub extends io.grpc.stub.AbstractAsyncStub<WalletStub> {
                                                           ^
  symbol:   class AbstractAsyncStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/WalletGrpc.java:7760: error: cannot find symbol
  public static final class WalletBlockingStub extends io.grpc.stub.AbstractBlockingStub<WalletBlockingStub> {
                                                                   ^
  symbol:   class AbstractBlockingStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/WalletGrpc.java:8894: error: cannot find symbol
  public static final class WalletFutureStub extends io.grpc.stub.AbstractFutureStub<WalletFutureStub> {
                                                                 ^
  symbol:   class AbstractFutureStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/TronZksnarkGrpc.java:131: error: cannot find symbol
  public static final class TronZksnarkStub extends io.grpc.stub.AbstractAsyncStub<TronZksnarkStub> {
                                                                ^
  symbol:   class AbstractAsyncStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/TronZksnarkGrpc.java:154: error: cannot find symbol
  public static final class TronZksnarkBlockingStub extends io.grpc.stub.AbstractBlockingStub<TronZksnarkBlockingStub> {
                                                                        ^
  symbol:   class AbstractBlockingStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/TronZksnarkGrpc.java:176: error: cannot find symbol
  public static final class TronZksnarkFutureStub extends io.grpc.stub.AbstractFutureStub<TronZksnarkFutureStub> {
                                                                      ^
  symbol:   class AbstractFutureStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/MonitorGrpc.java:131: error: cannot find symbol
  public static final class MonitorStub extends io.grpc.stub.AbstractAsyncStub<MonitorStub> {
                                                            ^
  symbol:   class AbstractAsyncStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/MonitorGrpc.java:154: error: cannot find symbol
  public static final class MonitorBlockingStub extends io.grpc.stub.AbstractBlockingStub<MonitorBlockingStub> {
                                                                    ^
  symbol:   class AbstractBlockingStub
  location: package io.grpc.stub
/opt/tron/java-tron/protocol/src/main/java/org/tron/api/MonitorGrpc.java:176: error: cannot find symbol
  public static final class MonitorFutureStub extends io.grpc.stub.AbstractFutureStub<MonitorFutureStub> {
                                                                  ^
  symbol:   class AbstractFutureStub
  location: package io.grpc.stub
21 errors

> Task :protocol:compileJava FAILED
:protocol:compileJava (Thread[Daemon worker,5,main]) completed. Took 48.638 secs.
:protocol:processResources (Thread[Daemon worker,5,main]) started.

> Task :protocol:processResources
file or directory '/opt/tron/java-tron/protocol/src/main/resources', not found
file or directory '/opt/tron/java-tron/protocol/src/main/proto', not found
Caching disabled for task ':protocol:processResources' because:
  Build cache is disabled
Task ':protocol:processResources' is not up-to-date because:
  Output property 'destinationDir' file /opt/tron/java-tron/protocol/build/resources/main has been removed.
  Output property 'destinationDir' file /opt/tron/java-tron/protocol/build/resources/main/api has been removed.
  Output property 'destinationDir' file /opt/tron/java-tron/protocol/build/resources/main/api/api.proto has been removed.
file or directory '/opt/tron/java-tron/protocol/src/main/resources', not found
file or directory '/opt/tron/java-tron/protocol/src/main/proto', not found
:protocol:processResources (Thread[Daemon worker,5,main]) completed. Took 0.071 secs.
:common:processResources (Thread[Execution worker for ':' Thread 6,5,main]) started.

> Task :common:processResources NO-SOURCE
file or directory '/opt/tron/java-tron/common/src/main/resources', not found
Skipping task ':common:processResources' as it has no source files and no previous output files.
:common:processResources (Thread[Execution worker for ':' Thread 6,5,main]) completed. Took 0.003 secs.
:crypto:processResources (Thread[Execution worker for ':' Thread 6,5,main]) started.

> Task :crypto:processResources NO-SOURCE
file or directory '/opt/tron/java-tron/crypto/src/main/resources', not found
Skipping task ':crypto:processResources' as it has no source files and no previous output files.
:crypto:processResources (Thread[Execution worker for ':' Thread 6,5,main]) completed. Took 0.002 secs.
:chainbase:processResources (Thread[Execution worker for ':' Thread 6,5,main]) started.

> Task :chainbase:processResources NO-SOURCE
file or directory '/opt/tron/java-tron/chainbase/src/main/resources', not found
Skipping task ':chainbase:processResources' as it has no source files and no previous output files.
:chainbase:processResources (Thread[Execution worker for ':' Thread 6,5,main]) completed. Took 0.002 secs.
:actuator:processResources (Thread[Execution worker for ':' Thread 6,5,main]) started.

> Task :actuator:processResources NO-SOURCE
file or directory '/opt/tron/java-tron/actuator/src/main/resources', not found
Skipping task ':actuator:processResources' as it has no source files and no previous output files.
:actuator:processResources (Thread[Execution worker for ':' Thread 6,5,main]) completed. Took 0.002 secs.
:consensus:processResources (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :consensus:processResources NO-SOURCE
file or directory '/opt/tron/java-tron/consensus/src/main/resources', not found
Skipping task ':consensus:processResources' as it has no source files and no previous output files.
:consensus:processResources (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.003 secs.
:example:compileJava (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :example:compileJava NO-SOURCE
file or directory '/opt/tron/java-tron/example/src/main/java', not found
Skipping task ':example:compileJava' as it has no source files and no previous output files.
:example:compileJava (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.004 secs.
:example:processResources (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :example:processResources NO-SOURCE
file or directory '/opt/tron/java-tron/example/src/main/resources', not found
Skipping task ':example:processResources' as it has no source files and no previous output files.
:example:processResources (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.003 secs.
:example:classes (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :example:classes UP-TO-DATE
Skipping task ':example:classes' as it has no actions.
:example:classes (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.0 secs.
:example:jar (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :example:jar
Caching disabled for task ':example:jar' because:
  Build cache is disabled
Task ':example:jar' is not up-to-date because:
  Output property 'archiveFile' file /opt/tron/java-tron/example/build/libs/example-1.0.0.jar has been removed.
:example:jar (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.015 secs.
:example:sourcesJar (Thread[Execution worker for ':' Thread 4,5,main]) started.

> Task :example:sourcesJar
file or directory '/opt/tron/java-tron/example/src/main/resources', not found
file or directory '/opt/tron/java-tron/example/src/main/java', not found
Caching disabled for task ':example:sourcesJar' because:
  Build cache is disabled
Task ':example:sourcesJar' is not up-to-date because:
  Output property 'archiveFile' file /opt/tron/java-tron/example/build/libs/example-1.0.0-sources.jar has been removed.
file or directory '/opt/tron/java-tron/example/src/main/resources', not found
file or directory '/opt/tron/java-tron/example/src/main/java', not found
:example:sourcesJar (Thread[Execution worker for ':' Thread 4,5,main]) completed. Took 0.016 secs.
:framework:processResources (Thread[Execution worker for ':' Thread 5,5,main]) started.

> Task :framework:processResources
Caching disabled for task ':framework:processResources' because:
  Build cache is disabled
Task ':framework:processResources' is not up-to-date because:
  Output property 'destinationDir' file /opt/tron/java-tron/framework/build/resources/main has been removed.
  Output property 'destinationDir' file /opt/tron/java-tron/framework/build/resources/main/config-backup.conf has been removed.
  Output property 'destinationDir' file /opt/tron/java-tron/framework/build/resources/main/config-beta.conf has been removed.
:framework:processResources (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 0.7 secs.
:plugins:compileJava (Thread[Execution worker for ':' Thread 5,5,main]) started.

> Task :plugins:compileJava
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spring.io/plugins-release/com/github/halibobo1205/leveldb-java/leveldb/v0.12.5/leveldb-v0.12.5.pom)]
Failed to get resource: HEAD. [HTTP HTTP/1.1 401 Unauthorized: https://repo.spring.io/plugins-release/com/github/halibobo1205/leveldb-java/leveldb-api/v0.12.5/leveldb-api-v0.12.5.pom)]
file or directory '/opt/tron/java-tron/plugins/libs', not found
Caching disabled for task ':plugins:compileJava' because:
  Build cache is disabled
Task ':plugins:compileJava' is not up-to-date because:
  Output property 'destinationDir' file /opt/tron/java-tron/plugins/build/classes/java/main has been removed.
  Output property 'destinationDir' file /opt/tron/java-tron/plugins/build/classes/java/main/org has been removed.
  Output property 'destinationDir' file /opt/tron/java-tron/plugins/build/classes/java/main/org/tron has been removed.
All input files are considered out-of-date for incremental task ':plugins:compileJava'.
file or directory '/opt/tron/java-tron/plugins/libs', not found
Full recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments.
Compiling with JDK Java compiler API.
Created classpath snapshot for incremental compilation in 0.187 secs. 6 duplicate classes found in classpath (see all with --debug).
:plugins:compileJava (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 3.277 secs.
:plugins:processResources (Thread[Execution worker for ':' Thread 5,5,main]) started.

> Task :plugins:processResources
Caching disabled for task ':plugins:processResources' because:
  Build cache is disabled
Task ':plugins:processResources' is not up-to-date because:
  Output property 'destinationDir' file /opt/tron/java-tron/plugins/build/resources/main has been removed.
  Output property 'destinationDir' file /opt/tron/java-tron/plugins/build/resources/main/logback.xml has been removed.
:plugins:processResources (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 0.014 secs.
:plugins:classes (Thread[Execution worker for ':' Thread 5,5,main]) started.

> Task :plugins:classes
Skipping task ':plugins:classes' as it has no actions.
:plugins:classes (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 0.0 secs.
:plugins:buildArchiveManifestJar (Thread[Execution worker for ':' Thread 5,5,main]) started.

> Task :plugins:buildArchiveManifestJar
file or directory '/opt/tron/java-tron/plugins/libs', not found
file or directory '/opt/tron/java-tron/plugins/libs', not found
Caching disabled for task ':plugins:buildArchiveManifestJar' because:
  Build cache is disabled
Task ':plugins:buildArchiveManifestJar' is not up-to-date because:
  Output property 'archiveFile' file /opt/tron/java-tron/plugins/build/libs/ArchiveManifest.jar has been removed.
file or directory '/opt/tron/java-tron/plugins/libs', not found
:plugins:buildArchiveManifestJar (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 4.475 secs.
:plugins:jar (Thread[Execution worker for ':' Thread 5,5,main]) started.

> Task :plugins:jar
Caching disabled for task ':plugins:jar' because:
  Build cache is disabled
Task ':plugins:jar' is not up-to-date because:
  Output property 'archiveFile' file /opt/tron/java-tron/plugins/build/libs/plugins-1.0.0.jar has been removed.
:plugins:jar (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 0.022 secs.
:plugins:sourcesJar (Thread[Execution worker for ':' Thread 5,5,main]) started.

> Task :plugins:sourcesJar
Caching disabled for task ':plugins:sourcesJar' because:
  Build cache is disabled
Task ':plugins:sourcesJar' is not up-to-date because:
  Output property 'archiveFile' file /opt/tron/java-tron/plugins/build/libs/plugins-1.0.0-sources.jar has been removed.
:plugins:sourcesJar (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 0.018 secs.
:example:actuator-example:processResources (Thread[Execution worker for ':' Thread 5,5,main]) started.

> Task :example:actuator-example:processResources NO-SOURCE
file or directory '/opt/tron/java-tron/example/actuator-example/src/main/resources', not found
Skipping task ':example:actuator-example:processResources' as it has no source files and no previous output files.
:example:actuator-example:processResources (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 0.002 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':protocol:compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 25s
25 actionable tasks: 16 executed, 9 up-to-date
@krautcat krautcat changed the title Building on ARM64 Building on ARM64 fails Jul 11, 2022
@vivian1912 vivian1912 added the topic: Build compile error, jitpack label Jul 12, 2022
@krautcat
Copy link
Author

Update: it is connected with #4248. Now we have new problems.

> Task :clean
> Task :actuator:clean
> Task :chainbase:clean
> Task :common:clean
> Task :consensus:clean
> Task :crypto:clean
> Task :example:clean
> Task :framework:clean
> Task :plugins:clean
> Task :protocol:clean
> Task :example:actuator-example:clean
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :jar
> Task :assemble
> Task :check
> Task :build
> Task :protocol:extractIncludeProto
> Task :protocol:extractProto
> Task :protocol:generateProto
> Task :protocol:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :protocol:processResources
> Task :protocol:classes
> Task :protocol:jar

> Task :common:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :common:processResources NO-SOURCE
> Task :common:classes
> Task :common:jar
> Task :crypto:compileJava
> Task :crypto:processResources NO-SOURCE
> Task :crypto:classes
> Task :crypto:jar

> Task :chainbase:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :chainbase:processResources NO-SOURCE
> Task :chainbase:classes
> Task :chainbase:jar

> Task :actuator:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :actuator:processResources NO-SOURCE
> Task :actuator:classes
> Task :actuator:jar
> Task :actuator:sourcesJar
> Task :chainbase:sourcesJar
> Task :common:sourcesJar
> Task :consensus:compileJava
> Task :consensus:processResources NO-SOURCE
> Task :consensus:classes
> Task :consensus:jar
> Task :consensus:sourcesJar
> Task :crypto:sourcesJar
> Task :example:compileJava NO-SOURCE
> Task :example:processResources NO-SOURCE
> Task :example:classes UP-TO-DATE
> Task :example:jar
> Task :example:sourcesJar

> Task :framework:compileJava
/opt/tron/java-tron/framework/src/main/java/org/tron/common/overlay/client/DatabaseGrpcClient.java:18: error: method usePlaintext in class ManagedChannelBuilder<T> cannot be applied to given types;
        .usePlaintext(true)
        ^
  required: no arguments
  found: boolean
  reason: actual and formal argument lists differ in length
  where T is a type-variable:
    T extends ManagedChannelBuilder<T> declared in class ManagedChannelBuilder
/opt/tron/java-tron/framework/src/main/java/org/tron/common/overlay/client/DatabaseGrpcClient.java:25: error: method usePlaintext in class ManagedChannelBuilder<T> cannot be applied to given types;
        .usePlaintext(true)
        ^
  required: no arguments
  found: boolean
  reason: actual and formal argument lists differ in length
  where T is a type-variable:
    T extends ManagedChannelBuilder<T> declared in class ManagedChannelBuilder
/opt/tron/java-tron/framework/src/main/java/org/tron/common/overlay/client/WalletGrpcClient.java:32: error: method usePlaintext in class ManagedChannelBuilder<T> cannot be applied to given types;
        .usePlaintext(true)
        ^
  required: no arguments
  found: boolean
  reason: actual and formal argument lists differ in length
  where T is a type-variable:
    T extends ManagedChannelBuilder<T> declared in class ManagedChannelBuilder
/opt/tron/java-tron/framework/src/main/java/org/tron/common/overlay/client/WalletGrpcClient.java:39: error: method usePlaintext in class ManagedChannelBuilder<T> cannot be applied to given types;
        .usePlaintext(true)
        ^
  required: no arguments
  found: boolean
  reason: actual and formal argument lists differ in length
  where T is a type-variable:
    T extends ManagedChannelBuilder<T> declared in class ManagedChannelBuilder
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors

> Task :framework:compileJava FAILED
> Task :framework:processResources
> Task :plugins:compileJava
> Task :plugins:processResources
> Task :plugins:classes
> Task :plugins:buildArchiveManifestJar
> Task :plugins:jar
> Task :plugins:sourcesJar
> Task :protocol:sourcesJar
> Task :example:actuator-example:compileJava
> Task :example:actuator-example:processResources NO-SOURCE
> Task :example:actuator-example:classes
> Task :example:actuator-example:jar
> Task :example:actuator-example:sourcesJar

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':framework:compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 23s
46 actionable tasks: 46 executed

@halibobo1205
Copy link
Contributor

java-tron does not support arm for now.

@ethan1844
Copy link
Contributor

Thanks for your contribution to java-tron, this issue will be closed as no update for a long time.

Please feel free to re-open it if you still see the issue, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: Build compile error, jitpack
Projects
None yet
Development

No branches or pull requests

5 participants
@krautcat @halibobo1205 @vivian1912 @ethan1844 and others