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

Fail compilation on mingw #95

Closed
shinchiro opened this issue Mar 16, 2021 · 0 comments
Closed

Fail compilation on mingw #95

shinchiro opened this issue Mar 16, 2021 · 0 comments

Comments

@shinchiro
Copy link

For some reason, compiling with i686-w64-mingw32-gcc failed. But it works fine with x86_64-w64-mingw32-gcc. Not sure if the problem came from gcc itself or libplacebo.

Using gcc 10-20210313 snapshot

Log

ninja: Entering directory `/home/anon/build32/packages/libplacebo-prefix/src/libplacebo-build'
[1/3] Compiling C object src/libplacebo.a.p/spirv_shaderc.c.obj
[2/3] Compiling C object src/libplacebo.a.p/vulkan_gpu.c.obj
FAILED: src/libplacebo.a.p/vulkan_gpu.c.obj
/home/anon/build32/install/bin/i686-w64-mingw32-gcc -Isrc/libplacebo.a.p -Isrc -I../libplacebo/src -I../libplacebo/src/include -I../libplacebo/src/include/dummy -I/home/anon/build32/install/mingw/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -O3 -Wundef -Wshadow -Wparentheses -Wpointer-arith -D_ISOC99_SOURCE -D_GNU_SOURCE -D_XOPEN_SOURCE=700 -U__STRICT_ANSI__ -fvisibility=hidden -Wmissing-prototypes -Wno-pointer-sign -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers -Wno-type-limits -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -pthread -MD -MQ src/libplacebo.a.p/vulkan_gpu.c.obj -MF src/libplacebo.a.p/vulkan_gpu.c.obj.d -o src/libplacebo.a.p/vulkan_gpu.c.obj -c ../libplacebo/src/vulkan/gpu.c
../libplacebo/src/vulkan/gpu.c: In function 'vk_pass_run':
../libplacebo/src/vulkan/gpu.c:3232:34: error: passing argument 5 of 'vk->CmdBindVertexBuffers' from incompatible pointer type [-Werror=incompatible-pointer-types]
3232 | &(size_t){vert_vk->mem.offset + params->buf_offset});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| size_t * {aka unsigned int *}
../libplacebo/src/vulkan/gpu.c:3232:34: note: expected 'const VkDeviceSize *' {aka 'const long long unsigned int *'} but argument is of type 'size_t *' {aka 'unsigned int *'}
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.

@haasn haasn closed this as completed in 0697e57 Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant