Skip to content
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

[v3] Darwin build failed #3992

Closed
gerbil opened this issue Jan 10, 2025 · 1 comment
Closed

[v3] Darwin build failed #3992

gerbil opened this issue Jan 10, 2025 · 1 comment
Labels
Bug Something isn't working

Comments

@gerbil
Copy link

gerbil commented Jan 10, 2025

Description

Platform: github actions / macos-latest
Wails branch used: v3.0.0-alpha.8.3
Build command: wails3 task build:darwin
Build cmd: go build -v -o {{.BIN_DIR}}/{{.APP_NAME}}.app -tags production -trimpath -ldflags="-w -s"
Envs:

GOOS: darwin
CGO_ENABLED: 1
CGO_CFLAGS: "-mmacosx-version-min=10.15"
CGO_LDFLAGS: "-mmacosx-version-min=10.15"
MACOSX_DEPLOYMENT_TARGET: "10.15"
PRODUCTION: true

Error:

/Users/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.1.darwin-arm64/pkg/tool/darwin_arm64/link: running clang failed: exit status 1
/usr/bin/clang -arch arm64 -Wl,-flat_namespace -Wl,-bind_at_load -Wl,-S -Wl,-x -o $WORK/b001/exe/a.out -Qunused-arguments /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/go.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000000.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000001.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000002.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000003.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000004.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000005.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000006.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000007.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000008.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000009.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000010.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000011.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000012.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000013.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000014.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000015.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000016.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000017.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000018.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000019.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000020.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000021.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000022.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000023.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000024.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000025.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000026.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000027.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000028.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000029.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000030.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000031.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000032.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000033.o /var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000034.o -mmacosx-version-min=10.15 -framework Cocoa -mmacosx-version-min=10.13 -framework Cocoa -mmacosx-version-min=10.13 -framework Cocoa -mmacosx-version-min=10.13 -framework UniformTypeIdentifiers -framework Cocoa -framework Cocoa -framework Cocoa -framework WebKit -framework Foundation -framework Cocoa -framework WebKit -framework AppKit -framework Cocoa -framework WebKit -framework Cocoa -framework WebKit -lobjc -lresolv -mmacosx-version-min=10.15 -framework Foundation -framework WebKit -framework Foundation -framework WebKit -mmacosx-version-min=10.15 -framework Cocoa -mmacosx-version-min=10.13 -mmacosx-version-min=10.15 -framework CoreFoundation -framework CoreFoundation -framework Security -mmacosx-version-min=10.15
ld: unknown file type in '/private/var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/go-link-774134794/000000.o'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

  ERROR   task: Failed to run task "build:darwin": exit status 1
Error: Process completed with exit code 1.

To Reproduce

  1. Run wails3 task build:darwin on github macos-latest

Expected behaviour

Successfully built app

Screenshots

No response

Attempted Fixes

No response

System Details

# System
┌────────────────────────────────────┐
| Name          | MacOS              |
| Version       | 14.7.2             |
| ID            | 23H311             |
| Branding      | Sonoma             |
| Platform      | darwin             |
| Architecture  | arm64              |
| Apple Silicon | true               |
| CPU           | Apple M1 (Virtual) |
| CPU           | Apple M1 (Virtual) |
| GPU           |  cores             |
| Memory        | 7 GB               |
└────────────────────────────────────┘

# Build Environment
┌─────────────────────────────────────────────────────────┐
| Wails CLI    | v3.0.0-alpha.8.3                         |
| Go Version   | go1.22.4                                 |
| Revision     | e0d788bea95fdacfc6a62117b1a9fd3115fdf67c |
| Modified     | false                                    |
| -buildmode   | exe                                      |
| -compiler    | gc                                       |
| CGO_CFLAGS   |                                          |
| CGO_CPPFLAGS |                                          |
| CGO_CXXFLAGS |                                          |
| CGO_ENABLED  | 1                                        |
| CGO_LDFLAGS  |                                          |
| GOARCH       | arm64                                    |
| GOOS         | darwin                                   |
| vcs          | git                                      |
| vcs.modified | false                                    |
| vcs.revision | e0d788bea95fdacfc6a62117b1a9fd3115fdf67c |
| vcs.time     | 2024-12-06T23:13:58Z                     |
└─────────────────────────────────────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────────────┐
| Xcode cli tools | 2408                                                 |
| npm             | 10.8.2                                               |
| *NSIS           | Not Installed. Install with `brew install makensis`. |
└─────────────────────── * - Optional Dependency ────────────────────────┘

# Diagnosis
 SUCCESS  Your system is ready for Wails development!

Need documentation? Run: wails3 docs

 ♥   If Wails is useful to you or your company, please consider sponsoring the project: wails3 sponsor

Additional context

No response

@gerbil gerbil added the Bug Something isn't working label Jan 10, 2025
@leaanthony
Copy link
Member

Hi there! Thanks for this feedback.
Whilst v3 is in alpha, we have a strict feedback procedure outlined here: https://v3alpha.wails.io/getting-started/feedback
This is to reduce noise whilst the branch is unstable and keep all the information in one place. We'd love to have you as part of the v3 feedback loop so please consider opening a new post there. Just a copy and paste would be fine.
Closing this for now.
Thanks again 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants