Build Information
Failed to build CLua, reference 5.4.7 (12e19f
), with Swift 6.1 for Wasm on 30 May 2025 14:07:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftyLua/CLua.git
Reference: 5.4.7
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/SwiftyLua/CLua
* tag 5.4.7 -> FETCH_HEAD
HEAD is now at 12e19f8 Merge pull request #1 from barryw/bw-update-to-lua-5-4-7
Cloned https://github.com/SwiftyLua/CLua.git
Revision (git rev-parse @):
12e19f89b9089dbc87615e1823049791cd665353
SUCCESS checkout https://github.com/SwiftyLua/CLua.git at 5.4.7
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/SwiftyLua/CLua.git
https://github.com/SwiftyLua/CLua.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "CLua",
"name" : "CLua",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "CLua",
"targets" : [
"CLua"
],
"type" : {
"library" : [
"static"
]
}
}
],
"targets" : [
{
"c99name" : "CLua",
"module_type" : "ClangTarget",
"name" : "CLua",
"path" : "Sources/CLua",
"product_memberships" : [
"CLua"
],
"sources" : [
"lapi.c",
"lauxlib.c",
"lbaselib.c",
"lcode.c",
"lcorolib.c",
"lctype.c",
"ldblib.c",
"ldebug.c",
"ldo.c",
"ldump.c",
"lfunc.c",
"lgc.c",
"linit.c",
"liolib.c",
"llex.c",
"lmathlib.c",
"lmem.c",
"loadlib.c",
"lobject.c",
"lopcodes.c",
"loslib.c",
"lparser.c",
"lstate.c",
"lstring.c",
"lstrlib.c",
"ltable.c",
"ltablib.c",
"ltests.c",
"ltm.c",
"lundump.c",
"lutf8lib.c",
"lvm.c",
"lzio.c"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/35] Compiling CLua lctype.c
In file included from /host/spi-builder-workspace/Sources/CLua/lzio.c:19:
In file included from /host/spi-builder-workspace/Sources/CLua/include/lstate.h:130:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/CLua/lzio.c:19:
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:184:16: error: unknown type name 'sig_atomic_t'
184 | volatile l_signalT trap; /* function is tracing lines/counts */
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:331:12: error: unknown type name 'sig_atomic_t'
331 | volatile l_signalT hookmask;
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
3 errors generated.
[1/35] Compiling CLua lzio.c
[1/35] Compiling CLua lundump.c
[1/35] Compiling CLua lbaselib.c
In file included from /host/spi-builder-workspace/Sources/CLua/lcode.c:21:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
In file included from /host/spi-builder-workspace/Sources/CLua/include/lstate.h:130:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/CLua/lcode.c:21:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:184:16: error: unknown type name 'sig_atomic_t'
184 | volatile l_signalT trap; /* function is tracing lines/counts */
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:331:12: error: unknown type name 'sig_atomic_t'
331 | volatile l_signalT hookmask;
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
[1/35] Compiling CLua lcode.c
[1/35] Compiling CLua lutf8lib.c
In file included from /host/spi-builder-workspace/Sources/CLua/lvm.c:21:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
In file included from /host/spi-builder-workspace/Sources/CLua/include/lstate.h:130:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/CLua/lvm.c:21:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:184:16: error: unknown type name 'sig_atomic_t'
184 | volatile l_signalT trap; /* function is tracing lines/counts */
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:331:12: error: unknown type name 'sig_atomic_t'
331 | volatile l_signalT hookmask;
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
[1/35] Compiling CLua lvm.c
/host/spi-builder-workspace/Sources/CLua/liolib.c:287:29: error: call to undeclared function 'pclose'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
287 | return luaL_execresult(L, l_pclose(L, p->f));
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:60:27: note: expanded from macro 'l_pclose'
60 | #define l_pclose(L,file) (pclose(file))
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:287:29: note: did you mean 'fclose'?
/host/spi-builder-workspace/Sources/CLua/liolib.c:60:27: note: expanded from macro 'l_pclose'
60 | #define l_pclose(L,file) (pclose(file))
| ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/stdio.h:85:5: note: 'fclose' declared here
85 | int fclose(FILE *);
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:297:10: error: call to undeclared function 'popen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
297 | p->f = l_popen(L, filename, mode);
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:59:40: note: expanded from macro 'l_popen'
59 | #define l_popen(L,c,m) (fflush(NULL), popen(c,m))
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:297:10: note: did you mean 'fopen'?
/host/spi-builder-workspace/Sources/CLua/liolib.c:59:40: note: expanded from macro 'l_popen'
59 | #define l_popen(L,c,m) (fflush(NULL), popen(c,m))
| ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/stdio.h:83:7: note: 'fopen' declared here
83 | FILE *fopen(const char *__restrict, const char *__restrict);
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:297:8: error: incompatible integer to pointer conversion assigning to 'FILE *' (aka 'struct _IO_FILE *') from 'int' [-Wint-conversion]
297 | p->f = l_popen(L, filename, mode);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CLua/liolib.c:306:10: warning: 'tmpfile' is deprecated: tmpfile is not defined on WASI [-Wdeprecated-declarations]
306 | p->f = tmpfile();
| ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/stdio.h:153:36: note: 'tmpfile' has been explicitly marked deprecated here
153 | FILE *tmpfile(void) __attribute__((__deprecated__("tmpfile is not defined on WASI")));
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:488:3: error: call to undeclared function 'flockfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
488 | l_lockfile(rn.f);
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:99:24: note: expanded from macro 'l_lockfile'
99 | #define l_lockfile(f) flockfile(f)
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:503:3: error: call to undeclared function 'funlockfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
503 | l_unlockfile(rn.f);
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:100:26: note: expanded from macro 'l_unlockfile'
100 | #define l_unlockfile(f) funlockfile(f)
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:529:5: error: call to undeclared function 'flockfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
529 | l_lockfile(f); /* no memory errors can happen inside the lock */
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:99:24: note: expanded from macro 'l_lockfile'
99 | #define l_lockfile(f) flockfile(f)
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:532:5: error: call to undeclared function 'funlockfile'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
532 | l_unlockfile(f);
| ^
/host/spi-builder-workspace/Sources/CLua/liolib.c:100:26: note: expanded from macro 'l_unlockfile'
100 | #define l_unlockfile(f) funlockfile(f)
| ^
[1/35] Compiling CLua liolib.c
[1/35] Compiling CLua ldblib.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/Sources/CLua/lundump.c:18:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
In file included from /host/spi-builder-workspace/Sources/CLua/include/lstate.h:130:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/CLua/lundump.c:18:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:184:16: error: unknown type name 'sig_atomic_t'
184 | volatile l_signalT trap; /* function is tracing lines/counts */
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:331:12: error: unknown type name 'sig_atomic_t'
331 | volatile l_signalT hookmask;
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
3 errors generated.
[0/34] Compiling CLua lundump.c
In file included from /host/spi-builder-workspace/Sources/CLua/ltable.c:31:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
In file included from /host/spi-builder-workspace/Sources/CLua/include/lstate.h:130:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/CLua/ltable.c:31:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:184:16: error: unknown type name 'sig_atomic_t'
184 | volatile l_signalT trap; /* function is tracing lines/counts */
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:331:12: error: unknown type name 'sig_atomic_t'
331 | volatile l_signalT hookmask;
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
[0/34] Compiling CLua ltable.c
[0/34] Compiling CLua lutf8lib.c
/host/spi-builder-workspace/Sources/CLua/ltablib.c:247:15: warning: 'clock' is deprecated: WASI lacks process-associated clocks; to enable emulation of the `clock` function using the wall clock, which isn't sensitive to whether the program is running or suspended, compile with -D_WASI_EMULATED_PROCESS_CLOCKS and link with -lwasi-emulated-process-clocks [-Wdeprecated-declarations]
247 | clock_t c = clock();
| ^
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/time.h:66:16: note: 'clock' has been explicitly marked deprecated here
66 | __attribute__((__deprecated__(
| ^
[0/34] Compiling CLua ltablib.c
In file included from /host/spi-builder-workspace/Sources/CLua/ltm.c:17:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
In file included from /host/spi-builder-workspace/Sources/CLua/include/lstate.h:130:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/CLua/ltm.c:17:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:184:16: error: unknown type name 'sig_atomic_t'
184 | volatile l_signalT trap; /* function is tracing lines/counts */
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:331:12: error: unknown type name 'sig_atomic_t'
331 | volatile l_signalT hookmask;
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
[0/34] Compiling CLua ltm.c
In file included from /host/spi-builder-workspace/Sources/CLua/lvm.c:21:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
In file included from /host/spi-builder-workspace/Sources/CLua/include/lstate.h:130:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/CLua/lvm.c:21:
In file included from /host/spi-builder-workspace/Sources/CLua/include/ldebug.h:11:
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:184:16: error: unknown type name 'sig_atomic_t'
184 | volatile l_signalT trap; /* function is tracing lines/counts */
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
[0/34] Compiling CLua lvm.c
[0/34] Compiling CLua ltests.c
In file included from /host/spi-builder-workspace/Sources/CLua/lzio.c:19:
In file included from /host/spi-builder-workspace/Sources/CLua/include/lstate.h:130:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/CLua/lzio.c:19:
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:184:16: error: unknown type name 'sig_atomic_t'
184 | volatile l_signalT trap; /* function is tracing lines/counts */
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:331:12: error: unknown type name 'sig_atomic_t'
331 | volatile l_signalT hookmask;
| ^
/host/spi-builder-workspace/Sources/CLua/include/lstate.h:131:19: note: expanded from macro 'l_signalT'
131 | #define l_signalT sig_atomic_t
| ^
[0/34] Compiling CLua lzio.c
BUILD FAILURE 6.1 wasm