build error - Android Q&A, Help & Troubleshooting

hey I'm trying to do cyanogenmod 11.0 bringup for tegratab I've spent so much time into this and at last it builds but stops just before making the zip. Here is the error
building image from target_files RECOVERY...
running: mkbootfs -f /tmp/targetfiles-TVpgiO/META/recovery_filesystem_config.txt /tmp/targetfiles-TVpgiO/RECOVERY/RAMDISK
running: minigzip
running: mkbootimg --kernel /tmp/targetfiles-TVpgiO/RECOVERY/kernel --ramdisk /tmp/tmptdNNzh --output /tmp/tmpuf7rgQ
building image from target_files BOOT...
running: mkbootfs -f /tmp/targetfiles-TVpgiO/META/boot_filesystem_config.txt /tmp/targetfiles-TVpgiO/BOOT/RAMDISK
running: minigzip
running: mkbootimg --kernel /tmp/targetfiles-TVpgiO/BOOT/kernel --ramdisk /tmp/tmpcOtv18 --output /tmp/tmpDC9qqe
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1132, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1100, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 548, in WriteFullOTAPackage
common.CheckSize(boot_img.data, "boot.img", OPTIONS.info_dict)
File "/hex/bin/kk/build/tools/releasetools/common.py", line 511, in CheckSize
if not fs_type or not limit: return
UnboundLocalError: local variable 'fs_type' referenced before assignment
make: *** [/hex/bin/kk/out/target/product/tegratab/cm_tegratab-ota-7dad725e4c.zip] Error 1
so close but still to far.........

Related

compiling dirty unicorn error

need help in compiling dirty unicorn from source. curruntly have the build error below....any help as to what i am doing wrong?
Code:
Gyp action: third_party_WebKit_Source_core_core_derived_sources_gyp_make_core_derived_sources_target_MakeTokenMatcherForViewport (/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink/HTMLMetaElement.cpp)
Gyp action: third_party_WebKit_Source_core_core_derived_sources_gyp_make_core_derived_sources_target_HTMLElementLookupTrie (/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink/HTMLElementLookupTrie.cpp)
mkdir -p /home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink; cd external/chromium_org/third_party/WebKit/Source/core; python ../build/scripts/rule_bison.py css/CSSGrammar.y "/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink" bison
mkdir -p /home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink; cd external/chromium_org/third_party/WebKit/Source/core; python ../build/scripts/rule_bison.py xml/XPathGrammar.y "/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink" bison
Gyp timestamp: /home/edwin270/du/out/target/product/i777/obj/GYP/third_party_icu_icui18n_gyp_intermediates/icui18n.stamp
Gyp timestamp: /home/edwin270/du/out/target/product/i777/obj/GYP/third_party_icu_icuuc_gyp_intermediates/icuuc.stamp
Traceback (most recent call last):
Traceback (most recent call last):
File "../build/scripts/rule_bison.py", line 75, in <module>
File "../build/scripts/rule_bison.py", line 75, in <module>
returnCode = subprocess.call([bisonExe, '-d', '-p', prefix, inputFile, '-o', outputCpp])
returnCode = subprocess.call([bisonExe, '-d', '-p', prefix, inputFile, '-o', outputCpp])
File "/usr/lib/python2.7/subprocess.py", line 522, in call
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
raise child_exception
OSErrorOSError: : [Errno 2] No such file or directory[Errno 2] No such file or directory
make: *** [/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink/CSSGrammar.cpp] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink/XPathGrammar.cpp] Error 1
target StaticLib: third_party_WebKit_Source_heap_blink_heap_gyp (/home/edwin270/du/out/target/product/i777/obj/STATIC_LIBRARIES/third_party_WebKit_Source_heap_blink_heap_gyp_intermediates/third_party_WebKit_Source_heap_blink_heap_gyp.a)
target StaticLib: third_party_libwebp_libwebp_dec_gyp (/home/edwin270/du/out/target/product/i777/obj/STATIC_LIBRARIES/third_party_libwebp_libwebp_dec_gyp_intermediates/third_party_libwebp_libwebp_dec_gyp.a)

[HELP] Error building aospa

