ChanServ changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
emilia-miki has quit [Ping timeout: 480 seconds]
hightower2 has joined #asahi-alt
n3ph has quit [Quit: WeeChat 4.4.3]
n3ph has joined #asahi-alt
verlio has quit [Ping timeout: 480 seconds]
n3ph has quit [Ping timeout: 480 seconds]
verlio has joined #asahi-alt
verlio has quit [Ping timeout: 480 seconds]
hightower4 has joined #asahi-alt
hightower2 has quit [Ping timeout: 480 seconds]
tobhe_ has joined #asahi-alt
tobhe has quit [Ping timeout: 480 seconds]
jnn has joined #asahi-alt
jn has quit [Ping timeout: 480 seconds]
verlio has joined #asahi-alt
Halian has quit [Quit: Going offline, see ya! (www.adiirc.com)]
television has joined #asahi-alt
Halian has joined #asahi-alt
television has quit [Ping timeout: 480 seconds]
n3ph has joined #asahi-alt
n3ph has quit []
n3ph has joined #asahi-alt
kdb42490357 has joined #asahi-alt
kdb4249035 has quit [Ping timeout: 480 seconds]
kdb42490357 is now known as kdb4249035
JayBeeFOSS has quit [Ping timeout: 480 seconds]
JayBeeFOSS has joined #asahi-alt
zerdox has joined #asahi-alt
<zerdox> hi! who compiled chromium on gentoo? any success? requires sve or sme for me
<chadmed> zerdox: qtwebengine works here. make sure your CPU_FLAGS_ARM is set properly
<zerdox> sorry but where can i get the value for it?
<zerdox> i don't set it and never have set it
<chaos_princess> are you doing `emerge chromium` or something custom?
<zerdox> emerge chromium
<chadmed> paste the output of emerge -pv chromium somewhere
<zerdox> FAILED: obj/third_party/libyuv/libyuv_sme/rotate_sme.o
<zerdox> ue -Wno-gnu-redeclared-enum -Wno-gnu-statement-expression -Wno-gnu-zero-variadic-macro-arguments -Wno-zero-length-array -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnost
<zerdox> aarch64-unknown-linux-gnu-clang++-19 -MD -MF obj/third_party/libyuv/libyuv_sme/rotate_sme.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D__ARM_NEON__=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D
<zerdox> 2561900383e10dbefc1d3e8f38cedfbe9 -DTMP_REBUILD_HACK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DCHROMIUM -DLIBYUV_DISABLE_LSX -DLIBYUV_DISABLE_LASX -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/libyuv/include -march=armv9-a+sme -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wgnu -Wno-gnu-anonymous-struct -Wno-gnu-conditional-omitted-operand -Wno-gnu-include-
<zerdox> -fno-sized-deallocation -fcomplete-member-pointers -mbranch-protection=standard -mno-outline -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-templ
<zerdox> ../../third_party/libyuv/source/rotate_sme.cc:24:46: error: function executed in streaming-SVE mode requires 'sme'
<zerdox> e-kw -Wno-dangling-assignment-gsl -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -nostdinc++ -isystem../../third_party/libc++/src/include -isystem../../third_party/libc++abi/src/include -fvisibility-inlines-hidden -march=armv8.4-a+crypto+simd+i8mm+bf16+aes -mtune=native -O2 -pipe -fno-lto -Wno-unknown-warning-option -c ../../third_party/libyuv/source/rotate_sme.cc -o obj/third_party/libyuv/libyuv_sme/r
<zerdox> 24 | __arm_locally_streaming __arm_new("za") void TransposeWxH_SME(
<zerdox> | ^
<zerdox> ../../third_party/libyuv/source/rotate_sme.cc:91:46: error: function executed in streaming-SVE mode requires 'sme'
<zerdox> 91 | __arm_locally_streaming __arm_new("za") void TransposeUVWxH_SME(
<zerdox> | ^
<zerdox> 2 errors generated.
<zerdox> [4632/50984] aarch64-unknown-linux-gnu-clang++-19 -MD -MF obj/third_party/libyuv/libyuv_neon/scale_neon64.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D__ARM_NEON__=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILIT
<zerdox> REVISION=8e31ad42561900383e10dbefc1d3e8f38cedfbe9 -DTMP_REBUILD_HACK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DCHROMIUM -DLIBYUV_DISABLE_LSX -DLIBYUV_DISABLE_LASX -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/libyuv/include -march=armv8-a+dotprod+i8mm -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wgnu -Wno-gnu-anonymous-struct -Wno-gnu-conditional-omitted-
<zerdox> ext -Wno-gnu-label-as-value -Wno-gnu-redeclared-enum -Wno-gnu-statement-expression -Wno-gnu-zero-variadic-macro-arguments -Wno-zero-length-array -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -funwind-tables -fPIC
<zerdox> cs -fmerge-all-constants -fno-sized-deallocation -fcomplete-member-pointers -mbranch-protection=standard -mno-outline -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-ref
<zerdox> te-arg-list-after-template-kw -Wno-dangling-assignment-gsl -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -nostdinc++ -isystem../../third_party/libc++/src/include -isystem../../third_party/libc++abi/src/include -fvisibility-inlines-hidden -march=armv8.4-a+crypto+simd+i8mm+bf16+aes -mtune=native -O2 -pipe -fno-lto -Wno-unknown-warning-option -c ../../third_party/libyuv/source/scale_neon64.cc -o obj/thir
zerdox has quit [Remote host closed the connection]
<chaos_princess> ffs
<chaos_princess> https://pastebin.com/
<chaos_princess> use it
<chadmed> thats not even what i asked you to paste :/
zerdox has joined #asahi-alt
<zerdox> i am sorry..
<chaos_princess> https://pastebin.com/
<zerdox> i meant to yes
<zerdox> yes
<chaos_princess> also, not the right thing
<chadmed> interesting, so chromium doesnt respect CPU_FLAGS_ARM
<mixi> I've seen that one before and it was too much google build system debugging for me
<chadmed> try enable USE="custom-cflags"
<chadmed> looks like its trying to build with -march=armv9 for whatever reason
<chaos_princess> no? -march=armv8.4-a+crypto+simd+i8mm+bf16+aes
<chaos_princess> from above
<zerdox> COMMON_FLAGS_NO_LTO="-march=armv8.4-a+crypto+simd+i8mm+bf16+aes -mtune=native -O2 -pipe
<zerdox> "
<zerdox> COMMON_FLAGS="${COMMON_FLAGS_NO_LTO} -flto=thin"
<mixi> it needs to build with its custom -march, but the user cflags overwrite it
<chadmed> [19:22] <zerdox> 2561900383e10dbefc1d3e8f38cedfbe9 -DTMP_REBUILD_HACK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DCHROMIUM -DLIBYUV_DISABLE_LSX -DLIBYUV_DISABLE_LASX -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/libyuv/include -march=armv9-a+sme
<zerdox> this is how i do it
<chaos_princess> huh?
<chaos_princess> something tells me the flag filtering broke
<chadmed> the chromium ebuild will ignore your cflags in some places unless you pass USE="custom-cflags"
<chadmed> just like libreoffice
<chaos_princess> or it is google build system nonsense where it tries to do march=native by hand
<chaos_princess> and fail at that
<stintel> hah I'm not the only one with chromium build issues
<chadmed> the real solution is emerge -av firefox btw
<zerdox> oh ok co custom-cflags globally
<zerdox> i'll double check
<chaos_princess> not globally
<zerdox> it's usages
<chadmed> no just do it for chromium for now please
<chaos_princess> unless you like random stuff breaking
<stintel> I ended up using /etc/portage/env/www-client/chromium without march at all
<zerdox> i'll report if it works. ty
<chaos_princess> although, aside from flto=thin your cflags look safe
<stintel> and the latest chromium stable now even broke with that
<chaos_princess> and, unless gcc fixed m-series cpu detection, your mtune=native hurts more than helps
<chaos_princess> since i think it is doing something like mtune=random-cortex-from-2016
kujeger has joined #asahi-alt
<zerdox> do i use it?
<chaos_princess> just drop mtune entirely
<zerdox> thanks
<chadmed> if youre using clang (which you seem to be) just use -mcpu
<zerdox> yes 99% clang
<chadmed> yeah just yeet all that march crap out and replace with -mcpu=apple-m1 or -mcpu=apple-m2
<chaos_princess> iirc for gcc it copies(ish) march into mtune if it is not st
<chadmed> in your gcc env you will have to specify march manually since it doesnt have cpu presets for us
<chadmed> but yeah get rid of -mtune entirely
<zerdox> sure
<zerdox> great thank you guys
kujeger- has quit [Ping timeout: 480 seconds]
<stintel> ld.lld: error: undefined symbol: __arm_tpidr2_save
<stintel> is my latest issue with chromium
<chadmed> the eu should be far more punitive toward google tbh
<chadmed> is that with or without lto?
<stintel> -mcpu=apple-m2 is clang only?
<chadmed> it is yes
<chadmed> [19:31] <chadmed> in your gcc env you will have to specify march manually since it doesnt have cpu presets for us
<stintel> ok so I'll try throwing that in /etc/portage/env/www-client/chromium
<chaos_princess> tpidr should not be m1-specific
<stintel> I have an M2 and was just using this in /etc/portage/env/www-client/chromium COMMON_FLAGS="-O2 -pipe"
<stintel> because of many previous build issues
<chaos_princess> probably a hot take, but google's "open source" is literally the worst.
<stintel> but that gives me __arm_tpidr2_save with www-client/chromium-131.0.6778.139
<stintel> so I'll try -mcpu=apple-m2
<chaos_princess> it's like they are religiously opposed to the concept of using standard tools
<stintel> aarch64-unknown-linux-gnu-gcc: fatal error: unknown value ‘apple-m2’ for ‘-mcpu’
<stintel> heh
<j`ey> chaos_princess: NIH syndrome
<chadmed> gerrit is an abomination and probably the most egregious offence
<chadmed> mozilla have mercurial and mach too which.... ugh
<stintel> I'd stop using chromium but I can't really
<chadmed> gerrit though... imagine naming such a fuck ugly piece of crap after a designer like cmon
<stintel> there's enough websites that simply do not work in firefox :(
<mixi> https://chromium.googlesource.com/libyuv/libyuv.git/+/refs/heads/main/BUILD.gn#274 <-- this is where they set the required -march=armv9-a+sme for rotate_sme.cc
<mixi> but the user cflags overwrite it, so the file that unconditionally depends on sme intrinsics can't be built
<mixi> the 'COMMON_FLAGS="-O2 -pipe"' bit should work around that one error
<chadmed> custom-cflags is probably required here then
<mixi> I think it should be the opposite - disabling custom cflags should help
<mixi> or am I misunderstanding what the option is supposed to do?
<mixi> the proper fix would be for google to fix their build system to pass the user cflags before their overwrites, not after
<chadmed> by default, ebuilds with the custom-cflags USE flag will _not_ use the user cflags
<chadmed> you have to enable the USE flag for your own cflags to override whatever the build system has asked for
<chadmed> this use flag is only present on extremely fragile builds like chromium and libreoffice where a lot of issues are due to a certain type of gentoo user enabling -O99999 etc and complaining when large builds fail
<leio> sorry, I can't catch up with backlog fully, so just throwing it out there - I think gentoo might be affected by the chromium 131+ 16k page size problem still?
<chaos_princess> maybe, but unrelated to current issue
<leio> i.e., if it gets compiled, might be trouble anyways?
<chaos_princess> there is a patch that fixes 16k floating around somewhere iirc
<j`ey> change true to false somewhere
<chaos_princess> sth like that :P
<j`ey> the rest is left as an exercise to the reader
<chadmed> sed -i 's/true/false/g' src/*/* ezpz
<leio> so on the unrelated topic, if it's broken, then someone who actually can test it and then test with patch can talk to Kangie and get it fixed in ::gentoo if need be
<chaos_princess> chadmed: #define if (...) if ((arc4random() & 1) && (__VA_ARGS)) :P
<leio> for the page size stuff, I don't know about the compile issues, other than having similar fun lately with firefox linkage and rust_eh_personality :P
<chadmed> chaos_princess: almost as bad as that one nodejs package that asks chatgpt if a number is even
<chaos_princess> and that is depended by literally half the npm?
<chaos_princess> leio: from what i hear, the 16k fix is to revert this thing https://chromium-review.googlesource.com/c/v8/v8/+/5864909
<chadmed> im lucky at work that the product we support links against a version of JINT so old that it doesnt even support ES5. dont have to think about node or promises or any other frameworks because we literally cannot use them anyway :p
<chadmed> that is indeed the fix for chromium
Halian| has joined #asahi-alt
<chadmed> the flatpak has been working for me when i need it though, apart from a single page that also crashes on edge on my work computer so *shrug*
Halian has quit [Ping timeout: 480 seconds]
<leio> so if it's crashy in ::gentoo, please someone work with Kangie in #gentoo-arm on that and get it fixed there; beware, he's same timezone as chadmed
<chaos_princess> so... who here uses chromium on gentoo? :P
<chadmed> i use the flatpak for work for $reasons but aint no way im compiling chromium _and_ qtwebengine
<leio> at least it only takes an hour
<leio> or well, 28 minutes for qtwebengine
<leio> I do use it occasionally because I refuse to fake UA for slack huddles to work in firefox, as they'd not see I'm using firefox for it for the rest of the time then
<leio> but I'm not at 131 yet
kdb42490354 has joined #asahi-alt
kdb4249035 has quit [Ping timeout: 480 seconds]
kdb42490354 is now known as kdb4249035
n3ph_ has joined #asahi-alt
<zerdox> my chrome compilation now goes further and previous error resolved, thank you
<zerdox> do i need to apply that 16k patch?
n3ph has quit [Ping timeout: 480 seconds]
<chaos_princess> if you are ok doing extra recompiles, try it without the patch first and see how crashy is it
<zerdox> okay
<zerdox> yes its ok for me
dcavalca8569 has quit []
dcavalca8569 has joined #asahi-alt
kdb4249035 has quit [Ping timeout: 480 seconds]
n3ph_ has quit [Quit: WeeChat 4.4.3]
n3ph has joined #asahi-alt
n3ph has quit [Quit: WeeChat 4.4.3]
n3ph has joined #asahi-alt
verlio has quit [Ping timeout: 480 seconds]
verlio has joined #asahi-alt
kdb4249035 has joined #asahi-alt
verlio has quit [Ping timeout: 480 seconds]
verlio has joined #asahi-alt
ethantwardy has quit [Quit: WeeChat 4.4.2]
tobhe_ has quit [Remote host closed the connection]
tobhe has joined #asahi-alt
n3ph_ has joined #asahi-alt
n3ph has quit [Ping timeout: 480 seconds]
verlio has quit [Ping timeout: 480 seconds]
n3ph_ has quit [Ping timeout: 480 seconds]
verlio has joined #asahi-alt
verlio has quit [Ping timeout: 480 seconds]
verlio has joined #asahi-alt
verlio has quit [Ping timeout: 480 seconds]
n3ph has joined #asahi-alt
verlio has joined #asahi-alt
n3ph has quit [Read error: No route to host]
verlio has quit [Ping timeout: 480 seconds]
verlio has joined #asahi-alt
verlio has quit [Ping timeout: 480 seconds]
hightower2 has joined #asahi-alt
hightower4 has quit [Ping timeout: 480 seconds]
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #asahi-alt
verlio has joined #asahi-alt
verlio has quit [Ping timeout: 480 seconds]
kujeger- has joined #asahi-alt
verlio has joined #asahi-alt
qyliss has quit [Quit: bye]
kujeger has quit [Ping timeout: 480 seconds]
verlio has quit [Ping timeout: 480 seconds]
verlio has joined #asahi-alt
qyliss has joined #asahi-alt
verlio has quit [Ping timeout: 480 seconds]
verlio has joined #asahi-alt
john-cabaj has joined #asahi-alt
john-cabaj has quit [Ping timeout: 480 seconds]
n3ph has joined #asahi-alt
john-cabaj has joined #asahi-alt
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #asahi-alt
hightower2 has quit []
zerdox_ has joined #asahi-alt
zerdox has quit [Ping timeout: 480 seconds]
zerdox_ is now known as zerdox
zerdox has quit [Ping timeout: 480 seconds]
n3ph has quit [Read error: No route to host]
verlio has quit [Ping timeout: 480 seconds]
verlio has joined #asahi-alt
Halian| is now known as Halian
lynndotpy has quit [Quit: bye bye]