Build Information
Failed to build swift-ta-lib, reference 1.0.0 (c489a5), with Swift 6.3 for Wasm on 10 Apr 2026 21:26:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kubens/swift-ta-lib.git
Reference: 1.0.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/kubens/swift-ta-lib
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at c489a52 feat: Initial release (#1)
Submodule path 'Sources/ta-lib': checked out '1bdf54384036852952b8b4cb97c09359ae407bd0'
Submodule 'Sources/ta-lib' (https://github.com/TA-Lib/ta-lib.git) registered for path 'Sources/ta-lib'
Cloning into '/host/spi-builder-workspace/Sources/ta-lib'...
Cloned https://github.com/kubens/swift-ta-lib.git
Revision (git rev-parse @):
c489a52a7fef90e2aacf19ba3c622febd8370eee
SUCCESS checkout https://github.com/kubens/swift-ta-lib.git at 1.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/kubens/swift-ta-lib.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling TACodeGenerator XMLParser.swift
[4/10] Compiling TACodeGenerator main.swift
[5/10] Compiling TACodeGenerator FunctionModel.swift
[6/10] Emitting module TACodeGenerator
[7/10] Compiling TACodeGenerator SwiftCodeEmitter.swift
[8/11] Wrapping AST for TACodeGenerator for debugging
[9/11] Write Objects.LinkFileList
[10/11] Linking TACodeGenerator-tool
[1/1] Compiling plugin TAGeneratorPlugin
Building for debugging...
[1/212] Write sources
[1/212] Copying InfoPlist.strings
[3/212] Copying Info.plist
[4/212] Write sources
[5/212] Compiling ta_WILLR.c
[6/212] Compiling ta_WCLPRICE.c
[7/212] Compiling ta_TYPPRICE.c
[8/212] Compiling ta_utility.c
[9/212] Compiling ta_WMA.c
[10/212] Write swift-version-24593BA9C3E375BF.txt
[11/212] Compiling ta_VAR.c
[12/212] Compiling ta_TSF.c
[13/212] Compiling ta_ULTOSC.c
[14/212] Compiling ta_TRANGE.c
[15/212] Compiling ta_TRIX.c
[15/212] Compiling ta_TRIMA.c
[17/212] Compiling ta_TEMA.c
[18/212] Compiling ta_TANH.c
[19/215] Compiling ta_TAN.c
[20/217] Compiling ta_T3.c
[21/217] Compiling ta_SUM.c
[22/217] Compiling ta_STOCHF.c
[23/217] Compiling ta_SUB.c
[24/217] Compiling ta_STOCHRSI.c
[25/217] Wrapping AST for TACodeGenerator for debugging
[26/217] Compiling ta_STOCH.c
[27/217] Write Objects.LinkFileList
[28/217] Compiling ta_SQRT.c
[29/217] Compiling ta_SMA.c
[30/217] Compiling ta_STDDEV.c
[31/217] Compiling ta_SINH.c
[32/217] Compiling ta_SIN.c
[33/217] Compiling ta_SAR.c
[34/217] Compiling ta_SAREXT.c
[35/217] Compiling ta_ROCR100.c
[35/217] Compiling ta_ROCP.c
[37/217] Compiling ta_ROCR.c
[38/217] Compiling ta_ROC.c
[39/217] Compiling ta_RSI.c
[40/217] Compiling ta_PVI.c
[41/217] Compiling ta_PPO.c
[42/217] Compiling ta_PLUS_DI.c
[43/217] Compiling ta_PLUS_DM.c
[43/217] Compiling ta_OBV.c
[45/217] Compiling ta_NVI.c
[46/217] Linking TACodeGenerator-tool
[47/217] Compiling ta_NATR.c
[48/217] Compiling ta_MOM.c
[48/217] Compiling ta_MULT.c
[50/217] Compiling ta_MINUS_DM.c
[51/217] Compiling ta_MINUS_DI.c
[52/217] Compiling ta_MINMAXINDEX.c
[53/217] Compiling ta_MINMAX.c
[54/217] Compiling ta_MININDEX.c
[55/217] Compiling ta_MEDPRICE.c
[56/217] Compiling ta_MIN.c
[57/217] Compiling ta_MFI.c
[58/217] Compiling ta_MIDPOINT.c
Generated 161 functions → /host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/TALib/destination/TAGeneratorPlugin/ta_func_api.swift
[59/217] Generate TA-Lib Swift wrappers
[60/217] Compiling ta_MIDPRICE.c
[61/217] Compiling ta_MAXINDEX.c
[62/217] Compiling ta_MAX.c
[63/217] Compiling ta_MAVP.c
[64/217] Compiling ta_MACDFIX.c
[65/217] Compiling ta_MACDEXT.c
[65/217] Compiling ta_MACD.c
[67/217] Compiling ta_MAMA.c
[68/217] Compiling ta_LOG10.c
[69/217] Compiling ta_LN.c
[70/217] Compiling ta_MA.c
[71/217] Compiling ta_LINEARREG_ANGLE.c
[71/217] Compiling ta_LINEARREG_INTERCEPT.c
[71/217] Compiling ta_LINEARREG_SLOPE.c
[74/217] Compiling ta_LINEARREG.c
[75/217] Compiling ta_KAMA.c
[76/217] Compiling ta_IMI.c
[77/217] Compiling ta_HT_SINE.c
[77/217] Compiling ta_HT_TRENDLINE.c
[77/217] Compiling ta_HT_TRENDMODE.c
[77/217] Compiling ta_HT_PHASOR.c
[81/217] Compiling ta_HT_DCPHASE.c
[82/217] Compiling ta_HT_DCPERIOD.c
[82/217] Compiling ta_DIV.c
[83/217] Compiling ta_EXP.c
[83/217] Compiling ta_DEMA.c
[84/217] Compiling ta_EMA.c
[87/217] Compiling ta_DX.c
[87/217] Compiling ta_FLOOR.c
[89/217] Compiling ta_COS.c
[90/217] Compiling ta_COSH.c
[91/217] Compiling ta_CORREL.c
[92/217] Compiling ta_CEIL.c
[93/217] Compiling ta_CDLXSIDEGAP3METHODS.c
[94/217] Compiling ta_CMO.c
[95/217] Compiling ta_CDLUNIQUE3RIVER.c
[96/217] Compiling ta_CDLUPSIDEGAP2CROWS.c
[97/217] Compiling ta_CDLTRISTAR.c
[98/217] Compiling ta_CDLTAKURI.c
[99/217] Compiling ta_CDLTHRUSTING.c
[100/217] Compiling ta_CDLTASUKIGAP.c
[101/217] Compiling ta_CDLSTICKSANDWICH.c
[102/217] Compiling ta_CDLSPINNINGTOP.c
[103/217] Compiling ta_CDLSHOOTINGSTAR.c
[104/217] Compiling ta_CDLSHORTLINE.c
[105/217] Compiling ta_CDLSTALLEDPATTERN.c
[106/217] Compiling ta_CDLSEPARATINGLINES.c
[107/217] Compiling ta_CDLRICKSHAWMAN.c
[108/217] Compiling ta_CDLPIERCING.c
[109/217] Compiling ta_CDLRISEFALL3METHODS.c
[110/217] Compiling ta_CDLONNECK.c
[111/217] Compiling ta_CDLMORNINGDOJISTAR.c
[112/217] Compiling ta_CDLMATHOLD.c
[113/217] Compiling ta_CDLMATCHINGLOW.c
[114/217] Compiling ta_CDLMARUBOZU.c
[115/217] Compiling ta_CDLMORNINGSTAR.c
[116/217] Compiling ta_CDLLONGLINE.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[118/217] Emitting module TACodeGenerator
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:16:3: error: cannot find 'exit' in scope
14 | guard CommandLine.arguments.count == 3 else {
15 | errPrint("Usage: TACodeGenerator <xml-input-path> <swift-output-path>")
16 | exit(1)
| `- error: cannot find 'exit' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:26:20: error: cannot find 'fopen' in scope
24 | let source = SwiftCodeEmitter(functions: functions).emit()
25 |
26 | guard let file = fopen(outputPath, "w") else {
| `- error: cannot find 'fopen' in scope
27 | errPrint("Error: cannot write to \(outputPath)")
28 | exit(1)
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:28:5: error: cannot find 'exit' in scope
26 | guard let file = fopen(outputPath, "w") else {
27 | errPrint("Error: cannot write to \(outputPath)")
28 | exit(1)
| `- error: cannot find 'exit' in scope
29 | }
30 | _ = source.withCString { ptr in fputs(ptr, file) }
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:30:35: error: cannot find 'fputs' in scope
28 | exit(1)
29 | }
30 | _ = source.withCString { ptr in fputs(ptr, file) }
| `- error: cannot find 'fputs' in scope
31 | fclose(file)
32 |
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:31:3: error: cannot find 'fclose' in scope
29 | }
30 | _ = source.withCString { ptr in fputs(ptr, file) }
31 | fclose(file)
| `- error: cannot find 'fclose' in scope
32 |
33 | print("Generated \(functions.count) functions → \(outputPath)")
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:36:3: error: cannot find 'exit' in scope
34 | } catch {
35 | errPrint("Error: \(error)")
36 | exit(1)
| `- error: cannot find 'exit' in scope
37 | }
38 |
[118/217] Compiling ta_CDLLONGLEGGEDDOJI.c
[119/217] Compiling ta_CDLLADDERBOTTOM.c
[120/217] Compiling ta_CDLINNECK.c
[121/217] Compiling ta_CDLKICKING.c
[122/217] Compiling ta_CDLIDENTICAL3CROWS.c
[122/217] Compiling ta_CDLINVERTEDHAMMER.c
[124/217] Compiling ta_CDLKICKINGBYLENGTH.c
[124/217] Compiling ta_CDLHOMINGPIGEON.c
[126/217] Compiling ta_CDLHIKKAKE.c
[127/217] Compiling ta_CDLHIKKAKEMOD.c
[128/217] Compiling ta_CDLHARAMICROSS.c
[129/217] Compiling ta_CDLHARAMI.c
[130/217] Compiling ta_CDLHIGHWAVE.c
[131/217] Compiling ta_CDLGRAVESTONEDOJI.c
[132/217] Compiling ta_CDLHANGINGMAN.c
[133/217] Compiling ta_CDLGAPSIDESIDEWHITE.c
[134/217] Compiling ta_CDLENGULFING.c
[135/217] Compiling ta_CDLHAMMER.c
[136/217] Compiling ta_CDLEVENINGSTAR.c
[137/217] Compiling ta_CDLDARKCLOUDCOVER.c
[138/217] Compiling ta_CDLDRAGONFLYDOJI.c
[139/217] Compiling ta_CDLDOJI.c
[140/217] Compiling ta_CDLEVENINGDOJISTAR.c
[141/217] Compiling ta_CDLCOUNTERATTACK.c
[142/217] Compiling ta_CDLDOJISTAR.c
[143/217] Compiling ta_CDLCONCEALBABYSWALL.c
[144/217] Compiling ta_CDLCLOSINGMARUBOZU.c
[145/217] Compiling ta_CDL3OUTSIDE.c
[146/217] Compiling ta_CDLBREAKAWAY.c
[147/217] Compiling ta_CDLBELTHOLD.c
[148/217] Compiling ta_CDLABANDONEDBABY.c
[149/217] Compiling ta_CDL3STARSINSOUTH.c
[150/217] Compiling ta_CDLADVANCEBLOCK.c
[151/217] Compiling ta_CDL3BLACKCROWS.c
[152/217] Compiling ta_CDL2CROWS.c
[153/217] Compiling ta_CDL3LINESTRIKE.c
[154/217] Compiling ta_CDL3INSIDE.c
[155/217] Compiling ta_CCI.c
[156/217] Compiling ta_CDL3WHITESOLDIERS.c
[157/217] Compiling ta_BOP.c
[158/217] Compiling ta_BBANDS.c
[159/217] Compiling ta_BETA.c
[159/217] Compiling ta_ATR.c
[161/217] Compiling ta_AVGPRICE.c
[162/217] Compiling ta_AVGDEV.c
[163/217] Compiling ta_ATAN.c
[164/217] Compiling ta_AROONOSC.c
[165/217] Compiling ta_AROON.c
[166/217] Compiling ta_ADXR.c
[167/217] Compiling ta_APO.c
[168/217] Compiling ta_ASIN.c
[169/217] Compiling ta_AD.c
[170/217] Compiling ta_ADOSC.c
[171/217] Compiling ta_ACOS.c
[172/217] Compiling ta_ADD.c
[173/217] Compiling ta_ADX.c
[174/217] Compiling ta_version.c
[174/217] Compiling ta_retcode.c
[176/217] Compiling ta_ACCBANDS.c
[177/217] Compiling table_y.c
[178/217] Compiling table_x.c
[179/217] Compiling table_w.c
[180/217] Compiling table_z.c
[180/217] Compiling ta_global.c
[180/217] Compiling table_v.c
[183/217] Compiling table_u.c
[184/217] Compiling table_t.c
[185/217] Compiling table_r.c
[186/217] Compiling table_s.c
[187/217] Compiling table_q.c
[188/217] Compiling table_o.c
[189/217] Compiling table_p.c
[190/217] Compiling table_n.c
[191/217] Compiling table_l.c
[192/217] Compiling table_m.c
[193/217] Compiling table_k.c
[194/217] Compiling table_j.c
[195/217] Compiling table_g.c
[196/217] Compiling table_f.c
[197/217] Compiling table_h.c
[198/217] Compiling table_i.c
[199/217] Compiling table_e.c
[200/217] Compiling table_d.c
[201/217] Compiling table_b.c
[202/217] Compiling ta_def_ui.c
[203/217] Compiling ta_group_idx.c
[204/217] Write sources
[205/217] Compiling table_a.c
[206/217] Compiling table_c.c
[207/217] Compiling ta_abstract.c
[208/217] Compiling ta_frame.c
[209/217] Compiling ta_func_api.c
[211/223] Compiling TALib TA.swift
[212/223] Compiling TALib TAError.swift
[213/223] Compiling TALib Results.swift
[214/223] Compiling TACodeGenerator main.swift
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:16:3: error: cannot find 'exit' in scope
14 | guard CommandLine.arguments.count == 3 else {
15 | errPrint("Usage: TACodeGenerator <xml-input-path> <swift-output-path>")
16 | exit(1)
| `- error: cannot find 'exit' in scope
17 | }
18 |
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:26:20: error: cannot find 'fopen' in scope
24 | let source = SwiftCodeEmitter(functions: functions).emit()
25 |
26 | guard let file = fopen(outputPath, "w") else {
| `- error: cannot find 'fopen' in scope
27 | errPrint("Error: cannot write to \(outputPath)")
28 | exit(1)
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:28:5: error: cannot find 'exit' in scope
26 | guard let file = fopen(outputPath, "w") else {
27 | errPrint("Error: cannot write to \(outputPath)")
28 | exit(1)
| `- error: cannot find 'exit' in scope
29 | }
30 | _ = source.withCString { ptr in fputs(ptr, file) }
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:30:35: error: cannot find 'fputs' in scope
28 | exit(1)
29 | }
30 | _ = source.withCString { ptr in fputs(ptr, file) }
| `- error: cannot find 'fputs' in scope
31 | fclose(file)
32 |
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:31:3: error: cannot find 'fclose' in scope
29 | }
30 | _ = source.withCString { ptr in fputs(ptr, file) }
31 | fclose(file)
| `- error: cannot find 'fclose' in scope
32 |
33 | print("Generated \(functions.count) functions → \(outputPath)")
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:36:3: error: cannot find 'exit' in scope
34 | } catch {
35 | errPrint("Error: \(error)")
36 | exit(1)
| `- error: cannot find 'exit' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:10:9: error: cannot find 'write' in scope
8 | var msg = message.hasSuffix("\n") ? message : message + "\n"
9 | msg.withUTF8 { ptr in
10 | _ = write(STDERR_FILENO, ptr.baseAddress, ptr.count)
| `- error: cannot find 'write' in scope
11 | }
12 | }
/host/spi-builder-workspace/Sources/TACodeGenerator/main.swift:10:15: error: cannot find 'STDERR_FILENO' in scope
8 | var msg = message.hasSuffix("\n") ? message : message + "\n"
9 | msg.withUTF8 { ptr in
10 | _ = write(STDERR_FILENO, ptr.baseAddress, ptr.count)
| `- error: cannot find 'STDERR_FILENO' in scope
11 | }
12 | }
[215/223] Compiling TACodeGenerator XMLParser.swift
/host/spi-builder-workspace/Sources/TACodeGenerator/XMLParser.swift:13:20: error: cannot find 'fopen' in scope
11 |
12 | func readFileContents(atPath path: String) throws -> String {
13 | guard let file = fopen(path, "r") else {
| `- error: cannot find 'fopen' in scope
14 | throw ParseError.cannotOpenFile(path)
15 | }
/host/spi-builder-workspace/Sources/TACodeGenerator/XMLParser.swift:16:11: error: cannot find 'fclose' in scope
14 | throw ParseError.cannotOpenFile(path)
15 | }
16 | defer { fclose(file) }
| `- error: cannot find 'fclose' in scope
17 | var result = ""
18 | result.reserveCapacity(256 * 1024)
/host/spi-builder-workspace/Sources/TACodeGenerator/XMLParser.swift:20:9: error: cannot find 'fgets' in scope
18 | result.reserveCapacity(256 * 1024)
19 | var buf = [CChar](repeating: 0, count: 8192)
20 | while fgets(&buf, Int32(buf.count), file) != nil {
| `- error: cannot find 'fgets' in scope
21 | buf.withUnsafeBytes { raw in
22 | let len = raw.firstIndex(of: 0) ?? raw.count
[216/223] Emitting module TALib
[217/223] Compiling TALib MAType.swift
[218/223] Compiling TACodeGenerator FunctionModel.swift
[219/223] Compiling TACodeGenerator SwiftCodeEmitter.swift
BUILD FAILURE 6.3 wasm