[Q] Building ParanoidAndroid-1.6 - Nook Color Q&A, Help & Troubleshooting

I was attempting to build PA, as per this thread, and I got as far as this step:
Code:
. build/envsetup.sh
lunch
I selected "pa_encore-userdebug", as suggested, and this occurred:
Code:
Which would you like? [full-eng] 44
Looking for dependencies
Dependencies file not found, bailing out.
No errors appeared prior to this, that I saw, but upon executing the "make bacon" stage, this happened:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=pa_encore
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
Checking build tools versions...
************************************************************
You are attempting to build with an unsupported version
of java.
Your version is: java version "1.7.0_07".
The correct version is: Java SE 1.6.
Please follow the machine setup instructions at
http://source.android.com/source/download.html
************************************************************
************************************************************
You are attempting to build with the incorrect version
of javac.
Your version is: javac 1.7.0_07.
The correct version is: 1.6.
Please follow the machine setup instructions at
http://source.android.com/source/download.html
************************************************************
build/core/main.mk:147: *** stop. Stop.
I can't imagine that the entire process failed because it expected an older version of the JDK. Wha happen?

No, that is really what it is saying. Java7 was a big release, and i guess it is quite a lot to port to Dalvik. You could solve this in a number of ways, the easiest of which is just install Java 6. Those other warnings are not errors, your build should go fine if you pass the dependency checks.
Good luck, please report back if you have success.

Related

Compiled (by myself) cyanogenmod jflte for S4

Hi! i have a problem (boot loop) on compiled (by myself)
cyanogenmod jflte for S4.
I did not change a line of the source code, but the phone is
on the cyanogenmod boot logo from 20 minutes (using the new
compiled rom).
The phone was (successfully) running: cm-11-20141008-
SNAPSHOT-M11-jflte.zip (which works perfectly).
I have a S4 GT-9505.
Then, I followed this guide: "How To Build CyanogenMod Android
for Samsung Galaxy S4 ("jflte")"
I made factory/reset, cache wipe...
I used PhilZ Touch 6.23.9 to install the compiled Rom: cm-11-
20141109-UNOFFICIAL-jflte.zip
The only odd thing is that compilation stopped because it did
not found 1 library ( libtime_genoff.so). I took it from the
zip archive (cm-11-20141008-SNAPSHOT-M11-jflte.zip) and then,
the compilation process completed without any error in 1 hour.
Any suggestions?
This is my breakfast output:
[email protected]:~/project/CyanogenMod/cm-11$ breakfast jflte
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20141109-UNOFFICIAL-jflte
TARGET_PRODUCT=cm_jflte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-40-generic-x86_64-with-Ubuntu-
14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/zhy/project/CyanogenMod/cm-11/out
============================================
This is error log:
make: *** No rule to make target
`/home/zhy/project/CyanogenMod/cm-
11/out/target/product/jflte/obj/lib/libtime_genoff.so', needed
by `/home/zhy/project/CyanogenMod/cm-
11/out/target/product/jflte/obj/SHARED_LIBRARIES/libandroid_ru
ntime_inmediates/LINKED/libandroid_runtime.so'. Stop.
make: *** Waiting for unfinished jobs....

[Q] CM-12.1 validatekeymaps Error - HELP

