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

Deployment issues #2

Closed
3 tasks done
kassane opened this issue Feb 3, 2021 · 4 comments
Closed
3 tasks done

Deployment issues #2

kassane opened this issue Feb 3, 2021 · 4 comments
Labels
bug 🐞 Something isn't working help wanted 🛠 Extra attention is needed

Comments

@kassane
Copy link
Owner

kassane commented Feb 3, 2021

@kassane kassane added the bug 🐞 Something isn't working label Feb 3, 2021
@kassane
Copy link
Owner Author

kassane commented Mar 10, 2021

At the moment the Zig compiler demonstrates incompatibility on the i686 architecture resulting in a error during library linking.
Update: The environment is x86_64 and zig has compiled the x86_64 (target: native-windows-gnu 👈 ) examples and the x86 library. 😕

MSYS i686 (x86)

lld-link: error: undefined symbol: dos_qguiapplication_create
>>> referenced by C:\_\zig-cache\o\b6a92afc700a5d24fecee4afa2284abd\Animated.o:(.weak.main.default..refptr.__stack_chk_guard)

lld-link: error: undefined symbol: dos_qqmlapplicationengine_create
>>> referenced by C:\_\zig-cache\o\b6a92afc700a5d24fecee4afa2284abd\Animated.o:(.weak.main.default..refptr.__stack_chk_guard)

lld-link: error: undefined symbol: dos_qurl_create
>>> referenced by C:\_\zig-cache\o\b6a92afc700a5d24fecee4afa2284abd\Animated.o:(.weak.main.default..refptr.__stack_chk_guard)

lld-link: error: undefined symbol: dos_qqmlapplicationengine_load_url
>>> referenced by C:\_\zig-cache\o\b6a92afc700a5d24fecee4afa2284abd\Animated.o:(.weak.main.default..refptr.__stack_chk_guard)

lld-link: error: undefined symbol: dos_qguiapplication_exec
>>> referenced by C:\_\zig-cache\o\b6a92afc700a5d24fecee4afa2284abd\Animated.o:(.weak.main.default..refptr.__stack_chk_guard)

lld-link: error: undefined symbol: dos_qqmlapplicationengine_delete
>>> referenced by C:\_\zig-cache\o\b6a92afc700a5d24fecee4afa2284abd\Animated.o:(.weak.main.default..refptr.__stack_chk_guard)

lld-link: error: undefined symbol: dos_qguiapplication_quit
>>> referenced by C:\_\zig-cache\o\b6a92afc700a5d24fecee4afa2284abd\Animated.o:(.weak.main.default..refptr.__stack_chk_guard)
error: LLDReportedFailure

@kassane
Copy link
Owner Author

kassane commented Mar 11, 2021

MSYS fixed!

- name: Build & Tests (x86)
shell: msys2 {0}
if: ${{ matrix.arch == 'i686' }}
run: |
cd /C/_
zig build -Drelease-safe -Dtarget=i386-windows-gnu
- name: Build & Tests (x86_x64)
shell: msys2 {0}
if: ${{ matrix.arch == 'x86_64' }}
run: |
cd /C/_
zig build -Drelease-safe -Dtarget=x86_64-windows-gnu

@kassane
Copy link
Owner Author

kassane commented Jun 5, 2021

MacOS finally works! Thanks @kubkon

@kassane kassane closed this as completed Jun 5, 2021
@kubkon
Copy link

kubkon commented Jun 5, 2021

MacOS finally works! Thanks @kubkon

Anytime! If you bump into linker bugs, feel free to tag me in - I'll be more than happy to have a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working help wanted 🛠 Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants