[Q] I'm stuck on an AOSP Froyo build - Motorola Droid and Milestone General

Hey all, I need a little help if you all could. I'm trying to build a Motorola Droid (CDMA Milestone specifically) AOSP rom and I keep running into errors. I have everything done and I'm ready to make my rom. It throws up these errors everytime
Code:
[email protected]:~/froyo/system$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.2.1
TARGET_PRODUCT=generic_sholes
TARGET_BUILD_VARIANT=user
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=MASTER
============================================
wlan/ti/Android.mk:21: system/wlan/ti/wilink_6_1/Android.mk: No such file or directory
build/core/Makefile:19: warning: overriding commands for target `out/target/product/sholes/system/etc/gps.conf'
build/core/Makefile:19: warning: ignoring old commands for target `out/target/product/sholes/system/etc/gps.conf'
No private recovery resources for TARGET_DEVICE sholes
make: *** No rule to make target `system/wlan/ti/wilink_6_1/Android.mk'. Stop.
[email protected]:~/froyo/system$
I've tried to make clean and make prepare with no avail. Any thoughts or help would be greatly appreciated!
I'm running Ubuntu 10.10 64 bit with Java 5 and 6 (5 is set because the build wouldn't load other wise)
Thank You,
cfultz

Did you by any chance solved this problem?
I have the same when I try to "make otapackage"

Related

Compiling Firefox OS for Android One (Sprout)

I'm trying to compile Firefox OS using these files: "https://github.com/b2g-sprout/" . But I am having troubles 'coz there's no really fomal instructions from the Github link. I'm only a Web Developer so I don't know much about ROMs.
What I Did:
1 - Extracted "B2G" and "b2g-manifest" in home folder
2 - Extracted "device-sprout" on "device/google/sprout/"
3 - Backup System
4 - Run ANDROIDFS_DIR=backup_device ./config.sh sprout '../b2g-manifest/default.xml'
5 - Downloaded Files somewhere to get "sprout-vendor.mk" for "vendor" folder that the ./build.sh is looking for in my first run
5 - Run ./build.sh
Got this error after ./build.sh:
HTML:
<code>
./build.sh
including sdk/bash_completion/adb.bash
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.4.0.4.0.4
TARGET_PRODUCT=full_sprout
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-45-generic-x86_64-with-elementary_OS-0.3-freya
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.4.0.4.0.4
TARGET_PRODUCT=full_sprout
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-45-generic-x86_64-with-elementary_OS-0.3-freya
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
device/google/sprout/wpa_supplicant/Android.mk:19: Build wpa_supplicant_lib...
device/google/sprout/wpa_supplicant/Android.mk:27: external/wpa_supplicant_8/wpa_supplicant/android.config: No such file or directory
CMake and NDK (/home/zigmund/B2G/prebuilt/ndk/android-ndk-r7) found, will compile apitrace
external/apitrace/Android.mk:77: warning: overriding commands for target `out/target/product/sprout/obj/SHARED_LIBRARIES/egltrace_intermediates/LINKED/egltrace.so'
build/core/shared_library.mk:56: warning: ignoring old commands for target `out/target/product/sprout/obj/SHARED_LIBRARIES/egltrace_intermediates/LINKED/egltrace.so'
external/apitrace/Android.mk:82: warning: overriding commands for target `out/target/product/sprout/system/lib/egltrace.so'
build/core/base_rules.mk:532: warning: ignoring old commands for target `out/target/product/sprout/system/lib/egltrace.so'
external/apitrace/Android.mk:96: warning: overriding commands for target `out/target/product/sprout/obj/EXECUTABLES/apitrace_intermediates/LINKED/apitrace'
build/core/executable.mk:22: warning: ignoring old commands for target `out/target/product/sprout/obj/EXECUTABLES/apitrace_intermediates/LINKED/apitrace'
external/screencap-gonk/Android.mk:35: warning: overriding commands for target `out/target/product/sprout/system/bin/screencap-gonk'
build/core/base_rules.mk:532: warning: ignoring old commands for target `out/target/product/sprout/system/bin/screencap-gonk'
find: `../../external/apache-http/src/org/apache/http': No such file or directory
find: `../../external/apache-http/src/org/apache/http': No such file or directory
find: `../../external/apache-http/src/org/apache/http': No such file or directory
find: `../../external/nist-sip/java': No such file or directory
find: `../../external/apache-http/src': No such file or directory
find: `../../external/libphonenumber/java/src': No such file or directory
gaia/Android.mk:53: warning: overriding commands for target `out/target/product/sprout/data/local/gaia'
build/core/base_rules.mk:532: warning: ignoring old commands for target `out/target/product/sprout/data/local/gaia'
gonk-misc/Android.mk:30: warning: overriding commands for target `out/target/product/sprout/obj/ETC/init.rc_intermediates/init.rc'
build/core/prebuilt.mk:117: warning: ignoring old commands for target `out/target/product/sprout/obj/ETC/init.rc_intermediates/init.rc'
gonk-misc/Android.mk:137: warning: overriding commands for target `out/target/product/sprout/obj/DATA/sources.xml_intermediates/sources.xml'
build/core/prebuilt.mk:117: warning: ignoring old commands for target `out/target/product/sprout/obj/DATA/sources.xml_intermediates/sources.xml'
gonk-misc/Android.mk:359: warning: overriding commands for target `out/target/product/sprout/system/gecko'
build/core/base_rules.mk:532: warning: ignoring old commands for target `out/target/product/sprout/system/gecko'
gonk-misc/Android.mk:447: warning: overriding commands for target `out/target/product/sprout/obj/DATA/gecko_intermediates/gecko'
build/core/prebuilt.mk:117: warning: ignoring old commands for target `out/target/product/sprout/obj/DATA/gecko_intermediates/gecko'
build/core/base_rules.mk:82: *** Module name: librilutils
build/core/base_rules.mk:83: *** Makefile location: hardware/ril/librilutils
build/core/base_rules.mk:84: *
build/core/base_rules.mk:85: * Each module must use a LOCAL_MODULE_TAGS in its
build/core/base_rules.mk:86: * Android.mk. Possible tags declared by a module:
build/core/base_rules.mk:87: *
build/core/base_rules.mk:88: * optional, debug, eng, tests, samples
build/core/base_rules.mk:89: *
build/core/base_rules.mk:90: * If the module is expected to be in all builds
build/core/base_rules.mk:91: * of a product, then it should use the
build/core/base_rules.mk:92: * "optional" tag:
build/core/base_rules.mk:93: *
build/core/base_rules.mk:94: * Add "LOCAL_MODULE_TAGS := optional" in the
build/core/base_rules.mk:95: * Android.mk for the affected module, and add
build/core/base_rules.mk:96: * the LOCAL_MODULE value for that component
build/core/base_rules.mk:97: * into the PRODUCT_PACKAGES section of product
build/core/base_rules.mk:98: * makefile(s) where it's necessary, if
build/core/base_rules.mk:99: * appropriate.
build/core/base_rules.mk:100: *
build/core/base_rules.mk:101: * If the component should be in EVERY build of ALL
build/core/base_rules.mk:102: * products, then add its LOCAL_MODULE value to the
build/core/base_rules.mk:103: * PRODUCT_PACKAGES section of
build/core/base_rules.mk:104: * build/target/product/core.mk
build/core/base_rules.mk:105: *
build/core/base_rules.mk:106: *** user tag detected on new module - user tags are only supported on legacy modules. Stop.
real 0m42.594s
user 0m4.868s
sys 0m4.684s
> Build failed! <
Build with |./build.sh -j1| for better messages
If all else fails, use |rm -rf objdir-gecko| to clobber gecko and |rm -rf out| to clobber everything else.
</code>
After executing "./build.sh rm -rf out":
HTML:
<code>
./build.sh rm -rf out
including sdk/bash_completion/adb.bash
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.4.0.4.0.4
TARGET_PRODUCT=full_sprout
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-45-generic-x86_64-with-elementary_OS-0.3-freya
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
make: *** out: Is a directory. Stop.
real 0m0.002s
user 0m0.000s
sys 0m0.002s
> Build failed! <
Build with |./build.sh -j1| for better messages
If all else fails, use |rm -rf objdir-gecko| to clobber gecko and |rm -rf out| to clobber everything else.
</code>
Check this out Sir Firefox OS Build prerequisites
1. Try with newer sources of Firefox. Take nexus 5 as reference.
2. To delete the our folder, use the command "rm rf- out/" or "make clean "
3. Use"-j1" tag for better error messages
make rule issue
Hi there! I'm attempting to compile FFOS but I keep running into this error:
Code:
make: *** No rule to make target `out/target/product/sprout/kernel', needed by `out/target/product/sprout/boot.img'. Stop.
Is there anything that I missed? If it's a file, could I download it? Don't want to do another repo sync since the Internet at my place kinda sucks.

