Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues with android-14.0.0_r14 #817

Open
onitake opened this issue Nov 30, 2023 · 1 comment
Open

Build issues with android-14.0.0_r14 #817

onitake opened this issue Nov 30, 2023 · 1 comment
Labels

Comments

@onitake
Copy link

onitake commented Nov 30, 2023

Platform: Debian bullseye (build system)
Device: Xperia 10 V (xqdc54)
Kernel version: 5.4 (target system)
Android version: 14.0.0_r14
Software binaries version: ?

Previously working on
Has this always been a problem, or is it a new issue?

Description
There are some minor build issues.

First issue:

out/host/linux-x86/bin/checkpolicy -C -M -c 30 -o out/soong/.intermediates/system/sepolicy/recovery_sepolicy.cil/android_common/recovery_sepolicy.cil out/soong/.intermediates/system/sepolicy/recovery_sepolicy.conf/android_common/recovery_sepolicy.conf
device/sony/sepolicy/vendor/device.te:3:ERROR 'Duplicate declaration of type' at token ';' on line 84290:
type bt_device, dev_type;
type avtimer_device, dev_type;
checkpolicy:  error(s) encountered while parsing configuration

This has already been fixed in sonyxperiadev/device-sony-sepolicy@edab494 , but the repo configuration uses the sony/u-mr1 branch that doesn't have the patch.

Second issue:

FAILED: out/soong/.intermediates/vendor/oss/opentelephony/ModemConfig/sysprop/SomcModemProperties_sysprop_library/check_api.timestamp
( cmp -s out/soong/.intermediates/vendor/oss/opentelephony/ModemConfig/sysprop/SomcModemProperties_sysprop_library/api-dump.txt vendor/oss/opentelephony/ModemConfig/sysprop/api/SomcModemProperties-current.txt || ( echo -e "\n******************************\nAPI of sysprop_library SomcModemProperties doesn't match with current.txt\nPlease update current.txt by:\nm SomcModemProperties-dump-api && mkdir -p "vendor/oss/opentelephony/ModemConfig/sysprop/api" && rm -rf "vendor/oss/opentelephony/ModemConfig/sysprop/api/SomcModemProperties-current.txt" && cp -f "out/soong/.intermediates/vendor/oss/opentelephony/ModemConfig/sysprop/SomcModemProperties_sysprop_library/api-dump.txt" "vendor/oss/opentelephony/ModemConfig/sysprop/api/SomcModemProperties-current.txt"\n******************************\n" ; exit 38) ) && (  out/host/linux-x86/bin/sysprop_api_checker vendor/oss/opentelephony/ModemConfig/sysprop/api/SomcModemProperties-latest.txt vendor/oss/opentelephony/ModemConfig/sysprop/api/SomcModemProperties-current.txt  || ( echo -e "\n******************************\nAPI of sysprop_library SomcModemProperties doesn't match with latest version\nPlease fix the breakage and rebuild.\n******************************\n" ; exit 38) ) && touch out/soong/.intermediates/vendor/oss/opentelephony/ModemConfig/sysprop/SomcModemProperties_sysprop_library/check_api.timestamp # hash of input list: f6dbc6b0657bc37a56618e13d062e03e140f3ca9caf10cf1501e4e9a4c837807
-e 
******************************
API of sysprop_library SomcModemProperties doesn't match with current.txt
Please update current.txt by:
m SomcModemProperties-dump-api && mkdir -p vendor/oss/opentelephony/ModemConfig/sysprop/api && rm -rf vendor/oss/opentelephony/ModemConfig/sysprop/api/SomcModemProperties-current.txt && cp -f out/soong/.intermediates/vendor/oss/opentelephony/ModemConfig/sysprop/SomcModemProperties_sysprop_library/api-dump.txt vendor/oss/opentelephony/ModemConfig/sysprop/api/SomcModemProperties-current.txt
******************************

No fix has been released for this one, but a simple patch against https://github.com/sonyxperiadev/SonyOpenTelephony can be generated by the command above:

diff --git a/ModemConfig/sysprop/api/SomcModemProperties-current.txt b/ModemConfig/sysprop/api/SomcModemProperties-current.txt
index e144aee..e69de29 100644
--- a/ModemConfig/sysprop/api/SomcModemProperties-current.txt
+++ b/ModemConfig/sysprop/api/SomcModemProperties-current.txt
@@ -1,18 +0,0 @@
-props {
-  owner: Vendor
-  module: "com.sony.opentelephony.modemconfig.SomcModemProperties"
-  prop {
-    api_name: "cust_modem_0"
-    type: String
-    access: ReadWrite
-    scope: Internal
-    prop_name: "persist.vendor.somc.cust.modem0"
-  }
-  prop {
-    api_name: "cust_modem_1"
-    type: String
-    access: ReadWrite
-    scope: Internal
-    prop_name: "persist.vendor.somc.cust.modem1"
-  }
-}

Is this just drift, or a symptom of a more serious issue?

Symptoms
See the description.

How to reproduce
Follow the build instructions: https://developer.sony.com/open-source/aosp-on-xperia-open-devices/guides/aosp-build-instructions/build-aosp-android-14/
Branch: android-14.0.0_r14
Target: aosp_xqdc54-user (happens with eng and userdbg flavors as well)

Additional context
N/A

@onitake onitake added the bug label Nov 30, 2023
@MarijnS95
Copy link
Contributor

MarijnS95 commented Nov 30, 2023

No fix has been released for this one

sonyxperiadev/SonyOpenTelephony#13

It's quite terrible and "probably wrong" though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants