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

Build from source fails Task :linux64.min FAILED #223

Closed
ErikLentz opened this issue Jan 15, 2020 · 5 comments
Closed

Build from source fails Task :linux64.min FAILED #223

ErikLentz opened this issue Jan 15, 2020 · 5 comments

Comments

@ErikLentz
Copy link

I'm trying to build from source on Fedora 31 x64. I have OpenJDK installed.

Debug log attached.

The reason I'm trying to build from source is to build a Copr repository for easy updating.

output.log

@angryziber
Copy link
Collaborator

angryziber commented Jan 15, 2020 via email

@ErikLentz
Copy link
Author

ErikLentz commented Jan 15, 2020

I'm probably doing something wrong...

./gradlew current > output3.log
Note: /mnt/5EACD860ACD8346D/HomeUpload/Github/ipscan/src/net/azib/ipscan/exporters/AbstractExporter.java uses or overrides 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.

FAILURE: Build failed with an exception.

  • Where:
    Build file '/mnt/5EACD860ACD8346D/HomeUpload/Github/ipscan/build.gradle' line: 171

  • What went wrong:
    Execution failed for task ':linux64.min'.

exec returned: 2

  • 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 16s

@ErikLentz
Copy link
Author

Here's the result when I run as root:

./gradlew current
Starting a Gradle Daemon (subsequent builds will be faster)

Configure project :
Using /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.fc31.x86_64/jre/lib/rt.jar for proguard minimization
Using /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.fc31.x86_64/jre/lib/rt.jar for proguard minimization
Using /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.fc31.x86_64/jre/lib/rt.jar for proguard minimization
Using /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.fc31.x86_64/jre/lib/rt.jar for proguard minimization
Using /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.fc31.x86_64/jre/lib/rt.jar for proguard minimization

Task :compileJava
Note: /home/smegs/Github/ipscan/src/net/azib/ipscan/exporters/AbstractExporter.java uses or overrides 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 :linux64.min FAILED

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/smegs/Github/ipscan/build.gradle' line: 189

  • What went wrong:
    Execution failed for task ':linux64.min'.

Warning: Could not find file /home/smegs/Github/ipscan/build/libs/rpm/RPMS/x86_64/ipscan-3.6.2-1.x86_64.rpm to copy.

  • 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 31s
5 actionable tasks: 5 executed

@ErikLentz
Copy link
Author

Nevermind, I got it to build. I don't know what I was doing differently before.

@angryziber
Copy link
Collaborator

angryziber commented Jan 16, 2020

Great!

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