Project

General

Profile

Issue #1814

build error ; ERROR: No Jack server running

Added by Fil Lupin almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Build system
Target version:
Start date:
06/18/2017
Due date:
% Done:

0%

Estimated time:
Resolution:
fixed
Device:
Galaxy S 3 (I9300)

Description

I tried to build replicant 6 for my i9300.

When running

make -j$parallel_tasks bacon

I got a memory error so I run

make clean
make -j1 bacon

and here is the output I got:
[...]
Install: /home/debian/replicant/replicant-6.0/out/host/linux-x86/bin/aapt
target Export Resources: framework-res (/home/debian/replicant/replicant-6.0/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)
nothing matches overlay file default_wallpaper.jpg, for flavor hdpi-v4
nothing matches overlay file default_wallpaper.jpg, for flavor xhdpi-v4
nothing matches overlay file default_wallpaper.jpg, for flavor xxhdpi-v4
nothing matches overlay file default_wallpaper.jpg, for flavor xxxhdpi-v4
warning: string 'gsm_alphabet_default_charset' has no default translation.
target R.java/Manifest.java: framework-res (/home/debian/replicant/replicant-6.0/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp)
nothing matches overlay file default_wallpaper.jpg, for flavor hdpi-v4
nothing matches overlay file default_wallpaper.jpg, for flavor xhdpi-v4
nothing matches overlay file default_wallpaper.jpg, for flavor xxhdpi-v4
nothing matches overlay file default_wallpaper.jpg, for flavor xxxhdpi-v4
warning: string 'gsm_alphabet_default_charset' has no default translation.
target Export Resources: org.cyanogenmod.platform-res (/home/debian/replicant/replicant-6.0/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/package-export.apk)
target R.java/Manifest.java: org.cyanogenmod.platform-res (/home/debian/replicant/replicant-6.0/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/R.stamp)
target R.java/Manifest.java: AdvancedDisplay (/home/debian/replicant/replicant-6.0/out/target/common/obj/APPS/AdvancedDisplay_intermediates/src/R.stamp)
host Prebuilt: jack-launcher (/home/debian/replicant/replicant-6.0/out/host/common/obj/JAVA_LIBRARIES/jack-launcher_intermediates/jack-launcher.jar)
Install: /home/debian/replicant/replicant-6.0/out/host/linux-x86/framework/jack-launcher.jar
host Prebuilt: jack (/home/debian/replicant/replicant-6.0/out/host/common/obj/JAVA_LIBRARIES/jack_intermediates/jack.jar)
host Prebuilt: jack (/home/debian/replicant/replicant-6.0/out/host/linux-x86/obj/EXECUTABLES/jack_intermediates/jack)
Install: /home/debian/replicant/replicant-6.0/out/host/linux-x86/bin/jack
host Prebuilt: jack-admin (/home/debian/replicant/replicant-6.0/out/host/linux-x86/obj/EXECUTABLES/jack-admin_intermediates/jack-admin)
Install: /home/debian/replicant/replicant-6.0/out/host/linux-x86/bin/jack-admin
Stopping background server
ERROR: No Jack server running
Killing background server
ERROR: No Jack server to kill
touch /home/debian/replicant/replicant-6.0/out/host/common/obj/JAVA_LIBRARIES/jack_intermediates/kill_server.stamp
Install: /home/debian/replicant/replicant-6.0/out/host/linux-x86/framework/jack.jar
Launching Jack server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/debian/replicant/replicant-6.0/out/host/linux-x86/framework/jack-launcher.jar -cp /home/debian/replicant/replicant-6.0/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex

Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/debian/replicant/replicant-6.0/out/host/linux-x86/framework/jack-launcher.jar -cp /home/debian/replicant/replicant-6.0/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
ERROR: Cannot launch Jack server
build/core/java.mk:643: recipe for target '/home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex' failed
make: *** [/home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex] Error 41

#### make failed to build some targets (22:07 (mm:ss)) ####

Do you think of anything which could provoke this?

History

#1

Updated by Fil Lupin almost 3 years ago

I add that when I make clean and then begin again from

. build/envsetup.sh
lunch replicant_i9300-userdebug
make -j1 bacon
[...]
Install: /home/debian/replicant/replicant-6.0/out/target/product/i9300/recovery/root/sbin/recovery
----- Making recovery ramdisk ------
Copying baseline ramdisk...
Modifying ramdisk contents...
cp: cannot stat '/home/debian/replicant/replicant-6.0/out/target/product/i9300/root/init.recovery.*.rc': No such file or directory
----- Making uncompressed recovery ramdisk ------
----- Making compressed recovery ramdisk ------
----- Making recovery image ------
+/home/debian/replicant/replicant-6.0/out/target/product/i9300/recovery.img maxsize=8562048 blocksize=4224 total=6631424 reserve=88704
Made recovery image: /home/debian/replicant/replicant-6.0/out/target/product/i9300/recovery.img
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex

Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/debian/replicant/replicant-6.0/out/host/linux-x86/framework/jack-launcher.jar -cp /home/debian/replicant/replicant-6.0/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
ERROR: Cannot launch Jack server
build/core/java.mk:643: recipe for target '/home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex' failed
make: *** [/home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex] Error 41

#### make failed to build some targets (04:37 (mm:ss)) ####
#2

Updated by Wolfgang Wiedmeyer almost 3 years ago

If Jack fails to launch, it usually means that there is not enough RAM. How much is available for the build? It should work with at least 4GB of RAM.

#3

Updated by Fil Lupin almost 3 years ago

Wolfgang Wiedmeyer wrote:

If Jack fails to launch, it usually means that there is not enough RAM. How much is available for the build? It should work with at least 4GB of RAM.

Thank you, I did not saw this minimum RAM, and I had 2GB.
I will try again with 2GB more.

#4

Updated by Fil Lupin almost 3 years ago

After trying a new build, I got an erreur.
Here are the steps followed and the output :

. build/envsetup.sh
lunch replicant_i9300-userdebug
parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc)
make -j$parallel_tasks bacon
[...]
----- Making uncompressed recovery ramdisk ------
----- Making compressed recovery ramdisk ------
----- Making recovery image ------
+/home/debian/replicant/replicant-6.0/out/target/product/i9300/recovery.img maxsize=8562048 blocksize=4224 total=6631424 reserve=88704
Made recovery image: /home/debian/replicant/replicant-6.0/out/target/product/i9300/recovery.img
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/with-local/classes.dex
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/with-local/classes.dex
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex

Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/classes.jack
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes.jack
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/javax.obex_intermediates/with-local/classes.dex
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/with-local/classes.dex
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/with-local/classes.dex
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/bluetooth.mapsapi_intermediates/classes.jack
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/sap-api-java-static_intermediates/classes.jack
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/APPS/BluetoothMidiService_intermediates/with-local/classes.dex
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/APPS/AdvancedDisplay_intermediates/with-local/classes.dex
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/APPS/BasicDreams_intermediates/with-local/classes.dex
Copying: /home/debian/replicant/replicant-6.0/out/target/common/obj/APPS/BluetoothMidiService_intermediates/classes.dex
Building with Jack: /home/debian/replicant/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/with-local/classes.dex
target Package: BluetoothMidiService (/home/debian/replicant/replicant-6.0/out/target/product/i9300/obj/APPS/BluetoothMidiService_intermediates/package.apk)
Copying: /home/debian/replicant/replicant-6.0/out/target/common/obj/APPS/AdvancedDisplay_intermediates/classes.dex
Copying: /home/debian/replicant/replicant-6.0/out/target/common/obj/APPS/BasicDreams_intermediates/classes.dex
target Package: AdvancedDisplay (/home/debian/replicant/replicant-6.0/out/target/product/i9300/obj/APPS/AdvancedDisplay_intermediates/package.apk)
target Package: BasicDreams (/home/debian/replicant/replicant-6.0/out/target/product/i9300/obj/APPS/BasicDreams_intermediates/package.apk)
Install: /home/debian/replicant/replicant-6.0/out/target/product/i9300/system/app/BluetoothMidiService/BluetoothMidiService.apk
Install: /home/debian/replicant/replicant-6.0/out/target/product/i9300/system/app/BasicDreams/BasicDreams.apk
Install: /home/debian/replicant/replicant-6.0/out/target/product/i9300/system/app/AdvancedDisplay/AdvancedDisplay.apk

#### make failed to build some targets (16:27 (mm:ss)) ####

#5

Updated by Fil Lupin almost 3 years ago

After launching with -j1, it succeed.

. build/envsetup.sh
lunch replicant_i9300-userdebug
make -j$parallel_tasks bacon

I saw you added a precision about the RAM needed, I think this issue can be closed.
Thank you for your help.

#6

Updated by Wolfgang Wiedmeyer almost 3 years ago

  • Status changed from New to Closed
  • Assignee set to Wolfgang Wiedmeyer
  • Resolution set to fixed

Also available in: Atom PDF