-
Notifications
You must be signed in to change notification settings - Fork 999
Description
I have followed all steps given in this installation guide (https://tinygo.org/getting-started/install/windows/)
I currently have go and tinygo installed through scoop with versions:
go version go1.23.2 windows/amd64
tinygo version 0.34.0 windows/amd64 (using go version go1.23.2 and LLVM version 18.1.2)
I have a small program with the following code:
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
But when i try to use tinygo to build this for the pico (Or any other targer) i get a huge stacktrace with a lot of gibberish characters. Only the start and end of the stacktrace give some context into whats going on.
The command i use
tinygo flash -target=pico .\main.go
The output i get in console
PS C:\Projects\WaterLevelSensor> tinygo flash -target=pico .\main.go
error: unable to make temporary file: No such file or directory
# 1 "C:\\Users\\info\\scoop\\apps\\tinygo\\current\\lib\\compiler-rt-builtins\\arm\\aeabi_cdcmp.S"
error: unable to make temporary file: No such file or directory
# 1 "<builerror: unable to make temporary file: No such file or directory
t-in>" 1
# 1 "<built-in>" 3
# 1 "C:\\Users\\info\\scoop\\apps\\tinygo\\current\\lib\\compiler-rt-builtins\\arm\\aeabi_cfcmp# 1# 377 "<built-in>" 3
# 1 "<command line>" 1
"C:\.S"
\Users\\info\\scoop\\apps\\tinygo\\curren# error: unable to make temporary file: No such file or directory
t\\# 1 "<built-in>" 1
lib\\compile# 1 "<built-in>" 31 "<buir
lt-in>" 2
-# 1 rt-built"C:\\User# 377 "<built-in>" 3
# s\\# 1 "C:\\Users\\info\\scoop\\apps\\tininfo\\scygo\\cins\\arm\\aourrent\\lib\\compieabi_dcmp.S"
o# 1 1 ler-rp"<bt-builtiuierror: unable to make temporary file: No such file or directoryns\\arl"<com
\\ammt-and line>" 1
i\\aeabi_#n>" 1
# ppfc1 "<s\\tinygo\\current\\lib\\com 1 "<bmbpiler-uilt-in>"p.S"
uilt-in>" 3
2
# 1# 1 "C:\\Users\\infrt-builtins\\ar##o\\scoop\\apps\ "<1 "C:\\Users\\info\\scoop\\apps\\tinygo\\current\\l\t377 "ib\built-in>" 1
<built-inygo\\current\i\com\lib\\com# 1 piln>" 3piler-er-m\\aeabi_cdcmp.S"rt-r" 2
built
t-ins\builtins\\arm# \\<#error: error: 1error: unable to make temporary file: No such file or directory
arm\unable to make temporary file: No such file or directory
\unable to make temporary file: No such file or directory
"<co 1 "C:\\Usersaeabi_cfcmbuilt-in>" 3
m#p\aeabi_id # 377.S" 2
1 "C:\#ivmodmand line>"# 1 "C:\\User 1
Right here a lot of gibberish characters, and then the final part looks like this
.global literals
literals:
.ltorg
.end
# 17 "C:\\Users\\info\\scoop\\apps\\tinygo\\current\\targets\\pico-boot-stage2.S" 2
failed to build C:\Users\info\scoop\apps\tinygo\current\src\device\arm\cortexm.S: exit status 1
Ive tried resolving it and have been looking around but it appears i cant find anyone with the same problem, it looks like its somewhat permission based but when running this through admin terminal it still wont work.