[Android Software/Hacking General [Developers Only]] judas1977:
Hello, i encountered strange problem with releasetools.

IDK if it's caused by JustArchi's optimizations, new android version, custom toolchain (sabermod) or something else (because i compile that rom for very first time) but i think i'd ask here...

Install system fs image: /home/judas77/android/mahdi/out/target/product/codina/system.img
/home/judas77/android/mahdi/out/target/product/codina/system.img+ maxsize=655163520 blocksize=4224 total=465864616 reserve=6619008
Package target files: /home/judas77/android/mahdi/out/target/product/codina/obj/PACKAGING/target_files_intermediates/mahdi_codina-target_files-eng.judas77.zip
Package OTA: /home/judas77/android/mahdi/out/target/product/codina/mahdi_codina-ota-eng.judas77.zip
MKBOOTIMG=device/samsung/u8500-common/shbootimg.mk \
./build/tools/releasetools/ota_from_target_files -v \
-p /home/judas77/android/mahdi/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=codina,i8160,GT-I8160 \
/home/judas77/android/mahdi/out/target/product/codina/obj/PACKAGING/target_files_intermediates/mahdi_codina-target_files-eng.judas77.zip /home/judas77/android/mahdi/out/target/product/codina/mahdi_codina-ota-eng.judas77.zip
unzipping target target-files...
running: unzip -o -q /home/judas77/android/mahdi/out/target/product/codina/obj/PACKAGING/target_files_intermediates/mahdi_codina-target_files-eng.judas77.zip -d /tmp/targetfiles-V6EhTO
--- target info ---
blocksize = (int) 4096
boot_size = (int) 16777216
build.prop = (dict) {'ro.setupwizard.enterprise_mode': '1', 'ro.url.legal': 'http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html', 'ro.build.product': 'codina', 'wifi.supplicant_scan_interval': '150', 'mahdi.ota.version': '2.6.20140614', 'ro.build.id': 'KTU84M', 'ste.cam.back.orientation': '90', 'ro.com.android.dateformat': 'MM-dd-yyyy', 'ro.bq.gpu_to_cpu_unsupported': '1', 'dalvik.vm.heapmaxfree': '4m', 'ro.build.fingerprint': 'samsung/mahdi_codina/codina:4.4.3/KTU84M/eng.judas77.20140614.105656:user/test-keys', 'ro.product.manufacturer': 'samsung', 'mobiledata.interfaces': 'pdp0,wlan0,gprs,ppp0', 'ro.lcd_min_brightness': '30', 'ro.telephony.ril_class': 'SamsungU8500RIL', 'ro.boot.selinux': 'disabled', 'dalvik.vm.heapstartsize': '5m', 'ro.product.brand': 'samsung', 'wifi.interface': 'wlan0', 'ro.product.model': 'GT-I8160', 'dalvik.vm.dexopt-data-only': '1', 'ste.video.dec.recycle.delay': '1', 'dalvik.vm.heapsize': '128m', 'dalvik.vm.heaptargetutilization': '0.75', 'ro.build.host': 'Iscariote', 'ro.com.android.dataroaming': 'false', 'ste.special_fast_dormancy': 'false', 'dalvik.vm.heapminfree': '512k', 'ro.product.locale.language': 'en', 'ro.device.chipset': 'ST-Ericsson NovaThor U8500 (45nm)', 'ro.ril.hsxpa': '1', 'ro.board.platform': 'montblanc', 'ste.cam.ext.cfg.path.secondary': '/system/usr/share/camera/config_file/aptina_mt9v113.dat', 'ste.cam.front.orientation': '270', 'ro.build.version.release': '4.4.3', 'ro.build.version.codename': 'REL', 'net.bt.name': 'Android', 'ro.build.type': 'user', 'ro.device.rear_cam': '5 Mpix (2592x1944)', 'ro.config.alarm_alert': 'Alarm_Classic.ogg', 'ro.opengles.version': '131072', 'ro.mahdi.version': '2.6-codina-20140614', 'ro.build.display.id': 'KTU84M', 'ro.config.ringtone': 'Ring_Synth_04.ogg', 'dalvik.vm.dexopt-flags': 'm=y', 'dalvik.vm.stack-trace-file': '/data/anr/traces.txt', 'ro.carrier': 'unknown', 'ro.product.board': 'montblanc', 'rild.libargs': '-d /dev/ttyS0', 'ro.com.google.clientidbase': 'android-google', 'ro.build.date': 'sob, 14 cze 2014, 11:00:03 CEST', 'ro.device.front_cam': 'VGA (640x480)', 'ro.kernel.android.checkjni': '0', 'ro.mahdi.device': 'codina', 'ste.omx.ctx': '0', 'ro.build.date.utc': '1402736403', 'keyguard.no_require_sim': 'true', 'ro.telephony.sends_barcount': '1', 'persist.sys.dalvik.vm.lib': 'libdvm.so', 'ro.build.selinux': '1', 'persist.sys.root_access': '3', 'ste.video.dec.mpeg4.in.size': '8192', 'ro.product.cpu.abi': 'armeabi-v7a', 'debug.hwui.render_dirty_regions': 'false', 'ro.url.legal.android_privacy': 'http://www.google.com/intl/%s/mobile/android/basic/privacy.html', 'ro.product.name': 'GT-I8160', 'ro.telephony.call_ring.multiple': 'false', 'rild.libpath': '/system/lib/libsec-ril.so', 'ro.ril.gprsclass': '10', 'ro.wifi.channels': '', 'ro.modversion': '2.6-codina-20140614', 'ro.device.cpu': 'ARMv7 800MHz Dual-core ARM Cortex-A9', 'ro.build.characteristics': 'default', 'ro.device.screen_res': "3,8' 800x480 pixels ( ~246 ppi)", 'ro.build.version.incremental': 'eng.judas77.20140614.105656', 'dalvik.vm.checkjni': 'false', 'ro.build.tags': 'release-keys', 'ro.sf.lcd_density': '240', 'ro.build.version.sdk': '19', 'ste.video.enc.out.buffercnt': '5', 'ro.product.cpu.abi2': 'armeabi', 'ro.build.user': 'judas77', 'ste.nmf.autoidle': '1', 'persist.sys.vold.switchablepair': 'sdcard0,sdcard1', 'ro.device.gpu': 'Mali-400MP Single Core', 'ro.product.device': 'codina', 'debug.sf.hw': '1', 'ro.product.locale.region': 'US', 'ro.com.android.wifi-watchlist': 'GoogleGuest', 'dalvik.vm.heapgrowthlimit': '48m', 'ro.build.description': 'mahdi_codina-user 4.4.3 KTU84M eng.judas77.20140614.105656 test-keys', 'ro.config.notification_sound': 'pixiedust.ogg', 'ro.zygote.disable_gl_preload': '1'}
default_system_dev_certificate = (str) build/target/product/security/testkey
extfs_sparse_flag = (str) -s
fs_type = (str) ext4
fstab = (dict) {'none': <common.Partition object at 0x2a51190>, '/cache': <common.Partition object at 0x2a4ced0>, '/data': <common.Partition object at 0x2a4cfd0>, '/system': <common.Partition object at 0x2a4cd10>, '/efs': <common.Partition object at 0x2a4cf50>, '/modemfs': <common.Partition object at 0x2a4ccd0>, '/preload': <common.Partition object at 0x2a51050>, '/boot': <common.Partition object at 0x2a51110>}
fstab_version = (int) 2
mkbootimg_args = (str)
mkyaffs2_extra_flags = (str) -c 4096 -s 128
multistage_support = (str) 1
recovery_api_version = (int) 2
selinux_fc = (str) /tmp/targetfiles-V6EhTO/BOOT/RAMDISK/file_contexts
system_size = (int) 641728512
tool_extensions = (str) device/samsung/codina/../common
update_rename_support = (str) 1
use_set_metadata = (str) 1
userdata_size = (int) 2147483648
using device-specific extensions in device/samsung/common
unable to load device-specific module; assuming none
using prebuilt recovery.img...
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1127, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1095, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 544, in WriteFullOTAPackage
OPTIONS.input_tmp, "BOOT")
File "/home/judas77/android/mahdi/build/tools/releasetools/common.py", line 340, in GetBootableImage
os.mkdir(prebuilt_dir)
OSError: [Errno 17] File exists: '/tmp/targetfiles-V6EhTO/BOOTABLE_IMAGES'
make: *** [/home/judas77/android/mahdi/out/target/product/codina/mahdi_codina-ota-eng.judas77.zip] Błąd 1

Any clues?