Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 836732

Summary: app-arch/zstd-1.5.2 fails to build
Product: Gentoo Linux Reporter: mrtelekinesis <mrtelekinesis>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: zstd-1.5.2 build log
emerge --info

Description mrtelekinesis 2022-04-04 04:37:46 UTC
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'
Comment 1 mrtelekinesis 2022-04-04 04:38:19 UTC
Created attachment 768652 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-04 04:41:05 UTC
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"
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-04 04:42:13 UTC
(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'.
Comment 4 mrtelekinesis 2022-04-04 18:17:21 UTC
(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.