#asahi-alt · 2024-12-19 09:32
zerdoxsure#asahi-alt · 2024-12-19 09:31
chadmedbut yeah get rid of -mtune entirely #asahi-alt · 2024-12-19 09:31
chadmedin your gcc env you will have to specify march manually since it doesnt have cpu presets for us#asahi-alt · 2024-12-19 09:31
chaos_princessiirc for gcc it copies(ish) march into mtune if it is not st#asahi-alt · 2024-12-19 09:31
chadmedyeah just yeet all that march crap out and replace with -mcpu=apple-m1 or -mcpu=apple-m2#asahi-alt · 2024-12-19 09:30
zerdoxyes 99% clang #asahi-alt · 2024-12-19 09:30
chadmedif youre using clang (which you seem to be) just use -mcpu#asahi-alt · 2024-12-19 09:30
zerdoxthanks#asahi-alt · 2024-12-19 09:30
chaos_princessjust drop mtune entirely#asahi-alt · 2024-12-19 09:30
zerdoxdo i use it?#asahi-alt · 2024-12-19 09:29
chaos_princesssince i think it is doing something like mtune=random-cortex-from-2016#asahi-alt · 2024-12-19 09:29
chaos_princessand, unless gcc fixed m-series cpu detection, your mtune=native hurts more than helps#asahi-alt · 2024-12-19 09:29
stinteland the latest chromium stable now even broke with that#asahi-alt · 2024-12-19 09:28
chaos_princessalthough, aside from flto=thin your cflags look safe#asahi-alt · 2024-12-19 09:28
zerdoxi'll report if it works. ty#asahi-alt · 2024-12-19 09:28
stintelI ended up using /etc/portage/env/www-client/chromium without march at all#asahi-alt · 2024-12-19 09:28
chaos_princessunless you like random stuff breaking#asahi-alt · 2024-12-19 09:28
chadmedno just do it for chromium for now please#asahi-alt · 2024-12-19 09:28
zerdoxit's usages#asahi-alt · 2024-12-19 09:28
chaos_princessnot globally#asahi-alt · 2024-12-19 09:28
zerdoxi'll double check#asahi-alt · 2024-12-19 09:28
zerdoxoh ok co custom-cflags globally#asahi-alt · 2024-12-19 09:28
chadmedthe real solution is emerge -av firefox btw #asahi-alt · 2024-12-19 09:28
stintelhah I'm not the only one with chromium build issues#asahi-alt · 2024-12-19 09:28
chaos_princessand fail at that#asahi-alt · 2024-12-19 09:27
chaos_princessor it is google build system nonsense where it tries to do march=native by hand#asahi-alt · 2024-12-19 09:27
chadmedjust like libreoffice#asahi-alt · 2024-12-19 09:27
chadmedthe chromium ebuild will ignore your cflags in some places unless you pass USE="custom-cflags"#asahi-alt · 2024-12-19 09:27
chaos_princesssomething tells me the flag filtering broke#asahi-alt · 2024-12-19 09:27
chaos_princesshuh?#asahi-alt · 2024-12-19 09:27
zerdoxthis is how i do it#asahi-alt · 2024-12-19 09:27
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#asahi-alt · 2024-12-19 09:27
mixiit needs to build with its custom -march, but the user cflags overwrite it#asahi-alt · 2024-12-19 09:27
zerdoxCOMMON_FLAGS="${COMMON_FLAGS_NO_LTO} -flto=thin"#asahi-alt · 2024-12-19 09:27
zerdox"#asahi-alt · 2024-12-19 09:27
zerdoxCOMMON_FLAGS_NO_LTO="-march=armv8.4-a+crypto+simd+i8mm+bf16+aes -mtune=native -O2 -pipe#asahi-alt · 2024-12-19 09:26
chaos_princessfrom above#asahi-alt · 2024-12-19 09:26
chaos_princessno? -march=armv8.4-a+crypto+simd+i8mm+bf16+aes#asahi-alt · 2024-12-19 09:26
chadmedlooks like its trying to build with -march=armv9 for whatever reason#asahi-alt · 2024-12-19 09:26
chadmedtry enable USE="custom-cflags" #asahi-alt · 2024-12-19 09:26
mixiI've seen that one before and it was too much google build system debugging for me#asahi-alt · 2024-12-19 09:26
chadmedinteresting, so chromium doesnt respect CPU_FLAGS_ARM #asahi-alt · 2024-12-19 09:25
zerdoxhttps://paste.rs/3OstE.txt#asahi-alt · 2024-12-19 09:23
chaos_princessalso, not the right thing#asahi-alt · 2024-12-19 09:23
zerdoxyes#asahi-alt · 2024-12-19 09:23
zerdoxi meant to yes#asahi-alt · 2024-12-19 09:23
chaos_princesshttps://pastebin.com/#asahi-alt · 2024-12-19 09:23
zerdoxi am sorry..#asahi-alt · 2024-12-19 09:23
chadmedthats not even what i asked you to paste :/ #asahi-alt · 2024-12-19 09:23
chaos_princessuse it