-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Build with GCC12 fails #8975
Comments
|
Also what does fail means. |
|
Well, the error message makes kind of sense, as there's no folder/file with that name: $ ls -l /home/rubenk/dev/go-ipfs-git.AUR/src/go-ipfs/vendor/plugin
ls: cannot access '/home/rubenk/dev/go-ipfs-git.AUR/src/go-ipfs/vendor/plugin': No such file or directory |
I use this in /usr/bin/go and moved the normal go binary to /usr/bin/go_real # gcc-go wrapper
explode_args() {
unset OPTS
local arg=$1
while [[ $arg ]]; do
[[ $arg = "--" ]] && OPTS+=("$@") && break;
if [[ ${arg:0:1} = "-" && ${arg:1:1} != "-" ]]; then
OPTS+=("-${arg:1:1}")
(( ${#arg} > 2 )) && arg="-${arg:2}" || { shift; arg=$1; }
else
OPTS+=("$arg"); shift; arg=$1
fi
done
}
CMDLINE_ARGS=("$@")
explode_args "$@"
VERSION_REQUESTED=0
for ((i = 0; i < "${#OPTS[@]}"; i++)); do
case ${OPTS[$i]} in
version) unset OPTS[$i]; VERSION_REQUESTED=1;
esac
done
if [[ VERSION_REQUESTED -eq 1 ]]; then
echo 'go version go1.18.0 gccgo (GCC) 12.1.0 linux/amd64'
else
/usr/bin/go_real "${CMDLINE_ARGS[@]}"
fi |
Don't know. Never used it. I'll look into it. |
That's not the issue, builds fine with the normal go compiler through the same shim.
|
There's no package available for them for Arch and I really don't feel like building it myself. :) |
2022-09-08 triage conversation: this is a custom build setup. This isn't a priority for core maintainers. Feel free to submit a PR. |
Checklist
Installation method
built from source
Version
Config
Does not apply
Description
I've installed the new gcc12 which supposedly supports go in version 1.18.
But apart from a bug which avoids printing out the right version number - which I worked around by a simple echo script giving out the correct version string - it doesn't build:
With rb.patch, see #8213 (comment).
Building with the normal go compiler works fine.
The text was updated successfully, but these errors were encountered: