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

Problem compiling wop on Debian 11 bullseye 32 bit #203

Closed
manito-manopla opened this issue Sep 3, 2023 · 6 comments
Closed

Problem compiling wop on Debian 11 bullseye 32 bit #203

manito-manopla opened this issue Sep 3, 2023 · 6 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@manito-manopla
Copy link

I had a problem compiling the latest version of wop available in the repository, at first I had this problem.

cmake --build .
/bin/sh: 1: /home/manito/worldofpadman/code/../tools/linux/glslangValidator: Exec format error
gmake[2]: *** [code/renderer_vulkan/CMakeFiles/renderer_vulkan.dir/build.make:124: code/renderer_vulkan/single_texture_vert.vspv] Error 126
gmake[1]: *** [CMakeFiles/Makefile2:1106: code/renderer_vulkan/CMakeFiles/renderer_vulkan.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

But after fixing it with cmake .. -D BUILD_RENDERER_VULKAN=OFF, I had this other one.

[ 81%] Linking C executable /home/manito/worldofpadman/wop.x86
/usr/bin/ld: CMakeFiles/wop.dir/snd_mix.c.o: in function `S_TransferStereo16':
snd_mix.c:(.text+0x270): reference to `S_WriteLinearBlastStereo16' undefined
/usr/bin/ld: CMakeFiles/wop.dir/__/qcommon/common.c.o: in function `Com_DetectSSE':
common.c:(.text+0x3b2f): reference to `qsnapvectorsse' undefined
/usr/bin/ld: common.c:(.text+0x3b49): reference to `qftolsse' undefined
/usr/bin/ld: common.c:(.text+0x3b55): reference to `qvmftolsse' undefined
collect2: error: ld returned 1 exit status
gmake[2]: *** [code/client/CMakeFiles/wop.dir/build.make:1609: /home/manito/worldofpadman/wop.x86] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1256: code/client/CMakeFiles/wop.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

Why is this caused, and what can be the solution?

@mgerhardy
Copy link
Member

Vulkan is disabled by default now - see d32daca - and there is #181 to fix it for other platforms, too (like arm e.g)

The linker error should be fixed by the linked PR

@manito-manopla
Copy link
Author

The problem with vulkan had already been solved with cmake .. -D BUILD_RENDERER_VULKAN=OFF, that worked, now the problem is not with vulkan, but with something else, that is seen with the second report that the compiler throws

@manito-manopla
Copy link
Author

I have this other one after adding the two modified files.

/home/manito/worldofpadman/code/asm/snapvector.c: In function ‘qsnapvectorsse’:
/home/manito/worldofpadman/code/asm/snapvector.c:37:2: error: the register ‘%xmm2’ cannot be clobbered in ‘asm’ for the current target
   37 |  __asm__ volatile("movaps (%0), %%xmm1\n"
      |  ^~~~~~~
gmake[2]: *** [code/client/CMakeFiles/wop.dir/build.make:986: code/client/CMakeFiles/wop.dir/__/asm/snapvector.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1256: code/client/CMakeFiles/wop.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

@kai-li-wop kai-li-wop added the bug Something isn't working label Sep 5, 2023
@kai-li-wop kai-li-wop moved this to In Progress in WoP 1.7.x Sep 5, 2023
@kai-li-wop kai-li-wop added this to the v1.7.0 milestone Sep 5, 2023
@mgerhardy
Copy link
Member

can you please give the latest main revision a try. It should be fixed now.

@mgerhardy mgerhardy moved this from In Progress to Ready for Review in WoP 1.7.x Sep 8, 2023
@kai-li-wop kai-li-wop added the good first issue Good for newcomers label Sep 14, 2023
@kai-li-wop
Copy link
Member

@manito-manopla: is your issue solved? Please give us a feedback so we know if we can close this ticket. Thx

@kai-li-wop
Copy link
Member

As there is no further feedback on this, I will check this issue as solved. Please open a new ticket if this issue still exists after all.

@github-project-automation github-project-automation bot moved this from Ready for Review to Done in WoP 1.7.x Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Archived in project
Development

No branches or pull requests

3 participants