-
Notifications
You must be signed in to change notification settings - Fork 988
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
iOS status-go builds failing with C compiler not found #13949
Comments
I tried the MacOS upgrade, Command Line Tools upgrade and Xcode upgrade:
But the warnings persist. Did it only on |
Some links about these errors:
It's possible the coming |
One possible option is to implement some validation in func envClang(sdkName string) (clang, cflags string, err error) {
if buildN {
return sdkName + "-clang", "-isysroot " + sdkName, nil
}
cmd := exec.Command("xcrun", "--sdk", sdkName, "--find", "clang")
out, err := cmd.CombinedOutput()
if err != nil {
return "", "", fmt.Errorf("xcrun --find: %v\n%s", err, out)
}
clang = strings.TrimSpace(string(out)) |
I created a PR which sanitizes But they expect me to sign Google Contributor License Agreement(CLA), so I asked Agata to look into before I accept it. |
This resolves issues with weird `status-go` build errors like: ``` cgo: C compiler "2022-09-07" not found: exec: "2022-09-07": executable file not found in $PATH ``` Such errors are caused by `xcrun` spewing warnings to `stdout`. The PR to fix this issue permanently has been created but it might take a while before it's merged. Fix PR: golang/mobile#84 Resolves: #13949 Signed-off-by: Jakub Sokołowski <[email protected]>
Decided to apply the patch using Nix since it's quite simple, and will fix those failure while we wait for the PR to get merged. |
This resolves issues with weird `status-go` build errors like: ``` cgo: C compiler "2022-09-07" not found: exec: "2022-09-07": executable file not found in $PATH ``` Such errors are caused by `xcrun` spewing warnings to `stdout`. The PR to fix this issue permanently has been created but it might take a while before it's merged. Fix PR: golang/mobile#84 Resolves: #13949 Signed-off-by: Jakub Sokołowski <[email protected]>
This resolves issues with weird `status-go` build errors like: ``` cgo: C compiler "2022-09-07" not found: exec: "2022-09-07": executable file not found in $PATH ``` Such errors are caused by `xcrun` spewing warnings to `stdout`. The PR to fix this issue permanently has been created but it might take a while before it's merged. Fix PR: golang/mobile#84 Resolves: #13949 Signed-off-by: Jakub Sokołowski <[email protected]>
This resolves issues with weird `status-go` build errors like: ``` cgo: C compiler "2022-09-07" not found: exec: "2022-09-07": executable file not found in $PATH ``` Such errors are caused by `xcrun` spewing warnings to `stdout`. The PR to fix this issue permanently has been created but it might take a while before it's merged. Fix PR: golang/mobile#84 Resolves: #13949 Signed-off-by: Jakub Sokołowski <[email protected]>
We've been seeing seemingly random failures of iOS
status-go
builds with error like this:Except the date that
cgo
thinks is a C compiler is the current date. This issue is known:Which is caused by
xcrun
printing weird and unexpected warnings tostdout
on first use after reboot:This issue has been present with Command Line Tools
13.3.1
and13.4
.The text was updated successfully, but these errors were encountered: