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

[Bug][Build] ubi_hx -Wincompatible-pointer-types compile error #1529

Closed
KirshD opened this issue May 17, 2024 · 3 comments
Closed

[Bug][Build] ubi_hx -Wincompatible-pointer-types compile error #1529

KirshD opened this issue May 17, 2024 · 3 comments
Labels

Comments

@KirshD
Copy link

KirshD commented May 17, 2024

Keep on hitting a pointer incompatibility error when compiling ubi_hx.
Running Fedora 40, got all the libraries, just seems to hang on the Ubisoft stuff. Not sure if I missed some extra library since the fresh install.

Output:
/mnt/nvme0n1p6/GitStuff/vgmstream/src/meta/ubi_hx.c: In function ‘parse_header’:
/mnt/nvme0n1p6/GitStuff/vgmstream/src/meta/ubi_hx.c:386:106: error: passing argument 6 of ‘find_chunk_riff_ve’ from incompatible pointer type [-Wincompatible-pointer-types]
In file included from /mnt/nvme0n1p6/GitStuff/vgmstream/src/meta/ubi_hx.c:5:
/mnt/nvme0n1p6/GitStuff/vgmstream/src/meta/../util/chunks.h:38:127: note: expected ‘size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘uint32_t *’ {aka ‘unsigned int *’}
/mnt/nvme0n1p6/GitStuff/vgmstream/src/meta/ubi_hx.c:396:103: error: passing argument 6 of ‘find_chunk_riff_ve’ from
/mnt/nvme0n1p6/GitStuff/vgmstream/src/meta/../util/chunks.h:38:127: note: expected ‘size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘uint32_t *’ {aka ‘unsigned int *’}
make[2]: *** [src/CMakeFiles/libvgmstream.dir/build.make:6824: src/CMakeFiles/libvgmstream.dir/meta/ubi_hx.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:342: src/CMakeFiles/libvgmstream.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

@KirshD KirshD added the bug label May 17, 2024
@modusc896d352
Copy link
Contributor

modusc896d352 commented May 18, 2024

Not sure if I missed some extra library since the fresh install.
you're not

@bnnm
Copy link
Collaborator

bnnm commented May 21, 2024

I think it's fixed now but give it a try, somehow gcc win wasn't reporting that to me.

@KirshD
Copy link
Author

KirshD commented May 21, 2024

Success, many thanks!

@KirshD KirshD closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants