[Nexus 4 Android Development] Zippy Dufus:
Build problem

Hello again,

Adding the TheMuppets repo solved my first problem - many thanks!!

Now I have a problem right at the end of the build where I run out of space when it is packaging the ROM.

I was originally using a virtual machine with 100 GB storage so I bumped that up to 120 GB. I was also a little ambitious by attempting to compile using the Linaro gcc 4.9 compiler so I tried the build again with the default Google gcc 4.8 compiler. No luck, same problem as shown below.

So now I am wondering:

I have 27 GB of space after the build aborts. Is the "No space left on device" really refer to the root file system or is it perhaps /tmp?

Maybe the build creates a virtual partition (i.e. that mysterious new system.new.bin image) and it runs out of space copying objects to it?

Does Google ship its own version of python or is the default Fedora version is used so there is a bug?

A bug in the cyanogenmod build process?

Any assistance will be appreciated.

Running: mkuserimg.sh -s /tmp/tmpCbphGF/data /tmp/tmpGHgMAH ext4 data 6189744128 -T 1418475805 /tmp/targetfiles-rQrTuC/BOOT/RAMDISK/file_contexts

++++ cache ++++

creating cache.img...
Running: mkuserimg.sh -s /tmp/tmpLaQj8Y/cache /tmp/tmpvr00Kk ext4 cache 738197504 -T 1418475805 /tmp/targetfiles-rQrTuC/BOOT/RAMDISK/file_contexts
done.
[33mPackage OTA:[0m /home/android/out/target/product/mako/cm_mako-ota-b2ee1fc1e1.zip
unzipping target target-files...
running: unzip -o -q /home/android/out/target/product/mako/obj/PACKAGING/target_files_intermediates/cm_mako-target_files-b2ee1fc1e1.zip -d /tmp/targetfiles-FUgzUo
--- target info ---
blocksize = (int) 131072
boot_size = (int) 23068672
build.prop = (dict) {'ro.setupwizard.enterprise_mode': '1', 'ro.product.cpu.abilist': 'armeabi-v7a,armeabi', 'ro.url.legal': 'http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html', 'ro.build.product': 'mako', 'wifi.supplicant_scan_interval': '15', 'ro.build.id': 'LRX22C', 'ro.build.version.sdk': '21', 'ro.product.cpu.abilist32': 'armeabi-v7a,armeabi', 'qcom.hw.aac.encoder': 'true', 'dalvik.vm.isa.arm.features': 'div', 'ro.qc.sensors.wl_dis': 'true', 'dalvik.vm.heapmaxfree': '8m', 'ro.build.fingerprint': 'google/occam/mako:5.0/LRX21T/1576899:user/release-keys', 'ro.product.manufacturer': 'LGE', 'ro.build.description': 'occam-user 5.0 LRX21T 1576899 release-keys', 'dalvik.vm.heapstartsize': '8m', 'ro.product.brand': 'google', 'wifi.interface': 'wlan0', 'ro.product.model': 'Nexus 4', 'persist.sys.dalvik.multithread': 'false', 'ro.cmlegal.url': 'http://www.cyanogenmod.org/docs/privacy', 'dalvik.vm.heapsize': '512m', 'persist.audio.fluence.voicecall': 'true', 'persist.audio.fluence.mode': 'endfire', 'dalvik.vm.heaptargetutilization': '0.75', 'ro.build.host': 'fedora20.localdomain', 'ro.com.android.dataroaming': 'false', 'telephony.lteOnCdmaDevice': '0', 'dalvik.vm.heapminfree': '512k', 'ro.board.platform': 'msm8960', 'ro.product.cpu.abilist64': '', 'drm.service.enabled': 'true', 'ro.build.version.release': '5.0.1', 'ro.build.version.codename': 'REL', 'net.bt.name': 'Android', 'ro.build.type': 'userdebug', 'ro.config.alarm_alert': 'Hassium.ogg', 'ro.opengles.version': '196608', 'ro.build.display.id': 'cm_mako-userdebug 5.0.1 LRX22C b2ee1fc1e1 test-keys', 'ro.rommanager.developerid': 'cyanogenmod', 'ro.config.ringtone': 'Orion.ogg', 'dalvik.vm.dexopt-flags': 'm=y', 'dalvik.vm.stack-trace-file': '/data/anr/traces.txt', 'ro.carrier': 'unknown', 'ro.product.board': 'MAKO', 'ro.com.google.clientidbase': 'android-google', 'ro.build.date': 'Sat Dec 13 08:03:25 EST 2014', 'ro.build.date.utc': '1418475805', 'keyguard.no_require_sim': 'true', 'persist.audio.dualmic.config': 'endfire', 'ro.cm.display.version': '12-20141213-UNOFFICIAL-mako', 'ro.build.version.all_codenames': 'REL', 'dalvik.vm.lockprof.threshold': '500', 'ro.build.selinux': '1', 'persist.sys.root_access': '1', 'persist.sys.dalvik.vm.lib.2': 'libart.so', 'ro.product.cpu.abi': 'armeabi-v7a', 'debug.egl.recordable.rgba8888': '1', 'ro.cm.version': '12-20141213-UNOFFICIAL-mako', 'persist.audio.handset.mic.type': 'digital', 'ro.url.legal.android_privacy': 'http://www.google.com/intl/%s/mobile/android/basic/privacy.html', 'ro.product.name': 'occam', 'ro.telephony.call_ring.multiple': '0', 'ro.wifi.channels': '', 'ro.modversion': '12-20141213-UNOFFICIAL-mako', 'ro.build.characteristics': 'nosdcard', 'persist.hwc.mdpcomp.enable': 'true', 'ro.build.version.incremental': 'b2ee1fc1e1', 'ro.build.tags': 'test-keys', 'ro.sf.lcd_density': '320', 'ro.com.android.dateformat': 'MM-dd-yyyy', 'ro.cm.releasetype': 'UNOFFICIAL', 'persist.audio.lowlatency.rec': 'false', 'persist.audio.handset.mic': 'dmic', 'ro.product.cpu.abi2': 'armeabi', 'ro.build.user': 'android', 'ro.product.locale.language': 'en', 'ro.qualcomm.bt.hci_transport': 'smd', 'ro.product.device': 'mako', 'persist.sys.recovery_update': 'false', 'ro.product.locale.region': 'US', 'ro.cm.device': 'mako', 'ro.qualcomm.sensors.smd': 'true', 'ro.com.android.wifi-watchlist': 'GoogleGuest', 'persist.radio.apm_sim_not_pwdn': '1', 'dalvik.vm.heapgrowthlimit': '192m', 'persist.sys.dun.override': '0', 'ro.config.notification_sound': 'Argon.ogg', 'media.aac_51_output_enabled': 'true'}
cache_fs_type = (str) ext4
cache_size = (int) 738197504
default_system_dev_certificate = (str) build/target/product/security/testkey
extfs_sparse_flag = (str) -s
extra_recovery_keys = (str) build/target/product/security/cm build/target/product/security/cm-devkey build/target/product/security/bacon
fs_type = (str) ext4
fstab = (dict) {'/radio': <common.Partition object at 0x14c0310>, '/cache': <common.Partition object at 0x14c0050>, '/data': <common.Partition object at 0x14c0090>, '/system': <common.Partition object at 0x14bcfd0>, '/aboot': <common.Partition object at 0x14c0490>, '/rpm': <common.Partition object at 0x14c0450>, '/persist': <common.Partition object at 0x14c00d0>, '/tz': <common.Partition object at 0x14c0410>, '/recovery': <common.Partition object at 0x14c0290>, '/firmware': <common.Partition object at 0x14c0110>, '/sbl1': <common.Partition object at 0x14c0350>, '/sbl3': <common.Partition object at 0x14c03d0>, '/sbl2': <common.Partition object at 0x14c0390>, '/boot': <common.Partition object at 0x14c0150>, '/misc': <common.Partition object at 0x14c02d0>}
fstab_version = (int) 2
mkbootimg_args = (str) --ramdisk_offset 0x01600000
multistage_support = (str) 1
recovery_api_version = (int) 3
recovery_mount_options = (str) ext4=max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc
recovery_size = (int) 23068672
selinux_fc = (str) /tmp/targetfiles-FUgzUo/BOOT/RAMDISK/file_contexts
system_size = (int) 880803840
tool_extensions = (str) device/lge/mako
update_rename_support = (str) 1
use_set_metadata = (str) 1
userdata_size = (int) 6189744128
(using device-specific extensions from target_files)
loaded device-specific extensions from /tmp/targetfiles-FUgzUo/META/releasetools.py
using prebuilt recovery.img from IMAGES...
using system.img from target-files
Total of 215040 4096-byte output blocks in 1694 input chunks.
Generating digraph...
Finding vertex sequence...
Removing backward edges...
0/0 dependencies (0.00%) were violated; 0 source blocks removed.
Reticulating splines...
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1623, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1580, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 613, in WriteFullOTAPackage
system_diff = common.BlockDifference("system", system_tgt, src=None)
File "/home/android/build/tools/releasetools/common.py", line 1066, in __init__
b.Compute(self.path)
File "/home/android/build/tools/releasetools/blockimgdiff.py", line 228, in Compute
self.ComputePatches(prefix)
File "/home/android/build/tools/releasetools/blockimgdiff.py", line 308, in ComputePatches
new_f.write(piece)
IOError: [Errno 28] No space left on device
make: *** [/home/android/out/target/product/mako/cm_mako-ota-b2ee1fc1e1.zip] Error 1

[android@fedora20 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/fedora-root 114G 83G [COLOR="SeaGreen"][B]27G[/B][/COLOR] 76% /
devtmpfs 992M 0 992M 0% /dev
tmpfs 1001M 46M 956M 5% /dev/shm
tmpfs 1001M 752K 1001M 1% /run
tmpfs 1001M 0 1001M 0% /sys/fs/cgroup
tmpfs 1001M 1.2M 1000M 1% /tmp
/dev/vda1 477M 125M 323M 28% /boot