Build Information
Failed to build Mecab-Swift, reference 0.8.0 (1f0964
), with Swift 6.1 for Wasm on 30 May 2025 16:23:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/shinjukunian/Mecab-Swift.git
Reference: 0.8.0
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/shinjukunian/Mecab-Swift
* tag 0.8.0 -> FETCH_HEAD
HEAD is now at 1f09649 fixed test
Submodule path 'Sources/mecab': checked out 'aa318f82798d72e5cb52ba5f6b10f0b780b30d05'
Submodule 'Sources/mecab' (https://github.com/shinjukunian/mecab.git) registered for path 'Sources/mecab'
Cloning into '/host/spi-builder-workspace/Sources/mecab'...
Cloned https://github.com/shinjukunian/Mecab-Swift.git
Revision (git rev-parse @):
1f096492e37fc05fc2e7304091f54889974c5368
SUCCESS checkout https://github.com/shinjukunian/Mecab-Swift.git at 0.8.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/shinjukunian/Mecab-Swift.git
https://github.com/shinjukunian/Mecab-Swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "Mecab-Swift",
"name" : "Mecab-Swift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
}
],
"products" : [
{
"name" : "Mecab-Swift",
"targets" : [
"Mecab-Swift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "IPADic",
"targets" : [
"IPADic"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CharacterFilter",
"targets" : [
"CharacterFilter"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "StringTools",
"targets" : [
"StringTools"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "mecab",
"module_type" : "ClangTarget",
"name" : "mecab",
"path" : "Sources/mecab/mecab",
"product_memberships" : [
"Mecab-Swift"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Sources/mecab/mecab/BSD",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/mecab/mecab/COPYING",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"src/char_property.cpp",
"src/connector.cpp",
"src/context_id.cpp",
"src/dictionary.cpp",
"src/dictionary_compiler.cpp",
"src/dictionary_generator.cpp",
"src/dictionary_rewriter.cpp",
"src/eval.cpp",
"src/feature_index.cpp",
"src/iconv_utils.cpp",
"src/lbfgs.cpp",
"src/learner.cpp",
"src/learner_tagger.cpp",
"src/libmecab.cpp",
"src/nbest_generator.cpp",
"src/param.cpp",
"src/string_buffer.cpp",
"src/tagger.cpp",
"src/tokenizer.cpp",
"src/utils.cpp",
"src/viterbi.cpp",
"src/writer.cpp"
],
"type" : "library"
},
{
"c99name" : "StringToolsTests",
"module_type" : "SwiftTarget",
"name" : "StringToolsTests",
"path" : "Tests/StringToolsTests",
"sources" : [
"StringToolsTests.swift"
],
"target_dependencies" : [
"StringTools"
],
"type" : "test"
},
{
"c99name" : "StringTools",
"module_type" : "SwiftTarget",
"name" : "StringTools",
"path" : "Sources/StringTools",
"product_memberships" : [
"Mecab-Swift",
"StringTools"
],
"sources" : [
"FuriganaAnnotating.swift",
"FuriganaAnnotation.swift",
"String+ScriptType.swift",
"String+SystemTokenizer.swift",
"String+Transliteration.swift"
],
"type" : "library"
},
{
"c99name" : "Mecab_SwiftTests",
"module_type" : "SwiftTarget",
"name" : "Mecab-SwiftTests",
"path" : "Tests/Mecab-SwiftTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/Mecab-SwiftTests/Resources/helicobacter.html",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Mecab_SwiftTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Mecab-Swift",
"CharacterFilter",
"IPADic"
],
"type" : "test"
},
{
"c99name" : "Mecab_Swift",
"module_type" : "SwiftTarget",
"name" : "Mecab-Swift",
"path" : "Sources/Mecab-Swift",
"product_memberships" : [
"Mecab-Swift"
],
"sources" : [
"Annotation.swift",
"AnnotationOptions.swift",
"SystemDictionary.swift",
"Token.swift",
"Tokenizer+SystemTokenizer.swift",
"Tokenizer.swift"
],
"target_dependencies" : [
"mecab",
"StringTools",
"Dictionary"
],
"type" : "library"
},
{
"c99name" : "IPADic",
"module_type" : "SwiftTarget",
"name" : "IPADic",
"path" : "Sources/IPADic",
"product_memberships" : [
"IPADic"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Sources/IPADic/ipadic dictionary",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"IPADic.swift"
],
"target_dependencies" : [
"Dictionary"
],
"type" : "library"
},
{
"c99name" : "Dictionary",
"module_type" : "SwiftTarget",
"name" : "Dictionary",
"path" : "Sources/Dictionary",
"product_memberships" : [
"Mecab-Swift",
"IPADic"
],
"sources" : [
"Dictionary.swift",
"PartOfSpeech.swift"
],
"type" : "library"
},
{
"c99name" : "CharacterFilter",
"module_type" : "SwiftTarget",
"name" : "CharacterFilter",
"path" : "Sources/CharacterFilter",
"product_memberships" : [
"CharacterFilter"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Sources/CharacterFilter/Resources/Base.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "Base"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/CharacterFilter/Resources/de.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "de"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/CharacterFilter/Resources/en.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/CharacterFilter/Resources/ja.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "ja"
}
}
}
],
"sources" : [
"CharacterFilter.swift",
"JPLTCharacters.swift",
"SchoolYearCharacters.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 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/38] Write sources
[0/38] Copying Localizable.strings
[0/38] Write sources
[6/38] Copying Info.plist
[6/38] Copying COPYING
[8/38] Copying BSD
[8/38] Copying Info.plist
[8/38] Copying Localizable.strings
[8/38] Copying Info.plist
[8/38] Copying Localizable.strings
[14/38] Copying ipadic dictionary
[15/38] Write swift-version-24593BA9C3E375BF.txt
[16/38] Compiling string_buffer.cpp
/host/spi-builder-workspace/Sources/mecab/mecab/src/param.cpp:67:17: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
67 | std::ifstream ifs(WPATH(filename));
| ^
/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/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
1 error generated.
[17/38] Compiling param.cpp
[32/38] Compiling viterbi.cpp
/host/spi-builder-workspace/Sources/mecab/mecab/src/utils.cpp:301:21: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
301 | std::ifstream ifs(WPATH(s.c_str()));
| ^
/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/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/utils.cpp:558:17: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
558 | std::ifstream ifs(WPATH(filename));
| ^
/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/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
[32/38] Compiling utils.cpp
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tokenizer.cpp:7:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:41:
/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/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tokenizer.cpp:7:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:161:16: error: use of undeclared identifier 'PROT_READ'
161 | int prot = PROT_READ;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:162:33: error: use of undeclared identifier 'PROT_WRITE'
162 | if (flag == O_RDWR) prot |= PROT_WRITE;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:165:21: error: no member named 'mmap' in the global namespace
165 | (::mmap(0, length, prot, MAP_SHARED, fd, 0)))
| ~~^
/host/spi-builder-workspace/Sources/mecab/mecab/src/common.h:132:6: note: expanded from macro 'CHECK_FALSE'
132 | if (condition) {} else return \
| ^~~~~~~~~
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tokenizer.cpp:7:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:165:43: error: use of undeclared identifier 'MAP_SHARED'
165 | (::mmap(0, length, prot, MAP_SHARED, fd, 0)))
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:166:20: error: use of undeclared identifier 'MAP_FAILED'
166 | != MAP_FAILED)
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:189:9: error: no member named 'munmap' in the global namespace
189 | ::munmap(reinterpret_cast<char *>(text), length);
| ~~^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tokenizer.cpp:8:
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:407:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
407 | register array_type_ b = array_[node_pos].base;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:408:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
408 | register array_u_type_ p;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:410:10: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
410 | for (register size_t i = 0; i < len; ++i) {
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:434:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
434 | register array_type_ b = array_[node_pos].base;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:435:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
435 | register size_t num = 0;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:436:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
436 | register array_type_ n;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:437:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
437 | register array_u_type_ p;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:439:10: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
439 | for (register size_t i = 0; i < len; ++i) {
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:472:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
472 | register array_type_ b = array_[node_pos].base;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:473:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
473 | register array_u_type_ p;
| ^~~~~~~~
[32/38] Compiling tokenizer.cpp
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:10:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:41:
/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/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:10:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:161:16: error: use of undeclared identifier 'PROT_READ'
161 | int prot = PROT_READ;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:162:33: error: use of undeclared identifier 'PROT_WRITE'
162 | if (flag == O_RDWR) prot |= PROT_WRITE;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:165:21: error: no member named 'mmap' in the global namespace
165 | (::mmap(0, length, prot, MAP_SHARED, fd, 0)))
| ~~^
/host/spi-builder-workspace/Sources/mecab/mecab/src/common.h:132:6: note: expanded from macro 'CHECK_FALSE'
132 | if (condition) {} else return \
| ^~~~~~~~~
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:10:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:165:43: error: use of undeclared identifier 'MAP_SHARED'
165 | (::mmap(0, length, prot, MAP_SHARED, fd, 0)))
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:166:20: error: use of undeclared identifier 'MAP_FAILED'
166 | != MAP_FAILED)
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:189:9: error: no member named 'munmap' in the global namespace
189 | ::munmap(reinterpret_cast<char *>(text), length);
| ~~^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:15:
/host/spi-builder-workspace/Sources/mecab/mecab/src/stream_wrapper.h:26:17: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
26 | is_ = new std::ifstream(WPATH(filename));
| ^
/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/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:15:
/host/spi-builder-workspace/Sources/mecab/mecab/src/stream_wrapper.h:45:17: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
45 | os_ = new std::ofstream(WPATH(filename));
| ^
/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/c++/v1/__fwd/fstream.h:26:28: note: template is declared here
26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream;
| ^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:17:
/host/spi-builder-workspace/Sources/mecab/mecab/src/thread.h:14:10: fatal error: 'pthread.h' file not found
14 | #include <pthread.h>
| ^~~~~~~~~~~
[32/38] Compiling tagger.cpp
/host/spi-builder-workspace/Sources/mecab/mecab/src/writer.cpp:253:61: warning: adding 'const char' to a string does not append to the string [-Wstring-plus-int]
253 | const std::string error = "unknown meta char: " + *p;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/writer.cpp:253:61: note: use array indexing to silence this warning
253 | const std::string error = "unknown meta char: " + *p;
| ^
| & [ ]
[32/38] Compiling writer.cpp
[32/38] Compiling nbest_generator.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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...
[0/23] Compiling nbest_generator.cpp
/host/spi-builder-workspace/Sources/mecab/mecab/src/utils.cpp:301:21: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
301 | std::ifstream ifs(WPATH(s.c_str()));
| ^
/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/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/utils.cpp:558:17: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
558 | std::ifstream ifs(WPATH(filename));
| ^
/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/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
2 errors generated.
[1/23] Compiling utils.cpp
[1/23] Compiling string_buffer.cpp
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tokenizer.cpp:7:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:41:
/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/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tokenizer.cpp:7:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:161:16: error: use of undeclared identifier 'PROT_READ'
161 | int prot = PROT_READ;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:162:33: error: use of undeclared identifier 'PROT_WRITE'
162 | if (flag == O_RDWR) prot |= PROT_WRITE;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:165:21: error: no member named 'mmap' in the global namespace
165 | (::mmap(0, length, prot, MAP_SHARED, fd, 0)))
| ~~^
/host/spi-builder-workspace/Sources/mecab/mecab/src/common.h:132:6: note: expanded from macro 'CHECK_FALSE'
132 | if (condition) {} else return \
| ^~~~~~~~~
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tokenizer.cpp:7:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:165:43: error: use of undeclared identifier 'MAP_SHARED'
165 | (::mmap(0, length, prot, MAP_SHARED, fd, 0)))
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:166:20: error: use of undeclared identifier 'MAP_FAILED'
166 | != MAP_FAILED)
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:189:9: error: no member named 'munmap' in the global namespace
189 | ::munmap(reinterpret_cast<char *>(text), length);
| ~~^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tokenizer.cpp:8:
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:407:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
407 | register array_type_ b = array_[node_pos].base;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:408:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
408 | register array_u_type_ p;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:410:10: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
410 | for (register size_t i = 0; i < len; ++i) {
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:434:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
434 | register array_type_ b = array_[node_pos].base;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:435:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
435 | register size_t num = 0;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:436:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
436 | register array_type_ n;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:437:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
437 | register array_u_type_ p;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:439:10: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
439 | for (register size_t i = 0; i < len; ++i) {
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:472:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
472 | register array_type_ b = array_[node_pos].base;
| ^~~~~~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/darts.h:473:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
473 | register array_u_type_ p;
| ^~~~~~~~
[1/23] Compiling tokenizer.cpp
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/viterbi.cpp:11:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:41:
/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/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/viterbi.cpp:11:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:161:16: error: use of undeclared identifier 'PROT_READ'
161 | int prot = PROT_READ;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:162:33: error: use of undeclared identifier 'PROT_WRITE'
162 | if (flag == O_RDWR) prot |= PROT_WRITE;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:165:21: error: no member named 'mmap' in the global namespace
165 | (::mmap(0, length, prot, MAP_SHARED, fd, 0)))
| ~~^
/host/spi-builder-workspace/Sources/mecab/mecab/src/common.h:132:6: note: expanded from macro 'CHECK_FALSE'
132 | if (condition) {} else return \
| ^~~~~~~~~
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/viterbi.cpp:11:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:165:43: error: use of undeclared identifier 'MAP_SHARED'
165 | (::mmap(0, length, prot, MAP_SHARED, fd, 0)))
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:166:20: error: use of undeclared identifier 'MAP_FAILED'
166 | != MAP_FAILED)
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:189:9: error: no member named 'munmap' in the global namespace
189 | ::munmap(reinterpret_cast<char *>(text), length);
| ~~^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/viterbi.cpp:15:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/viterbi.h:11:
/host/spi-builder-workspace/Sources/mecab/mecab/src/thread.h:14:10: fatal error: 'pthread.h' file not found
14 | #include <pthread.h>
| ^~~~~~~~~~~
[1/23] Compiling viterbi.cpp
/host/spi-builder-workspace/Sources/mecab/mecab/src/writer.cpp:253:61: warning: adding 'const char' to a string does not append to the string [-Wstring-plus-int]
253 | const std::string error = "unknown meta char: " + *p;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
/host/spi-builder-workspace/Sources/mecab/mecab/src/writer.cpp:253:61: note: use array indexing to silence this warning
253 | const std::string error = "unknown meta char: " + *p;
| ^
| & [ ]
[1/23] Compiling writer.cpp
[1/23] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:10:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:41:
/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/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:10:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:161:16: error: use of undeclared identifier 'PROT_READ'
161 | int prot = PROT_READ;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:162:33: error: use of undeclared identifier 'PROT_WRITE'
162 | if (flag == O_RDWR) prot |= PROT_WRITE;
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:165:21: error: no member named 'mmap' in the global namespace
165 | (::mmap(0, length, prot, MAP_SHARED, fd, 0)))
| ~~^
/host/spi-builder-workspace/Sources/mecab/mecab/src/common.h:132:6: note: expanded from macro 'CHECK_FALSE'
132 | if (condition) {} else return \
| ^~~~~~~~~
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:10:
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/connector.h:10:
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:165:43: error: use of undeclared identifier 'MAP_SHARED'
165 | (::mmap(0, length, prot, MAP_SHARED, fd, 0)))
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:166:20: error: use of undeclared identifier 'MAP_FAILED'
166 | != MAP_FAILED)
| ^
/host/spi-builder-workspace/Sources/mecab/mecab/src/mmap.h:189:9: error: no member named 'munmap' in the global namespace
189 | ::munmap(reinterpret_cast<char *>(text), length);
| ~~^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:15:
/host/spi-builder-workspace/Sources/mecab/mecab/src/stream_wrapper.h:26:17: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
26 | is_ = new std::ifstream(WPATH(filename));
| ^
/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/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:15:
/host/spi-builder-workspace/Sources/mecab/mecab/src/stream_wrapper.h:45:17: error: implicit instantiation of undefined template 'std::basic_ofstream<char>'
45 | os_ = new std::ofstream(WPATH(filename));
| ^
/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/c++/v1/__fwd/fstream.h:26:28: note: template is declared here
26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream;
| ^
In file included from /host/spi-builder-workspace/Sources/mecab/mecab/src/tagger.cpp:17:
/host/spi-builder-workspace/Sources/mecab/mecab/src/thread.h:14:10: fatal error: 'pthread.h' file not found
14 | #include <pthread.h>
| ^~~~~~~~~~~
[1/23] Compiling tagger.cpp
/host/spi-builder-workspace/Sources/mecab/mecab/src/param.cpp:67:17: error: implicit instantiation of undefined template 'std::basic_ifstream<char>'
67 | std::ifstream ifs(WPATH(filename));
| ^
/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/c++/v1/__fwd/fstream.h:24:28: note: template is declared here
24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream;
| ^
[1/23] Compiling param.cpp
BUILD FAILURE 6.1 wasm