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

Make Failed #232

Open
1 task
jin2005-issue opened this issue Mar 4, 2025 · 0 comments
Open
1 task

Make Failed #232

jin2005-issue opened this issue Mar 4, 2025 · 0 comments

Comments

@jin2005-issue
Copy link

jin2005-issue commented Mar 4, 2025


my build QEMU is Failed

[1/57] Generating qemu-version.h with a custom command (wrapped by meson to capture output)
[2/46] Compiling C object libblock.fa.p/block_nfs.c.o
FAILED: libblock.fa.p/block_nfs.c.o
cc -Ilibblock.fa.p -I. -I.. -Iqapi -Itrace -Iui -Iui/shader -Iblock -I/usr/include/p11-kit-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/openssl -fdiagnostics-color=auto -Wall -Winvalid-pch -Werror -std=gnu11 -O2 -g -fstack-protector-strong -Wundef -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wmissing-format-attribute -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -Wshadow=local -isystem /root/qemu-ios/linux-headers -isystem linux-headers -iquote . -iquote /root/qemu-ios -iquote /root/qemu-ios/include -iquote /root/qemu-ios/host/include/aarch64 -iquote /root/qemu-ios/host/include/generic -iquote /root/qemu-ios/tcg/aarch64 -pthread -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -fPIE -MD -MQ libblock.fa.p/block_nfs.c.o -MF libblock.fa.p/block_nfs.c.o.d -o libblock.fa.p/block_nfs.c.o -c ../block/nfs.c
../block/nfs.c: 在函数‘nfs_co_preadv’中:
../block/nfs.c:277:29: 错误:传递‘nfs_pread_async’的第 3 个参数时将整 数赋给指针,未作类型转换 [-Wint-conversion]
277 | offset, bytes, nfs_co_generic_cb, &task) != 0) {
| ^~~~~~
| |
| int64_t {或称 long int}
In file included from ../block/nfs.c:49:
/usr/include/nfsc/libnfs.h:723:34: 附注:需要类型‘void *’,但实参的类 型为‘int64_t’ {或称 ‘long int’}
723 | void buf, size_t count, uint64_t offset,
| ~~~~~~^~~
../block/nfs.c:277:44: 错误:传递‘nfs_pread_async’的第 5 个参数时将指 针赋给整数,未作类型转换 [-Wint-conversion]
277 | offset, bytes, nfs_co_generic_cb, &task) != 0) {
| ^~~~~~~~~~~~~~~~~
| |
| void (
)(int, struct nfs_context *, void *, void )
/usr/include/nfsc/libnfs.h:723:62: 附注:需要类型‘uint64_t’ {或称 ‘long unsigned int’},但实参的类型为‘void (
)(int, struct nfs_context *, void *, void *)’
723 | void buf, size_t count, uint64_t offset,
| ~~~~~~~~~^~~~~~
../block/nfs.c:277:63: 错误:传递‘nfs_pread_async’的第 6 个参数时在不 兼容的指针类型间转换 [-Wincompatible-pointer-types]
277 | offset, bytes, nfs_co_generic_cb, &task) != 0) {
| ^~~~~
| |
| NFSRPC *
/usr/include/nfsc/libnfs.h:724:35: 附注:需要类型‘nfs_cb’ {或称 ‘void (
)(int, struct nfs_context *, void *, void *)’},但实参的类型为‘NFSRPC *’
724 | nfs_cb cb, void *private_data);
| ~~~~~~~^~
../block/nfs.c:276:13: 错误:提供给函数‘nfs_pread_async’的实参太少
276 | if (nfs_pread_async(client->context, client->fh,
| ^~~~~~~~~~~~~~~
/usr/include/nfsc/libnfs.h:722:12: 附注:在此声明
722 | EXTERN int nfs_pread_async(struct nfs_context *nfs, struct nfsfh *nfsfh,
| ^~~~~~~~~~~~~~~
../block/nfs.c: 在函数‘nfs_co_pwritev’中:
../block/nfs.c:323:30: 错误:传递‘nfs_pwrite_async’的第 3 个参数时将整数赋给指针,未作类型转换 [-Wint-conversion]
323 | offset, bytes, buf,
| ^~~~~~
| |
| int64_t {或称 long int}
/usr/include/nfsc/libnfs.h:785:41: 附注:需要类型‘const void *’,但实 参的类型为‘int64_t’ {或称 ‘long int’}
785 | const void *buf, size_t count, uint64_t offset,
| ~~~~~~~~~~~~^~~
../block/nfs.c:323:45: 错误:传递‘nfs_pwrite_async’的第 5 个参数时将指针赋给整数,未作类型转换 [-Wint-conversion]
323 | offset, bytes, buf,
| ^~~
| |
| char *
/usr/include/nfsc/libnfs.h:785:69: 附注:需要类型‘uint64_t’ {或称 ‘long unsigned int’},但实参的类型为‘char *’
785 | const void *buf, size_t count, uint64_t offset,
| ~~~~~~~~~^~~~~~
ninja: build stopped: subcommand failed.
make: *** [Makefile:162:run-ninja] 错误 1

  • Failed reason please watch is
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