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 | ✗ no | ✗ no |
crypto/elliptic | ✔ yes | ✗ no |
crypto/hmac | ✔ yes | ✗ no |
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 | ✗ no | ✗ 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 | ✗ no |
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 | ✗ no |
image/color | ✔ yes | ✗ no |
image/color/palette | ✔ yes | ✔ yes |
image/draw | ✔ yes | ✗ no |
image/gif | ✔ yes | ✗ no |
image/jpeg | ✔ yes | ✗ no |
image/png | ✔ yes | ✗ no |
index/suffixarray | ✔ yes | ✔ yes |
io | ✔ yes | ✗ no |
io/fs | ✔ yes | ✔ yes |
io/ioutil | ✔ yes | ✗ no |
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 | ✗ no |
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 | ✗ no |
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 | ✗ no |
text/template | ✔ yes | ✗ no |
text/template/parse | ✔ yes | ✗ no |
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:
tinygo:ld.lld: error: undefined symbol: time.startTimer
>>> referenced by sleep.go:96 (/usr/local/go1.18/src/time/sleep.go:96)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-2E4DEF460220052B04593F78B666BEE2895C1305:(bufio_test.TestZeroReader)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo845458571/main: exit status 1
FAIL
bytes
The compiler gave the following error when running the tests for this package:
# bytes_test
/home/dank/src/tinygo/src/sync/mutex.go:17:7: interp: running for more than 180 seconds, timing out (executed calls: 423948)
%0 = icmp eq %sync.Mutex* %m, null, !dbg !3149
traceback:
/home/dank/src/tinygo/src/sync/mutex.go:17:7:
%0 = icmp eq %sync.Mutex* %m, null, !dbg !3149
/usr/local/go1.18/src/math/rand/rand.go:388:11:
call void @"(*sync.Mutex).Lock"(%sync.Mutex* %1, i8* undef), !dbg !3161
/usr/local/go1.18/src/math/rand/rand.go:84:50:
%3 = call i64 @"interface:{Int63:func:{}{basic:int64},Seed:func:{basic:int64}{}}.Int63$invoke"(i8* %invoke.func.value, i64 %invoke.func.typecode, i8* undef), !dbg !3134
/usr/local/go1.18/src/math/rand/rand.go:98:52:
%0 = call i64 @"(*math/rand.Rand).Int63"(%"math/rand.Rand"* %r, i8* undef), !dbg !3133
/usr/local/go1.18/src/math/rand/rand.go:133:14:
%11 = call i32 @"(*math/rand.Rand).Int31"(%"math/rand.Rand"* %r, i8* undef), !dbg !3163
[...more lines following...]
compress/gzip
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: time.startTimer
>>> referenced by sleep.go:96 (/usr/local/go1.18/src/time/sleep.go:96)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-BA678F9BE184E5A205E2DAC72E56E8647CC53E76:(compress/gzip.TestIssue6550)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo3470772217/main: exit status 1
FAIL
context
The compiler gave the following error when running the tests for this package:
# context_test
/usr/local/go1.18/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/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/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/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/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/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/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/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/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/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/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/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/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/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:
tinygo:ld.lld: error: undefined symbol: crypto/cipher.xorBytesSSE2
>>> referenced by xor_amd64.go:18 (/usr/local/go1.18/src/crypto/cipher/xor_amd64.go:18)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-6BE3DFA190B9D55236F81CB6EB4A080DAF5C2F13:(crypto/cipher.xorBytes)
tinygo:ld.lld: error: undefined symbol: crypto/aes.encryptBlockAsm
>>> referenced by cipher_asm.go:68 (/usr/local/go1.18/src/crypto/aes/cipher_asm.go:68)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-6BE3DFA190B9D55236F81CB6EB4A080DAF5C2F13:((*crypto/aes.aesCipherAsm).Encrypt)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo1242974899/main: exit status 1
FAIL
crypto/aes
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: crypto/aes.encryptBlockAsm
>>> referenced by cipher_asm.go:68 (/usr/local/go1.18/src/crypto/aes/cipher_asm.go:68)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-F9812E83E730AF5AD919527A9DA5F93C5C6C430C:((*crypto/aes.aesCipherAsm).Encrypt)
tinygo:ld.lld: error: undefined symbol: crypto/aes.decryptBlockAsm
>>> referenced by cipher_asm.go:81 (/usr/local/go1.18/src/crypto/aes/cipher_asm.go:81)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-F9812E83E730AF5AD919527A9DA5F93C5C6C430C:((*crypto/aes.aesCipherAsm).Decrypt)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo1295193122/main: exit status 1
FAIL
crypto/cipher
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: crypto/cipher.xorBytesSSE2
>>> referenced by xor_amd64.go:18 (/usr/local/go1.18/src/crypto/cipher/xor_amd64.go:18)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-75ED93C0074B0B39C7925165ECA9C04DA4196729:(crypto/cipher.xorBytes)
tinygo:ld.lld: error: undefined symbol: crypto/aes.gcmAesInit
>>> referenced by aes_gcm.go:56 (/usr/local/go1.18/src/crypto/aes/aes_gcm.go:56)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-75ED93C0074B0B39C7925165ECA9C04DA4196729:(crypto/cipher.newGCMWithNonceAndTagSize)
tinygo:ld.lld: error: undefined symbol: crypto/aes.encryptBlockAsm
>>> referenced by cipher_asm.go:68 (/usr/local/go1.18/src/crypto/aes/cipher_asm.go:68)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-75ED93C0074B0B39C7925165ECA9C04DA4196729:((*crypto/aes.aesCipherAsm).Encrypt)
>>> referenced by aes_gcm.go:118 (/usr/local/go1.18/src/crypto/aes/aes_gcm.go:118)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-75ED93C0074B0B39C7925165ECA9C04DA4196729:(interface:{NonceSize:func:{}{basic:int},Open:func:{slice:basic:uint8,slice:basic:uint8,slice:basic:uint8,slice:basic:uint8}{slice:basic:uint8,named:error},Overhead:func:{}{basic:int},Seal:func:{slice:basic:uint8,slice:basic:uint8,slice:basic:uint8,slice:basic:uint8}{slice:basic:uint8}}.Seal$invoke)
>>> referenced by aes_gcm.go:171 (/usr/local/go1.18/src/crypto/aes/aes_gcm.go:171)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-75ED93C0074B0B39C7925165ECA9C04DA4196729:(interface:{NonceSize:func:{}{basic:int},Open:func:{slice:basic:uint8,slice:basic:uint8,slice:basic:uint8,slice:basic:uint8}{slice:basic:uint8,named:error},Overhead:func:{}{basic:int},Seal:func:{slice:basic:uint8,slice:basic:uint8,slice:basic:uint8,slice:basic:uint8}{slice:basic:uint8}}.Open$invoke)
[...more lines following...]
crypto/ecdsa
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: crypto/cipher.xorBytesSSE2
>>> referenced by xor_amd64.go:18 (/usr/local/go1.18/src/crypto/cipher/xor_amd64.go:18)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-EF98EDA270F4B6A2322D30935F3B9CF4E4FC523D:((crypto/cipher.StreamReader).Read)
tinygo:ld.lld: error: undefined symbol: crypto/aes.encryptBlockAsm
>>> referenced by cipher_asm.go:68 (/usr/local/go1.18/src/crypto/aes/cipher_asm.go:68)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-EF98EDA270F4B6A2322D30935F3B9CF4E4FC523D:((*crypto/aes.aesCipherAsm).Encrypt)
tinygo:ld.lld: error: undefined symbol: crypto/elliptic.p256Mul
>>> referenced by p256_asm.go:284 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:284)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-EF98EDA270F4B6A2322D30935F3B9CF4E4FC523D:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:285 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:285)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-EF98EDA270F4B6A2322D30935F3B9CF4E4FC523D:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:356 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:356)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-EF98EDA270F4B6A2322D30935F3B9CF4E4FC523D:((crypto/elliptic.p256Curve).ScalarMult)
[...more lines following...]
crypto/ed25519
The compiler gave the following error when this package was imported:
tinygo:ld.lld: error: undefined symbol: crypto/ed25519/internal/edwards25519/field.feSquare
>>> referenced by fe.go:305 (/usr/local/go1.18/src/crypto/ed25519/internal/edwards25519/field/fe.go:305)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-E5BEA7F300F8D7F2927A0BF071858A2CA05893D1:((*crypto/ed25519/internal/edwards25519/field.Element).Square)
tinygo:ld.lld: error: undefined symbol: crypto/ed25519/internal/edwards25519/field.feMul
>>> referenced by fe.go:299 (/usr/local/go1.18/src/crypto/ed25519/internal/edwards25519/field/fe.go:299)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-E5BEA7F300F8D7F2927A0BF071858A2CA05893D1:((*crypto/ed25519/internal/edwards25519/field.Element).Multiply)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo1161548173/main: exit status 1
crypto/elliptic
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: crypto/elliptic.p256Mul
>>> referenced by p256_asm.go:284 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:284)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-8ACD439C417603695DD3DC387A0857D42326F007:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:285 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:285)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-8ACD439C417603695DD3DC387A0857D42326F007:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:319 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:319)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-8ACD439C417603695DD3DC387A0857D42326F007:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced 18 more times
tinygo:ld.lld: error: undefined symbol: crypto/elliptic.p256PointDoubleAsm
>>> referenced by p256_asm.go:460 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:460)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-8ACD439C417603695DD3DC387A0857D42326F007:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:461 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:461)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-8ACD439C417603695DD3DC387A0857D42326F007:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:462 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:462)
[...more lines following...]
crypto/hmac
The compiler gave the following error when running the tests for this package:
panic: crypto/hmac: hash generation function does not produce unique values
FAIL crypto/hmac 0.254s
FAIL
crypto/rsa
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: crypto/cipher.xorBytesSSE2
>>> referenced by xor_amd64.go:18 (/usr/local/go1.18/src/crypto/cipher/xor_amd64.go:18)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-170E2AF6E9F724D0CB7DCC05685C402C186270CE:((crypto/cipher.StreamReader).Read)
tinygo:ld.lld: error: undefined symbol: crypto/aes.encryptBlockAsm
>>> referenced by cipher_asm.go:68 (/usr/local/go1.18/src/crypto/aes/cipher_asm.go:68)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-170E2AF6E9F724D0CB7DCC05685C402C186270CE:((*crypto/aes.aesCipherAsm).Encrypt)
tinygo:ld.lld: error: undefined symbol: crypto/elliptic.p256Mul
>>> referenced by p256_asm.go:284 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:284)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-170E2AF6E9F724D0CB7DCC05685C402C186270CE:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:285 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:285)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-170E2AF6E9F724D0CB7DCC05685C402C186270CE:((crypto/elliptic.p256Curve).ScalarMult)
>>> referenced by p256_asm.go:356 (/usr/local/go1.18/src/crypto/elliptic/p256_asm.go:356)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-170E2AF6E9F724D0CB7DCC05685C402C186270CE:((crypto/elliptic.p256Curve).ScalarMult)
[...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.391s
FAIL
crypto/tls
This package cannot be imported because the following dependencies cannot be compiled:
crypto/x509
This package cannot be imported because the following dependencies cannot be compiled:
database/sql
The compiler gave the following error when running the tests for this package:
# database/sql
/usr/local/go1.18/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.265s
FAIL
debug/buildinfo
The compiler gave the following error when this package was imported:
# debug/buildinfo
/usr/local/go1.18/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/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.271s
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.221s
FAIL
embed
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: vendor/golang.org/x/sys/cpu.cpuid
>>> referenced by cpu_x86.go:64 (/usr/local/go1.18/src/vendor/golang.org/x/sys/cpu/cpu_x86.go:64)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-1E9F484F121CD95C894F80423E4C424701BC14A0:(runtime.run$1)
>>> referenced by cpu_x86.go:70 (/usr/local/go1.18/src/vendor/golang.org/x/sys/cpu/cpu_x86.go:70)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-1E9F484F121CD95C894F80423E4C424701BC14A0:(runtime.run$1)
>>> referenced by cpu_x86.go:109 (/usr/local/go1.18/src/vendor/golang.org/x/sys/cpu/cpu_x86.go:109)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-1E9F484F121CD95C894F80423E4C424701BC14A0:(runtime.run$1)
>>> referenced 1 more times
tinygo:ld.lld: error: undefined symbol: vendor/golang.org/x/sys/cpu.xgetbv
>>> referenced by cpu_x86.go:88 (/usr/local/go1.18/src/vendor/golang.org/x/sys/cpu/cpu_x86.go:88)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-1E9F484F121CD95C894F80423E4C424701BC14A0:(runtime.run$1)
tinygo:ld.lld: error: undefined symbol: crypto/ed25519/internal/edwards25519/field.feSquare
>>> referenced by fe.go:305 (/usr/local/go1.18/src/crypto/ed25519/internal/edwards25519/field/fe.go:305)
[...more lines following...]
encoding/asn1
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).Addr()
FAIL encoding/asn1 0.200s
FAIL
encoding/base64
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: time.startTimer
>>> referenced by sleep.go:96 (/usr/local/go1.18/src/time/sleep.go:96)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-8965451DA4F91BF318F70583F191823E023017CC:(encoding/base64.TestDecoderIssue3577)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo3648171859/main: exit status 1
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.247s
FAIL
encoding/gob
The compiler gave the following error when this package was imported:
# encoding/gob
/usr/local/go1.18/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/src/encoding/json/bench_test.go:344:22: StructOf not declared by package reflect
/usr/local/go1.18/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:
tinygo:ld.lld: error: undefined symbol: crypto/ed25519/internal/edwards25519/field.feSquare
>>> referenced by fe.go:305 (/usr/local/go1.18/src/crypto/ed25519/internal/edwards25519/field/fe.go:305)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-8F1585C13DE6DBB63B352FB88DB86E29C7CA4642:((*crypto/ed25519/internal/edwards25519/field.Element).Square)
tinygo:ld.lld: error: undefined symbol: crypto/ed25519/internal/edwards25519/field.feMul
>>> referenced by fe.go:299 (/usr/local/go1.18/src/crypto/ed25519/internal/edwards25519/field/fe.go:299)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-8F1585C13DE6DBB63B352FB88DB86E29C7CA4642:((*crypto/ed25519/internal/edwards25519/field.Element).Multiply)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo1967086332/main: exit status 1
FAIL
encoding/xml
The compiler gave the following error when this package was imported:
# encoding/xml
/usr/local/go1.18/src/encoding/xml/typeinfo.go:318:14: typ.FieldByIndex undefined (type reflect.Type has no field or method FieldByIndex)
/usr/local/go1.18/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.260s
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.259s
FAIL
fmt
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).Slice()
FAIL fmt 0.251s
FAIL
go/ast
The compiler gave the following error when running the tests for this package:
panic: unimplemented: (reflect.Value).MapKeys()
FAIL go/ast 0.181s
FAIL
go/build
The compiler gave the following error when running the tests for this package:
# go/build
/usr/local/go1.18/src/go/build/build_test.go:556:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18/src/go/build/build_test.go:577:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18/src/go/build/build_test.go:599:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18/src/go/build/build_test.go:629:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18/src/go/build/build_test.go:641:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18/src/go/build/build_test.go:642:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18/src/go/build/build_test.go:695:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18/src/go/build/build_test.go:696:4: t.Setenv undefined (type *testing.T has no field or method Setenv)
/usr/local/go1.18/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: invalid syntax at ²
FAIL go/build/constraint 0.237s
FAIL
go/constant
The compiler gave the following error when running the tests for this package:
panic: division by zero
FAIL go/constant 0.215s
FAIL
go/doc
The compiler gave the following error when running the tests for this package:
panic: unknown type: E
goroutine 72 [running]:
github.com/tinygo-org/tinygo/compiler.(*compilerContext).makeLLVMType(0xc000adc270?, {0x5adfa18?, 0xc004d78c00?})
/home/dank/src/tinygo/compiler/compiler.go:415 +0x82c
github.com/tinygo-org/tinygo/compiler.(*compilerContext).getLLVMType(0xc000adc270, {0x5adfa18, 0xc004d78c00})
/home/dank/src/tinygo/compiler/compiler.go:326 +0x6e
github.com/tinygo-org/tinygo/compiler.(*compilerContext).makeLLVMType(0xc000adc270, {0x5adf9a0?, 0xc00162e7b0?})
/home/dank/src/tinygo/compiler/compiler.go:395 +0x185
github.com/tinygo-org/tinygo/compiler.(*compilerContext).getLLVMType(0xc000adc270, {0x5adf9a0, 0xc00162e7b0})
/home/dank/src/tinygo/compiler/compiler.go:326 +0x6e
github.com/tinygo-org/tinygo/compiler.(*compilerContext).getFunction(0xc000adc270, 0xc005d30640)
/home/dank/src/tinygo/compiler/symbol.go:78 +0x385
github.com/tinygo-org/tinygo/compiler.(*builder).createFunctionCall(0xc006c566c0, 0xc0066a4f40)
/home/dank/src/tinygo/compiler/compiler.go:1463 +0xab3
[...more lines following...]
go/format
The compiler gave the following error when running the tests for this package:
panic: go/parser internal error: unbalanced scopes
FAIL go/format 0.170s
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.146s
FAIL
go/parser
The compiler gave the following error when running the tests for this package:
panic: go/parser internal error: unbalanced scopes
FAIL go/parser 0.174s
FAIL
go/printer
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: time.startTimer
>>> referenced by sleep.go:96 (/usr/local/go1.18/src/time/sleep.go:96)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-8588349ABBB74C0B810043062EDB88FA51386369:(go/printer.TestFiles$1)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo1021599587/main: exit status 1
FAIL
go/token
The compiler gave the following error when running the tests for this package:
# encoding/gob
/usr/local/go1.18/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/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.262s
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 76.419s
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.174s
FAIL
image
The compiler gave the following error when running the tests for this package:
panic: image: NewRGBA Rectangle has huge or negative dimensions
FAIL image 0.228s
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.239s
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.292s
FAIL
image/gif
The compiler gave the following error when running the tests for this package:
# image/gif
/usr/local/go1.18/src/image/gif/reader_test.go:415:14: SetGCPercent not declared by package debug
/usr/local/go1.18/src/image/gif/reader_test.go:415:33: SetGCPercent not declared by package debug
/usr/local/go1.18/src/image/gif/reader_test.go:421:26: s1.HeapAlloc undefined (type *runtime.MemStats has no field or method HeapAlloc)
/usr/local/go1.18/src/image/gif/reader_test.go:421:41: s0.HeapAlloc undefined (type *runtime.MemStats has no field or method HeapAlloc)
FAIL
image/jpeg
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: time.startTimer
>>> referenced by sleep.go:96 (/usr/local/go1.18/src/time/sleep.go:96)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-CE75AF2502671DA606A59B57F5384FEDB000D810:(image/jpeg.TestLargeImageWithShortData)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo2460288946/main: exit status 1
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.486s
FAIL
io
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: time.startTimer
>>> referenced by sleep.go:96 (/usr/local/go1.18/src/time/sleep.go:96)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-86C72B9DED7DB3C1E98B8AB230BA26BA687A4B79:(io_test.TestMultiReaderFreesExhaustedReaders)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo2975446806/main: exit status 1
FAIL
io/ioutil
The compiler gave the following error when running the tests for this package:
--- FAIL: TestTempDir_BadDir (0.00s)
TempDir error = &T{Op:"stat", Path:"/tmp/TestTempDir_BadDir216851801/not-exist", Err:(T)(0x247638)}; want PathError for path "/tmp/TestTempDir_BadDir216851801/not-exist" satisifying os.IsNotExist
FAIL
FAIL io/ioutil 0.019s
FAIL
log
The compiler gave the following error when running the tests for this package:
--- FAIL: TestAll (0.00s)
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/04/29 00:22:54.345275 ???: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/04/29 00:22:54.345299 ???: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/04/29 00:22:54.345463 ???: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/04/29 00:22:54.345816 ???: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/04/29 00:22:54.346053 ???: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/04/29 00:22:54.346652 ???: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/04/29 00:22:54.346996 ???: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/04/29 00:22:54.347164 ???: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/src/log/syslog/syslog_test.go:22:25: PacketConn not declared by package net
/usr/local/go1.18/src/log/syslog/syslog_test.go:35:21: oe.Temporary undefined (type *net.OpError has no field or method Temporary)
/usr/local/go1.18/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/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: overflow
FAIL math/bits 0.222s
FAIL
math/rand
The compiler gave the following error when running the tests for this package:
# math/rand_test
/usr/local/go1.18/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/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.238s
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.221s
FAIL
mime/quotedprintable
The compiler gave the following error when running the tests for this package:
tinygo:ld.lld: error: undefined symbol: time.startTimer
>>> referenced by sleep.go:96 (/usr/local/go1.18/src/time/sleep.go:96)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-FF147D328A3201A09FDA2D4FAD678FFDEB7C560C:(mime/quotedprintable.everySequence)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo771125595/main: exit status 1
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/src/net/netip/netip_test.go:1815:25: UDPAddr not declared by package net
/usr/local/go1.18/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.226s
FAIL
net/url
The compiler gave the following error when running the tests for this package:
# encoding/gob
/usr/local/go1.18/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/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:
can't load test package: ../../../.cache/tinygo/goroot-4d285ac5873388dfa322d459f1686fe019a5a27d4b3719c1da9f6f5c98b2406f/src/os/signal/signal_test.go:18:2: package runtime/trace is not in GOROOT (/home/dank/.cache/tinygo/goroot-4d285ac5873388dfa322d459f1686fe019a5a27d4b3719c1da9f6f5c98b2406f/src/runtime/trace)
os/user
The compiler gave the following error when this package was imported:
# os/user
../../../../../usr/local/go1.18/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:
panic: unimplemented: (reflect.Value).MapKeys()
FAIL path/filepath 0.233s
FAIL
plugin
The compiler gave the following error when this package was imported:
# plugin
../../../../../usr/local/go1.18/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.228s
FAIL
regexp/syntax
The compiler gave the following error when running the tests for this package:
panic: regexp/syntax: internal error
FAIL regexp/syntax 1.189s
FAIL
sort
The compiler gave the following error when running the tests for this package:
--- FAIL: TestCountStableOps (1.77s)
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.44s)
Counting skipped as non-verbose mode.
SkipNow is incomplete, requires runtime.Goexit()
[...more lines following...]
strconv
The compiler gave the following error when running the tests for this package:
panic: invalid bitSize
FAIL strconv 2.361s
FAIL
strings
The compiler gave the following error when running the tests for this package:
# strings_test
/home/dank/src/tinygo/src/sync/mutex.go:17:7: interp: running for more than 180 seconds, timing out (executed calls: 454630)
%0 = icmp eq %sync.Mutex* %m, null, !dbg !3081
traceback:
/home/dank/src/tinygo/src/sync/mutex.go:17:7:
%0 = icmp eq %sync.Mutex* %m, null, !dbg !3081
/usr/local/go1.18/src/math/rand/rand.go:388:11:
call void @"(*sync.Mutex).Lock"(%sync.Mutex* %1, i8* undef), !dbg !3093
/usr/local/go1.18/src/math/rand/rand.go:84:50:
%3 = call i64 @"interface:{Int63:func:{}{basic:int64},Seed:func:{basic:int64}{}}.Int63$invoke"(i8* %invoke.func.value, i64 %invoke.func.typecode, i8* undef), !dbg !3066
/usr/local/go1.18/src/math/rand/rand.go:98:52:
%0 = call i64 @"(*math/rand.Rand).Int63"(%"math/rand.Rand"* %r, i8* undef), !dbg !3065
/usr/local/go1.18/src/math/rand/rand.go:133:14:
%11 = call i32 @"(*math/rand.Rand).Int31"(%"math/rand.Rand"* %r, i8* undef), !dbg !3095
[...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/src/sync/atomic/atomic_test.go:1202:14: SetGCPercent not declared by package debug
/usr/local/go1.18/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/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.257s
FAIL
text/tabwriter
The compiler gave the following error when running the tests for this package:
panic: cannot write
FAIL text/tabwriter 0.274s
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.177s
FAIL
text/template/parse
The compiler gave the following error when running the tests for this package:
panic: template: root:1: unexpected "}}" in define clause
FAIL text/template/parse 0.222s
FAIL
time
The compiler gave the following error when running the tests for this package:
# encoding/gob
/usr/local/go1.18/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:
tinygo:ld.lld: error: undefined symbol: time.registerLoadFromEmbeddedTZData
>>> referenced by scheduler_any.go:24 (/home/dank/src/tinygo/src/runtime/scheduler_any.go:24)
>>> /home/dank/.cache/tinygo/thinlto/llvmcache-470A4A20A9DF4E8F02E0D8A6B48CE136DE1E0CA7:(runtime.run$1$gowrapper)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo704378068/main: exit status 1