Error when Compiling from source (PA) - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

First of all I tried everything that could be possible before coming on here asking for help and was hoping someone would know what is wrong.
Anyways I simply resynced the REPO from github like always but when I tried compiling the new version of PA I got this error:
Code:
Downloading prebuilts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 319k 100 319k 0 0 253k 0 0:00:01 0:00:01 --:--:-- 253k
Archive: ./proprietary/Term.apk
inflating: ./proprietary/lib/armeabi/libjackpal-androidterm4.so
Setting up environment
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/semc/coconut/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash
Lunching device
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/semc/coconut/full_coconut.mk]]: "device/semc/mogami-common/mogami.mk" does not exist. Stop.
Device coconut not found. Attempting to retrieve device repository from CyanogenMod Github (github.c0m/CyanogenMod).
Traceback (most recent call last):
File "build/tools/roomservice.py", line 56, in <module>
result = json.loads(urllib2.urlopen(githubreq).read())
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/semc/coconut/full_coconut.mk]]: "device/semc/mogami-common/mogami.mk" does not exist. Stop.
** Don't have a product spec for: 'pa_coconut'
** Do you have the right repo manifest?
Starting compilation
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/semc/coconut/full_coconut.mk]]: "device/semc/mogami-common/mogami.mk" does not exist. Stop.
Device coconut not found. Attempting to retrieve device repository from CyanogenMod Github (github.c0m/CyanogenMod).
Traceback (most recent call last):
File "build/tools/roomservice.py", line 56, in <module>
result = json.loads(urllib2.urlopen(githubreq).read())
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/semc/coconut/full_coconut.mk]]: "device/semc/mogami-common/mogami.mk" does not exist. Stop.
** Don't have a product spec for: 'pa_coconut'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
Total time elapsed: 0 minutes (3.466118097 seconds)
Ow by the way I was compiling for wt19i but somehow it searches for an other device (atleast this is what is written when I try to compile it).
If nobody knows why is it doing this then I might just go and ask the support of the official rom on what to do.

Related

[Q] Setting up a 4.2.1 Build Environment (Need help)

Currently,
I'm trying to set up a build environment for JB 4.2.1 (CM10.1)... I've got the repo synced, and everything looks good, however, I'm still unsure how to add the necessary Nook files, this is really my first time attempting any type of development, although i'm fairly familiar with linux.
I've followed the instructions found here (changing the device and vendor) and where I'm stuck at is creating the local_manifest.xml, doesn't matter what i put in, it tells me that the repo's don't exist, or my public keys don't work.
so i guess, to build CM10.1 for the nook tablet, what do i need to put in this manifest file?
Any help would be appretiated, i'm available on google talk as "[email protected]" (text only) if someone is able to walk me through this.
DarkShr0ud said:
Currently,
I'm trying to set up a build environment for JB 4.2.1 (CM10.1)... I've got the repo synced, and everything looks good, however, I'm still unsure how to add the necessary Nook files, this is really my first time attempting any type of development, although i'm fairly familiar with linux.
I've followed the instructions found here (changing the device and vendor) and where I'm stuck at is creating the local_manifest.xml, doesn't matter what i put in, it tells me that the repo's don't exist, or my public keys don't work.
so i guess, to build CM10.1 for the nook tablet, what do i need to put in this manifest file?
Any help would be appretiated, i'm available on google talk as "[email protected]" (text only) if someone is able to walk me through this.
Click to expand...
Click to collapse
I'm having a similar problem with my repo
i get this, whenever i'm attempting to sync with something in my local_manifest.xml file
Code:
[email protected]:~/android/system$ repo sync
Traceback (most recent call last):
File "/home/hinxman/android/system/.repo/repo/main.py", line 408, in <module>
_Main(sys.argv[1:])
File "/home/hinxman/android/system/.repo/repo/main.py", line 388, in _Main
result = repo._Run(argv) or 0
File "/home/hinxman/android/system/.repo/repo/main.py", line 122, in _Run
copts, cargs = cmd.OptionParser.parse_args(argv)
File "/home/hinxman/android/system/.repo/repo/command.py", line 45, in OptionParser
self._Options(self._optparse)
File "/home/hinxman/android/system/.repo/repo/subcmds/sync.py", line 147, in _Options
self.jobs = self.manifest.default.sync_j
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 256, in default
self._Load()
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 302, in _Load
nodes.append(self._ParseManifestXml(local, self.repodir))
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 313, in _ParseManifestXml
root = xml.dom.minidom.parse(path)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1920, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 13, column 2
[email protected]:~/android/system$
hinxman said:
I'm having a similar problem with my repo
i get this, whenever i'm attempting to sync with something in my local_manifest.xml file
Code:
[email protected]:~/android/system$ repo sync
Traceback (most recent call last):
File "/home/hinxman/android/system/.repo/repo/main.py", line 408, in <module>
_Main(sys.argv[1:])
File "/home/hinxman/android/system/.repo/repo/main.py", line 388, in _Main
result = repo._Run(argv) or 0
File "/home/hinxman/android/system/.repo/repo/main.py", line 122, in _Run
copts, cargs = cmd.OptionParser.parse_args(argv)
File "/home/hinxman/android/system/.repo/repo/command.py", line 45, in OptionParser
self._Options(self._optparse)
File "/home/hinxman/android/system/.repo/repo/subcmds/sync.py", line 147, in _Options
self.jobs = self.manifest.default.sync_j
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 256, in default
self._Load()
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 302, in _Load
nodes.append(self._ParseManifestXml(local, self.repodir))
File "/home/hinxman/android/system/.repo/repo/manifest_xml.py", line 313, in _ParseManifestXml
root = xml.dom.minidom.parse(path)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1920, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 13, column 2
[email protected]:~/android/system$
Click to expand...
Click to collapse
Forgot to add my SSH-keys to Github... and there was an error in my Local_Manifest file.
Double check the one you used, Kuzma30 updated his today, so if you're using that one, that might fix your problem.
hinxman said:
Forgot to add my SSH-keys to Github... and there was an error in my Local_Manifest file.
Double check the one you used, Kuzma30 updated his today, so if you're using that one, that might fix your problem.
Click to expand...
Click to collapse
Thanks, yeah that did help, i'm able to sync my repo now at least, i'll post back if there are any more problems.
What is the minimum hardware CPU/memory requirements for a workable build environment?
I followed this guide http://wiki.cyanogenmod.org/index.php?title=Build_for_acclaim and I got the error below when I did a 'breakfast acclaim'
Code:
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/bn/acclaim/cm.mk]]: "frameworks/base/build/tablet-dalvik-heap.mk" does not exist. Stop.
Device acclaim not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for acclaim not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/bn/acclaim/cm.mk]]: "frameworks/base/build/tablet-dalvik-heap.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_acclaim'
** Do you have the right repo manifest?
What am I missing?
digixmax said:
I followed this guide http://wiki.cyanogenmod.org/index.php?title=Build_for_acclaim and I got the error below when I did a 'breakfast acclaim'
Code:
...
** Don't have a product spec for: 'cm_acclaim'
** Do you have the right repo manifest?
What am I missing?
Click to expand...
Click to collapse
I found the problem: I didn't have the right local_manifest in the right directory (in .repo instead of .repo/local_manifests as I was led to believe).

Getting Errors while Building AOSPA

Respected Developers,
I am learning to build Rom from Source. So, I wanted to build a rom from the AOSPA Source. Source was completely downloaded but when I am trying to build the output. I am getting the following errors. Can anyone help me please.
Building AOSPA 5.0 for DEVICE
Start time: Wed Jul 8 22:49:52 IST 2015
Setting up the environment
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash
Lunching DEVICE (Including dependencies sync)
ls: cannot access vendor/pa/products/pa_DEVICE.mk: No such file or directory
build/core/product_config.mk:233: *** Can not locate config makefile for product "pa_DEVICE". Stop.
your device can't be found in device sources...
Traceback (most recent call last):
File "build/tools/roomservice.py", line 317, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 270, in fetch_dependencies
raise Exception("ERROR: could not find your device "
Exception: ERROR: could not find your device folder location, bailing out
** Don't have a product spec for: 'pa_DEVICE'
** Do you have the right repo manifest?
Starting compilation
ls: cannot access vendor/pa/products/pa_DEVICE.mk: No such file or directory
build/core/product_config.mk:233: *** Can not locate config makefile for product "aosp_x86_64". Stop.
Total time elapsed: 0 minutes (2.299871122 seconds)
Click to expand...
Click to collapse

Error while building CM 13 from source

Hello everyone!
I compile CyanogenMod 13 for my Galaxy Note 10.1. The whole process was perfect, but at the end I got an error:
Code:
Construct recovery from boot
mkdir -p /home/alex/Projects/cm13/out/target/product/n8000/obj/PACKAGING/recovery_patch_intermediates/
PATH=/home/alex/Projects/cm13/out/host/linux-x86/bin:$PATH /home/alex/Projects/cm13/out/host/linux-x86/bin/imgdiff /home/alex/Projects/cm13/out/target/product/n8000/boot.img /home/alex/Projects/cm13/out/target/product/n8000/recovery.img /home/alex/Projects/cm13/out/target/product/n8000/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
build/tools/generate-notice-files.py /home/alex/Projects/cm13/out/target/product/n8000/obj/NOTICE.txt /home/alex/Projects/cm13/out/target/product/n8000/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" /home/alex/Projects/cm13/out/target/product/n8000/obj/NOTICE_FILES/src
failed to reconstruct target deflate chunk 1 [(null)]; treating as normal
Traceback (most recent call last):
File "build/tools/generate-notice-files.py", line 191, in <module>
main(args)
File "build/tools/generate-notice-files.py", line 181, in main
file_md5sum = md5sum(filename)
File "build/tools/generate-notice-files.py", line 80, in md5sum
return hexify(sum.digest())
File "build/tools/generate-notice-files.py", line 65, in hexify
return ("%02x"*len(s)) % tuple(map(ord, s))
TypeError: ord() expected string of length 1, but int found
make: *** [build/core/Makefile:663: /home/alex/Projects/cm13/out/target/product/n8000/obj/NOTICE.html] Ошибка 1
make: *** Ожидание завершения заданий…
It appears when I compile system.img. Boot and recovery images were built without any problems. I assume the problem lies in NOTICE files that generates by python script. I have two options: disable notice files generating or solve this problem. But I know nothing of this.
Hope for your help.

hyphenation error

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.

Cannot build TWRP with the GitHub Recovery-builder

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

Categories

Resources