[Android-tools-devel] Bug#834753: android-platform-tools-base: FTBFS with only 1 CPU (Cannot set maxParallelForks to a value less than 1)

Santiago Vila sanvila at debian.org
Thu Aug 18 16:24:29 UTC 2016


Package: src:android-platform-tools-base
Version: 1.5.0-4
Severity: serious

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --parallel --with maven_repo_helper --buildsystem=gradle
   dh_testdir -i -O--parallel -O--buildsystem=gradle
   dh_update_autotools_config -i -O--parallel -O--buildsystem=gradle
   dh_auto_configure -i -O--parallel -O--buildsystem=gradle
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build -- -x test assemble
	mkdir -p .gradle/init.d
	cp /usr/share/gradle-debian-helper/init.gradle .gradle/init.d/
	gradle --info --console plain --offline --stacktrace --no-daemon --refresh-dependencies --gradle-user-home .gradle -x test assemble
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.13/userguide/gradle_daemon.html.
Starting daemon process: workingDir = /<<PKGBUILDDIR>>/.gradle/daemon/2.13, daemonArgs: [/usr/lib/jvm/java-8-openjdk-amd64/bin/java, -XX:MaxPermSize=1024m, -Xmx4096m, -Dfile.encoding=US-ASCII, -Duser.country=US, -Duser.language=en, -Duser.variant, -cp, /usr/share/gradle/lib/gradle-launcher-2.13.jar, org.gradle.launcher.daemon.bootstrap.GradleDaemon, 2.13]

[... snipped ...]

FAILURE: Build failed with an exception.

* Where:
Build file '/<<PKGBUILDDIR>>/base/build-system/builder/build.gradle' line: 32

* What went wrong:
A problem occurred evaluating project ':base:builder'.
> Cannot set maxParallelForks to a value less than 1.

[ ... ]

BUILD FAILED

Total time: 8.154 secs
Stopped 0 compiler daemon(s).
Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Build file '/<<PKGBUILDDIR>>/base/build-system/builder/build.gradle' line: 32
A problem occurred evaluating project ':base:builder'.] from daemon DaemonInfo{pid=4267, address=[b4c8bf4a-dd0b-41ed-9eaf-43be30eca7ff port:34365, addresses:[/0:0:0:0:0:0:0:1%lo, /127.0.0.1]], idle=false, context=DefaultDaemonContext[uid=43fe90c6-6a20-40db-927d-01422accea8c,javaHome=/usr/lib/jvm/java-8-openjdk-amd64,daemonRegistryDir=/<<PKGBUILDDIR>>/.gradle/daemon,pid=4267,idleTimeout=120000,daemonOpts=-XX:MaxPermSize=1024m,-Xmx4096m,-Dfile.encoding=US-ASCII,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done).
dh_auto_build: gradle --info --console plain --offline --stacktrace --no-daemon --refresh-dependencies --gradle-user-home .gradle -x test assemble returned exit code 1
debian/rules:9: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:6: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

This failure seems related with the fact that my autobuilder has only
one CPU.

Packages are never supposed to require more than one CPU to build,
otherwise we would have, in addition to Build-Depends, a field
called maybe Build-CPUs.

But we don't have a field like that because every task that may be
performed in a finite amount of time with several CPUs may also be
performed with only one CPU (even if it's slower).

Thanks.



More information about the Android-tools-devel mailing list