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 am encountering an error when trying to build the project using make build_bin on a Linux system. The error message indicates that the GOOS/GOARCH pair darwin/x86_64 is unsupported. This is likely due to a mismatch in the architecture names used in the Makefile.
The Bash commands in the Makefile for retrieving the OS name and build architecture return the following:
$ uname -s | tr A-Z a-z
linux
$ uname -m | tr A-Z a-z | sed 's/^aarch/arm/'
x86_64
my personal Machine (Ubuntu 24.04.1) Specific Solution:
Hard-coding the GOARCH value in the Makefile works fine (the value x86_64 is not working but amd64 is good to go ):
CC="x86_64-linux-musl-gcc" GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -o bin/${BINARY_NAME}-linux
The text was updated successfully, but these errors were encountered:
mitesh4000
changed the title
error when trying to build your project using "make build_bin" on a Linux system
error when trying to build project using "make build_bin" on a Linux system
Jan 20, 2025
I am encountering an error when trying to build the project using
make build_bin
on a Linux system. The error message indicates that theGOOS/GOARCH
pairdarwin/x86_64
is unsupported. This is likely due to a mismatch in the architecture names used in the Makefile.The Bash commands in the Makefile for retrieving the OS name and build architecture return the following:
my personal Machine (Ubuntu 24.04.1) Specific Solution:
Hard-coding the
GOARCH
value in the Makefile works fine (the valuex86_64
is not working butamd64
is good to go ):CC="x86_64-linux-musl-gcc" GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -o bin/${BINARY_NAME}-linux
The text was updated successfully, but these errors were encountered: