libdecsync
libdecsync copied to clipboard
makefile exit 2 even it the build succeed
The build succeed, but exit code is not 0. aur PKGBUILD noticed that too -> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libdecsync#n17
Please check https://github.com/void-linux/void-packages/runs/4649345169?check_suite_focus=true
I don't know why it happens. From the log it looks like some parts are executed twice for some reason. See
./gradlew linkReleaseSharedlinuxX64
./gradlew linkReleaseSharedlinuxX64
Makefile:38: *** open: build/bin/linuxX64/releaseShared/decsync.pc: No such file or directory. Stop.
make: *** Waiting for unfinished jobs....
and
BUILD SUCCESSFUL in 2m 19s
2 actionable tasks: 2 executed
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.5/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 2m 19s
2 actionable tasks: 2 executed
But it only happens on clean (?) builds, if I try it myself it works fine.
The reason it exits with 2 is that it tries to use decsync.pc (for what?) before it is created.
The current Makefile doesn't support -j option. You should disable build parallelization.