-
Notifications
You must be signed in to change notification settings - Fork 5
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
Darwin target: triple conflicts #1
Comments
Tested and works: https://github.com/kassane/sokol-d/actions/runs/7262183956/job/19784820808 |
Today, replaced shell scripts to new zigcc wrapper: zig cc -lunwind /Users/runner/work/sokol-d/sokol-d/zig-cache/o/dba65f0ce2102f5ffacdbe1efd2dde0b/debugtext_print.o -o /Users/runner/work/sokol-d/sokol-d/zig-out/bin/debugtext_print /Users/runner/hostedtoolcache/dc/ldc2-dc393dcf/x64/ldc2-dc393dcf-osx-universal/bin/../lib-x86_64/libldc_rt.asan.dylib -rpath @executable_path -rpath /Users/runner/hostedtoolcache/dc/ldc2-dc393dcf/x64/ldc2-dc393dcf-osx-universal/bin/../lib-x86_64 -fuse-ld=/Users/runner/work/sokol-d/sokol-d/zig-out/bin/zcc -target x86_64-apple-macos -L/Users/runner/work/sokol-d/sokol-d/zig-out/lib -lsokol -ObjC -DIMPL -DSOKOL_METAL -Xlinker -framework -Xlinker QuartzCore -Xlinker -framework -Xlinker MetalKit -Xlinker -framework -Xlinker Metal -Xlinker -framework -Xlinker Cocoa -Xlinker -framework -Xlinker Foundation -Xlinker -framework -Xlinker AudioToolbox -L/Users/runner/hostedtoolcache/dc/ldc2-dc393dcf/x64/ldc2-dc393dcf-osx-universal/bin/../lib-x86_64 -lphobos2-ldc -ldruntime-ldc -Wl,-dead_strip -lpthread -lm -m64
error: UnknownOperatingSystem zigcc get from ldc |
Tried fix: ff14c99 Lines 24 to 28 in ff14c99
Whats?? No detect apple frameworks? (Linked to error: unable to find framework 'QuartzCore'. searched paths: none
error: unable to find framework 'MetalKit'. searched paths: none
error: unable to find framework 'Metal'. searched paths: none
error: unable to find framework 'Cocoa'. searched paths: none
error: unable to find framework 'Foundation'. searched paths: none
error: unable to find framework 'AudioToolbox'. searched paths: none
Build Summary: 13/13 steps succeeded
debugtext_print success
+- ldc2 success 2s MaxRSS:243M
+- sokol library success
+- install sokol success
| +- zig build-lib sokol Debug native success 6s MaxRSS:148M
+- install zcc cached
| +- zig build-exe zcc Debug native cached 2s MaxRSS:13M
+- install zcc cached
| +- zig build-exe zcc Debug native success 2s MaxRSS:159M
+- install zcc success
| +- zig build-exe zcc Debug native cached 2s MaxRSS:13M
+- install zcc cached
+- zig build-exe zcc Debug native cached 34ms MaxRSS:13M full log: https://github.com/kassane/sokol-d/actions/runs/7315549427/job/19929317220#step:6:1 |
Zig toolchain get system-deps only for native (host) target. fixed: b235f83 https://github.com/kassane/sokol-d/actions/runs/7329902380/job/19960178646#step:6:26 error: undefined reference to symbol section$end$__DATA$.minfo
note: referenced in /Users/runner/hostedtoolcache/dc/ldc2-dc393dcf/x64/ldc2-dc393dcf-osx-universal/lib-x86_64/libdruntime-ldc.a(dso.o) |
Tried static-linking from ldc libs... zig preference!! |
Similar warnings tested by @floooh on macOS M1: 'apple_a14' is not a recognized processor for this target (ignoring processor)
ld: warning: no platform load command found in... debugtext_print.o', assuming: macOS
ld: warning: object file ... was built for newer 'macOS' version (14.1.2) than being linked (12.0) Need more details... latest commit test: https://github.com/kassane/sokol-d/actions/runs/7432776307/job/20224966588#step:6:1 ld: warning: object file (/Users/runner/work/sokol-d/sokol-d/zig-out/lib/libsokol.a(/Users/runner/work/sokol-d/sokol-d/zig-cache/o/bd614abb9849c8b09f2f013f01f1d2eb/sokol_log.o)) was built for newer macOS version (12.7.2) than being linked (12.0)
ld: warning: object file (/Users/runner/work/sokol-d/sokol-d/zig-out/lib/libsokol.a(/Users/runner/work/sokol-d/sokol-d/zig-cache/o/fc3b843499b8f3a388854c6ef14ddd2e/sokol_app.o)) was built for newer macOS version (12.7.2) than being linked (12.0)
ld: warning: object file (/Users/runner/work/sokol-d/sokol-d/zig-out/lib/libsokol.a(/Users/runner/work/sokol-d/sokol-d/zig-cache/o/a5760ab9544cd1ab43e220d627b08c76/sokol_gfx.o)) was built for newer macOS version (12.7.2) than being linked (12.0)
ld: warning: object file (/Users/runner/work/sokol-d/sokol-d/zig-out/lib/libsokol.a(/Users/runner/work/sokol-d/sokol-d/zig-cache/o/59a41ba45ab7003059cc6442c30d5448/sokol_glue.o)) was built for newer macOS version (12.7.2) than being linked (12.0) Edit |
on intel MacOS (CI/CD) verbose build: [test] commit: 60d7e5f zig ld -dynamic -platform_version macos 12.7.2 13.1 -syslibroot /Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -pagezero_size 0x100000000 -headerpad_size 0x1000 -dead_strip -e _main /Users/runner/work/sokol-d/sokol-d/zig-cache/o/8441520852fd3bf30fcee699975c9b06/debugtext_print.o /Users/runner/work/sokol-d/sokol-d/zig-out/lib/libsokol.a /Users/runner/.cache/zig/o/3a98447431f97e1c3072e126d6b01152/libcompiler_rt.a -o /Users/runner/work/sokol-d/sokol-d/zig-out/bin/debugtext_print -lSystem -framework Foundation -framework AudioToolbox -framework MetalKit -framework Metal -framework Cocoa -framework QuartzCore Change zld flag? |
This comment has been minimized.
This comment has been minimized.
Fix warnings in AppleClang LLD: d3f15ec |
During the last commit it is noticed that ldc2 passes its triple target to the compiler attached to the
--gcc=$PWD/scripts/zcc.sh
flag, returning an unknown architecture tozig cc
.In CI/CD using Linux the issue does not occur.
On Windows not yet tested, being aware that there is better ldc2 support for the msvc target.
sokol-d/build.zig
Line 229 in 13fe97d
cc: @kinke
Note: on MacOS, zig toolchain replace
LLD
tozld
!!!Reference
-fuse-ld=
option ziglang/zig#18357The text was updated successfully, but these errors were encountered: