The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-ta-lib, reference main (c489a5), with Swift 6.3 for Android on 10 Apr 2026 21:26:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kubens/swift-ta-lib.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         android
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-2":/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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
[0/5] Write sources
[1/5] Write swift-version--4F562202D5529B1.txt
[3/10] Compiling TACodeGenerator main.swift
[4/10] Compiling TACodeGenerator XMLParser.swift
[5/10] Compiling TACodeGenerator FunctionModel.swift
[6/10] Compiling TACodeGenerator SwiftCodeEmitter.swift
[7/10] Emitting module TACodeGenerator
[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 Info.plist
[3/212] Copying InfoPlist.strings
[4/212] Write sources
[5/212] Compiling ta_utility.c
[6/212] Compiling ta_WMA.c
[7/212] Compiling ta_VAR.c
[8/212] Compiling ta_WCLPRICE.c
[9/212] Compiling ta_TYPPRICE.c
[10/212] Compiling ta_WILLR.c
[11/212] Write swift-version--4F562202D5529B1.txt
[12/212] Compiling ta_ULTOSC.c
[13/212] Compiling ta_TSF.c
[14/212] Compiling ta_TRIX.c
[14/212] Compiling ta_TANH.c
[14/212] Compiling ta_TRANGE.c
[17/212] Compiling ta_TEMA.c
[18/212] Compiling ta_TRIMA.c
[19/212] Compiling ta_TAN.c
[20/212] Compiling ta_STOCHRSI.c
[21/214] Compiling ta_SUM.c
[22/214] Compiling ta_T3.c
[23/216] Compiling ta_SUB.c
[24/216] Compiling ta_STOCHF.c
[25/216] Compiling ta_STOCH.c
[26/217] Wrapping AST for TACodeGenerator for debugging
[27/217] Compiling ta_SINH.c
[28/217] Write Objects.LinkFileList
[29/217] Compiling ta_SMA.c
[30/217] Compiling ta_SIN.c
[31/217] Compiling ta_SQRT.c
[32/217] Compiling ta_STDDEV.c
[33/217] Compiling ta_SAREXT.c
[34/217] Compiling ta_RSI.c
[35/217] Compiling ta_SAR.c
[36/217] Compiling ta_ROCR100.c
[37/217] Compiling ta_ROCR.c
[38/217] Compiling ta_ROCP.c
[39/217] Compiling ta_PVI.c
[40/217] Compiling ta_ROC.c
[41/217] Compiling ta_PPO.c
[42/217] Compiling ta_PLUS_DM.c
[43/217] Linking TACodeGenerator-tool
[43/217] Compiling ta_PLUS_DI.c
[45/217] Compiling ta_NVI.c
[46/217] Compiling ta_NATR.c
[47/217] Compiling ta_MULT.c
[48/217] Compiling ta_OBV.c
[49/217] Compiling ta_MOM.c
[50/217] Compiling ta_MINUS_DM.c
[51/217] Compiling ta_MINMAXINDEX.c
[52/217] Compiling ta_MINMAX.c
[53/217] Compiling ta_MININDEX.c
[54/217] Compiling ta_MIN.c
[55/217] Compiling ta_MINUS_DI.c
[56/217] Compiling ta_MIDPRICE.c
[57/217] Compiling ta_MIDPOINT.c
[58/217] Compiling ta_MEDPRICE.c
[59/217] Compiling ta_MAXINDEX.c
[60/217] Compiling ta_MFI.c
[61/217] Compiling ta_MAX.c
[62/217] Compiling ta_MAVP.c
[63/217] Compiling ta_MACDFIX.c
[64/217] Compiling ta_MAMA.c
[65/217] Compiling ta_MACD.c
[66/217] Compiling ta_MACDEXT.c
Generated 161 functions → /host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/TALib/destination/TAGeneratorPlugin/ta_func_api.swift
[67/217] Generate TA-Lib Swift wrappers
[68/217] Compiling ta_MA.c
[69/217] Compiling ta_LOG10.c
[70/217] Compiling ta_LN.c
[71/217] Compiling ta_LINEARREG_INTERCEPT.c
[71/217] Compiling ta_LINEARREG_SLOPE.c
[73/217] Compiling ta_LINEARREG_ANGLE.c
[74/217] Compiling ta_LINEARREG.c
[74/217] Compiling ta_KAMA.c
[76/217] Compiling ta_IMI.c
[77/217] Compiling ta_HT_PHASOR.c
[78/217] Compiling ta_HT_SINE.c
[78/217] Compiling ta_HT_TRENDMODE.c
[78/217] Compiling ta_HT_TRENDLINE.c
[81/217] Compiling ta_FLOOR.c
[81/217] Compiling ta_HT_DCPERIOD.c
[83/217] Compiling ta_HT_DCPHASE.c
[84/217] Compiling ta_EXP.c
[85/217] Compiling ta_DIV.c
[86/217] Compiling ta_EMA.c
[87/217] Compiling ta_COSH.c
[87/217] Compiling ta_COS.c
[89/217] Compiling ta_DEMA.c
[90/217] Compiling ta_DX.c
[91/217] Compiling ta_CORREL.c
[92/217] Compiling ta_CEIL.c
[92/217] Compiling ta_CMO.c
[94/217] Compiling ta_CDLXSIDEGAP3METHODS.c
[95/217] Compiling ta_CDLTRISTAR.c
[95/217] Compiling ta_CDLUPSIDEGAP2CROWS.c
[97/217] Compiling ta_CDLUNIQUE3RIVER.c
[98/217] Compiling ta_CDLTHRUSTING.c
[99/217] Compiling ta_CDLTAKURI.c
[100/217] Compiling ta_CDLSHORTLINE.c
[100/217] Compiling ta_CDLSPINNINGTOP.c
[102/217] Compiling ta_CDLSTICKSANDWICH.c
[103/217] Compiling ta_CDLTASUKIGAP.c
[104/217] Compiling ta_CDLSTALLEDPATTERN.c
[105/217] Compiling ta_CDLRICKSHAWMAN.c
[106/217] Compiling ta_CDLPIERCING.c
[107/217] Compiling ta_CDLSEPARATINGLINES.c
[108/217] Compiling ta_CDLONNECK.c
[109/217] Compiling ta_CDLSHOOTINGSTAR.c
[110/217] Compiling ta_CDLRISEFALL3METHODS.c
[111/217] Compiling ta_CDLMORNINGSTAR.c
[112/217] Compiling ta_CDLMATCHINGLOW.c
[113/217] Compiling ta_CDLMORNINGDOJISTAR.c
[114/217] Compiling ta_CDLLONGLINE.c
[115/217] Compiling ta_CDLMARUBOZU.c
[116/217] Compiling ta_CDLMATHOLD.c
[117/217] Compiling ta_CDLLONGLEGGEDDOJI.c
[118/217] Compiling ta_CDLLADDERBOTTOM.c
[119/217] Compiling ta_CDLINNECK.c
[120/217] Compiling ta_CDLKICKING.c
[121/217] Compiling ta_CDLKICKINGBYLENGTH.c
[122/217] Compiling ta_CDLIDENTICAL3CROWS.c
[123/217] Compiling ta_CDLINVERTEDHAMMER.c
[124/217] Compiling ta_CDLHOMINGPIGEON.c
[125/217] Compiling ta_CDLHIKKAKEMOD.c
[126/217] Compiling ta_CDLHIKKAKE.c
[127/217] Compiling ta_CDLHIGHWAVE.c
[128/217] Compiling ta_CDLHARAMI.c
[129/217] Compiling ta_CDLHARAMICROSS.c
[130/217] Compiling ta_CDLHAMMER.c
[131/217] Compiling ta_CDLGRAVESTONEDOJI.c
[132/217] Compiling ta_CDLHANGINGMAN.c
[133/217] Compiling ta_CDLGAPSIDESIDEWHITE.c
[134/217] Compiling ta_CDLEVENINGSTAR.c
[135/217] Compiling ta_CDLENGULFING.c
[136/217] Compiling ta_CDLEVENINGDOJISTAR.c
[137/217] Compiling ta_CDLDOJI.c
[138/217] Compiling ta_CDLDRAGONFLYDOJI.c
[139/217] Compiling ta_CDLDARKCLOUDCOVER.c
[140/217] Compiling ta_CDLDOJISTAR.c
[141/217] Compiling ta_CDLCLOSINGMARUBOZU.c
[142/217] Compiling ta_CDLCOUNTERATTACK.c
[143/217] Compiling ta_CDLBREAKAWAY.c
[144/217] Compiling ta_CDLCONCEALBABYSWALL.c
[145/217] Compiling ta_CDLABANDONEDBABY.c
[146/217] Compiling ta_CDLBELTHOLD.c
[147/217] Compiling ta_CDL3OUTSIDE.c
[148/217] Compiling ta_CDLADVANCEBLOCK.c
[149/217] Compiling ta_CDL3STARSINSOUTH.c
[150/217] Compiling ta_CDL3LINESTRIKE.c
[151/217] Compiling ta_CDL3BLACKCROWS.c
[152/217] Compiling ta_CDL3INSIDE.c
[153/217] Compiling ta_CDL3WHITESOLDIERS.c
[154/217] Compiling ta_BOP.c
[155/217] Compiling ta_CCI.c
[156/217] Compiling ta_CDL2CROWS.c
[157/217] Compiling ta_BETA.c
[158/217] Compiling ta_AVGPRICE.c
[159/217] Compiling ta_AVGDEV.c
[160/217] Compiling ta_BBANDS.c
[161/217] Compiling ta_ATR.c
[162/217] Compiling ta_ATAN.c
[163/217] Compiling ta_ASIN.c
[164/217] Compiling ta_AROONOSC.c
[165/217] Compiling ta_APO.c
[166/217] Compiling ta_AROON.c
[167/217] Compiling ta_ADXR.c
[168/217] Compiling ta_ADX.c
[169/217] Compiling ta_ADD.c
[170/217] Compiling ta_version.c
[171/217] Compiling ta_ADOSC.c
[172/217] Compiling ta_retcode.c
[173/217] Compiling ta_ACCBANDS.c
[174/217] Compiling ta_AD.c
[175/217] Compiling ta_ACOS.c
[176/217] Compiling table_z.c
[177/217] Compiling table_y.c
[178/217] Compiling table_x.c
[178/217] Compiling ta_global.c
[179/217] Compiling table_w.c
[181/217] Compiling table_u.c
[182/217] Compiling table_v.c
[183/217] Compiling table_s.c
[184/217] Compiling table_q.c
[184/217] Compiling table_t.c
[186/217] Compiling table_r.c
[187/217] Compiling table_n.c
[187/217] Compiling table_o.c
[187/217] Compiling table_p.c
[190/217] Compiling table_m.c
[191/217] Compiling table_l.c
[192/217] Compiling table_j.c
[193/217] Compiling table_k.c
[194/217] Compiling table_g.c
[195/217] Compiling table_i.c
[196/217] Compiling table_f.c
[197/217] Compiling table_h.c
[198/217] Compiling table_e.c
[199/217] Compiling table_b.c
[200/217] Compiling table_d.c
[200/217] Compiling ta_group_idx.c
[202/217] Compiling table_a.c
[203/217] Compiling table_c.c
[204/217] Compiling ta_def_ui.c
[205/217] Compiling ta_abstract.c
[206/217] Compiling ta_frame.c
[207/217] Compiling ta_func_api.c
[208/217] Write sources
error: emit-module command failed with exit code 1 (use -v to see invocation)
[210/223] 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 |
[211/223] Compiling TALib TAError.swift
[212/223] Compiling TALib Results.swift
[213/223] Emitting module TALib
[214/223] Compiling TALib MAType.swift
[215/223] Compiling TALib TA.swift
[216/223] Compiling TACodeGenerator FunctionModel.swift
[217/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
[218/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 | }
[219/223] Compiling TACodeGenerator SwiftCodeEmitter.swift
BUILD FAILURE 6.3 android