-
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
pacman.d
issue: emsdk not detected during libsokol
build
#21
Labels
bug
Something isn't working
Comments
Also dub get error on $ dub build -v
Determined package version using GIT: pacman-d ~main
Scanning local packages...
Missing dependency sokol-d 0.1.1 of pacman-d
Checking for missing dependencies.
Using fixed selection sokol-d 0.1.1
Dependency resolution result:
sokol-d: 0.1.1
Fetching sokol-d 0.1.1 (getting selected version)
Placing to User...
Found dependency sokol-d 0.1.1
Generating using build
Configuring dependent pacman-d, deps:
Starting Performing "debug" build using ldc2 for x86_64.
Target '/home/kassane/.dub/cache/pacman-d/~main/build/application-debug-uoJiaUxVVoeoAvGIMeNhoQ/pacman-d' doesn't exist, need rebuild.
Building pacman-d ~main: building configuration [application]
Pre-build Running commands
Running zig build -Doptimize=ReleaseFast -Ddub-artifact
Using direct -l... flags for sokol, X11, Xcursor, Xi, GL, asound.
ldc2 -d-debug -g -w --oq -od=/home/kassane/.dub/cache/pacman-d/~main/build/application-debug-uoJiaUxVVoeoAvGIMeNhoQ/obj -d-version=Have_pacman_d -d-version=Have_sokol_d -Isource/ -I../.dub/packages/sokol-d/0.1.1/sokol-d/src/ source/app.d source/data.d source/rom.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/examples/blend.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/examples/clear.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/examples/cube.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/examples/debugtext.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/examples/mrt.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/examples/saudio.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/examples/sgl_context.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/examples/sgl_points.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/examples/triangle.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/examples/user_data.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/handmade/math.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/blend.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/bufferoffsets.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/cube.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/instancing.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/mrt.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/noninterleaved.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/offscreen.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/quad.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/shapes.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/texcube.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/triangle.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/sokol/app.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/sokol/audio.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/sokol/debugtext.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/sokol/gfx.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/sokol/gl.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/sokol/glue.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/sokol/log.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/sokol/shape.d ../.dub/packages/sokol-d/0.1.1/sokol-d/src/sokol/time.d -preview=all -i -c -of/home/kassane/.dub/cache/pacman-d/~main/build/application-debug-uoJiaUxVVoeoAvGIMeNhoQ/pacman-d.o -vcolumns
../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/texcube.d(66,21): Error: Global variable type does not match previous declaration with same mangled name: `VS_SOURCE_GLSL430`
../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/texcube.d(66,21): Previous IR type: [194 x i8], mutable, non-thread-local
../.dub/packages/sokol-d/0.1.1/sokol-d/src/shaders/texcube.d(66,21): New IR type: [374 x i8], mutable, non-thread-local
FAIL /home/kassane/.dub/cache/pacman-d/~main/build/application-debug-uoJiaUxVVoeoAvGIMeNhoQ pacman-d executable
Error ldc2 failed with exit code 1. |
Tested on zig 0.12.0 upstream - missing ZON $ ~/Downloads/zig-linux-x86_64-0.12.0/zig build --summary new
source/app.d(157,14): `state` is thread local
Build Summary: 3/3 steps succeeded
install success
└─ pacman-d success 109ms MaxRSS:92M
└─ zig build-lib sokol Debug native success 3s MaxRSS:223M
kassane:~/pacman.d $ ls $HOME/.cache/zig/p/1220f76c0e3c7d6c885a15955635fa91685056e2aee47953d93a35434023438bd5ea/
total 36
-rw-r--r-- 1 kassane kassane 941 2024-05-17 17:10 LICENSE
-rw-r--r-- 1 kassane kassane 30253 2024-05-17 17:10 build.zig
drwxr-xr-x 1 kassane kassane 56 2024-05-17 17:10 src
# fix (add zon file)
$ vim $HOME/.cache/zig/p/1220f76c0e3c7d6c885a15955635fa91685056e2aee47953d93a35434023438bd5ea/build.zig.zon
kassane:~/pacman.d $ ~/Downloads/zig-linux-x86_64-0.12.0/zig build --summary new
source/app.d(157,14): `state` is thread local
Build Summary: 3/3 steps succeeded
install success
└─ pacman-d success 79ms MaxRSS:77M |
maybe fixed in commit: d391d1e - works \o/ |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: https://github.com/kassane/pacman.d (WiP)
Zig version: 0.12.0 final-release (xtensa forked)
Based on my tests dub only, no detect libsokol (non-system installed), but
build.zig
getlibsokol
artifact.dependency "sokol-d" version="~>0.1.1"
added ondub.sdl
allow get modules only.On output log, first build works building libsokol and get artifact in
zig-out/lib
,only. However on second build, libsokol not build again!app.d
get issues import modules (from zig build)Output - build error
Maybe caused by
sokol-d/build.zig
Lines 74 to 82 in 018dc65
cc: @floooh
The text was updated successfully, but these errors were encountered: