[Q] [hammerhead] Problems building from source - Omni Q&A

Hey, first off I'm still new to this, so learning as I go, I've built previously for Mako but having a bit of trouble building for Hammerhead (Nexus 5) using Ubuntu 12.04 64bit
Seems to be a error where the script can't find the file/directory, but I haven't had any repo sync errors or anything.
(full log: http://pastebin.com/DSzDJDRb)
Error seems to be located
Code:
mkdir -p /home/parker/android/omni/out/target/product/hammerhead/obj/GYP/shared_intermediates/blink; cd external/chromium_org/third_party/WebKit/Source/core; python scripts/rule_bison.py xml/XPathGrammar.y "/home/parker/android/omni/out/target/product/hammerhead/obj/GYP/shared_intermediates/blink" bison
target thumb C++: third_party_WebKit_Source_wtf_wtf_gyp <= external/chromium_org/third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp
Traceback (most recent call last):
File "scripts/rule_bison.py", line 75, in <module>
returnCode = subprocess.call([bisonExe, '-d', '-p', prefix, inputFile, '-o', outputCpp])
File "/usr/lib/python2.7/subprocess.py", line 524, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [/home/parker/android/omni/out/target/product/hammerhead/obj/GYP/shared_intermediates/blink/CSSGrammar.cpp] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "scripts/rule_bison.py", line 75, in <module>
returnCode = subprocess.call([bisonExe, '-d', '-p', prefix, inputFile, '-o', outputCpp])
File "/usr/lib/python2.7/subprocess.py", line 524, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
target thumb C++: third_party_WebKit_Source_wtf_wtf_gyp <= external/chromium_org/third_party/WebKit/Source/wtf/CurrentTime.cpp
make: *** [/home/parker/android/omni/out/target/product/hammerhead/obj/GYP/shared_intermediates/blink/XPathGrammar.cpp] Error 1
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Related

Kernel Building

I need help building the Kernel, I am learning to do this stuff on the fly so please bear with me.
I have everything installed that I need to, and everything set up.
Code:
$ make ARCH=arm CROSS_COMPILE=~/android/toolchain-4.6.3/bin -j4
Traceback (most recent call last):
File "/home/Brandon/android/Kernel/scripts/gcc-wrapper.py", line 107, in <module>
status = run_gcc()
File "/home/Brandon/android/Kernel/scripts/gcc-wrapper.py", line 97, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC scripts/mod/empty.o
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:125:2: warning: array subscript has type ‘char’
scripts/kallsyms.c:135:2: warning: array subscript has type ‘char’
scripts/conmakehash.c: In function ‘getunicode’:
scripts/conmakehash.c:41:7: warning: array subscript has type ‘char’
scripts/conmakehash.c:41:7: warning: array subscript has type ‘char’
scripts/conmakehash.c:41:7: warning: array subscript has type ‘char’
scripts/conmakehash.c:42:7: warning: array subscript has type ‘char’
scripts/conmakehash.c:42:7: warning: array subscript has type ‘char’
Traceback (most recent call last):
File "/home/Brandon/android/Kernel/scripts/gcc-wrapper.py", line 107, in <module>
status = run_gcc()
File "/home/Brandon/android/Kernel/scripts/gcc-wrapper.py", line 97, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
scripts/Makefile.build:305: recipe for target `scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:441: recipe for target `scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:513: recipe for target `scripts' failed
make: *** [scripts] Error 2
It's giving me this every time. I pulled /proc/config.gz and extracted the .config
This is the stock kernel with stock config. What is wrong?
Even "make modules" is giving errors

[HELP]CM 12 Compiling SEpolcy ERROR!.

So i downloaded the repo of CM12 and tried to compile it for the jflte and this error related to SEpolicy appeared:
Code:
Export includes file: device/samsung/jf-common/gps/core/Android.mk -- /home/diego/cm11/out/target/product/jflte/obj/SHARED_LIBRARIES/libloc_core_intermediates/export_includes
Export includes file: device/samsung/jf-common/gps/loc_api/libloc_api_50001/Android.mk -- /home/diego/cm11/out/target/product/jflte/obj/SHARED_LIBRARIES/libloc_eng_intermediates/export_includes
Export includes file: device/samsung/jf-common/gps/loc_api/libloc_api_50001/Android.mk -- /home/diego/cm11/out/target/product/jflte/obj/SHARED_LIBRARIES/gps.msm8960_intermediates/export_includes
drivers/media/video/msm-jf/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:108:warning: choice value used outside its choice group
drivers/media/video/msm-jf/Kconfig:119:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:113:warning: choice value used outside its choice group
Export includes file: device/samsung/jf-common/liblights/Android.mk -- /home/diego/cm11/out/target/product/jflte/obj/SHARED_LIBRARIES/lights.msm8960_intermediates/export_includes
Notice file: device/samsung/jf-common/liblights/NOTICE -- /home/diego/cm11/out/target/product/jflte/obj/NOTICE_FILES/src//system/lib/hw/lights.msm8960.so.txt
#
# configuration written to .config
#
make[1]: Leaving directory '/home/diego/cm11/kernel/samsung/jf'
Symlink: /home/diego/cm11/out/target/product/jflte/recovery/root/sbin/fsck.exfat -> mount.exfat
Symlink: /home/diego/cm11/out/target/product/jflte/recovery/root/sbin/mkfs.exfat -> mount.exfat
APK certs list: /home/diego/cm11/out/target/product/jflte/obj/PACKAGING/apkcerts_intermediates/cm_jflte-apkcerts-1919d07bf0.txt
make -C kernel/samsung/jf O=/home/diego/cm11/out/target/product/jflte/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/diego/cm11/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-" headers_install
make[1]: Entering directory '/home/diego/cm11/kernel/samsung/jf'
target Prebuilt: fstab.qcom (/home/diego/cm11/out/target/product/jflte/obj/ETC/fstab.qcom_intermediates/fstab.qcom)
/home/diego/cm11/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/diego/cm11/out/target/product/jflte/obj/ETC/sepolicy_intermediates/policy.conf
Import includes file: /home/diego/cm11/out/target/product/jflte/obj/EXECUTABLES/init_intermediates/import_includes
device/samsung/jf-common/sepolicy/device.te:3:ERROR 'duplicate declaration of type/attribute' at token ';' on line 11146:
type gpu_device, dev_type;
# GPU (used by most UI apps)
checkpolicy: error(s) encountered while parsing configuration
external/sepolicy/Android.mk:121: recipe for target '/home/diego/cm11/out/target/product/jflte/obj/ETC/sepolicy_intermediates/sepolicy' failed
make: *** [/home/diego/cm11/out/target/product/jflte/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory '/home/diego/cm11/kernel/samsung/jf'
# In case value of PACKAGES is empty.
What can i do to fix it?
GrStorm said:
So i downloaded the repo of CM12 and tried to compile it for the jflte and this error related to SEpolicy appeared:
Code:
Export includes file: device/samsung/jf-common/gps/core/Android.mk -- /home/diego/cm11/out/target/product/jflte/obj/SHARED_LIBRARIES/libloc_core_intermediates/export_includes
Export includes file: device/samsung/jf-common/gps/loc_api/libloc_api_50001/Android.mk -- /home/diego/cm11/out/target/product/jflte/obj/SHARED_LIBRARIES/libloc_eng_intermediates/export_includes
Export includes file: device/samsung/jf-common/gps/loc_api/libloc_api_50001/Android.mk -- /home/diego/cm11/out/target/product/jflte/obj/SHARED_LIBRARIES/gps.msm8960_intermediates/export_includes
drivers/media/video/msm-jf/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:108:warning: choice value used outside its choice group
drivers/media/video/msm-jf/Kconfig:119:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:113:warning: choice value used outside its choice group
Export includes file: device/samsung/jf-common/liblights/Android.mk -- /home/diego/cm11/out/target/product/jflte/obj/SHARED_LIBRARIES/lights.msm8960_intermediates/export_includes
Notice file: device/samsung/jf-common/liblights/NOTICE -- /home/diego/cm11/out/target/product/jflte/obj/NOTICE_FILES/src//system/lib/hw/lights.msm8960.so.txt
#
# configuration written to .config
#
make[1]: Leaving directory '/home/diego/cm11/kernel/samsung/jf'
Symlink: /home/diego/cm11/out/target/product/jflte/recovery/root/sbin/fsck.exfat -> mount.exfat
Symlink: /home/diego/cm11/out/target/product/jflte/recovery/root/sbin/mkfs.exfat -> mount.exfat
APK certs list: /home/diego/cm11/out/target/product/jflte/obj/PACKAGING/apkcerts_intermediates/cm_jflte-apkcerts-1919d07bf0.txt
make -C kernel/samsung/jf O=/home/diego/cm11/out/target/product/jflte/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/diego/cm11/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-" headers_install
make[1]: Entering directory '/home/diego/cm11/kernel/samsung/jf'
target Prebuilt: fstab.qcom (/home/diego/cm11/out/target/product/jflte/obj/ETC/fstab.qcom_intermediates/fstab.qcom)
/home/diego/cm11/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/diego/cm11/out/target/product/jflte/obj/ETC/sepolicy_intermediates/policy.conf
Import includes file: /home/diego/cm11/out/target/product/jflte/obj/EXECUTABLES/init_intermediates/import_includes
device/samsung/jf-common/sepolicy/device.te:3:ERROR 'duplicate declaration of type/attribute' at token ';' on line 11146:
type gpu_device, dev_type;
# GPU (used by most UI apps)
checkpolicy: error(s) encountered while parsing configuration
external/sepolicy/Android.mk:121: recipe for target '/home/diego/cm11/out/target/product/jflte/obj/ETC/sepolicy_intermediates/sepolicy' failed
make: *** [/home/diego/cm11/out/target/product/jflte/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory '/home/diego/cm11/kernel/samsung/jf'
# In case value of PACKAGES is empty.
What can i do to fix it?
Click to expand...
Click to collapse
See this http://review.cyanogenmod.org/#/c/77008/
Will also need this once you hit the camera error
http://review.cyanogenmod.org/#/c/77026/
Thanks man, the DO NOT MERGE warning made me ignore this.
Sent from my GT-I9505 using XDA Free mobile app

[Q] Issue building 4.4 for tilapia

I've set up a build environment on Fedora 20,and am trying to build 4.4 for tilapia. I've fixed a number of issues that have come up, but I'm stuck on this one:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
TARGET_PRODUCT=omni_tilapia
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.17.6-200.fc20.x86_64-x86_64-with-fedora-20-Heisenbug
HOST_BUILD_TYPE=release
BUILD_ID=KTU84P
OUT_DIR=/home/jmcbray/android/omni/out
============================================
(snip)
Gyp action: Generating JNI bindings from /home/jmcbray/android/omni/prebuilts/sdk/18/android.jar/java/io/InputStream.class (/home/jmcbray/android/omni/out/target/product/tilapia/obj/GYP/shared_intermediates/android_webview/jni/InputStream_jni.h)
Traceback (most recent call last):
File "../../base/android/jni_generator/jni_generator.py", line 1103, in <module>
sys.exit(main(sys.argv))
File "../../base/android/jni_generator/jni_generator.py", line 1099, in main
GenerateJNIHeader(input_file, output_file, options)
File "../../base/android/jni_generator/jni_generator.py", line 1012, in GenerateJNIHeader
jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
File "../../base/android/jni_generator/jni_generator.py", line 522, in CreateFromClass
jni_from_javap = JNIFromJavaP(stdout.split('\n'), options)
File "../../base/android/jni_generator/jni_generator.py", line 488, in __init__
signature=JniParams.ParseJavaPSignature(contents[lineno + 1]))]
File "../../base/android/jni_generator/jni_generator.py", line 147, in ParseJavaPSignature
return '"%s"' % signature_line[signature_line.index(prefix) + len(prefix):]
ValueError: substring not found
make: *** [/home/jmcbray/android/omni/out/target/product/tilapia/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "../../base/android/jni_generator/jni_generator.py", line 1103, in <module>
sys.exit(main(sys.argv))
File "../../base/android/jni_generator/jni_generator.py", line 1099, in main
GenerateJNIHeader(input_file, output_file, options)
File "../../base/android/jni_generator/jni_generator.py", line 1012, in GenerateJNIHeader
jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
File "../../base/android/jni_generator/jni_generator.py", line 522, in CreateFromClass
jni_from_javap = JNIFromJavaP(stdout.split('\n'), options)
File "../../base/android/jni_generator/jni_generator.py", line 488, in __init__
signature=JniParams.ParseJavaPSignature(contents[lineno + 1]))]
File "../../base/android/jni_generator/jni_generator.py", line 147, in ParseJavaPSignature
return '"%s"' % signature_line[signature_line.index(prefix) + len(prefix):]
ValueError: substring not found
make: *** [/home/jmcbray/android/omni/out/target/product/tilapia/obj/GYP/shared_intermediates/android_webview/jni/InputStream_jni.h] Error 1
Is this enough information for someone to be able to help me?

please help me i got recovery problem when building T00F rom

PHP:
Usage: pack_intel <valid image> <bzImage> <ramdisk> <cmdline> <output>
building image from target_files RECOVERY...
Traceback (most recent call last):
File "./device/asus/T00F/make_recovery_patch", line 223, in <module>
main(sys.argv[1:])
File "./device/asus/T00F/make_recovery_patch", line 203, in main
input_dir, "RECOVERY")
File "./build/tools/releasetools/common.py", line 683, in GetBootableImage
info_dict, has_ramdisk, two_step_image)
File "./build/tools/releasetools/common.py", line 546, in _BuildBootableImage
os.path.basename(sourcedir),)
AssertionError: mkbootimg of RECOVERY image failed
ninja: build stopped: subcommand failed.
build/core/ninja.mk:161: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/doanhoangnamvn/Hex'
doanhoangnamcn said:
PHP:
Usage: pack_intel <valid image> <bzImage> <ramdisk> <cmdline> <output>
building image from target_files RECOVERY...
Traceback (most recent call last):
File "./device/asus/T00F/make_recovery_patch", line 223, in <module>
main(sys.argv[1:])
File "./device/asus/T00F/make_recovery_patch", line 203, in main
input_dir, "RECOVERY")
File "./build/tools/releasetools/common.py", line 683, in GetBootableImage
info_dict, has_ramdisk, two_step_image)
File "./build/tools/releasetools/common.py", line 546, in _BuildBootableImage
os.path.basename(sourcedir),)
AssertionError: mkbootimg of RECOVERY image failed
ninja: build stopped: subcommand failed.
build/core/ninja.mk:161: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/doanhoangnamvn/Hex'
Click to expand...
Click to collapse
Which rom?
Its due to some commits missing so, provide link to the ROM's repo.
How
rkj911 said:
Which rom?
Its due to some commits missing so, provide link to the ROM's repo.
Click to expand...
Click to collapse
How can i fix it i built hexagon for T00F
Add this Commit.
https://github.com/LineageOS/android_build/commit/96efb2183e7ccc18b569e7a7218075260348ed8d
Also Remove
Line : 2082 in Build -> Core -> Makefile
ifdef BOARD_CUSTOM_BOOTIMG
Now try and inform.

error while repo init

Hellow guys, i have an hP laptop with 16 gigs of ram and enough hdd space. also i am running xubuntu 16.04 where i was previously able to compile custom roms. however recently my hard drive had crashed and i had to recover using easeUS. then i formatted it to exFat. Xubuntu as such is giving me write operations on exFat devices. my problem is now whenever am using repo sync a custom rom source it gives error like
Code:
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$ repo init -u https://github.com/PixelExperience/manifest -b oreo-mr1
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Finding sources: 100% (5/5)
remote: Total 5 (delta 0), reused 5 (delta 0)
Unpacking objects: 100% (5/5), done.
From https://gerrit.googlesource.com/git-repo
cf7c083..0f2e45a master -> origin/master
Get https://github.com/PixelExperience/manifest
Traceback (most recent call last):
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 399, in Execute
self._SyncManifest(opt)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 171, in _SyncManifest
m._InitGitDir(mirror_git=mirrored_manifest_git)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2292, in _InitGitDir
self._UpdateHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2312, in _UpdateHooks
self._InitHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2341, in _InitHooks
os.symlink(os.path.relpath(stock_hook, os.path.dirname(dst)), dst)
OSError: [Errno 38] Function not implemented
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$
any help would be recommended and appreciated
Ayan Uchiha Choudhury said:
Code:
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$ repo init -u https://github.com/PixelExperience/manifest -b oreo-mr1
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Finding sources: 100% (5/5)
remote: Total 5 (delta 0), reused 5 (delta 0)
Unpacking objects: 100% (5/5), done.
From https://gerrit.googlesource.com/git-repo
cf7c083..0f2e45a master -> origin/master
Get https://github.com/PixelExperience/manifest
Traceback (most recent call last):
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 399, in Execute
self._SyncManifest(opt)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 171, in _SyncManifest
m._InitGitDir(mirror_git=mirrored_manifest_git)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2292, in _InitGitDir
self._UpdateHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2312, in _UpdateHooks
self._InitHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2341, in _InitHooks
os.symlink(os.path.relpath(stock_hook, os.path.dirname(dst)), dst)
OSError: [Errno 38] Function not implemented
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$
any help would be recommended and appreciated
Click to expand...
Click to collapse
Wrong place to ask but yeah, have you installed the latest version of repo and python2 ?
Or before that try `rm -rf .repo` and then init again.
Android Building queries can be discussed here:
https://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763
Yes yes I did both. I also created a new directory and tried repo init. But still
emmm....
Ayan Uchiha Choudhury said:
Yes yes I did both. I also created a new directory and tried repo init. But still
Click to expand...
Click to collapse
Have you found anything to solution ?
SchafferWang said:
Have you found anything to solution ?
Click to expand...
Click to collapse
Exfat was the problem. Formatted to NTFS to fix it

Categories

Resources