Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Build failure on wasm-sdk-17 #100340

Closed
Closed
Labels
OS-wasibuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error
@kushaldas

Description

@kushaldas

Bug report

wasi build is failing on the latestwasm-sdk-17 due to a change in clang itself.

How to verify the failure?

Install latest (version 17) of the wasm-sdk from the link above.

Then:

./Tools/wasm/wasm_build.py wasi...<snipped output>ccache /opt/wasi-sdk/bin/clang  -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall    -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden  -I../../Include/internal -IObjects -IInclude -IPython -I. -I../../Include    -DPy_BUILD_CORE_BUILTIN -c ../../Modules/_weakref.c -o Modules/_weakref.o../../Modules/timemodule.c:1972:13: error: incompatible pointer to integer conversion passing 'const struct __clockid *' to parameter of type 'long' [-Wint-conversion]        if (PyModule_AddIntMacro(module, CLOCK_REALTIME) < 0) {            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~../../Include/modsupport.h:59:69: note: expanded from macro 'PyModule_AddIntMacro'#define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))                                                                    ^~~../../Include/modsupport.h:51:71: note: passing argument to parameter herePyAPI_FUNC(int) PyModule_AddIntConstant(PyObject *, const char *, long);                                                                      ^../../Modules/timemodule.c:1979:13: error: incompatible pointer to integer conversion passing 'const struct __clockid *' to parameter of type 'long' [-Wint-conversion]        if (PyModule_AddIntMacro(module, CLOCK_MONOTONIC) < 0) {            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~../../Include/modsupport.h:59:69: note: expanded from macro 'PyModule_AddIntMacro'#define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))                                                                    ^~~../../Include/modsupport.h:51:71: note: passing argument to parameter herePyAPI_FUNC(int) PyModule_AddIntConstant(PyObject *, const char *, long);                                                                      ^2 errors generated.make: *** [Makefile:2872: Modules/timemodule.o] Error 1make: *** Waiting for unfinished jobs....

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-wasibuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp