Brunch cedric errors - Moto G5 Questions & Answers

I'm trying to compile LineageOS 15 and am getting the following errors in the '' brunch cedric '' command. Does anyone know the solution?
[email protected]:~/android/system$ brunch cedric
including vendor/lineage/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
LINEAGE_VERSION=15.0-20171029-UNOFFICIAL-cedric
TARGET_PRODUCT=lineage_cedric
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPR1
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-37-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPR6.170623.012
OUT_DIR=/home/cairo100/android/system/out
AUX_OS_VARIANT_LIST=
============================================
make: Entering directory '/home/cairo100/android/system'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=lineage_cedric
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-37-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPR6.170623.012
OUT_DIR=/home/cairo100/android/system/out
============================================
ninja: no work to do.
[1/2] glob vendor/*/*/Android.bp
ninja: no work to do.
./vendor/motorola/cedric/Android.mk was modified, regenerating...
[9/1039] including ./cts/Android.mk ...
cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory
cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory
cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory
[136/1039] including ./device/motorola/cedric/Android.mk ...
ln: falhou ao criar link simbólico '/home/cairo100/android/system/out/target/product/cedric/system/bin/expat': Arquivo existe
[337/1039] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[369/1039] including ./frameworks/av/media/libaaudio/Android.mk ...
frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples
frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples
[403/1039] including ./frameworks/base/Android.mk ...
./frameworks/base/Android.mk:866: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:875: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:880: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:885: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
[441/1039] including ./frameworks/opt/hardware/Android.mk ...
./frameworks/opt/hardware/Android.mk:21: warning: FindEmulator: find: `frameworks/opt/hardware/cmhw': No such file or directory
[575/1039] including ./hardware/qcom/wlan-caf/Android.mk ...
build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
[581/1039] including ./lineage-sdk/Android.mk ...
./lineage-sdk/Android.mk:152: warning: FindEmulator: find: `lineage-sdk/dummy': No such file or directory
build/core/droiddoc.mk:132: warning: FindEmulator: find: `build/tools/droiddoc/templates-sdk': No such file or directory
[752/1039] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:107: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1039/1039] including ./vendor/qcom/opensource/dataservices/Android.mk ...
build/core/Makefile:54: warning: Duplicate header copy: /home/cairo100/android/system/out/target/product/cedric/obj/include/cld80211-lib/cld80211_lib.h
build/core/Makefile:54: warning: Defined in: hardware/qcom/wlan-caf/cld80211-lib/Android.mk hardware/qcom/wlan-caf/cld80211-lib/Android.mk
No private recovery resources for TARGET_DEVICE cedric
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
./test/vts/utils/python/archive/Android.mk:28: warning: overriding commands for target `default'
./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old commands for target `default'
./test/vts/utils/python/coverage/Android.mk:28: warning: overriding commands for target `default'
./test/vts/utils/python/archive/Android.mk:28: warning: ignoring old commands for target `default'
build/core/Makefile:34: warning: overriding commands for target `/home/cairo100/android/system/out/target/product/cedric/system/lib/hw/camera.msm8937.so'
build/core/base_rules.mk:375: warning: ignoring old commands for target `/home/cairo100/android/system/out/target/product/cedric/system/lib/hw/camera.msm8937.so'
build/core/Makefile:34: warning: overriding commands for target `/home/cairo100/android/system/out/target/product/cedric/system/lib/libqsap_sdk.so'
build/core/base_rules.mk:375: warning: ignoring old commands for target `/home/cairo100/android/system/out/target/product/cedric/system/lib/libqsap_sdk.so'
[ 50% 1/2] glob vendor/*/*/Android.bp
ninja: error: '/home/cairo100/android/system/out/target/product/cedric/obj/SHARED_LIBRARIES/libril_intermediates/export_includes', needed by '/home/cairo100/android/system/out/target/product/cedric/obj/SHARED_LIBRARIES/libreference-ril_intermediates/import_includes', missing and no known rule to make it
14:32:50 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
make: Leaving directory '/home/cairo100/android/system'
#### make failed to build some targets (01:57 (mm:ss)) ####
Click to expand...
Click to collapse

Missing dependences
You need to git clone them into your working folder
Google which repos you need
The output tells you what you are missing
you could also comment out
BOARD_PROVIDES_LIBRIL := true
from boardconfig.mk by putting a # in front of it so it becomes until you find out what is needed
#BOARD_PROVIDES_LIBRIL := true
don't know what files are needed to make that work but I think thats the line that that causes the error
and you are probably missing
qcom media-caf
qcom display-caf
qcom audio-caf
so git clone these repos for your board which is msm8937

Will this become available soon to download?

aaronboy205 said:
Will this become available soon to download?
Click to expand...
Click to collapse
I doubt it - from the problems the person is posting they haven't even reached the build stage so without being disrespectful they won't have the coding knowledge to fix errors
Best wait for the guys behind lineageos 14.1 - I'm sure they will build it once they have time
And anyway android 8.1 has been announced so there isn't much point until it's fully released & lineageos have updated all their sources

TheFixItMan said:
I doubt it - from the problems the person is posting they haven't even reached the build stage so without being disrespectful they won't have the coding knowledge to fix errors
Best wait for the guys behind lineageos 14.1 - I'm sure they will build it once they have time
And anyway android 8.1 has been announced so there isn't much point until it's fully released & lineageos have updated all their sources
Click to expand...
Click to collapse
There are few guides on the internet and translations often do not help. I was following a guide and in practice, I saw that it is not as simple as it seemed. As I had said, it was my first compilation and I had no experience. I'm going to start compiling roms nougats for anyone who knows how to be a future android oreo compiler for cedric

Related

[SOLVED] need some help compiling...

two things:
1. recovery compiling
i am trying to compile the recovery binary for the recovery image. so i go to the root of the android source, which i downloaded with the instructions from here: http://source.android.com/download
when i run "make recovery" i get the following error:
Code:
[email protected]:/media/data/mydroid$ make recovery
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.1-update1
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ECLAIR
============================================
make: *** No rule to make target `out/target/product/generic/obj/PACKAGING/ota_keys_inc_intermediates/keys.inc', needed by `out/target/product/generic/obj/EXECUTABLES/recovery_intermediates/install.o'. Stop.
having read somewhere about the recovery needing a compiled android first, i tried to run "make", which ran into the same error after about one hour of compiling (tons of other messages of course). any help is appreciated, i believe it is not a big problem...
2. c code cross compiling
i am trying to compile some (very basic) c code with the help of the cross compiler. the code contains the following includes:
Code:
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
the code compiles flawless with gcc, but when i try to compile it for android i get the following:
Code:
[email protected]:~/Desktop$ arm-eabi-gcc test.c -o armtest
test.sh.x.c:89:22: error: sys/stat.h: No such file or directory
test.sh.x.c:90:23: error: sys/types.h: No such file or directory
test.sh.x.c:92:19: error: errno.h: No such file or directory
test.sh.x.c:93:19: error: stdio.h: No such file or directory
test.sh.x.c:94:20: error: stdlib.h: No such file or directory
test.sh.x.c:95:20: error: string.h: No such file or directory
test.sh.x.c:96:18: error: time.h: No such file or directory
test.sh.x.c:97:20: error: unistd.h: No such file or directory
test.sh.x.c: In function 'key_with_file':
test.sh.x.c:159: error: array type has incomplete element type
test.sh.x.c:160: error: array type has incomplete element type
test.sh.x.c:166: warning: incompatible implicit declaration of built-in function 'memset'
test.sh.x.c: In function 'chkenv':
test.sh.x.c:211: warning: incompatible implicit declaration of built-in function 'sprintf'
test.sh.x.c:212: warning: assignment makes pointer from integer without a cast
test.sh.x.c:216: warning: incompatible implicit declaration of built-in function 'strlen'
test.sh.x.c:220: warning: incompatible implicit declaration of built-in function 'strdup'
test.sh.x.c:223: warning: incompatible implicit declaration of built-in function 'sscanf'
test.sh.x.c:235:24: error: sys/ptrace.h: No such file or directory
test.sh.x.c:237:22: error: sys/wait.h: No such file or directory
test.sh.x.c:238:19: error: fcntl.h: No such file or directory
test.sh.x.c:239:20: error: signal.h: No such file or directory
test.sh.x.c: In function 'untraceable':
test.sh.x.c:258: warning: incompatible implicit declaration of built-in function 'sprintf'
test.sh.x.c:261: error: 'O_RDWR' undeclared (first use in this function)
test.sh.x.c:261: error: (Each undeclared identifier is reported only once
test.sh.x.c:261: error: for each function it appears in.)
test.sh.x.c:261: error: 'O_EXCL' undeclared (first use in this function)
test.sh.x.c:262: error: 'errno' undeclared (first use in this function)
test.sh.x.c:262: error: 'EBUSY' undeclared (first use in this function)
test.sh.x.c:263: error: 'PTRACE_ATTACH' undeclared (first use in this function)
test.sh.x.c:265: error: 'SIGCONT' undeclared (first use in this function)
test.sh.x.c:268: error: 'SIGKILL' undeclared (first use in this function)
test.sh.x.c:270: warning: incompatible implicit declaration of built-in function '_exit'
test.sh.x.c:278: warning: incompatible implicit declaration of built-in function '_exit'
test.sh.x.c: In function 'xsh':
test.sh.x.c:291: error: 'time_t' undeclared (first use in this function)
test.sh.x.c:291: error: expected expression before ')' token
test.sh.x.c:292: error: expected expression before ')' token
test.sh.x.c:307: warning: incompatible implicit declaration of built-in function 'calloc'
test.sh.x.c:323: warning: incompatible implicit declaration of built-in function 'malloc'
test.sh.x.c:326: warning: incompatible implicit declaration of built-in function 'memset'
test.sh.x.c:327: warning: incompatible implicit declaration of built-in function 'memcpy'
test.sh.x.c:333: warning: incompatible implicit declaration of built-in function 'malloc'
test.sh.x.c:336: warning: incompatible implicit declaration of built-in function 'sprintf'
test.sh.x.c: In function 'main':
test.sh.x.c:370: warning: incompatible implicit declaration of built-in function 'fprintf'
test.sh.x.c:370: error: 'stderr' undeclared (first use in this function)
test.sh.x.c:371: error: 'errno' undeclared (first use in this function)
from my noob point of view that means the compiler cannot find the includes. so where can i find them (i asssume in the android source tree in bionic/libc/include/), and how do i get the compiler to find them? i tried "--sysroot=", but i am not sure what part of the path is expected exactly...
second problem is solved. fwiw this is the solution:
Code:
arm-eabi-gcc -o test test.c -Wl,-rpath-link=/media/data/mydroid/development/ndk/build/platforms/android-5/arch-arm/usr/lib/,-dynamic-linker=/system/bin/linker -L/media/data/mydroid/development/ndk/build/platforms/android-5/arch-arm/usr/lib/ /media/data/mydroid/development/ndk/build/platforms/android-5/arch-arm/usr/lib/crtbegin_dynamic.o -I/media/data/mydroid/development/ndk/build/platforms/android-5/arch-arm/usr/include -nostdlib -lc
where /media/data/mydroid is the directory in which i initialized the git. don't ask me what the options mean, i don't know exactly either.
problem1 still persists, so if anybody has any ideas...
solved. needed to download cupcake sources. thx amon ra.
kendong2 said:
solved. needed to download cupcake sources. thx amon ra.
Click to expand...
Click to collapse
Can you be a little more specific on how to fix the error? What detailed steps to take or do you just compile it with cupcake as my target device is an eclair build
make: *** No rule to make target `out/target/product/generic/obj/PACKAGING/ota_keys_inc_intermediates/keys.inc', needed by `out/target/product/generic/obj/EXECUTABLES/recovery_intermediates/install.o'. Stop
Can you detail what you are trying to do and how you are reaching this error?
Generally, from my experience, if you follow the detailed instructions from here:
http://source.android.com/source/download.html
The code compiles with no problems. Note that if you want eclair, initialize the repo using the command:
repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair
Hello verybody i have a similar error when porting cwm for my pantech im-a650s. i've googled, i found nothing...Anyone can help me?
Code:
[email protected]:~/android/system$ sudo make -j4 recoveryImage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
make: *** No rule to make target `recoveryImage'. Stop.
nguyenhonganh said:
Hello verybody i have a similar error when porting cwm for my pantech im-a650s. i've googled, i found nothing...Anyone can help me?
[email protected]:~/android/system$ sudo make -j4 recoveryImage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
make: *** No rule to make target `recoveryImage'. Stop.
Click to expand...
Click to collapse
Please post a new thread in Android General for this.

[Q] Problem compiling CM7 from source

Hey guys,
I've tried to get CM7 to compile from source on xubuntu x64 by following this, substituting the blade specific commands for buzz ones, but keep on hitting the following error.
Does anyone know what might be causing it? My google-fu isn't helping much.
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_buzz
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
build/core/base_rules.mk:479: warning: overriding commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
bootable/recovery/Android.mk:92: warning: ignoring old commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
No private recovery resources for TARGET_DEVICE buzz
host C: acp <= build/tools/acp/acp.c
host C: libhost <= build/libs/host/CopyFile.c
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/tools/acp/acp.c:22:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/libs/host/CopyFile.c:24:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 1
C4NCER said:
Hey guys,
I've tried to get CM7 to compile from source on xubuntu x64 by following this, substituting the blade specific commands for buzz ones, but keep on hitting the following error.
Does anyone know what might be causing it? My google-fu isn't helping much.
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_buzz
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
build/core/base_rules.mk:479: warning: overriding commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
bootable/recovery/Android.mk:92: warning: ignoring old commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
No private recovery resources for TARGET_DEVICE buzz
host C: acp <= build/tools/acp/acp.c
host C: libhost <= build/libs/host/CopyFile.c
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/tools/acp/acp.c:22:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/libs/host/CopyFile.c:24:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 1
Click to expand...
Click to collapse
Weird error. Never seen it before.
Anyway, you shouldn't do the extract-files part in that guide, it's kinda not used anymore. You should clone Arne's vendor config from here ($git clone https://github.com/arco/proprietary_vendor_htc.git /android/system/vendor/htc)
Oh and here's what I always do to build (I have the vendor config cloned to vendor/htc):
Code:
$cd /android/system
$repo sync -j7
$cd vendor/htc
$git pull
$cd ../..
$. build/envsetup.sh && lunch cyanogen_buzz-eng
$make -j7 bacon
nhnt11 said:
Weird error. Never seen it before.
Anyway, you shouldn't do the extract-files part in that guide, it's kinda not used anymore. You should clone Arne's vendor config from here ($git clone https://github.com/arco/proprietary_vendor_htc.git /android/system/vendor/htc)
Oh and here's what I always do to build (I have the vendor config cloned to vendor/htc):
Code:
$cd /android/system
$repo sync -j7
$cd vendor/htc
$git pull
$cd ../..
$. build/envsetup.sh && lunch cyanogen_buzz-eng
$make -j7 bacon
Click to expand...
Click to collapse
Cheers, I figured it out, was missing gcc and g++ multilibs, and then an ncurses-dev package and then an package for lz compression. Most of it seems to be due to running a 64bit build of linux and ubuntu dropping/renaming a few packages.
C4NCER said:
Cheers, I figured it out, was missing gcc and g++ multilibs, and then an ncurses-dev package and then an package for lz compression. Most of it seems to be due to running a 64bit build of linux and ubuntu dropping/renaming a few packages.
Click to expand...
Click to collapse
oh lol ok xD
Alternate fix for asm/errno.h: No such file or directory
Got the error building on ubuntu x86_64 11.04 (natty) while following docs at source.android.com/source/building.html
I fixed it by going into /usr/include/asm and symlinking everying from ../x86_64-linux-gnu/asm/ to the current directory.
# for f in `ls ../x86_64-linux-gnu/asm/*.h`; do echo "$f"; link=`basename "$f"`; ln -s "$f" $link; done
Click to expand...
Click to collapse
Don't do what is suggested above.
Correct thing to do is just make sure gcc-multilib is installed / up-to date
(I had the same issue with current Debian unstable)
If you really cannot install packages for whatever reason just make a symlink.

Building LineageOS for cancro (Xiaomi mi3w) problem

Hello,
I'm trying to build the lineageOS cm-14.1 version for Cancro
I did
Code:
$ repo init -u ssh://[email protected]/LineageOS/android.git -b cm-14.1
$ repo sync
$ breakfast cancro
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/xiaomi/cancro
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
Then:
Code:
$ brunch cancro
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/xiaomi/cancro
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
make: Entering directory '/path/to/android/system'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
Running kati to generate build-lineage_cancro.ninja...
Environment variable BUILD_NUMBER was modified (8e31167344 => 8b61fedda4), regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/path/to/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE cancro
build/core/java.mk:334: warning: overriding commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/bin/wcnss_service'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/bin/wcnss_service'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b00'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b00'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b01'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b01'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b02'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b02'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b04'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b04'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b06'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b06'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b07'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b07'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b08'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b08'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b09'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b09'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.mdt'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.mdt'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libc2dcolorconvert.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libc2dcolorconvert.so'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libOmxVenc.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libOmxVenc.so'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/path/to/android/system/out/target/product/cancro/obj/lib/libtime_genoff.so.toc', needed by '/path/to/android/system/out/target/product/cancro/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/path/to/android/system'
#### make failed to build some targets (22 seconds) ####
Ending with
Code:
ninja: error: '/path/to/android/system/out/target/product/cancro/obj/lib/libtime_genoff.so.toc', needed by '/path/to/android/system/out/target/product/cancro/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/path/to/android/system'
I did extract the binaries from a cancro phone running cyanogenmod 14.1.
What is the step I am missing?
Cancro in my language is cancer.
And when we call something a cancer means that thing it worst nothing.
paulomodesto said:
Cancro in my language is cancer.
And when we call something a cancer means that thing it worst nothing.
Click to expand...
Click to collapse
I'm not against a little bit of culture here and there.
I'm quite sure xiaomi thought about your language when naming their device. Cancro is also a constellation.
This aside, your comment is what makes most of the threads on XDA so time consuming to read. So thank you!
Time consuming to read?
Just read your first post...
And beside me, who have post on this tread?
Have a good year, and be happy.
Peace!
Bump. I am having the same error
ignore this
Interestingly enough I'm trying to build Lineage OS 14.1 for Bacon on Linux Bash for Windows 10 and get this exact same error. So that gives me hope that it's not just because I'm too lazy to use actual linux lol. If anyone knows the fix I want to try and get it to build someone else says they got CM13 to build with the same method.
Hi there! First of all: Happy new year everybody
I don't have the device (cancro) but I'm pretty sure that - for some reason - the mentioned file (and maybe even more) did not get pulled from your phone. Did you extract the proprietary files via "extract-files.sh"? Check where the file is located on your device and if the script pulls that folder.
You could also use proprietary files from github.com/TheMuppets. It's an open secret that most developers use that repository. Furthermore it's very handy when it comes to building/brunching for another device that you don't even own.
Edit: If I'm not wrong, these folders should be present in your build directory:
device/xiaomi/cancro
kernel/xiaomi/cancro
vendor/xiaomi/cancro
Please check that and report back
The Flash said:
Introduction
Frequently Asked Questions
1.1 Q: I got an error, what do I do??
1.1 A: Well to start, if it is anything with Ninja, I would go ahead and disable it. You can add this to your .bashrc file:
Code:
export USE_NINJA=false
Then type this
Code:
source ~/.bashrc
. build/envsetup.sh
breakfast bullhead
mka clobber
mka bacon
If it is saying you ran out of memory, follow this post.
If it isn't Ninja related, check out @AzraelsKiss's post here, where he has documented a few common issues. If none of those apply, post here with a detailed list of what you have done and we will do our best to help you.
Click to expand...
Click to collapse
You could try this.
experience7 said:
Hi there! First of all: Happy new year everybody
I don't have the device (cancro) but I'm pretty sure that - for some reason - the mentioned file (and maybe even more) did not get pulled from your phone. Did you extract the proprietary files via "extract-files.sh"? Check where the file is located on your device and if the script pulls that folder.
You could also use proprietary files from github.com/TheMuppets. It's an open secret that most developers use that repository. Furthermore it's very handy when it comes to building/brunching for another device that you don't even own.
Edit: If I'm not wrong, these folders should be present in your build directory:
device/xiaomi/cancro
kernel/xiaomi/cancro
vendor/xiaomi/cancro
Please check that and report back
Click to expand...
Click to collapse
I have tried TheMuppets xiaomi repo and also the extract_files.sh script. The result is always the same.
tassos_chry said:
You could try this.
Click to expand...
Click to collapse
I tried disabling ninja but the error remains the same.
I also had a look at the build-manifest.xml file on my phone but I don't see what is missing.
my solution
Hi,
since I found a solution, here is what I did...
- open the file "/android/system/device/xiaomi/cancro/proprietary-files.txt" in your editor...
- search for "libtime_genoff.so"
- add a "-" as first character in that line, so it looks like this "-vendor/lib/libtime_genoff.so"
- save
- run "/android/system/device/xiaomi/cancro/setup-makefiles.sh" to propagate the modification to the tool-chain
that's it :highfive:
best regards
Spameater_de
P.S.: during the build I had another issue regarding an obviously obsolete .so - file. I removed it from the proprietary_files.txt and re-run the setup-makefiles.sh... the image is now fine

