You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if I'm missing anything go-specific here. I've seen people compiling go projects with clang since forever, so I'm not really sure if I'm missing some go-specific environment variable here.
Compile flags:
export CC=clang
export CXX=clang++
export LD=/usr/bin/ld.lld
export AR="llvm-ar"
export NM="llvm-nm"
export RANLIB="llvm-ranlib"
# qmake stuff
export QMAKE_CC=clang
export QMAKE_CXX=clang++
export QMAKE_LINK=/usr/bin/ld.lld
export QMAKESPEC=linux-clang
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"
# -Wno-error=range-loop-construct is for MultiMC, else it fails to build
CFLAGS="-march=znver1 -mtune=znver1 -flto=thin -O2 -pipe -fno-plt -Wno-error=range-loop-construct -Wno-long-long -Wno-cast-align"
CXXFLAGS+="${CFLAGS}"
LDFLAGS="-fuse-ld=lld -Wl,-O1,--sort-common,--as-needed,-z,relro,--thinlto-cache-dir=/home/kodehawa/.local/share/makepkg/cache/clang"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j12"
#-- Debugging flags
DEBUG_CFLAGS="-g"
DEBUG_CXXFLAGS="-g"
# Rust flags
RUSTFLAGS="-C opt-level=2 -C target-cpu=native"
Error message:
go build ./cmd/sbctl
# net
cannot parse gcc output $WORK/b070//_cgo_.o as ELF, Mach-O, PE, XCOFF object
make: *** [Makefile:22: sbctl] Error 2
make: *** Waiting for unfinished jobs....
Thanks you ❤️
The text was updated successfully, but these errors were encountered:
I'm not sure if I'm missing anything go-specific here. I've seen people compiling go projects with clang since forever, so I'm not really sure if I'm missing some go-specific environment variable here.
Compile flags:
Error message:
Thanks you ❤️
The text was updated successfully, but these errors were encountered: