Created attachment 768651 [details] zstd-1.5.2 build log app-arch/zstd-1.5.2 fails to build because of invalid -march option `native'
Created attachment 768652 [details] emerge --info
This is because 'march=native' is not a valid option for the assembler (-Wa,...). Please fix your *FLAGS. ASFLAGS="-Wa,-R -Wa,-Os -Wa,-acdn -Wa,-mtune=core2 -Wa,-march=native -Wa,--strip-local-absolute -Wa,-mrelax-relocations=yes -Wa,-mintel64 -Wa,--64" CFLAGS="-m64 -w -g0 -O2 -march=native -mtune=native -fomit-frame-pointer -fno-plt -fstack-protector-strong -fstack-clash-protection -pipe -fuse-linker-plugin -flto=2" CPPFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -U_GLIBCXX_ASSERTIONS -D_GLIBCXX_ASSERTIONS" CXXFLAGS="-m64 -w -g0 -O2 -march=native -mtune=native -fomit-frame-pointer -fno-plt -fstack-protector-strong -fstack-clash-protection -pipe -fuse-linker-plugin -flto=2 -fvisibility-inlines-hidden" FCFLAGS="-m64 -w -g0 -O2 -march=native -mtune=native -fomit-frame-pointer -fno-plt -fstack-protector-strong -fstack-clash-protection -pipe -fuse-linker-plugin -flto=2" FFLAGS="-m64 -w -g0 -O2 -march=native -mtune=native -fomit-frame-pointer -fno-plt -fstack-protector-strong -fstack-clash-protection -pipe -fuse-linker-plugin -flto=2" LDFLAGS="-Wl,--as-needed -Wl,-melf_x86_64 -Wl,-O2 -Wl,--relax -Wl,--sort-common -Wl,--strip-all -Wl,--discard-all -Wl,--enable-new-dtags -Wl,--hash-style=gnu -Wl,--gc-sections -Wl,-z,combreloc -Wl,-z,now -Wl,-z,relro -Wl,-z,separate-code -Wl,-z,noexecstack -Wl,-z,global -Wl,-z,interpose -Wl,-z,common-page-size=4096 -Wl,--sort-section=alignment -Wl,--no-omagic -Wl,--force-group-allocation -Wl,--compress-debug-sections=zlib-gnu -Wl,--build-id=none -Wl,-flto=2"
(In reply to Sam James from comment #2) > This is because 'march=native' is not a valid option for the assembler > (-Wa,...). > You may wish to review as --help. It looks like it takes some values but not 'native'.
(In reply to Sam James from comment #2) > This is because 'march=native' is not a valid option for the assembler > (-Wa,...). > > Please fix your *FLAGS. > > > ASFLAGS="-Wa,-R -Wa,-Os -Wa,-acdn -Wa,-mtune=core2 -Wa,-march=native > -Wa,--strip-local-absolute -Wa,-mrelax-relocations=yes -Wa,-mintel64 > -Wa,--64" > CFLAGS="-m64 -w -g0 -O2 -march=native -mtune=native -fomit-frame-pointer > -fno-plt -fstack-protector-strong -fstack-clash-protection -pipe > -fuse-linker-plugin -flto=2" > CPPFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -U_GLIBCXX_ASSERTIONS > -D_GLIBCXX_ASSERTIONS" > CXXFLAGS="-m64 -w -g0 -O2 -march=native -mtune=native -fomit-frame-pointer > -fno-plt -fstack-protector-strong -fstack-clash-protection -pipe > -fuse-linker-plugin -flto=2 -fvisibility-inlines-hidden" > FCFLAGS="-m64 -w -g0 -O2 -march=native -mtune=native -fomit-frame-pointer > -fno-plt -fstack-protector-strong -fstack-clash-protection -pipe > -fuse-linker-plugin -flto=2" > FFLAGS="-m64 -w -g0 -O2 -march=native -mtune=native -fomit-frame-pointer > -fno-plt -fstack-protector-strong -fstack-clash-protection -pipe > -fuse-linker-plugin -flto=2" > LDFLAGS="-Wl,--as-needed -Wl,-melf_x86_64 -Wl,-O2 -Wl,--relax > -Wl,--sort-common -Wl,--strip-all -Wl,--discard-all -Wl,--enable-new-dtags > -Wl,--hash-style=gnu -Wl,--gc-sections -Wl,-z,combreloc -Wl,-z,now > -Wl,-z,relro -Wl,-z,separate-code -Wl,-z,noexecstack -Wl,-z,global > -Wl,-z,interpose -Wl,-z,common-page-size=4096 -Wl,--sort-section=alignment > -Wl,--no-omagic -Wl,--force-group-allocation > -Wl,--compress-debug-sections=zlib-gnu -Wl,--build-id=none -Wl,-flto=2" thank you this was the problem.