failed to compile jfltexx, ninja error, missing files

Any idea why?
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/samsung/jf-gsm-common/proprietary/bin/rild', needed by '/home/huan/android/lineage/out/target/product/jfltexx/system/bin/rild', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/huan/android/lineage'
-------------------------
/home/huan/android/lineage/out/build-lineage_jfltexx.ninja is missing, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20170507-UNOFFICIAL-jfltexx
TARGET_PRODUCT=lineage_jfltexx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-38-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N2G47O
OUT_DIR=/home/huan/android/lineage/out
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/huan/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE jfltexx
build/core/java.mk:334: warning: overriding commands for target `/home/huan/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/home/huan/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:320: warning: overriding commands for target `/home/huan/android/lineage/out/target/product/jfltexx/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/product/jfltexx/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/bin/rild'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/bin/rild'
build/core/Makefile:34: warning: overriding commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libreference-ril.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libreference-ril.so'
build/core/Makefile:34: warning: overriding commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libril.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libril.so'
build/core/Makefile:34: warning: overriding commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libsecril-client.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/huan/android/lineage/out/target/product/jfltexx/system/lib/libsecril-client.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/samsung/jf-gsm-common/proprietary/bin/rild', needed by '/home/huan/android/lineage/out/target/product/jfltexx/system/bin/rild', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/huan/android/lineage'
#### make failed to build some targets (01:16 (mm:ss)) ####
i am facing the same issue
This mean you are missing the proprietary vendor files.
Check this site out, https://github.com/TheMuppets/proprietary_vendor_samsung
Make note of this error:
ninja: error: 'vendor/samsung/jf-gsm-common/proprietary/bin/rild', needed by '/home/huan/android/lineage/out/target/product/jfltexx/system/bin/rild', missing and no known rule to make it
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jf-gsm-common/proprietary/bin/rild
above is the path to the files you want, follow that on the repo page I provided.

