z3ntu / android_device_fairphone_FP4

Android device tree for Fairphone 4
14 stars 5 forks source link

module "soong_namespace" does not exist #1

Closed inbouto closed 2 years ago

inbouto commented 2 years ago

Hi

On a ubuntu 21.10 VM with 16 GB of RAM and 16 GB of SWAP, on a 1 TB partition exclusively for the repo

I synced the aosp twrp repo, added the FP4 manifest at .repo/local_manifest/FP4.xml, synced again, did

export ALLOW_MISSING_DEPENDENCIES=true
. build/envsetup.sh
lunch twrp_FP4-eng
m recoveryimage

And I am getting this error :

10:25:58 ************************************************************
10:25:58 You are building on a machine with 15.6GB of RAM
10:25:58 
10:25:58 The minimum required amount of free memory is around 16GB,
10:25:58 and even with that, some configurations may not work.
10:25:58 
10:25:58 If you run into segfaults or other errors, try reducing your
10:25:58 -j value.
10:25:58 ************************************************************
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=twrp_FP4
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-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.13.0-22-generic-x86_64-Ubuntu-21.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ1A.210205.004
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/fairphone/FP4
============================================
[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 o
ut/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Andr
oid.bp
error: device/fairphone/FP4/Android.bp:4:1: module "soong_namespace": namespace device/qcom/common/gp
t-utils does not exist
10:25:59 soong bootstrap failed with: exit status 1

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

I am new to messing around with android, would be glad to know where I messed up !

z3ntu commented 2 years ago

Can you check if you have a .repo/local_manifests/roomservice.xml? The lunch command should've written that (and downloaded the repository) based on the twrp.dependencies file in this repository.

inbouto commented 2 years ago

I do not have that file, even after re-syncing I'm going to start over and re-download everything

z3ntu commented 2 years ago

Ah I found the problem. Please rename .repo/local_manifests/FP4.xml to .repo/local_manifests/roomservice.xml and then run the build commands again. That should download the dependency:

Looking for dependencies
Adding dependencies to manifest

Adding dependency:
Repository: android_device_qcom_common
Branch: android-11
Remote: TeamWin
Path: device/qcom/common

Syncing dependencies
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Fetching: 100% (1/1), done in 0.541s
Garbage collecting: 100% (1/1), done in 0.003s
repo sync has finished successfully.
Looking for dependencies
device/qcom/common has no additional dependencies.

I'll fix the readme in a second.

z3ntu commented 2 years ago

Updated the readme: 8189599ee3a79d47ff3f22c2ef65b495df723148