Hello everyone! I'm trying to build CM 10.1 (JB 4.2.2 version) for Samsung Galaxy Ace 3 GT-S7270. I have a problem while compiling firmware, I get this error:
Code:
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 865, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 833, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 438, in WriteFullOTAPackage
common.CheckSize(boot_img.data, "boot.img", OPTIONS.info_dict)
File "/home/artem/cm10.1.3/build/tools/releasetools/common.py", line 450, in CheckSize
if not fs_type or not limit: return
UnboundLocalError: local variable 'fs_type' referenced before assignment
make: *** [/home/artem/cm10.1.3/out/target/product/logan/cm_logan-ota-db9e27b18f.zip] Error 1
I tried to search for the solution, but it was unsucessful. Did anybody face with similiar problem? Did you solve it and how?
Related
hi devs
im trying to sync some code from github but i keep getting this error and i dont know how to solve it
Code:
[email protected]:~/Transferências/LCICS$ repo init -u git://github.com/IceColdSandwich/android.git -b ics
Traceback (most recent call last):
File "/home/danielgek/Transferências/LCICS/.repo/repo/main.py", line 385, in <module>
_Main(sys.argv[1:])
File "/home/danielgek/Transferências/LCICS/.repo/repo/main.py", line 365, in _Main
result = repo._Run(argv) or 0
File "/home/danielgek/Transferências/LCICS/.repo/repo/main.py", line 137, in _Run
result = cmd.Execute(copts, cargs)
File "/home/danielgek/Transferências/LCICS/.repo/repo/subcmds/init.py", line 290, in Execute
self._SyncManifest(opt)
File "/home/danielgek/Transferências/LCICS/.repo/repo/subcmds/init.py", line 154, in _SyncManifest
if not m.Sync_NetworkHalf(is_new=is_new):
File "/home/danielgek/Transferências/LCICS/.repo/repo/project.py", line 982, in Sync_NetworkHalf
current_branch_only=current_branch_only):
File "/home/danielgek/Transferências/LCICS/.repo/repo/project.py", line 1483, in _RemoteFetch
if GitCommand(self, cmd, bare=True, ssh_proxy=ssh_proxy).Wait() == 0:
File "/home/danielgek/Transferências/LCICS/.repo/repo/git_command.py", line 160, in __init__
_setenv(env, GIT_DIR, gitdir)
File "/home/danielgek/Transferências/LCICS/.repo/repo/git_command.py", line 119, in _setenv
env[name] = value.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 24: ordinal not in range(128)
the problem its with python im on ubuntu 12.04 fresh install
thx
When i compile cm12 for s5312 devices we had error:
Install system fs image: /home/karthick/ROM/*cm12/out/target/*product/corsica/*system.img
/home/karthick/ROM/*cm12/out/target/*product/corsica/*system.img+/home/*karthick/ROM/cm12/*out/target/product/*corsica/obj/*PACKAGING/*recovery_patch_interm*ediates/*recovery_from_boot.p maxsize=1023356928 blocksize=135168 total=380108490 reserve=10407936
#@echo -e "\033[33m""Package target files:""\033[0m"" /home/karthick/ROM/*cm12/out/target/*product/corsica/obj/*PACKAGING/*target_files_intermed*iates/*cm_corsica-target_fil*es-da94839291.zip"
building image from target_files RECOVERY...
building image from target_files BOOT...
Traceback (most recent call last):
File "./build/tools/*releasetools/*make_recovery_patch",* line 53, in <module>
main(sys.argv[1:])
File "./build/tools/*releasetools/*make_recovery_patch",* line 49, in main
common.MakeRecoveryP*atch(input_dir, output_sink, recovery_img, boot_img)
File "/home/karthick/ROM/*cm12/build/tools/*releasetools/*common.py", line 1167, in MakeRecoveryPatch
td_pair = GetTypeAndDevice("/*boot", info_dict)
File "/home/karthick/ROM/*cm12/build/tools/*releasetools/*common.py", line 1118, in GetTypeAndDevice
return PARTITION_TYPES[fsta*b[mount_point].fs_ty*pe], fstab[mount_point].d*evice
KeyError: '/boot'
build/core/*Makefile:1422: recipe for target '/home/karthick/ROM/*cm12/out/target/*product/corsica/obj/*PACKAGING/*target_files_intermed*iates/*cm_corsica-target_fil*es-da94839291.zip' failed
Please help us to solve this problem. Thank you
hello . today may i ask you about CM12 Compiling . but i'm have error
Traceback (most recent call last):
File "./build/tools/releasetools/make_recovery_patch", line 53, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/make_recovery_patch", line 49, in main
common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
File "/home/tethplus/lollipop/build/tools/releasetools/common.py", line 1197, in MakeRecoveryPatch
td_pair = GetTypeAndDevice("/recovery", info_dict)
File "/home/tethplus/lollipop/build/tools/releasetools/common.py", line 1144, in GetTypeAndDevice
return PARTITION_TYPES[fstab[mount_point].fs_type], fstab[mount_point].device
KeyError: '/recovery'
build/core/Makefile:1442: recipe for target '/home/tethplus/lollipop/out/target/product/huashan/obj/PACKAGING/target_files_intermediates/cm_huashan-target_files-9d612ecbfa.zip' failed
make: *** [/home/tethplus/lollipop/out/target/product/huashan/obj/PACKAGING/target_files_intermediates/cm_huashan-target_files-9d612ecbfa.zip] Error 1
Click to expand...
Click to collapse
So, i get this error every single time i try to compile any Android ROM, even AOSP.
I'm sure i'm missing a package, but i can't figure out which it is, so i'm asking here for any help on identifying the problem.
Code:
FAILED: /bin/bash -c "frameworks/minikin/tools/mk_hyb_file.py external/hyphenation-patterns/da//hyph-da.pat.txt /home/gee/omni/out/target/product/shieldtablet/obj/ETC/hyph-da_intermediates/hyph-da.hyb"
602 unique nodes, 1676 total
Traceback (most recent call last):
File "frameworks/minikin/tools/mk_hyb_file.py", line 567, in <module>
main()
File "frameworks/minikin/tools/mk_hyb_file.py", line 564, in main
verify_hyb_file(out_fn, pat_fn, chr_fn, hyp_fn)
File "frameworks/minikin/tools/mk_hyb_file.py", line 529, in verify_hyb_file
ch_map, reconstructed_chr = map_to_chr(alphabet_map)
File "frameworks/minikin/tools/mk_hyb_file.py", line 440, in map_to_chr
assert len(lowercase) == 1, 'expected 1 lowercase character'
AssertionError: expected 1 lowercase character
[ 0% 17/2717] Ensure Jack server is installed and started
Jack server already installed in "/home/gee/.jack-server"
Server is already running
[ 0% 17/2717] Build hyb /home/gee/omni/out/target/pr... <- external/hyphenation-patterns/cy//hyph-cy.pat.txt
FAILED: /bin/bash -c "frameworks/minikin/tools/mk_hyb_file.py external/hyphenation-patterns/cy//hyph-cy.pat.txt /home/gee/omni/out/target/product/shieldtablet/obj/ETC/hyph-cy_intermediates/hyph-cy.hyb"
3290 unique nodes, 10601 total
Traceback (most recent call last):
File "frameworks/minikin/tools/mk_hyb_file.py", line 567, in <module>
main()
File "frameworks/minikin/tools/mk_hyb_file.py", line 564, in main
verify_hyb_file(out_fn, pat_fn, chr_fn, hyp_fn)
File "frameworks/minikin/tools/mk_hyb_file.py", line 529, in verify_hyb_file
ch_map, reconstructed_chr = map_to_chr(alphabet_map)
File "frameworks/minikin/tools/mk_hyb_file.py", line 440, in map_to_chr
assert len(lowercase) == 1, 'expected 1 lowercase character'
AssertionError: expected 1 lowercase character
[ 0% 17/2717] build /home/gee/omni/out/target/product/shieldtablet/obj/KERNEL_OBJ/usr
make: Entering directory '/home/gee/omni/kernel/nvidia/shield'
GEN /home/gee/omni/out/target/product/shieldtablet/obj/KERNEL_OBJ/Makefile
drivers/cpufreq/Kconfig:53:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:61:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:70:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:79:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:91:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:103:warning: choice value used outside its choice group
drivers/cpuquiet/Kconfig:60:warning: choice value used outside its choice group
drivers/cpuquiet/Kconfig:66:warning: choice value used outside its choice group
drivers/cpuquiet/Kconfig:73:warning: choice value used outside its choice group
#
# configuration written to .config
#
make: Leaving directory '/home/gee/omni/kernel/nvidia/shield'
make: Entering directory '/home/gee/omni/kernel/nvidia/shield'
CHK include/generated/uapi/linux/version.h
make: Leaving directory '/home/gee/omni/kernel/nvidia/shield'
[ 0% 17/2717] Build hyb /home/gee/omni/out/target/pr...xternal/hyphenation-patterns/de//hyph-de-1901.pat.txt
FAILED: /bin/bash -c "frameworks/minikin/tools/mk_hyb_file.py external/hyphenation-patterns/de//hyph-de-1901.pat.txt /home/gee/omni/out/target/product/shieldtablet/obj/ETC/hyph-de-1901_intermediates/hyph-de-1901.hyb"
8858 unique nodes, 29816 total
Traceback (most recent call last):
File "frameworks/minikin/tools/mk_hyb_file.py", line 567, in <module>
main()
File "frameworks/minikin/tools/mk_hyb_file.py", line 564, in main
verify_hyb_file(out_fn, pat_fn, chr_fn, hyp_fn)
File "frameworks/minikin/tools/mk_hyb_file.py", line 529, in verify_hyb_file
ch_map, reconstructed_chr = map_to_chr(alphabet_map)
File "frameworks/minikin/tools/mk_hyb_file.py", line 440, in map_to_chr
assert len(lowercase) == 1, 'expected 1 lowercase character'
AssertionError: expected 1 lowercase character
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:158: ninja_wrapper] Error 1
The distribution is Void Linux, and yes i'd like to use my distro of choice to compile a ROm instead of having to switch to Ubuntu or Arch, where it obviously works.
I did install hyphen and about 20 other packages i thought could be the missing ones.
Thanks in advance.
Found a fix by using python 3 instead of 2 for hyphenation.
For future reference: https://github.com/CM-Huawei-P8-Development/local_manifests_gra_l09/issues/1
oh wow, same error here building for htc 10, and only started since moving from arch to void... perhaps this is void related. will mention to them.
As the title says, I'm trying to make TWRP for an unknown device (Wiko Y60 for anyone interested) but After providing device tree/model I get this on build step :
Run cd work
including vendor/omni/vendorsetup.sh
including sdk/bash_completion/adb.bash
build/make/core/version_defaults.mk:57: warning: Invalid TARGET_PLATFORM_VERSION 'eng', must be one of
build/make/core/version_defaults.mk:58: error: PPR1.
19:09:08 dumpvars failed with: exit status 1
Traceback (most recent call last):
Your device can't be found in device sources..
File "vendor/omni/build/tools/roomservice.py", line 405, in <module>
fetch_device(device)
File "vendor/omni/build/tools/roomservice.py", line 373, in fetch_device
git_data = search_gerrit_for_device(device)
File "vendor/omni/build/tools/roomservice.py", line 81, in search_gerrit_for_device
device_data = check_repo_exists(git_data, device)
File "vendor/omni/build/tools/roomservice.py", line 58, in check_repo_exists
"exiting roomservice".format(device=device))
Exception: W not found,exiting roomservice
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "omni_W".
19:09:10 dumpvars failed with: exit status 1
** Don't have a product spec for: 'omni_W'
** Do you have the right repo manifest?
Error: Process completed with exit code 1.
Can anyone help here ?
Oh and here's the device tree : https://github.com/DarkGaming09/w_k510_recovery_twrp
Same issue, help please
Thank you
Same