Tuesday, 2022-04-19

*** Ischwitch is now known as Ingvix06:34
*** Daaanct12 is now known as Danct1212:56
T42<dani551> Hey guys, I need some help trying to port SfOS to Samsung beyond1lte (Android 10).15:31
T42<dani551> I have followed the HADK and now at this step when I run `make -j$(nproc --all) hybris-hal droidmedia`, I get the following errors. I tried by setting the `ALLOW_MISSING_DEPENDENCIES=true` and without it too.15:31
T42<dani551> Please see my log output here: https://www.toptal.com/developers/hastebin/folocuceso.yaml15:31
Thaodan@dani551: You can skip audiofingerglue it is not used anymore on newer Android version.15:34
Thaodans15:34
ThaodanMake sure you have enough ram for make -j$(nproc --all)15:36
T42<adampigg> i dont ... and ive 16gb15:37
T42<TheVancedGamer> how many cores?15:38
T42<Mister_Magister> should be enough15:38
Thaodan16gb isn't enough if you have more than 16 cores I'd say15:38
T42<TheVancedGamer> I usually do this:15:38
T42<TheVancedGamer> number of cores + 2 additional if you have more than 4 cores15:38
T42<Mister_Magister> don't do that15:39
T42<TheVancedGamer> I said cores, not threads15:39
T42<adampigg> even if i try and build hybris-hal with nice, and -j2, it kills my laptop!15:39
T42<Mister_Magister> the hell15:39
T42<TheVancedGamer> sad, I have 4GB of RAM15:39
T42<TheVancedGamer> -j2 works fine15:39
T42<adampigg> ive a 4core 6thgen core i515:39
T42<Mister_Magister> wait, new build system uses ninja15:39
ThaodanI have 32 cores times 2 (smt) if I do nproc --all with 32gb of ram it kills my system.15:39
T42<Mister_Magister> and ninja ignores -j15:39
T42<Mister_Magister> it just goes with nproc --all15:40
ThaodanNinja also has -j15:40
T42<Mister_Magister> yes but he's using make15:40
T42<Mister_Magister> not ninja directly15:40
T42<Mister_Magister> i've ran into this issue15:40
ThaodanAlso the make -> ninja converter that google uses consumes a hell lot of memory15:41
T42<TheVancedGamer> Google should use something else than that converter15:41
T42<TheVancedGamer> or make it more efficient15:41
ThaodanI'm getting extra 32gb of ram just for stuff like this and llvm15:41
T42<dani551> Thanks15:53
T42<dani551> But I did not manually include audioflinger glue, so please tell me how I am to remove it? (re @SailfishFreenodeIRCBridgeBot: <Thaodan>@dani551: Y...)15:53
T42<dani551> kati? Is that what hogs the mem like no tomorrow? (re @TheVancedGamer: Google should use so...)15:54
T42<TheVancedGamer> kati and ninja15:54
Thaodanyes15:54
ThaodanKati15:54
Thaodanbut it only runs once unless the makefiles don't change15:55
T42<dani551> So Thaodan, how should I remove the audioflinger glue?15:57
ThaodanDid you ran it exactly like this `make -j$(nproc --all) hybris-hal droidmedia`? Unless you also pass audiofingerglue it will not it.15:59
Thaodanah the error is from this: hardware/samsung/hidl/keymaster/Android.mk: error: "android.hardware.keymaster@4.0-service.samsung (EXECUTABLES android-arm64) missing libskeymaster4device (SHARED_LIBRARIES android-arm64)"15:59
Thaodan /bin/bash: external/audioflingerglue/detect_build_targets.sh: No such file or directory is harmless16:00
T42<dani551> yeah, I ran it exactly like that (apart from the no of threads part) (re @SailfishFreenodeIRCBridgeBot: <Thaodan>Did you ran...)16:01
T42<dani551> shall I comment out the `android.hardware.keymaster@4.0` related parts in `hardware/samsung/hidl/keymaster/Android.mk`?16:04
T42<dani551> or shall I clone https://github.com/mer-hybris/audioflingerglue to `external/audioflingerglue`?16:09
Thaodanyou need to fix the keymaster errors16:32
Thaodan/bin/bash: external/audioflingerglue/detect_build_targets.sh: No such file or directory is harmless it just tries to detect if you're would use it16:34
T42<dani551> damn, guess I need to clone the `audioflingerglue` and `av` (re @SailfishFreenodeIRCBridgeBot: <Thaodan>you need to...)16:39
Thaodanno16:39
T42<dani551> that fixes those errors, but I keep getting a bunch of errors like `error: cannot assign to readonly variable: PLATFORM_BASE_OS`16:39
Thaodanyou need to fix the keymaster error16:40
T42<dani551> damn haha (re @SailfishFreenodeIRCBridgeBot: <Thaodan>you need to...)16:40
T42<dani551> ok16:40
T42<dani551> lets see if I can do that16:40
T42<dani551> I have been grinding my two braincells together on this since then and I cannot seem to understand this completely (re @SailfishFreenodeIRCBridgeBot: <Thaodan>you need to...)17:06
T42<elros34> @dani551 did you apply hybris patches before first make attempt?17:28
T42<dani551> I followed the steps exactly as in the HADK, I did not do anything else (I dont think hybris patches are mentioned there?), although the kernel I am using has been used with UT and droidian (re @elros34: @dani551 did you app...)17:33
T42<dani551> so I am not aware of any patches that are needed outside of the kernel (re @dani551: I followed the steps...)17:39
T42<dani551> do you mean this? https://github.com/mer-hybris/hybris-patches17:44
ThaodanThe kernel could become an issue later if not checked. However right not it somehow tries to build keymaster17:45
Thaodandani551: https://www.reddit.com/r/LineageOS/comments/ow5r75/help_lineageos_on_galaxy_note_10/17:53
ThaodanYou need to have the blobs extracted17:53
piggzhad to force reboot after another attempt at building android side :/17:53
piggzon android 10, i could wrap make with nice ... on android 11, the stop you using make directly so that doesnt work!17:54
T42<dani551> I see, I am gonna try to replace the vendor then17:54
T42<dani551> thanks - will try this tomorrow, getting a bit late here now (re @SailfishFreenodeIRCBridgeBot: <Thaodan>You need to...)17:54
T42<nephros> Anyone know what "rich-core" is or does?18:00
T42<nephros> When I run minimer I get this in logcat:18:01
T42<nephros> 18:01
T42<nephros> root[4438]: rich-core: arguments: --pid=4127 --signal=11 --name=qmlscene18:01
T42<nephros> root[4441]: rich-core: privacy notice not accepted - not dumping18:01
T42<b100dian> A core dump/crash reporyer I think18:09
T42<b100dian> Do you also have /tombstones18:10
T42<nephros> No /tombstones, but /bugreports18:10
T42<b100dian> But the crash has to be somewhere, maybe in logcat?18:20
T42<nephros> It appears to catch the qmlscene segfault (signal 11 ;) ) and logs that message. probably debuggerd which is running.18:21
T42<elros34> @dani551 unfortunately hadk pdf do not contains important informations so you need to read github.com/mer-hybris/hadk-faq  hybris-<x> section in the middle of build. Next you need to read also collabedit.com/kr9xx18:25
T42<nephros> are minimediaservice and minisfservice supposed to be 32-bit applications on an aarch64 (hybris) userland?18:29
T42<elros34> AFAIK it's device specific18:32
T42<nephros> Ah, detect_build_targets.sh in droidmedia. I see.18:34

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!