Need help with building AOSP 8.0 for XA2 H4113

Hello,
so i have followed all the instructions on the sony site but for some reason it still won't build the rom.
Here is a part of the terminal history after doing the build command, please let me know if you can help me fix this.
[email protected]:~/android$ make -j4
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=aosp_h4113
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-20-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPR3.170623.013
OUT_DIR=out
============================================
[38/38] bootstrap out/soong/.minibootstrap/build.ninja.in
[4/4] cp out/soong/.bootstrap/bin/bpglob
[621/622] glob vendor/*/*/Android.bp
[40/40] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
out/build-aosp_h4113.ninja is missing, regenerating...
Checking build tools versions...
[9/986] including ./cts/Android.mk ...
cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory
cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory
cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory
[144/986] including ./device/sony/common/Android.mk ...
/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
/bin/bash: line 0: pushd: out/target/product/pioneer/odm/: No such file or directory
[336/986] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[368/986] including ./frameworks/av/media/libaaudio/Android.mk ...
frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples
frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples
[402/986] including ./frameworks/base/Android.mk ...
./frameworks/base/Android.mk:865: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:874: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:879: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:884: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
[717/986] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:107: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[722/986] including ./system/update_engine/Android.mk ...
./system/update_engine/Android.mk:522: warning: No PRODUCT_STATIC_BOOT_CONTROL_HAL configured but AB_OTA_UPDATER is true, no update sideload support.
[986/986] including ./vendor/qcom/opensource/wlan/wcnss-service/Android.mk ...
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE pioneer
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
build/core/base_rules.mk:466: warning: overriding commands for target `out/host/linux-x86/cts/android-cts/testcases/libcrash-jni.so'
build/core/base_rules.mk:466: warning: ignoring old commands for target `out/host/linux-x86/cts/android-cts/testcases/libcrash-jni.so'
build/core/base_rules.mk:466: warning: overriding commands for target `out/target/product/pioneer/testcases/libcrash-jni/libcrash-jni.so'
build/core/base_rules.mk:466: warning: ignoring old commands for target `out/target/product/pioneer/testcases/libcrash-jni/libcrash-jni.so'
build/core/base_rules.mk:466: warning: overriding commands for target `out/target/product/pioneer/testcases/hello_world_test/hello_world_test'
build/core/base_rules.mk:466: warning: ignoring old commands for target `out/target/product/pioneer/testcases/hello_world_test/hello_world_test'
./test/vts/utils/python/archive/Android.mk:28: warning: overriding commands for target `default'
./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old commands for target `default'
./test/vts/utils/python/coverage/Android.mk:28: warning: overriding commands for target `default'
./test/vts/utils/python/archive/Android.mk:28: warning: ignoring old commands for target `default'
[ 99% 1097/1098] glob vendor/*/*/Android.bp
ninja: error: 'device/sony/common-kernel/kernel-dtb-pioneer', needed by 'out/target/product/pioneer/kernel', missing and no known rule to make it
12:33:56 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
#### make failed to build some targets (01:50 (mm:ss)) ####
[email protected]:~/android$
Click to expand...
Click to collapse
you're missing device/sony/common-kernel
repo sync again
Sent from my H4113 using Tapatalk
So i just do repo sync without using the -f eich forces it to recover from errors, until i get a successful sync? Ok
frantisheq said:
you're missing device/sony/common-kernel
repo sync again
Sent from my H4113 using Tapatalk
Click to expand...
Click to collapse
Right so i see why I am missing it, it's not even there to download :laugh: .
So can someone like send me that file please? I mean if you have it?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
davidhozic said:
Right so i see why I am missing it, it's not even there to download :laugh: .
So can someone like send me that file please? I mean if you have it?
Click to expand...
Click to collapse
I see it that file in: android/kernel/sony/msm-4.4/common-kernel
When I follow the build instructions, I don't see H3123 model listed in the lunch menu. Is that something Sony has to add or do I hack together a aosp_h3123.mk file in android/device/sony/pioneer ?
So I tried building for H3113 and got an error:
[ 99% 1437/1438] glob vendor/*/*/Android.bp
ninja: error: 'hardware/qcom/audio/hal/sdm660/platform.c', needed by 'out/target/product/pioneer/obj_arm/SHARED_LIBRARIES/audio.primary.sdm660_intermediates/sdm660/platform.o', missing and no known rule to make it
Click to expand...
Click to collapse

Categories

Resources