Packages supported by TinyGo
The following table shows all Go standard library packages and whether they can be imported by TinyGo. If they can’t, you can click the ‘no’ link to jump to the explanation why the package cannot be compiled.
Note that the fact they can be imported, does not mean that all functions and types in the program can be used. For example, sometimes using some functions or types of the package will still trigger compiler errors.
Test results shown are for Linux.
Package | Importable | Passes tests |
---|---|---|
archive/tar | ✗ no | ✗ no |
archive/zip | ✔ yes | ✔ yes |
bufio | ✔ yes | ✗ no |
bytes | ✔ yes | ✗ no |
compress/bzip2 | ✔ yes | ✔ yes |
compress/flate | ✔ yes | ✔ yes |
compress/gzip | ✔ yes | ✗ no |
compress/lzw | ✔ yes | ✔ yes |
compress/zlib | ✔ yes | ✔ yes |
container/heap | ✔ yes | ✔ yes |
container/list | ✔ yes | ✔ yes |
container/ring | ✔ yes | ✔ yes |
context | ✔ yes | ✗ no |
crypto | ✔ yes | ✗ no |
crypto/aes | ✔ yes | ✗ no |
crypto/cipher | ✔ yes | ✗ no |
crypto/des | ✔ yes | ✔ yes |
crypto/dsa | ✔ yes | ✔ yes |
crypto/ecdsa | ✔ yes | ✗ no |
crypto/ed25519 | ✔ yes | ✗ no |
crypto/elliptic | ✔ yes | ✗ no |
crypto/hmac | ✔ yes | ✔ yes |
crypto/md5 | ✔ yes | ✔ yes |
crypto/rand | ✔ yes | ✔ yes |
crypto/rc4 | ✔ yes | ✔ yes |
crypto/rsa | ✔ yes | ✗ no |
crypto/sha1 | ✔ yes | ✔ yes |
crypto/sha256 | ✔ yes | ✔ yes |
crypto/sha512 | ✔ yes | ✔ yes |
crypto/subtle | ✔ yes | ✗ no |
crypto/tls | ✗ no | ✗ no |
crypto/x509 | ✔ yes | ✗ no |
crypto/x509/pkix | ✔ yes | ✔ yes |
database/sql | ✔ yes | ✗ no |
database/sql/driver | ✔ yes | ✗ no |
debug/buildinfo | ✗ no | ✗ no |
debug/dwarf | ✔ yes | ✔ yes |
debug/elf | ✔ yes | ✗ no |
debug/gosym | ✔ yes | ✗ no |
debug/macho | ✔ yes | ✔ yes |
debug/pe | ✔ yes | ✗ no |
debug/plan9obj | ✔ yes | ✔ yes |
embed | ✔ yes | ✗ no |
encoding | ✔ yes | ✔ yes |
encoding/ascii85 | ✔ yes | ✔ yes |
encoding/asn1 | ✔ yes | ✗ no |
encoding/base32 | ✔ yes | ✔ yes |
encoding/base64 | ✔ yes | ✔ yes |
encoding/binary | ✔ yes | ✗ no |
encoding/csv | ✔ yes | ✔ yes |
encoding/gob | ✗ no | ✗ no |
encoding/hex | ✔ yes | ✔ yes |
encoding/json | ✔ yes | ✗ no |
encoding/pem | ✔ yes | ✗ no |
encoding/xml | ✗ no | ✗ no |
errors | ✔ yes | ✗ no |
expvar | ✗ no | ✗ no |
flag | ✔ yes | ✗ no |
fmt | ✔ yes | ✗ no |
go/ast | ✔ yes | ✗ no |
go/build | ✔ yes | ✗ no |
go/build/constraint | ✔ yes | ✗ no |
go/constant | ✔ yes | ✗ no |
go/doc | ✔ yes | ✗ no |
go/format | ✔ yes | ✗ no |
go/importer | ✔ yes | ✗ no |
go/parser | ✔ yes | ✗ no |
go/printer | ✔ yes | ✗ no |
go/scanner | ✔ yes | ✔ yes |
go/token | ✔ yes | ✗ no |
go/types | ✔ yes | ✗ no |
hash | ✔ yes | ✔ yes |
hash/adler32 | ✔ yes | ✔ yes |
hash/crc32 | ✔ yes | ✗ no |
hash/crc64 | ✔ yes | ✔ yes |
hash/fnv | ✔ yes | ✔ yes |
hash/maphash | ✔ yes | ✗ no |
html | ✔ yes | ✔ yes |
html/template | ✔ yes | ✗ no |
image | ✔ yes | ✔ yes |
image/color | ✔ yes | ✗ no |
image/color/palette | ✔ yes | ✔ yes |
image/draw | ✔ yes | ✗ no |
image/gif | ✔ yes | ✗ no |
image/jpeg | ✔ yes | ✔ yes |
image/png | ✔ yes | ✗ no |
index/suffixarray | ✔ yes | ✔ yes |
io | ✔ yes | ✗ no |
io/fs | ✔ yes | ✗ no |
io/ioutil | ✔ yes | ✔ yes |
log | ✔ yes | ✗ no |
log/syslog | ✔ yes | ✗ no |
math | ✔ yes | ✔ yes |
math/big | ✔ yes | ✗ no |
math/bits | ✔ yes | ✗ no |
math/cmplx | ✔ yes | ✔ yes |
math/rand | ✔ yes | ✗ no |
mime | ✔ yes | ✗ no |
mime/multipart | ✔ yes | ✗ no |
mime/quotedprintable | ✔ yes | ✔ yes |
net | ✔ yes | ✔ yes |
net/http | ✗ no | ✗ no |
net/http/cgi | ✗ no | ✗ no |
net/http/cookiejar | ✗ no | ✗ no |
net/http/fcgi | ✗ no | ✗ no |
net/http/httptest | ✗ no | ✗ no |
net/http/httptrace | ✗ no | ✗ no |
net/http/httputil | ✗ no | ✗ no |
net/http/pprof | ✗ no | ✗ no |
net/mail | ✔ yes | ✔ yes |
net/netip | ✔ yes | ✗ no |
net/rpc | ✗ no | ✗ no |
net/rpc/jsonrpc | ✗ no | ✗ no |
net/smtp | ✗ no | ✗ no |
net/textproto | ✔ yes | ✗ no |
net/url | ✔ yes | ✗ no |
os | ✔ yes | ✔ yes |
os/exec | ✔ yes | ✗ no |
os/signal | ✔ yes | ✗ no |
os/user | ✗ no | ✗ no |
path | ✔ yes | ✔ yes |
path/filepath | ✔ yes | ✗ no |
plugin | ✗ no | ✗ no |
reflect | ✔ yes | ✔ yes |
regexp | ✔ yes | ✗ no |
regexp/syntax | ✔ yes | ✗ no |
sort | ✔ yes | ✗ no |
strconv | ✔ yes | ✔ yes |
strings | ✔ yes | ✗ no |
sync | ✔ yes | ✔ yes |
sync/atomic | ✔ yes | ✗ no |
syscall | ✔ yes | ✗ no |
testing | ✔ yes | ✔ yes |
testing/fstest | ✔ yes | ✔ yes |
testing/iotest | ✔ yes | ✔ yes |
testing/quick | ✔ yes | ✗ no |
text/scanner | ✔ yes | ✔ yes |
text/tabwriter | ✔ yes | ✔ yes |
text/template | ✔ yes | ✗ no |
text/template/parse | ✔ yes | ✔ yes |
time | ✔ yes | ✗ no |
time/tzdata | ✗ no | ✗ no |
unicode | ✔ yes | ✔ yes |
unicode/utf16 | ✔ yes | ✔ yes |
unicode/utf8 | ✔ yes | ✔ yes |
unsafe | ✔ yes | ✔ yes |
archive/tar
This package cannot be imported because the following dependencies cannot be compiled:
bufio
The compiler gave the following error when running the tests for this package:
--- FAIL: TestReadStringAllocs (0.00s)
Unexpected number of allocations, got 0.000000, want 1
FAIL
FAIL bufio 0.315s
FAIL
bytes
The compiler gave the following error when running the tests for this package:
# bytes_test
/home/ayke/src/github.com/tinygo-org/tinygo/src/sync/mutex.go:17:7: interp: running for more than 3m0s, timing out (executed calls: 304674)
<badref> = icmp eqfatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x7f60eff95d44]
runtime stack:
runtime.throw({0x2c7b65?, 0x2?})
/usr/local/go/src/runtime/panic.go:992 +0x71
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:802 +0x389
goroutine 21 [syscall]:
runtime.cgocall(0x85f840, 0xc0069f5ba0)
/usr/local/go/src/runtime/cgocall.go:157 +0x5c fp=0xc0069f5b78 sp=0xc0069f5b40 pc=0x50e8dc
tinygo.org/x/go-llvm._Cfunc_LLVMDumpValue(0x7f60bc3ba6c0)
[...more lines following...]
compress/gzip
The compiler gave the following error when running the tests for this package:
--- FAIL: TestGZIPFilesHaveZeroMTimes (0.67s)
skipping test on non-builder
SkipNow is incomplete, requires runtime.Goexit()
FAIL
FAIL compress/gzip 72.849s
FAIL
context
The compiler gave the following error when running the tests for this package:
# context_test
/usr/local/go1.18.6/src/context/x_test.go:12:74: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestBackground: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:13:68: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestTODO: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:14:74: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestWithCancel: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:15:83: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestParentFinishesChild: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:16:82: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestChildFinishesFirst: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:17:72: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestDeadline: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:18:71: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestTimeout: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:19:79: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestCanceledTimeout: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:20:70: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestValues: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:21:70: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestAllocs: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:22:83: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestSimultaneousCancels: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:23:82: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestInterlockedCancels: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:24:76: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestLayersCancel: *testing.T does not implement context.testingT (missing method Deadline)
/usr/local/go1.18.6/src/context/x_test.go:25:77: cannot use t (variable of type *testing.T) as context.testingT value in argument to XTestLayersTimeout: *testing.T does not implement context.testingT (missing method Deadline)
[...more lines following...]
crypto
The compiler gave the following error when running the tests for this package:
ld.lld-14: error: undefined symbol: crypto/cipher.xorBytesSSE2
>>> referenced by xor_amd64.go:18 (/usr/local/go1.18.6/src/crypto/cipher/xor_amd64.go:18)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-949791DEA8E6E45F71C8B6AE668E125F19F36856:(crypto/cipher.xorBytes)
ld.lld-14: error: undefined symbol: crypto/aes.encryptBlockAsm
>>> referenced by cipher_asm.go:68 (/usr/local/go1.18.6/src/crypto/aes/cipher_asm.go:68)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-949791DEA8E6E45F71C8B6AE668E125F19F36856:((*crypto/aes.aesCipherAsm).Encrypt)
error: failed to link /tmp/tinygo2862753490/main: exit status 1
FAIL
crypto/aes
The compiler gave the following error when running the tests for this package:
ld.lld-14: error: undefined symbol: crypto/aes.decryptBlockAsm
>>> referenced by cipher_asm.go:81 (/usr/local/go1.18.6/src/crypto/aes/cipher_asm.go:81)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-CA4753056032B6CD353BF1476BC8AE01682D11C8:((*crypto/aes.aesCipherAsm).Decrypt)
ld.lld-14: error: undefined symbol: crypto/aes.encryptBlockAsm
>>> referenced by cipher_asm.go:68 (/usr/local/go1.18.6/src/crypto/aes/cipher_asm.go:68)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-CA4753056032B6CD353BF1476BC8AE01682D11C8:((*crypto/aes.aesCipherAsm).Encrypt)
error: failed to link /tmp/tinygo2032559460/main: exit status 1
FAIL
crypto/cipher
The compiler gave the following error when running the tests for this package:
ld.lld-14: error: undefined symbol: crypto/cipher.xorBytesSSE2
>>> referenced by xor_amd64.go:18 (/usr/local/go1.18.6/src/crypto/cipher/xor_amd64.go:18)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-25FB53323ADDEF3CCF37F77FC23E8FFFE1088DD9:(crypto/cipher.xorBytes)
ld.lld-14: error: undefined symbol: crypto/aes.gcmAesInit
>>> referenced by aes_gcm.go:56 (/usr/local/go1.18.6/src/crypto/aes/aes_gcm.go:56)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-25FB53323ADDEF3CCF37F77FC23E8FFFE1088DD9:(crypto/cipher.newGCMWithNonceAndTagSize)
ld.lld-14: error: undefined symbol: crypto/aes.decryptBlockAsm
>>> referenced by cipher_asm.go:81 (/usr/local/go1.18.6/src/crypto/aes/cipher_asm.go:81)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-25FB53323ADDEF3CCF37F77FC23E8FFFE1088DD9:((*crypto/aes.aesCipherAsm).Decrypt)
ld.lld-14: error: undefined symbol: crypto/aes.encryptBlockAsm
>>> referenced by cipher_asm.go:68 (/usr/local/go1.18.6/src/crypto/aes/cipher_asm.go:68)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-25FB53323ADDEF3CCF37F77FC23E8FFFE1088DD9:((*crypto/aes.aesCipherAsm).Encrypt)
[...more lines following...]
crypto/ecdsa
The compiler gave the following error when running the tests for this package:
ld.lld-14: error: undefined symbol: crypto/cipher.xorBytesSSE2
>>> referenced by xor_amd64.go:18 (/usr/local/go1.18.6/src/crypto/cipher/xor_amd64.go:18)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-96614A4D104165B16CF0826152A1C9CCA84DA924:((crypto/cipher.StreamReader).Read)
ld.lld-14: error: undefined symbol: crypto/aes.encryptBlockAsm
>>> referenced by cipher_asm.go:68 (/usr/local/go1.18.6/src/crypto/aes/cipher_asm.go:68)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-96614A4D104165B16CF0826152A1C9CCA84DA924:((*crypto/aes.aesCipherAsm).Encrypt)
ld.lld-14: error: undefined symbol: crypto/elliptic.p256Mul
>>> referenced by p256_asm.go:284 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:284)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-96614A4D104165B16CF0826152A1C9CCA84DA924:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:285 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:285)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-96614A4D104165B16CF0826152A1C9CCA84DA924:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:356 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:356)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-96614A4D104165B16CF0826152A1C9CCA84DA924:((*crypto/elliptic.p256Point).p256PointToAffine)
[...more lines following...]
crypto/ed25519
The compiler gave the following error when running the tests for this package:
--- FAIL: TestEd25519Vectors (0.00s)
failed to run `go mod download -json filippo.io/mostly-harmless/ed25519vectors@v0.0.0-20210322192420-30a2d7243a94`, output:
FailNow is incomplete, requires runtime.Goexit()
unexpected end of JSON input
FailNow is incomplete, requires runtime.Goexit()
failed to read ed25519vectors.json: open ed25519vectors.json: file does not exist
FailNow is incomplete, requires runtime.Goexit()
unexpected end of JSON input
FailNow is incomplete, requires runtime.Goexit()
FAIL
FAIL crypto/ed25519 0.861s
FAIL
crypto/elliptic
The compiler gave the following error when running the tests for this package:
ld.lld-14: error: undefined symbol: crypto/elliptic.p256Mul
>>> referenced by p256_asm.go:284 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:284)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-8693EC8B52B2B3F99B7E1A375582EB30DEBD4532:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:285 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:285)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-8693EC8B52B2B3F99B7E1A375582EB30DEBD4532:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:319 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:319)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-8693EC8B52B2B3F99B7E1A375582EB30DEBD4532:((*crypto/elliptic.p256Point).p256PointToAffine)
>>> referenced 20 more times
ld.lld-14: error: undefined symbol: crypto/elliptic.p256PointDoubleAsm
>>> referenced by p256_asm.go:460 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:460)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-8693EC8B52B2B3F99B7E1A375582EB30DEBD4532:((*crypto/elliptic.p256Point).p256ScalarMult)
>>> referenced by p256_asm.go:461 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:461)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-8693EC8B52B2B3F99B7E1A375582EB30DEBD4532:((*crypto/elliptic.p256Point).p256ScalarMult)
>>> referenced by p256_asm.go:462 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:462)
[...more lines following...]
crypto/rsa
The compiler gave the following error when running the tests for this package:
ld.lld-14: error: undefined symbol: crypto/cipher.xorBytesSSE2
>>> referenced by xor_amd64.go:18 (/usr/local/go1.18.6/src/crypto/cipher/xor_amd64.go:18)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-B6384F61356C78646301C371098314DAECF7356F:((crypto/cipher.StreamReader).Read)
ld.lld-14: error: undefined symbol: crypto/aes.encryptBlockAsm
>>> referenced by cipher_asm.go:68 (/usr/local/go1.18.6/src/crypto/aes/cipher_asm.go:68)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-B6384F61356C78646301C371098314DAECF7356F:((*crypto/aes.aesCipherAsm).Encrypt)
ld.lld-14: error: undefined symbol: crypto/elliptic.p256Mul
>>> referenced by p256_asm.go:284 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:284)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-B6384F61356C78646301C371098314DAECF7356F:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:285 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:285)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-B6384F61356C78646301C371098314DAECF7356F:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:356 (/usr/local/go1.18.6/src/crypto/elliptic/p256_asm.go:356)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-B6384F61356C78646301C371098314DAECF7356F:((*crypto/elliptic.p256Point).p256PointToAffine)
[...more lines following...]
crypto/subtle
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Type).NumIn()
FAIL crypto/subtle 0.001s
FAIL
crypto/tls
The compiler gave the following error when this package was imported:
ld.lld-14: error: undefined symbol: vendor/golang.org/x/sys/cpu.cpuid
>>> referenced by cpu_x86.go:64 (/usr/local/go1.18.6/src/vendor/golang.org/x/sys/cpu/cpu_x86.go:64)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-D1D261DAB7C6E5F4D5E1B9FA8DF98FB03DF78C31:(runtime.run$1$gowrapper)
>>> referenced by cpu_x86.go:70 (/usr/local/go1.18.6/src/vendor/golang.org/x/sys/cpu/cpu_x86.go:70)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-D1D261DAB7C6E5F4D5E1B9FA8DF98FB03DF78C31:(runtime.run$1$gowrapper)
>>> referenced by cpu_x86.go:109 (/usr/local/go1.18.6/src/vendor/golang.org/x/sys/cpu/cpu_x86.go:109)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-D1D261DAB7C6E5F4D5E1B9FA8DF98FB03DF78C31:(runtime.run$1$gowrapper)
>>> referenced 1 more times
ld.lld-14: error: undefined symbol: vendor/golang.org/x/sys/cpu.xgetbv
>>> referenced by cpu_x86.go:88 (/usr/local/go1.18.6/src/vendor/golang.org/x/sys/cpu/cpu_x86.go:88)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-D1D261DAB7C6E5F4D5E1B9FA8DF98FB03DF78C31:(runtime.run$1$gowrapper)
error: failed to link /tmp/tinygo3417349174/main: exit status 1
crypto/x509
The compiler gave the following error when running the tests for this package:
ld.lld-14: error: undefined symbol: crypto/cipher.xorBytesSSE2
>>> referenced by xor_amd64.go:18 (/usr/local/go1.18.6/src/crypto/cipher/xor_amd64.go:18)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-3EDAFF76F77DB8AE43A27641CDCE98BBE04FAD89:(crypto/cipher.xorBytes)
ld.lld-14: error: undefined symbol: crypto/aes.decryptBlockAsm
>>> referenced by cipher_asm.go:81 (/usr/local/go1.18.6/src/crypto/aes/cipher_asm.go:81)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-3EDAFF76F77DB8AE43A27641CDCE98BBE04FAD89:((*crypto/aes.aesCipherAsm).Decrypt)
ld.lld-14: error: undefined symbol: crypto/aes.encryptBlockAsm
>>> referenced by cipher_asm.go:68 (/usr/local/go1.18.6/src/crypto/aes/cipher_asm.go:68)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-3EDAFF76F77DB8AE43A27641CDCE98BBE04FAD89:((*crypto/aes.aesCipherAsm).Encrypt)
ld.lld-14: error: undefined symbol: vendor/golang.org/x/sys/cpu.cpuid
>>> referenced by cpu_x86.go:64 (/usr/local/go1.18.6/src/vendor/golang.org/x/sys/cpu/cpu_x86.go:64)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-3EDAFF76F77DB8AE43A27641CDCE98BBE04FAD89:(runtime.run$1$gowrapper)
[...more lines following...]
database/sql
The compiler gave the following error when running the tests for this package:
# database/sql
/usr/local/go1.18.6/src/database/sql/sql_test.go:4556:4: b.SetParallelism undefined (type *testing.B has no field or method SetParallelism)
FAIL
database/sql/driver
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).Bytes()
FAIL database/sql/driver 0.002s
FAIL
debug/buildinfo
The compiler gave the following error when this package was imported:
# debug/buildinfo
/usr/local/go1.18.6/src/debug/buildinfo/buildinfo.go:78:19: ParseBuildInfo not declared by package debug
debug/elf
The compiler gave the following error when running the tests for this package:
# debug/elf
/usr/local/go1.18.6/src/debug/elf/file_test.go:905:10: ResolveIPAddr not declared by package net
FAIL
debug/gosym
The compiler gave the following error when running the tests for this package:
panic: runtime error: nil pointer dereference
FAIL debug/gosym 0.004s
FAIL
debug/pe
The compiler gave the following error when running the tests for this package:
panic: runtime error: index out of range
FAIL debug/pe 0.004s
FAIL
embed
The compiler gave the following error when running the tests for this package:
ld.lld-14: error: undefined symbol: vendor/golang.org/x/sys/cpu.cpuid
>>> referenced by main
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-C43B0A7BA1F52489FB49202AC232B5E3D0CEDFF4:(runtime.initAll)
>>> referenced by main
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-C43B0A7BA1F52489FB49202AC232B5E3D0CEDFF4:(runtime.initAll)
>>> referenced by main
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-C43B0A7BA1F52489FB49202AC232B5E3D0CEDFF4:(runtime.initAll)
>>> referenced 1 more times
ld.lld-14: error: undefined symbol: vendor/golang.org/x/sys/cpu.xgetbv
>>> referenced by main
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-C43B0A7BA1F52489FB49202AC232B5E3D0CEDFF4:(runtime.initAll)
error: failed to link /tmp/tinygo1088601438/main: exit status 1
FAIL
encoding/asn1
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).Addr()
FAIL encoding/asn1 0.003s
FAIL
encoding/binary
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).Slice()
FAIL encoding/binary 0.002s
FAIL
encoding/gob
The compiler gave the following error when this package was imported:
# encoding/gob
/usr/local/go1.18.6/src/encoding/gob/decode.go:562:21: MakeMapWithSize not declared by package reflect
encoding/json
The compiler gave the following error when running the tests for this package:
# encoding/json
/usr/local/go1.18.6/src/encoding/json/bench_test.go:344:22: StructOf not declared by package reflect
/usr/local/go1.18.6/src/encoding/json/stream_test.go:298:15: Pipe not declared by package net
FAIL
encoding/pem
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).MapKeys()
FAIL encoding/pem 0.007s
FAIL
encoding/xml
The compiler gave the following error when this package was imported:
# encoding/xml
/usr/local/go1.18.6/src/encoding/xml/typeinfo.go:318:14: typ.FieldByIndex undefined (type reflect.Type has no field or method FieldByIndex)
/usr/local/go1.18.6/src/encoding/xml/typeinfo.go:319:14: typ.FieldByIndex undefined (type reflect.Type has no field or method FieldByIndex)
errors
The compiler gave the following error when running the tests for this package:
panic: unimplemented: reflect.Zero()
FAIL errors 0.006s
FAIL
expvar
This package cannot be imported because the following dependencies cannot be compiled:
flag
The compiler gave the following error when running the tests for this package:
flag provided but not defined: -x
panic: unimplemented: reflect.Zero()
FAIL flag 0.004s
FAIL
fmt
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).Slice()
FAIL fmt 0.003s
FAIL
go/ast
The compiler gave the following error when running the tests for this package:
panic: runtime error: type assert failed
FAIL go/ast 0.014s
FAIL
go/build
The compiler gave the following error when running the tests for this package:
# go/build
/usr/local/go1.18.6/src/go/build/build_test.go:556:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18.6/src/go/build/build_test.go:577:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18.6/src/go/build/build_test.go:599:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18.6/src/go/build/build_test.go:629:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18.6/src/go/build/build_test.go:641:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18.6/src/go/build/build_test.go:642:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18.6/src/go/build/build_test.go:695:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18.6/src/go/build/build_test.go:696:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18.6/src/go/build/build_test.go:697:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
FAIL
go/build/constraint
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).MapKeys()
FAIL go/build/constraint 0.007s
FAIL
go/constant
The compiler gave the following error when running the tests for this package:
panic: runtime error: divide by zero
FAIL go/constant 0.013s
FAIL
go/doc
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Type).NumOut()
FAIL go/doc 0.011s
FAIL
go/format
The compiler gave the following error when running the tests for this package:
FAIL go/format 374.574s
FAIL
go/importer
The compiler gave the following error when running the tests for this package:
panic: runtime error: nil pointer dereference
FAIL go/importer 0.001s
FAIL
go/parser
The compiler gave the following error when running the tests for this package:
FAIL go/parser 750.695s
FAIL
go/printer
The compiler gave the following error when running the tests for this package:
FAIL go/printer 740.362s
FAIL
go/token
The compiler gave the following error when running the tests for this package:
# encoding/gob
/usr/local/go1.18.6/src/encoding/gob/decode.go:562:21: MakeMapWithSize not declared by package reflect
FAIL
go/types
The compiler gave the following error when running the tests for this package:
# go/types_test
/usr/local/go1.18.6/src/go/types/self_test.go:98:4: b.ReportMetric undefined (type *testing.B has no field or method ReportMetric)
FAIL
hash/crc32
The compiler gave the following error when running the tests for this package:
panic: not available
FAIL hash/crc32 0.007s
FAIL
hash/maphash
The compiler gave the following error when running the tests for this package:
panic: runtime error: out of memory
FAIL hash/maphash 100.856s
FAIL
html/template
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Type).NumOut()
FAIL html/template 0.006s
FAIL
image/color
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Type).NumIn()
FAIL image/color 0.007s
FAIL
image/draw
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Type).NumIn()
FAIL image/draw 0.094s
FAIL
image/gif
The compiler gave the following error when running the tests for this package:
# image/gif
/usr/local/go1.18.6/src/image/gif/reader_test.go:415:14: SetGCPercent not declared by package debug
/usr/local/go1.18.6/src/image/gif/reader_test.go:415:33: SetGCPercent not declared by package debug
/usr/local/go1.18.6/src/image/gif/reader_test.go:421:26: s1.HeapAlloc undefined (type *runtime.MemStats has no field or method HeapAlloc)
/usr/local/go1.18.6/src/image/gif/reader_test.go:421:41: s0.HeapAlloc undefined (type *runtime.MemStats has no field or method HeapAlloc)
FAIL
image/png
The compiler gave the following error when running the tests for this package:
panic: runtime error: out of memory
FAIL image/png 2.921s
FAIL
io
The compiler gave the following error when running the tests for this package:
--- FAIL: TestMultiWriter_WriteStringSingleAlloc (0.00s)
num allocations = 0; want 1
--- FAIL: TestMultiWriterSingleChainFlatten (0.00s)
multiWriter did not flatten chained multiWriters: expected writeDepth 12, got 4
--- FAIL: TestMultiReaderFlatten (0.00s)
multiReader did not flatten chained multiReaders: expected readDepth 3, got 1
--- FAIL: TestMultiReaderFreesExhaustedReaders (5.00s)
timeout waiting for collection of buf1
FailNow is incomplete, requires runtime.Goexit()
FAIL
FAIL io 5.083s
FAIL
io/fs
The compiler gave the following error when running the tests for this package:
FAIL io/fs 0.010s
FAIL
log
The compiler gave the following error when running the tests for this package:
--- FAIL: TestAll (0.01s)
log output should match "^.*/[A-Za-z0-9_\\-]+\\.go:(61|63): hello 23 world$" is "???:0: hello 23 world"
log output should match "^.*/[A-Za-z0-9_\\-]+\\.go:(61|63): hello 23 world$" is "???:0: hello 23 world"
log output should match "^[A-Za-z0-9_\\-]+\\.go:(61|63): hello 23 world$" is "???:0: hello 23 world"
log output should match "^[A-Za-z0-9_\\-]+\\.go:(61|63): hello 23 world$" is "???:0: hello 23 world"
log output should match "^[A-Za-z0-9_\\-]+\\.go:(61|63): hello 23 world$" is "???:0: hello 23 world"
log output should match "^[A-Za-z0-9_\\-]+\\.go:(61|63): hello 23 world$" is "???:0: hello 23 world"
log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] .*/[A-Za-z0-9_\\-]+\\.go:(61|63): hello 23 world$" is "XXX2022/09/29 18:41:45.180641 ???:0: hello 23 world"
log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] .*/[A-Za-z0-9_\\-]+\\.go:(61|63): hello 23 world$" is "XXX2022/09/29 18:41:45.180706 ???:0: hello 23 world"
log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] [A-Za-z0-9_\\-]+\\.go:(61|63): hello 23 world$" is "XXX2022/09/29 18:41:45.181471 ???:0: hello 23 world"
log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] [A-Za-z0-9_\\-]+\\.go:(61|63): hello 23 world$" is "XXX2022/09/29 18:41:45.181544 ???:0: hello 23 world"
log output should match "^[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] .*/[A-Za-z0-9_\\-]+\\.go:(61|63): XXXhello 23 world$" is "2022/09/29 18:41:45.182159 ???:0: XXXhello 23 world"
log output should match "^[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] .*/[A-Za-z0-9_\\-]+\\.go:(61|63): XXXhello 23 world$" is "2022/09/29 18:41:45.182420 ???:0: XXXhello 23 world"
log output should match "^[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] [A-Za-z0-9_\\-]+\\.go:(61|63): XXXhello 23 world$" is "2022/09/29 18:41:45.182505 ???:0: XXXhello 23 world"
log output should match "^[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] [A-Za-z0-9_\\-]+\\.go:(61|63): XXXhello 23 world$" is "2022/09/29 18:41:45.182696 ???:0: XXXhello 23 world"
[...more lines following...]
log/syslog
The compiler gave the following error when running the tests for this package:
# log/syslog
/usr/local/go1.18.6/src/log/syslog/syslog_test.go:22:25: PacketConn not declared by package net
/usr/local/go1.18.6/src/log/syslog/syslog_test.go:35:21: oe.Temporary undefined (type *net.OpError has no field or method Temporary)
/usr/local/go1.18.6/src/log/syslog/syslog_test.go:110:15: ListenPacket not declared by package net
FAIL
math/big
The compiler gave the following error when running the tests for this package:
# encoding/gob
/usr/local/go1.18.6/src/encoding/gob/decode.go:562:21: MakeMapWithSize not declared by package reflect
FAIL
math/bits
The compiler gave the following error when running the tests for this package:
panic: runtime error: divide by zero
FAIL math/bits 0.003s
FAIL
math/rand
The compiler gave the following error when running the tests for this package:
# math/rand_test
/usr/local/go1.18.6/src/math/rand/regress_test.go:38:18: rv.Type().Method undefined (type reflect.Type has no field or method Method)
/usr/local/go1.18.6/src/math/rand/regress_test.go:39:12: rv.Method undefined (type reflect.Value has no field or method Method)
FAIL
mime
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).MapKeys()
FAIL mime 0.007s
FAIL
mime/multipart
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).MapRange()
FAIL mime/multipart 0.007s
FAIL
net/http
This package cannot be imported because the following dependencies cannot be compiled:
net/http/cgi
This package cannot be imported because the following dependencies cannot be compiled:
net/http/cookiejar
This package cannot be imported because the following dependencies cannot be compiled:
net/http/fcgi
This package cannot be imported because the following dependencies cannot be compiled:
net/http/httptest
This package cannot be imported because the following dependencies cannot be compiled:
net/http/httptrace
This package cannot be imported because the following dependencies cannot be compiled:
net/http/httputil
This package cannot be imported because the following dependencies cannot be compiled:
net/http/pprof
This package cannot be imported because the following dependencies cannot be compiled:
net/netip
The compiler gave the following error when running the tests for this package:
# net/netip_test
/usr/local/go1.18.6/src/net/netip/netip_test.go:1815:25: UDPAddr not declared by package net
/usr/local/go1.18.6/src/net/netip/fuzz_test.go:177:32: stdip.IsPrivate undefined (type net.IP has no field or method IsPrivate)
FAIL
net/rpc
This package cannot be imported because the following dependencies cannot be compiled:
net/rpc/jsonrpc
This package cannot be imported because the following dependencies cannot be compiled:
net/smtp
This package cannot be imported because the following dependencies cannot be compiled:
net/textproto
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).MapKeys()
FAIL net/textproto 0.006s
FAIL
net/url
The compiler gave the following error when running the tests for this package:
# encoding/gob
/usr/local/go1.18.6/src/encoding/gob/decode.go:562:21: MakeMapWithSize not declared by package reflect
FAIL
os/exec
The compiler gave the following error when running the tests for this package:
# os/user
../../../../../usr/local/go1.18.6/src/os/user/cgo_lookup_unix.go:18:6: not implemented: build constraints in #cgo line
FAIL
os/signal
The compiler gave the following error when running the tests for this package:
# os/signal
/usr/local/go1.18.6/src/os/signal/signal_test.go:435:23: t.Deadline undefined (type *testing.T has no field or method Deadline)
/usr/local/go1.18.6/src/os/signal/signal_test.go:479:23: t.Deadline undefined (type *testing.T has no field or method Deadline)
/usr/local/go1.18.6/src/os/signal/signal_test.go:549:24: t.Deadline undefined (type *testing.T has no field or method Deadline)
/usr/local/go1.18.6/src/os/signal/signal_test.go:599:23: t.Deadline undefined (type *testing.T has no field or method Deadline)
/usr/local/go1.18.6/src/os/signal/signal_test.go:735:25: t.Deadline undefined (type *testing.T has no field or method Deadline)
FAIL
os/user
The compiler gave the following error when this package was imported:
# os/user
../../../../../usr/local/go1.18.6/src/os/user/cgo_lookup_unix.go:18:6: not implemented: build constraints in #cgo line
path/filepath
The compiler gave the following error when running the tests for this package:
FAIL path/filepath 0.011s
FAIL
plugin
The compiler gave the following error when this package was imported:
# plugin
../../../../../usr/local/go1.18.6/src/plugin/plugin_dlopen.go:10:6: not implemented: build constraints in #cgo line
regexp
The compiler gave the following error when running the tests for this package:
FAIL regexp 0.266s
FAIL
regexp/syntax
The compiler gave the following error when running the tests for this package:
# regexp/syntax
/usr/local/go1.18.6/src/unicode/letter.go:122:6: interp: running for more than 3m0s, timing out (executed calls: 2918928)
<badref> = alloca fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x108 pc=0x7f83239ef3b7]
runtime stack:
runtime.throw({0x2c7b65?, 0x7f83239c054f?})
/usr/local/go/src/runtime/panic.go:992 +0x71
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:802 +0x389
goroutine 8 [syscall]:
runtime.cgocall(0x85f840, 0xc004fadba0)
/usr/local/go/src/runtime/cgocall.go:157 +0x5c fp=0xc004fadb78 sp=0xc004fadb40 pc=0x50e8dc
tinygo.org/x/go-llvm._Cfunc_LLVMDumpValue(0x2f79250)
[...more lines following...]
sort
The compiler gave the following error when running the tests for this package:
--- FAIL: TestCountStableOps (4.91s)
Counting skipped as non-verbose mode.
SkipNow is incomplete, requires runtime.Goexit()
Stable 100 elements: 900 Swap, 774 Less
Stable 300 elements: 3896 Swap, 3023 Less
Stable 1000 elements: 19935 Swap, 12480 Less
Stable 3000 elements: 82471 Swap, 42842 Less
Stable 10000 elements: 349396 Swap, 165950 Less
Stable 30000 elements: 1339352 Swap, 558151 Less
Stable 100000 elements: 5787542 Swap, 2084840 Less
Stable 300000 elements: 20444960 Swap, 6868106 Less
Stable 1000000 elements: 84504188 Swap, 25119300 Less
--- FAIL: TestCountSortOps (0.99s)
Counting skipped as non-verbose mode.
SkipNow is incomplete, requires runtime.Goexit()
[...more lines following...]
strings
The compiler gave the following error when running the tests for this package:
# strings_test
/home/ayke/src/github.com/tinygo-org/tinygo/src/runtime/runtime.go:37:6: interp: running for more than 3m0s, timing out (executed calls: 303856)
callfatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7ff97639c5d8]
runtime stack:
runtime.throw({0x2c7b65?, 0x7ff97923d1f6?})
/usr/local/go/src/runtime/panic.go:992 +0x71
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:802 +0x389
goroutine 35 [syscall]:
runtime.cgocall(0x85f840, 0xc004269ba0)
/usr/local/go/src/runtime/cgocall.go:157 +0x5c fp=0xc004269b78 sp=0xc004269b40 pc=0x50e8dc
tinygo.org/x/go-llvm._Cfunc_LLVMDumpValue(0x7ff92cafd6b0)
[...more lines following...]
sync/atomic
The compiler gave the following error when running the tests for this package:
# sync/atomic_test
/usr/local/go1.18.6/src/sync/atomic/atomic_test.go:1202:14: SetGCPercent not declared by package debug
/usr/local/go1.18.6/src/sync/atomic/atomic_test.go:1202:33: SetGCPercent not declared by package debug
FAIL
syscall
The compiler gave the following error when running the tests for this package:
# os/user
../../../../../usr/local/go1.18.6/src/os/user/cgo_lookup_unix.go:18:6: not implemented: build constraints in #cgo line
FAIL
testing/quick
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Type).NumIn()
FAIL testing/quick 0.004s
FAIL
text/template
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Type).NumOut()
FAIL text/template 0.003s
FAIL
time
The compiler gave the following error when running the tests for this package:
# encoding/gob
/usr/local/go1.18.6/src/encoding/gob/decode.go:562:21: MakeMapWithSize not declared by package reflect
FAIL
time/tzdata
The compiler gave the following error when this package was imported:
ld.lld-14: error: undefined symbol: time.registerLoadFromEmbeddedTZData
>>> referenced by scheduler_any.go:25 (/home/ayke/src/github.com/tinygo-org/tinygo/src/runtime/scheduler_any.go:25)
>>> /home/ayke/.cache/tinygo/thinlto/llvmcache-191D9438BAF043FD1177ECD11661EC8F3C4DE9FE:(runtime.run$1$gowrapper)
error: failed to link /tmp/tinygo831970216/main: exit status 1