-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How official Solana binaries are built? #22749
Comments
The reason we ask, is because we build I have one hypothesis for what causes this, but I haven’t verified it yet. Solana depends on |
@ruuda Your guess is correct. I work around it this way. Here is a stub executable for clang/gcc compilers: #!/usr/bin/env bash
declare -a args=()
for arg in "$@"; do
narg=$(echo -n "$arg" | sed -E "s,-m(arch|cpu|tune)=.+,-m\\1={WHATEVER_ARCH_YOU_WANT},")
if test -z "$narg"; then
narg="$arg"
fi
args+=("$narg")
done
exec "__EXE__.orig" "${args[@]}" I install it in a Docker builder image this way: RUN for exe in /usr/bin/clang* /usr/bin/gcc* /usr/bin/g++*; do \
mv "$exe" "$exe.orig"; \
cp /usr/local/bin/clang-stub "$exe"; \
sed -i -e "s,__EXE__,$exe,g" "$exe"; \
chmod +x "$exe"; \
done
|
Do you have your build pipeline for binaries public somewhere? Where I can find above piece of code and Dockerfile? What is your default |
We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of Solana itself – so I'm going to close this. If you learned something that's worth sharing with the broader community, please do post both your original question and the answer you discovered to our new purpose-built Q&A forum: https://solana.stackexchange.com/questions/ask |
Can someone point me to the build scripts?
I'm asking about binary artifacts from asset section of https://github.com/solana-labs/solana/releases
I'm asking in context of
target-cpu
andtarget-feature
or anything else, which could lead to SIGILL. Similarly to #19669The text was updated successfully, but these errors were encountered: