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

Model bugs with latest GCC 14 and Clang 19 #1312

Open
illwieckz opened this issue Sep 17, 2024 · 5 comments
Open

Model bugs with latest GCC 14 and Clang 19 #1312

illwieckz opened this issue Sep 17, 2024 · 5 comments
Labels
A-Compiler Compiler bugs T-Bug

Comments

@illwieckz
Copy link
Member

illwieckz commented Sep 17, 2024

I remember @DolceTriade said one day he seen bugs while compiling with GCC 14.

I confirm I see bugs affecting models in a weird way when compiling with GCC 14 (no issue with GCC 13):

unvanquished_2024-09-13_181819_000

unvanquished_2024-09-13_181834_000

First stable version of Clang 19 was released today and then out of curiosity I test it, and I got another bug but affecting the models too, but in a different way (no issue with Clang 18):

unvanquished_2024-09-17_200312_000

unvanquished_2024-09-17_200930_000

Maybe we actually do something wrong if two compilers fail on it.

@illwieckz illwieckz added T-Bug A-Compiler Compiler bugs labels Sep 17, 2024
@illwieckz
Copy link
Member Author

illwieckz commented Sep 17, 2024

An easy way to test both GCC 14 and Clang 19 is to use Ubuntu Noble (it has GCC 14 in repositories) and to install Clang 19 from the LLVM upstream repository for Ubuntu: https://apt.llvm.org

@slipher
Copy link
Member

slipher commented Sep 17, 2024

As usual this doesn't happen with GCC 14.2 on Windows.

Does it matter what vm.cgame.type you use? Does it matter if you disable r_vboModels?

@illwieckz
Copy link
Member Author

I get the same results with both DLL and EXE cgame.

I get the same results with r_vboVertexSkinning 0 and r_vboModel 0 (actually r_vboVertexSkinning 0 has to be preferred over r_vboModel 0).

@illwieckz
Copy link
Member Author

Interesting, with NEXE cgame, I reproduce the Clang 19 bug, but not the GCC 14 bug.

@DolceTriade
Copy link
Contributor

Removing -ffast-math fixes issue on GCC14 for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Compiler Compiler bugs T-Bug
Projects
None yet
Development

No branches or pull requests

3 participants