I've never faced these issues before.
They happen at kernel compiling and at the end when it creates the otapackage, can you help me please? I'm stuck with this...
KERNEL (This log is from another pc but it is as the same as mine):
Code:
make[1]: se sale del directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
make -C kernel/samsung/u8500 O=/home/t4n017/android/PA/out/target/product/janice/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/t4n017/android/PA/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-" dtbs
make[1]: se ingresa al directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
make[3]: No se hace nada para «arch/arm/boot/dtbs».
make[1]: se sale del directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
make -C kernel/samsung/u8500 O=/home/t4n017/android/PA/out/target/product/janice/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/t4n017/android/PA/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-" modules
make[1]: se ingresa al directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
GEN /home/t4n017/android/PA/out/target/product/janice/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /home/t4n017/android/PA/kernel/samsung/u8500 as source for kernel
CHK include/generated/utsrelease.h
make[3]: «include/generated/mach-types.h» está actualizado.
CALL /home/t4n017/android/PA/kernel/samsung/u8500/scripts/checksyscalls.sh
.config:7359:warning: symbol value 'm' invalid for KVM
make[6]: *** [silentoldconfig] Error 1
make[5]: *** [silentoldconfig] Error 2
Usage: /home/t4n017/android/PA/kernel/samsung/u8500/scripts/setlocalversion [--save-scmversion] [-s srctree] [-t ref_tag]
Building modules, stage 2.
MODPOST 7 modules
make[1]: se sale del directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
make -C kernel/samsung/u8500 O=/home/t4n017/android/PA/out/target/product/janice/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE=" /home/t4n017/android/PA/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-" modules_install
make[1]: se ingresa al directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
OTAPACKAGE:
Code:
using device-specific extensions in device/samsung/u8500-common
using custom bootimage makefile device/samsung/u8500-common/shbootimg.mk...
using prebuilt recovery.img...
using custom bootimage makefile device/samsung/u8500-common/shbootimg.mk...
using prebuilt boot.img...
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1117, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1085, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 538, in WriteFullOTAPackage
Item.Get("system").SetPermissions(script)
File "./build/tools/releasetools/ota_from_target_files", line 315, in SetPermissions
recurse(self, (-1, -1, -1, -1, None, None))
File "./build/tools/releasetools/ota_from_target_files", line 307, in recurse
recurse(i, current)
File "./build/tools/releasetools/ota_from_target_files", line 307, in recurse
recurse(i, current)
File "./build/tools/releasetools/ota_from_target_files", line 313, in recurse
item.mode, item.selabel, item.capabilities)
File "/home/mauro/aospa/build/tools/releasetools/edify_generator.py", line 284, in SetPermissions
'"capabilities", %s' % (fn, uid, gid, mode, capabilities)
TypeError: %d format: a number is required, not NoneType
make: *** [/home/mauro/aospa/out/target/product/janice/pa_janice-ota-eng.mauro-ota-eng.mauro.zip] Errore 1

[Help Request] Need help building CM13 for the Blu R1 HD

Hello, I am having various issues building CM13 for the Blu R1 HD and was hoping somebody would be able to help. I have tried my best to get this working but these are the current error's that I am stuck on.
Here is my Device tree: https://github.com/Bullet25fxbx/android_device_blu_p6601
here is my Kernel: https://github.com/Bullet25fxbx/android_kernel_mediatek_mt6735
Here is my Local Manifest:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Bullet25fxbx/android_device_blu_p6601" path="device/blu/p6601" remote="github" revision="master" />
<project name="Bullet25fxbx/android_kernel_mediatek_mt6735" path="kernel/mediatek/mt6735" remote="github" revision="master" />
</manifest>
When making userdata image:
Code:
Target userdata fs image: /home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img
Running: mkyaffs2image -f /home/bullet25/workspace/cm13/out/target/product/p6601/data /home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img /home/bullet25/workspace/cm13/out/target/product/p6601/root/file_contexts data
Traceback (most recent call last):
File "./build/tools/releasetools/build_image.py", line 549, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/build_image.py", line 542, in main
if not BuildImage(in_dir, image_properties, out_file, target_out):
File "./build/tools/releasetools/build_image.py", line 354, in BuildImage
(_, exit_code) = RunCommand(build_command)
File "./build/tools/releasetools/build_image.py", line 53, in RunCommand
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
build/core/Makefile:1415: recipe for target '/home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img' failed
make: *** [/home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img] Error 1
When making system image:
Code:
Target system fs image: /home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img
Running: mkyaffs2image -f /home/bullet25/workspace/cm13/out/target/product/p6601/system /home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img /home/bullet25/workspace/cm13/out/target/product/p6601/root/file_contexts system
Traceback (most recent call last):
File "./build/tools/releasetools/build_image.py", line 549, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/build_image.py", line 542, in main
if not BuildImage(in_dir, image_properties, out_file, target_out):
File "./build/tools/releasetools/build_image.py", line 354, in BuildImage
(_, exit_code) = RunCommand(build_command)
File "./build/tools/releasetools/build_image.py", line 53, in RunCommand
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Out of space? the tree size of /home/bullet25/workspace/cm13/out/target/product/p6601/system is (MB):
444 /home/bullet25/workspace/cm13/out/target/product/p6601/system
The max is 2672 MB.
build/core/Makefile:1258: recipe for target '/home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img' failed
make: *** [/home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img] Error 1
Making a boot image and recovery image works fine.
Thank you, in advance, anybody who helps.
fixed the error below:
Code:
Installing recovery patch to system partition
Traceback (most recent call last):
File "./build/tools/releasetools/make_recovery_patch", line 55, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/make_recovery_patch", line 37, in main
OPTIONS.info_dict = common.LoadInfoDict(input_dir)
File "/home/bullet25/workspace/cm13/build/tools/releasetools/common.py", line 201, in LoadInfoDict
d["fstab"] = LoadRecoveryFSTab(read_helper, d["fstab_version"], d["device_type"])
File "/home/bullet25/workspace/cm13/build/tools/releasetools/common.py", line 285, in LoadRecoveryFSTab
raise ValueError("malformed recovery.fstab line: \"%s\"" % (line,))
ValueError: malformed recovery.fstab line: "/boot emmc /dev/block/mmcblk0p"
build/core/Makefile:1074: recipe for target '/home/bullet25/workspace/cm13/out/target/product/p6601/system/bin/install-recovery.sh' failed
make: *** [/home/bullet25/workspace/cm13/out/target/product/p6601/system/bin/install-recovery.sh] Error 1
Update: I fixed the malformed error but I still can't figure out the system image error or user data image errors
System:
Code:
Target system fs image: /home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img
Running: mkyaffs2image -f /home/bullet25/workspace/cm13/out/target/product/p6601/system /home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img /home/bullet25/workspace/cm13/out/target/product/p6601/root/file_contexts system
Traceback (most recent call last):
File "./build/tools/releasetools/build_image.py", line 549, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/build_image.py", line 542, in main
if not BuildImage(in_dir, image_properties, out_file, target_out):
File "./build/tools/releasetools/build_image.py", line 354, in BuildImage
(_, exit_code) = RunCommand(build_command)
File "./build/tools/releasetools/build_image.py", line 53, in RunCommand
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Out of space? the tree size of /home/bullet25/workspace/cm13/out/target/product/p6601/system is (MB):
444 /home/bullet25/workspace/cm13/out/target/product/p6601/system
The max is 2672 MB.
build/core/Makefile:1258: recipe for target '/home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img' failed
make: *** [/home/bullet25/workspace/cm13/out/target/product/p6601/obj/PACKAGING/systemimage_intermediates/system.img] Error 1
Userdata:
Code:
Target userdata fs image: /home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img
Running: mkyaffs2image -f /home/bullet25/workspace/cm13/out/target/product/p6601/data /home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img /home/bullet25/workspace/cm13/out/target/product/p6601/root/file_contexts data
Traceback (most recent call last):
File "./build/tools/releasetools/build_image.py", line 549, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/build_image.py", line 542, in main
if not BuildImage(in_dir, image_properties, out_file, target_out):
File "./build/tools/releasetools/build_image.py", line 354, in BuildImage
(_, exit_code) = RunCommand(build_command)
File "./build/tools/releasetools/build_image.py", line 53, in RunCommand
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
build/core/Makefile:1415: recipe for target '/home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img' failed
make: *** [/home/bullet25/workspace/cm13/out/target/product/p6601/userdata.img] Error 1

Repo sync issue (builduntu v2)

Hi all, I'm completely new to this and don't really know where to start. I downloaded Builduntu v2.0 and loaded it up in VirtualBox. I initiated a repo (for Nexus 6P Angler) using:
Code:
repo init -u https://android.googlesource.com/platform/manifest -b android-7.0.0_r13
It started syncing but I'm receiving these errors:
Code:
fatal: Not a git repository: '/home/android/stock_build/.repo/projects/external/clang.git'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0fatal: Not a git repository: '/home/android/stock_build/.repo/projects/external/clang.git'
100 1 100 1 0 0 2 0 --:--:-- --:--:-- --:--:-- 2
100 2706k 100 2706k 0 0 1205k 0 0:00:02 0:00:02 --:--:-- 2363k
fatal: Not a git repository: '/home/android/stock_build/.repo/projects/build/kati.git'
fatal: Not a git repository: '/home/android/stock_build/.repo/projects/build/kati.git'
fatal: Not a git repository: '/home/android/stock_build/.repo/projects/external/iputils.git'
fatal: Not a git repository: '/home/android/stock_build/.repo/projects/system/tpm.git'
fatal: Not a git repository: '/home/android/stock_build/.repo/projects/packages/apps/Browser2.git'
fatal: Not a git repository: '/home/android/stock_build/.repo/projects/external/ceres-solver.git'
fatal: Not a git repository: '/home/android/stock_build/.repo/projects/packages/services/Telecomm.git'
fatal: Not a git repository: '/home/android/stock_build/.repo/projects/external/clang.git'
fatal: Not a git repository: '/home/android/stock_build/.repo/projects/build/kati.git'
error: Cannot fetch platform/system/tpm (GitError: platform/system/tpm pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/system/tpm.git'
)
Exception in thread Thread-59:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/home/android/stock_build/.repo/repo/project.py", line 1267, in Sync_NetworkHalf
no_tags=no_tags, prune=prune)):
File "/home/android/stock_build/.repo/repo/project.py", line 2058, in _RemoteFetch
self.bare_git.pack_refs('--all', '--prune')
File "/home/android/stock_build/.repo/repo/project.py", line 2747, in runner
(self._project.name, name, p.stderr))
GitError: platform/system/tpm pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/system/tpm.git'
error: Cannot fetch platform/external/ceres-solver (GitError: platform/external/ceres-solver pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/external/ceres-solver.git'
)
Exception in thread Thread-62:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/home/android/stock_build/.repo/repo/project.py", line 1267, in Sync_NetworkHalf
no_tags=no_tags, prune=prune)):
File "/home/android/stock_build/.repo/repo/project.py", line 2058, in _RemoteFetch
self.bare_git.pack_refs('--all', '--prune')
File "/home/android/stock_build/.repo/repo/project.py", line 2747, in runner
(self._project.name, name, p.stderr))
GitError: platform/external/ceres-solver pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/external/ceres-solver.git'
error: Cannot fetch platform/packages/apps/Browser2 (GitError: platform/packages/apps/Browser2 pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/packages/apps/Browser2.git'
)
Exception in thread Thread-61:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/home/android/stock_build/.repo/repo/project.py", line 1267, in Sync_NetworkHalf
no_tags=no_tags, prune=prune)):
File "/home/android/stock_build/.repo/repo/project.py", line 2058, in _RemoteFetch
self.bare_git.pack_refs('--all', '--prune')
File "/home/android/stock_build/.repo/repo/project.py", line 2747, in runner
(self._project.name, name, p.stderr))
GitError: platform/packages/apps/Browser2 pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/packages/apps/Browser2.git'
error: Cannot fetch platform/external/iputils (GitError: platform/external/iputils pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/external/iputils.git'
)
Exception in thread Thread-58:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/home/android/stock_build/.repo/repo/project.py", line 1267, in Sync_NetworkHalf
no_tags=no_tags, prune=prune)):
File "/home/android/stock_build/.repo/repo/project.py", line 2058, in _RemoteFetch
self.bare_git.pack_refs('--all', '--prune')
File "/home/android/stock_build/.repo/repo/project.py", line 2747, in runner
(self._project.name, name, p.stderr))
GitError: platform/external/iputils pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/external/iputils.git'
error: Cannot fetch platform/packages/services/Telecomm (GitError: platform/packages/services/Telecomm pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/packages/services/Telecomm.git'
)
Exception in thread Thread-60:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/home/android/stock_build/.repo/repo/project.py", line 1267, in Sync_NetworkHalf
no_tags=no_tags, prune=prune)):
File "/home/android/stock_build/.repo/repo/project.py", line 2058, in _RemoteFetch
self.bare_git.pack_refs('--all', '--prune')
File "/home/android/stock_build/.repo/repo/project.py", line 2747, in runner
(self._project.name, name, p.stderr))
GitError: platform/packages/services/Telecomm pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/packages/services/Telecomm.git'
error: Cannot fetch platform/external/clang (GitError: platform/external/clang pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/external/clang.git'
)
Exception in thread Thread-56:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/home/android/stock_build/.repo/repo/project.py", line 1267, in Sync_NetworkHalf
no_tags=no_tags, prune=prune)):
File "/home/android/stock_build/.repo/repo/project.py", line 2058, in _RemoteFetch
self.bare_git.pack_refs('--all', '--prune')
File "/home/android/stock_build/.repo/repo/project.py", line 2747, in runner
(self._project.name, name, p.stderr))
GitError: platform/external/clang pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/external/clang.git'
error: Cannot fetch platform/build/kati (GitError: platform/build/kati pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/build/kati.git'
)
Exception in thread Thread-57:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/android/stock_build/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
prune=opt.prune)
File "/home/android/stock_build/.repo/repo/project.py", line 1267, in Sync_NetworkHalf
no_tags=no_tags, prune=prune)):
File "/home/android/stock_build/.repo/repo/project.py", line 2058, in _RemoteFetch
self.bare_git.pack_refs('--all', '--prune')
File "/home/android/stock_build/.repo/repo/project.py", line 2747, in runner
(self._project.name, name, p.stderr))
GitError: platform/build/kati pack-refs: fatal: Not a git repository: '/home/android/stock_build/.repo/projects/build/kati.git'
error: Exited sync due to fetch errors
I've tried doing rm -rf for each .git project that errored out, and I reran "repo sync -j 8", but I still get the same errors for those .gits. How do I fix these? Again, I'm new to this and trying to learn, so I'm sorry if I'm leaving out some key information for you guys.
which rom u are trying to build ?
messi2050 said:
which rom u are trying to build ?
Click to expand...
Click to collapse
This is just stock AOSP:
Code:
repo init -u https://android.googlesource.com/platform/manifest -b android-7.0.0_r13
cnstarz said:
This is just stock AOSP:
Code:
repo init -u https://android.googlesource.com/platform/manifest -b android-7.0.0_r13
Click to expand...
Click to collapse
try with
repo sync --force-sync
Thanks, I tried that too, but still got those errors. I think I have it all straightened out -- I had to delete the troublesome.gits from .repo/projects and .repo/project-objects/ and now things seem to be good:
Code:
---snip---
Fetching projects: 100% (481/481), done.
Checking out files: 100% (11503/11503), done. files: 16% (1860/11503)
Checking out files: 100% (6295/6295), done.out files: 9% (599/6295)
Checking out files: 100% (12356/12356), done.
Checking out files: 100% (524/524), done.g out files: 17% (90/524)
Checking out files: 100% (8423/8423), done.out files: 18% (1543/8423)
Checking out files: 100% (2533/2533), done.out files: 37% (961/2533)
Checking out files: 100% (9088/9088), done. out files: 32% (2995/9088)
Checking out files: 100% (19766/19766), done.ut files: 24% (4894/19766)
Checking out files: 100% (4757/4757), done. out files: 17% (853/4757)
Checking out files: 100% (5966/5966), done. out files: 34% (2070/5966)
Checking out files: 100% (2884/2884), done. out files: 38% (1124/2884)
Checking out files: 100% (31496/31496), done.ut files: 5% (1718/31496)
Checking out files: 100% (3203/3203), done. out files: 0% (21/3203)
Checking out files: 100% (129/129), done.ng out files: 34% (44/129)
Checking out files: 100% (622/622), done.
Checking out files: 100% (742/742), done.ng out files: 0% (6/742)
Checking out files: 100% (4202/4202), done. out files: 3% (143/4202)
Checking out files: 100% (5476/5476), done. out files: 12% (702/5476)
Checking out files: 100% (18054/18054), done.
Checking out files: 100% (1717/1717), done. out files: 6% (107/1717)
Checking out files: 100% (44431/44431), done.
Checking out files: 100% (62/62), done.
Checking out files: 100% (1668/1668), done. out files: 1% (17/1668)
Checking out files: 100% (7004/7004), done.
Checking out files: 100% (29/29), done.king out files: 17% (5/29)
Syncing work tree: 100% (481/481), done.

