sonyxperiadev / device-sony-tone

10 stars 25 forks source link

seems like some libs arent included,fixes? #191

Open devydevdev opened 4 years ago

devydevdev commented 4 years ago

hey there, i was trying to build android 10 (branch: android-10.0.0_r1) for a xperia x perfomance (tone) with this guide:

https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-android-10-0-0#tutorial-step-4

when i try to compile, the error occurs that there are some essential libs from the repo of the device "tama" are missing, i guess those 2 devices share those files...w/e is there any way to fix this?

Error:

ubuntu16@ubuntu16-VirtualBox:~/android$ make -j&(nproc)
[1] 12826
3
ubuntu16@ubuntu16-VirtualBox:~/android$ ============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-74-generic-x86_64-Ubuntu-16.04.6-LTS
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
============================================
[100% 1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: device/sony/tama/bootctrl/Android.bp:18:1: "bootctrl.sdm845" depends on undefined module "libgptutils"
error: device/sony/nile/bootctrl/Android.bp:18:1: "bootctrl.sdm660" depends on undefined module "libgptutils"
error: device/sony/ganges/bootctrl/Android.bp:18:1: "bootctrl.sdm660" depends on undefined module "libgptutils"
error: device/sony/kumano/bootctrl/Android.bp:18:1: "bootctrl.sm8150" depends on undefined module "libgptutils"
18:56:19 soong bootstrap failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
MarijnS95 commented 4 years ago

Please use the android-10_legacy tag for Tone (and Loire): https://github.com/sonyxperiadev/local_manifests/blob/android-10_legacy/qcom.xml#L22

Seing all your attempts to edit the message: Use triple backticks to put the log in. That gives a code block instead of a quote block.

devydevdev commented 4 years ago

Well, that means instead of git clone https://github.com/sonyxperiadev/local_manifests -> git clone https://github.com/sonyxperiadev/local_manifests/tree/android-10_legacy ? 'Cause its still the same error :/

Thanks btw :D

MarijnS95 commented 4 years ago

According to the guide you linked:

cd .repo
git clone https://github.com/sonyxperiadev/local_manifests
cd local_manifests
git checkout <branch>
cd ../..

Where <branch> is to be replaced with the branch you are using. If you have already cloned it, skip that part and only execute the checkout in the .repo/local_manifests directory.

Sidenote: We just switched to an android-10_legacy branch for Loire and Tone, the guides should be updated to reflect this at some point but don't just yet.

ix5 commented 4 years ago

Please do as Marijns says and use the android-10_legacy branch for your tone device.

You also need to use the Android 9, Kernel 4.9 Software Binaries for loire and tone devices btw.

Side note: You also didn't read the guide carefully. You picked the r1 branch (android-10.0.0_r1) instead of the r21 branch in the guide, so you're missing vendor/qcom/opensource/gpt-utils, which provides libgptutils. We're mostly volunteers here and people with a reading bug kinda "steal" our time... ;)

devydevdev commented 4 years ago

ubuntu16@ubuntu16-VirtualBox:~/android/.repo$ git clone https://github.com/sonyxperiadev/local_manifests
Cloning into 'local_manifests'...
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 1217 (delta 17), reused 19 (delta 8), pack-reused 1185
Receiving objects: 100% (1217/1217), 161.70 KiB | 0 bytes/s, done.
Resolving deltas: 100% (833/833), done.
Checking connectivity... done.
ubuntu16@ubuntu16-VirtualBox:~/android/.repo$ cd local_manifests/
ubuntu16@ubuntu16-VirtualBox:~/android/.repo/local_manifests$ git checkout android-10_legacy
Branch android-10_legacy set up to track remote branch android-10_legacy from origin.
Switched to a new branch 'android-10_legacy'
ubuntu16@ubuntu16-VirtualBox:~/android/.repo/local_manifests$ cd ../..
ubuntu16@ubuntu16-VirtualBox:~/android$ repo sync
fatal: remove-project element specifies non-existent project: device/google/coral
ubuntu16@ubuntu16-VirtualBox:~/android$ ./repo_update.sh
Already up-to-date.
fatal: remove-project element specifies non-existent project: device/google/coral
ubuntu16@ubuntu16-VirtualBox:~/android$ source build/envsetup.sh && lunch

You're building on Linux

Lunch menu... pick a combo:
     1. aosp_arm-eng
     2. aosp_arm64-eng
     3. aosp_f5121-eng
     4. aosp_f5121-userdebug
     5. aosp_f5122-eng
     6. aosp_f5122-userdebug
     7. aosp_f5321-eng
     8. aosp_f5321-userdebug
     9. aosp_f8131-eng
     10. aosp_f8131-userdebug
     11. aosp_f8132-eng
     12. aosp_f8132-userdebug
     13. aosp_f8331-eng
     14. aosp_f8331-userdebug
     15. aosp_f8332-eng
     16. aosp_f8332-userdebug
     17. aosp_g1109-eng
     18. aosp_g1109-userdebug
     19. aosp_g8141-eng
     20. aosp_g8141-userdebug
     21. aosp_g8142-eng
     22. aosp_g8142-userdebug
     23. aosp_g8231-eng
     24. aosp_g8231-userdebug
     25. aosp_g8232-eng
     26. aosp_g8232-userdebug
     27. aosp_g8341-eng
     28. aosp_g8341-userdebug
     29. aosp_g8342-eng
     30. aosp_g8342-userdebug
     31. aosp_g8441-eng
     32. aosp_g8441-userdebug
     33. aosp_h3113-eng
     34. aosp_h3113-userdebug
     35. aosp_h3213-eng
     36. aosp_h3213-userdebug
     37. aosp_h3413-eng
     38. aosp_h3413-userdebug
     39. aosp_h4113-eng
     40. aosp_h4113-userdebug
     41. aosp_h4213-eng
     42. aosp_h4213-userdebug
     43. aosp_h4413-eng
     44. aosp_h4413-userdebug
     45. aosp_h8216-eng
     46. aosp_h8216-userdebug
     47. aosp_h8266-eng
     48. aosp_h8266-userdebug
     49. aosp_h8314-eng
     50. aosp_h8314-userdebug
     51. aosp_h8324-eng
     52. aosp_h8324-userdebug
     53. aosp_h8416-eng
     54. aosp_h8416-userdebug
     55. aosp_h9436-eng
     56. aosp_h9436-userdebug
     57. aosp_i3113-eng
     58. aosp_i3113-userdebug
     59. aosp_i3213-eng
     60. aosp_i3213-userdebug
     61. aosp_i4113-eng
     62. aosp_i4113-userdebug
     63. aosp_i4213-eng
     64. aosp_i4213-userdebug
     65. aosp_j8110-eng
     66. aosp_j8110-userdebug
     67. aosp_j8210-eng
     68. aosp_j8210-userdebug
     69. aosp_j9110-eng
     70. aosp_j9110-userdebug
     71. aosp_j9210-eng
     72. aosp_j9210-userdebug
     73. aosp_x86-eng
     74. aosp_x86_64-eng

Which would you like? [aosp_arm-eng] aosp_f8131-userdebug

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_f8131
TARGET_BUILD_VARIANT=userdebug
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=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-74-generic-x86_64-Ubuntu-16.04.6-LTS
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/tone
============================================
ubuntu16@ubuntu16-VirtualBox:~/android$ make -j&(nproc)
[1] 16641
3
ubuntu16@ubuntu16-VirtualBox:~/android$ ============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_f8131
TARGET_BUILD_VARIANT=userdebug
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=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-74-generic-x86_64-Ubuntu-16.04.6-LTS
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/tone
============================================
[100% 1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: device/sony/tama/bootctrl/Android.bp:18:1: "bootctrl.sdm845" depends on undefined module "libgptutils"
error: device/sony/kumano/bootctrl/Android.bp:18:1: "bootctrl.sm8150" depends on undefined module "libgptutils"
error: device/sony/nile/bootctrl/Android.bp:18:1: "bootctrl.sdm660" depends on undefined module "libgptutils"
20:04:07 soong bootstrap failed with: exit status 1

#### failed to build some targets (17 seconds) ####

feeling kinda stupid rn lol, wasnt i just doing what you have been saying ?:D

MarijnS95 commented 4 years ago

About that reading bug...

ubuntu16@ubuntu16-VirtualBox:~/android$ repo sync
fatal: remove-project element specifies non-existent project: device/google/coral

I assume your terminal prompt turned red or another warning color too.

devydevdev commented 4 years ago

Please do as Marijns says and use the android-10_legacy branch for your tone device.

You also need to use the Android 9, Kernel 4.9 Software Binaries for loire and tone devices btw.

Side note: You also didn't read the guide carefully. You picked the r1 branch (android-10.0.0_r1) instead of the r21 branch in the guide, so you're missing vendor/qcom/opensource/gpt-utils, which provides libgptutils. We're mostly volunteers here and people with a reading bug kinda "steal" our time... ;)

well arent swb made for r1? "SW_binaries_for_Xperia_Android_10.0.7.1_r1_v3a_tone.zip"

why do i have to use kernel 4.9 software binaries ? I saw this at Sony's website, isnt that saying 4.14?

"2020-01-17: Updated AOSP Android 10.0 binaries (Kernel 4.14) for:

Xperia XZ Premium, Xperia XZ1 and Xperia XZ1 Compact (Yoshino)
Xperia XA2 and Xperia XA2 Ultra (Nile)
Xperia XZ, Xperia XZs and Xperia X Performance (Tone)
Xperia X and Xperia X Compact (Loire)
Xperia XZ2, Xperia XZ2 Compact and Xperia XZ3 (Tama)
Xperia 10 and Xperia 10 Plus (Ganges)
Xperia 1 and Xperia 5 (Kumano)

For all devices: Camera improvements and ims support. For Xperia 5, 10: Sensor fix." src: https://developer.sony.com/develop/open-devices/latest-updates

MarijnS95 commented 4 years ago

Keep in mind that not reading the manual properly, not checking what each command does, using words like "rn" and "lol", and in general not caring about spelling, capitalization or punctuation makes you look very uninterested. If you don't care about such things, a community is generally unlikely to provide any sort of help. It is very easy for us to ignore your "questions".

ix5 commented 4 years ago

DUDE WTF. @devydevdev this is not telegram. Did you seriously just completely ignore what two people told you very clearly? We expect you to read, not debug your (self-created) issues for you.

10 points to Gryffindor if you've already figured out why your .repo/manifest.xml is still on r1 and that's why the remove-project is failing...