Im trying to do a CM-12.1 build on Ubuntu 15.04 / 3.16...41 kernel. Environment setup to use java 7 - all my other CM 11 builds compiled nicely.
Receiving this error on compile. got past manifest problems, but not sure why i'm getting this. any help appreciated.
Devs if this is in the wrong area -- my apologies. Please redirect as needed.
GNU Make 4.0
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150704-UNOFFICIAL-ms013g
TARGET_PRODUCT=cm_ms013g
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_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-41-generic-x86_64-with-Ubuntu-15.04-vivid
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/home/lou/cyanogen_rom_dev/cm-12.0/out
============================================
"ebtables is disabled on this build"
No private recovery resources for TARGET_DEVICE ms013g
Updating goal targets....
File 'droid' does not exist.
File 'droidcore' does not exist.
File 'checkapi-cm' does not exist.
File 'check-cm-public-api' does not exist.
Must remake target 'check-cm-public-api'.
Successfully remade target file 'check-cm-public-api'.
File 'check-cm-system-api' does not exist.
Must remake target 'check-cm-system-api'.
Successfully remade target file 'check-cm-system-api'.
Must remake target 'checkapi-cm'.
Successfully remade target file 'checkapi-cm'.
File '/home/lou/cyanogen_rom_dev/cm-12.0/out/target/common/obj/ETC/validate_framework_keymaps_intermediates/stamp' does not exist.
File '/home/lou/cyanogen_rom_dev/cm-12.0/out/host/linux-x86/bin/validatekeymaps' does not exist.
File '/home/lou/cyanogen_rom_dev/cm-12.0/out/host/linux-x86/obj32/EXECUTABLES/validatekeymaps_intermediates/validatekeymaps' does not exist.
File 'all_copied_headers' does not exist.
Must remake target 'all_copied_headers'.
Successfully remade target file 'all_copied_headers'.
Must remake target '/home/lou/cyanogen_rom_dev/cm-12.0/out/host/linux-x86/obj32/EXECUTABLES/validatekeymaps_intermediates/validatekeymaps'.
host Executable: validatekeymaps (/home/lou/cyanogen_rom_dev/cm-12.0/out/host/linux-x86/obj32/EXECUTABLES/validatekeymaps_intermediates/validatekeymaps)
build/core/host_executable_internal.mk:31: recipe for target '/home/lou/cyanogen_rom_dev/cm-12.0/out/host/linux-x86/obj32/EXECUTABLES/validatekeymaps_intermediates/validatekeymaps' failed
#### make failed to build some targets (01:02 (mm:ss)) ####
Exact same problem
I'm having exactly this problem trying to build Lollipop BluezForAndroid for a nexus 7 wifi (flo) on an Ubuntu 12.04 system. Exact same error message, no idea why. Did you ever figure it out?

Trouble compiling omnirom for existing device

Hello all,
I'm getting started with Omnirom and wanted to compile a new device. After reading up on how this should be done, I tried a to set up a new device and compile but that resulted in errors. I figured it would be better to start out by trying to compile an existing device, however I get the same error message. Figuring this might be due to my set up, I ran the compilation in a clean docker instance with freshly installed openjdk-8-jdk and build tools, but same problem. I tried to find information about the error but there is not much to find online, so therefore I'm requesting your help.
The error I keep getting is:
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/platform-test-annotations-host_intermediates/javalib.jar', needed by '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/compatibility-common-util-hostsidelib_intermediates/classes-full-debug.jar', missing and no known rule to make it
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Details about the steps and error are below:
Init and sync:
Code:
repo init -u git://github.com/omnirom/android.git -b android-7.1
repo sync
Add device in .repo/local_manifests:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/xiaomi/kenzo" name="android_device_xiaomi_kenzo" remote="omnirom" revision="android-7.1" />
</manifest>
Compile:
Code:
[email protected]:~/dev/doit2$ . build/envsetup.sh
including device/xiaomi/kenzo/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/dev/doit2$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. omni_kenzo-userdebug
Which would you like? [aosp_arm-eng] 7
Looking for dependencies on: device/xiaomi/msm8956-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=omni_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-32-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=NJH47F
OUT_DIR=/home/floeperd/dev/doit2/out
============================================
but I always end up with this error:
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/platform-test-annotations-host_intermediates/javalib.jar', needed by '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/compatibility-common-util-hostsidelib_intermediates/classes-full-debug.jar', missing and no known rule to make it
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
I would appreciate any help. Thank you.

[Q] Issues with porting OmniROM to Nubia Z18 (NX606J)

Hi,
since last week I've been trying to port Omni to the ZTE nubia Z18 (NX606J) with more or less success but a few more obstacles to clear.
Basically, what I'm stuck at at the moment is the final make to build the actual ROM itself, but it's a bit more than that.. but first things first:
- I initialized the repo from OmniRom's android repository on GitHub and successfully ran repo sync
Code:
repo init -u git://github.com/omnirom/android.git -b android-9.0 && repo sync -j `nproc` -c -f --no-clone-bundle
- I cloned the device's config from youyim123's GitHub into device/nubia/nx606j, as per the envsetup.mk (so it finds the appropriate vendorsetup)
Code:
git clone https://github.com/youyim123/android_device_nubia_nx609j.git -b master
- I run . build/envsetup.sh and then lunch omni-nx606j-eng which produces
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=omni_nx606j
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.16-96.current-x86_64-Solus-3.9999
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PD1A.180720.031
OUT_DIR=/run/media/curtisy/Solus-Data/Omni_NX606J/out
============================================
- I run make clean && make -j4, this works for a while and then exits with of the following error:
Code:
ninja: error: 'prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libunwind.a', needed by '/run/media/curtisy/Solus-Data/Omni_NX606J/out/soong/.intermediates/external/boringssl/libcrypto/android_arm_armv8-a_cortex-a53_core_shared/libcrypto.so', missing and no known rule to make it
20:00:44 ninja failed with: exit status 1
I see it's missing some files, but repo sync again, doesn't help either, so I'm lost.
One pretty weird thing I noticed is that the second ninja step is only showing 55/56 as done but still continues. Is this normal?
Code:
[1/1] /run/media/curtisy/Solus-Data/Om...X606J/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[77/77] /run/media/curtisy/Solus-Data/...Data/Omni_NX606J/out/soong/build.ninja
Running make recoveryimage worked once, but when I tried flashing that, my device said it wasn't trusted and I had to reflash the source image again.
I'm really hitting a dead end with my little knowledge here, so it would be cool if anyone could point me in the right direction so I could at least get TWRP to work.
The phone has a Snapdragon 845. If you need any additional information, feel free to ask as I'm happy about any straw I can grab here.
Update: I somehow got around this issue doing another repo sync but now I'm prompted with another issue.
Code:
[945/945] including vendor/omni/Android.mk ...
packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm) missing libbluetooth_jni (SHARED_LIBRARIES android-arm)
Available variants:
libbluetooth_jni (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:833: error: exiting from previous errors.
03:34:57 ckati failed with: exit status 1
Or with ALLLOW_MISSING_DEPENDENCIES=true
Code:
[ 99% 1390/1391] glob vendor/omni/overlay/common/**/*
ninja: error: '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj_arm/SHARED_LIBRARIES/libbluetooth_jni_intermediates/link_type', needed by '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj/APPS/Bluetooth_intermediates/2ND_jni_link_type', missing and no known rule to make it
03:39:28 ninja failed with: exit status 1
For reference, this is the kernel source and this is the device specific source I'm currently using.
curtisy said:
Update: I somehow got around this issue doing another repo sync but now I'm prompted with another issue.
Code:
[945/945] including vendor/omni/Android.mk ...
packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm) missing libbluetooth_jni (SHARED_LIBRARIES android-arm)
Available variants:
libbluetooth_jni (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:833: error: exiting from previous errors.
03:34:57 ckati failed with: exit status 1
Or with ALLLOW_MISSING_DEPENDENCIES=true
Code:
[ 99% 1390/1391] glob vendor/omni/overlay/common/**/*
ninja: error: '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj_arm/SHARED_LIBRARIES/libbluetooth_jni_intermediates/link_type', needed by '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj/APPS/Bluetooth_intermediates/2ND_jni_link_type', missing and no known rule to make it
03:39:28 ninja failed with: exit status 1
For reference, this is the kernel source and this is the device specific source I'm currently using.
Click to expand...
Click to collapse
How do for fix?

Xperia XA2 H3133/H3113 Android 10 AOSP Not Building / Compiling

Hi
I have an issue when building AOSP, it fails to build some targets, as well as ninja fails with exit status 1. I have followed the guide provided by sony and i dont know why it happens. Log below.
Thanks
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_h3113
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-62-generic-x86_64-Linux-Mint-19.2
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.190711.019
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/sony/nile
============================================
hardware/qcom/gps/sdm845/etc/Android.mk was modified, regenerating...
[ 25% 113/441] including device/sony/common/Android.mk ...
IDisplayConfig version: DISPLAY_CONFIG_1_8
[ 99% 440/441] finishing build rules ...
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherOutOfProcTests'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherDebug'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherTests'
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'LauncherRotationStressTest'
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'PlatformScenarioTests'
FAILED: ninja: 'kernel/sony/msm-4.14/common-kernel/kernel-dtb-pioneer', needed by 'out/target/product/pioneer/kernel', missing and no known rule to make it
02:03:49 ninja failed with: exit status 1
#### failed to build some targets (02:22 (mm:ss)) ####
FAILED: ninja: 'kernel/sony/msm-4.14/common-kernel/kernel-dtb-pioneer
no prebuilt kernel in repo!
u need to compile kernel from source 1st or change "/device/sony/nile/platform.mk" to use source code for kernel, not prebuilt.
Now u can do it =) They updated sources & make prebuild kernels
https://github.com/sonyxperiadev/kernel-sony-msm-4.14-common

Categories

Resources