I have an issue when I was building PixelExperience.

FAILED: out/target/product/chopin/boot.img
/bin/bash -c "(out/host/linux-x86/bin/mkbootimg --kernel out/target/product/chopin/kernel --
ramdisk out/target/product/chopin/ramdisk-recovery.img --cmdline \"bootopt=64S3,32N2,64N2 andr
oidboot.selinux=permissive androidboot.init_fatal_reboot_target=recovery buildvariant=userdebu
g\" --base 0x40078000 --pagesize 2048 --recovery_dtbo device/xiaomi/chopin-prebuilts/base/dtbo
.img --dtb out/target/product/chopin/dtb.img --os_version 11 --os_patch_level 2021-12-05 --bas
e 0x40078000 --dtb device/xiaomi/chopin-prebuilts/base/dtb.img --dtb_offset 0x07c08000 --pages
ize 2048 --kernel_offset 0x00008000 --ramdisk_offset 0x11088000 --tags_offset 0x07c08000 --sec
ond_offset 0xbff88000 --header_version 2 --output out/target/product/chopin/boot.img ) && (si
ze=\$(for i in out/target/product/chopin/boot.img; do stat -c \"%s\" \"\$i\" | tr -d '\\n'; e
cho +; done; echo 0); total=\$(( \$( echo \"\$size\" ) )); printname=\$(echo -n \" out/target/
product/chopin/boot.img\" | tr \" \" +); maxsize=\$(( 134217728-69632)); if [ \"\$total\"
-gt \"\$maxsize\" ]; then echo \"error: \$printname too large (\$total > \$maxsize)\"; false;
elif [ \"\$total\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching s
ize limit (\$total now; limit \$maxsize)\"; fi ) && (out/host/linux-x86/bin/avbtool add_hash_f
ooter --image out/target/product/chopin/boot.img --partition_size 134217728 --partition_nam
e boot --prop com.android.build.boot.fingerprint:\$(cat out/target/product/chopin/build_finge
rprint.txt) --prop com.android.build.boot.os_version:11 )"
Traceback (most recent call last):
File "/mnt/sda1/AndroidSources/PixelExperience11P/out/host/linux-x86/bin/mkbootimg/internal/
stdlib/runpy.py", line 174, in _run_module_as_main
File "/mnt/sda1/AndroidSources/PixelExperience11P/out/host/linux-x86/bin/mkbootimg/internal/
stdlib/runpy.py", line 72, in _run_code
File "/mnt/sda1/AndroidSources/PixelExperience11P/out/host/linux-x86/bin/mkbootimg/__main__.
py", line 12, in <module>
File "/mnt/sda1/AndroidSources/PixelExperience11P/out/host/linux-x86/bin/mkbootimg/internal/
stdlib/runpy.py", line 174, in _run_module_as_main
File "/mnt/sda1/AndroidSources/PixelExperience11P/out/host/linux-x86/bin/mkbootimg/internal/
stdlib/runpy.py", line 72, in _run_code
File "/mnt/sda1/AndroidSources/PixelExperience11P/out/host/linux-x86/bin/mkbootimg/mkbootimg
.py", line 321, in <module>
File "/mnt/sda1/AndroidSources/PixelExperience11P/out/host/linux-x86/bin/mkbootimg/mkbootimg
.py", line 308, in main
File "/mnt/sda1/AndroidSources/PixelExperience11P/out/host/linux-x86/bin/mkbootimg/mkbootimg
.py", line 128, in write_header
struct.error: 'I' format requires 0 <= number <= 4294967295
08:51:11 ninja failed with: exit status 1
It happened when I was trying to build PixelExperience11Plus with a prebuilt kernel. How can I fix it.

Categories

Resources