Getting an error while building aosp rom

I was doing exactly everything in this site http://developer.sonymobile.com/ope...-devices/#build-aosp-marshmallow-experimental but at the end when I started the building command I get this Error
Code:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
TARGET_PRODUCT=aosp_arm64
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
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-a15
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-38-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=MOB31E
OUT_DIR=out
============================================
including ./abi/cpp/Android.mk ...
including ./art/Android.mk ...
including ./bionic/Android.mk ...
including ./bootable/recovery/Android.mk ...
including ./build/libs/host/Android.mk ...
including ./build/target/board/Android.mk ...
including ./build/target/product/security/Android.mk ...
including ./build/tools/Android.mk ...
including ./cts/Android.mk ...
including ./dalvik/Android.mk ...
including ./development/apps/BluetoothDebug/Android.mk ...
including ./development/apps/BuildWidget/Android.mk ...
including ./development/apps/CustomLocale/Android.mk ...
Until. . . . .
make: *** No rule to make target '–j'. Stop.
#### make failed to build some targets (03:50 (mm:ss)) ####
What did I do do wrong?, I need help plz.

Building Lineage OS for gemini is broken

Hi there,
It's my first time to try to build LineageOS from source for Mi 5 (gemini), and I am following official instructions here wiki lineageos org gemini_build html
But I got errors after runing 'brunch gemini'. Any help are welcome, thanks very much!
Code:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170130-UNOFFICIAL-gemini
TARGET_PRODUCT=lineage_gemini
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
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.4.0-31-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=NMF26V
OUT_DIR=/root/android/system/out
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
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
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
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/root/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 gemini
build/core/java.mk:334: warning: overriding commands for target `/root/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 `/root/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 `/root/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 `/root/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 `/root/android/system/out/target/product/gemini/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/android/system/out/target/product/gemini/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-brcm.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-brcm.conf'
build/core/Makefile:34: warning: overriding commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-nxp.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/android/system/out/target/product/gemini/system/etc/libnfc-nxp.conf'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/root/android/system/out/target/product/gemini/obj/SHARED_LIBRARIES/libqminvapi_intermediates/export_includes', needed by '/root/android/system/out/target/product/gemini/obj/EXECUTABLES/readmac_intermediates/import_includes', 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 '/root/android/system'
#### make failed to build some targets (45 seconds) ####

Issues building Lineage 15.0

Soooo, this is what happens when I try to build Lineage 15.0. It fails to build the kernel, can someone please help.
[email protected]:~/android/lineage15$ mka
make: Entering directory '/home/flagers/android/lineage15'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=lineage_owens
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.13.0-36-generic-x86_64-with-Ubuntu-17.10-artful
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=/home/flagers/android/lineage15/out
============================================
ninja: no work to do.
ninja: no work to do.
Environment variable BUILD_NUMBER was modified (b391b210c6 => eb6491827b), regenerating...
[9/1046] 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
[338/1046] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[370/1046] 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
[404/1046] 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
[442/1046] including ./frameworks/opt/hardware/Android.mk ...
./frameworks/opt/hardware/Android.mk:21: warning: FindEmulator: find: `hardware/cyanogen/cmhw': No such file or directory
[576/1046] 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/1046] 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/1046] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:95: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1046/1046] including ./vendor/qcom/opensource/dataservices/Android.mk ...
build/core/Makefile:54: warning: Duplicate header copy: /home/flagers/android/lineage15/out/target/product/owens/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 owens
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'
[ 0% 16/64099] target thumb C: libtar <= external/libtar/lib/handle.c
external/libtar/lib/handle.c:35:19: warning: unused parameter 'mode' [-Wunused-parameter]
int oflags, int mode, int options)
^
1 warning generated.
[ 0% 29/64099] target thumb C++: libi...motorola/qcom318-32/init/init_moto.cpp
FAILED: /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -I device/motorola/qcom318-32/include -I system/core/init -I device/motorola/qcom318-32/init -I /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates -I /home/flagers/android/lineage15/out/target/product/owens/gen/STATIC_LIBRARIES/libinit_moto_intermediates -I libnativehelper/include/nativehelper \$(cat /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -isystem frameworks/av/include -isystem /home/flagers/android/lineage15/out/target/product/owens/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a7 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -DANDROID_TARGET="msm8937" -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.d -o /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o device/motorola/qcom318-32/init/init_moto.cpp"
In file included from device/motorola/qcom318-32/init/init_moto.cpp:34:
system/core/init/log.h:20:10: fatal error: 'android-base/logging.h' file not found
#include <android-base/logging.h>
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ 0% 34/64099] Building Kernel Config
make: Entering directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make[1]: Entering directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
GEN ./Makefile
#
# configuration written to .config
#
make[1]: Leaving directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
make: Leaving directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make: Entering directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
make[1]: Entering directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
make[1]: Leaving directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'
make: Leaving directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'
ninja: build stopped: subcommand failed.
20:26:02 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/flagers/android/lineage15'
#### make failed to build some targets (08:34 (mm:ss)) ####
FlagersXDA said:
Soooo, this is what happens when I try to build Lineage 15.0. It fails to build the kernel, can someone please help.
[ 0% 29/64099] target thumb C++: libi...motorola/qcom318-32/init/init_moto.cpp
FAILED: /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -I device/motorola/qcom318-32/include -I system/core/init -I device/motorola/qcom318-32/init -I /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates -I /home/flagers/android/lineage15/out/target/product/owens/gen/STATIC_LIBRARIES/libinit_moto_intermediates -I libnativehelper/include/nativehelper \$(cat /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -isystem frameworks/av/include -isystem /home/flagers/android/lineage15/out/target/product/owens/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a7 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -DANDROID_TARGET="msm8937" -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.d -o /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o device/motorola/qcom318-32/init/init_moto.cpp"
In file included from device/motorola/qcom318-32/init/init_moto.cpp:34:
system/core/init/log.h:20:10: fatal error: 'android-base/logging.h' file not found
#include <android-base/logging.h>
^~~~~~~~~~~~~~~~~~~~~~~~
Click to expand...
Click to collapse
the only reason it says failed to build the kernel is because another error stopped the build and the kernel was being built on another thread and also failed as a result of the error. I quoted the part with the actual error (click on it to see it). It is from the init.moto.cpp looking for a file android-base/logging.h that is not there. Probably due to the changes from N to O.
Code:
#include "log.h"
#include "util.h"
Remove these lines from init_moto.cpp
Also.. this was a simple ass issue to fix. I don't mean to be rude, but please take the time to take a closer look at the logs when it fails. It should have "FAILED" where the problem really is most of the time. Then you can take a look at one of the lineage 15 repositories from another phone and see what the differences are to help you fix it if it isn't obvious. (And in this case, this one was obvious)
Even if you can get it to build that doesn't mean things are going to work 100% either (It probably won't even boot without the required changes being made). I'm sure there are a lot of changes that need to be made, like compiling a lot of the drivers from caf source and stuff like that; like those that were mentioned elsewhere.
Next time I'll read the logs more thoroughly rather then skimming them.
FlagersXDA said:
Next time I'll read the logs more thoroughly rather then skimming them.
Click to expand...
Click to collapse
All good. The beginning of wisdom is knowing what you don't know. And thanks for your efforts.
FlagersXDA said:
Next time I'll read the logs more thoroughly rather then skimming them.
Click to expand...
Click to collapse
Please stop posting about building this in another ROM thread that it has nothing to do with. It is against the rules, and rude to the OP of the thread. You have a thread here now for your topic, please keep your questions for this topic here. You might want to actually read the XDA rules. One last thing. You cannot build Nougat or Oreo with 4gb of ram. It's damn near impossible without at least 8gb and at least the same size swap space. Make sure you crank up the swappiness. There are a few tricks you can do to help, just Google your problem and you'll find some tips on that.
Edit: read this: http://www.2net.co.uk/blog/jack-server.html
Sent from my Moto E (4) Plus using XDA Labs
Goose03 said:
Please stop posting about building this in another ROM thread that it has nothing to do with. It is against the rules, and rude to the OP of the thread. You have a thread here now for your topic, please keep your questions for this topic here. You might want to actually read the XDA rules. One last thing. You cannot build Nougat or Oreo with 4gb of ram. It's damn near impossible without at least 8gb and at least the same size swap space. Make sure you crank up the swappiness. There are a few tricks you can do to help, just Google your problem and you'll find some tips on that.
Edit: read this: http://www.2net.co.uk/blog/jack-server.html
Sent from my Moto E (4) Plus using XDA Labs
Click to expand...
Click to collapse
lmao this didn't age well

Trouble compiling for my device (D410)

So, after a lot of effort (documentation on ROM building won't make it any easier), I managed to reach the last stage (the building process itself with "brunch w7") on LineageOS 14.1. But this happens: (OBS: cut some text before this part, just a bunch of text commands)
Code:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20190908-UNOFFICIAL-w7
TARGET_PRODUCT=lineage_w7
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-5.0.0-27-generic-x86_64-with-LinuxMint-19.2-tina
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/android/android/lineage14/out
============================================
Checking build tools versions...
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
find: ‘/home/android/android/lineage14/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: Arquivo ou diretório inexistente
build/core/dex_preopt.mk:74: warning: overriding commands for target `/home/android/android/lineage14/out/target/product/w7/dex_bootjars/system/framework/telephony-ext_nodex.jar'
build/core/dex_preopt.mk:74: warning: ignoring old commands for target `/home/android/android/lineage14/out/target/product/w7/dex_bootjars/system/framework/telephony-ext_nodex.jar'
Starting build with ninja
ninja: Entering directory `.'
[ 0% 328/34549] host Java: tagsouplib (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/tagsouplib_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 1% 469/34549] host Java: antlr-runtime (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/antlr-runtime_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 1% 487/34549] host Java: guavalib (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/classes)
warning: [options] bootstrap class path not set in conjunction with -source 1.7
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.
1 warning
[ 1% 611/34549] host Java: jsilver (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/jsilver_intermediates/classes)
Note: external/jsilver/src/org/clearsilver/FactoryLoader.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 1% 683/34549] host Java: doclava (/home/android/android/lineage14/out/host/common/obj/JAVA_LIBRARIES/doclava_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 2% 693/34549] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/android/android/lineage14/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertiva "cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))" falhou.
Aborted (core dumped)
[ 2% 693/34549] target Java: core-all (/home/android/android/lineage14/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes)
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.
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/android/android/lineage14'
#### make failed to build some targets (03:36 (mm:ss)) ####
[email protected]:~/android/lineage14
and I don't know what to do now. Can someone help if I'm doing something wrong?

Categories

Resources