Skip to content

Error printing time.Now() on 386 and arm; "undefined symbol: syscall.seek" #2578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dkegel-fastly opened this issue Jan 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@dkegel-fastly
Copy link
Contributor

dkegel-fastly commented Jan 24, 2022

With current dev, the test program

package main
import "fmt"
import "time"
func main() {
	fmt.Printf("The time is %v\n", time.Now())
}

fails to link on 386 and arm, e.g.

GOARCH=386 GOOS=linux tinygo run main.go
tinygo:ld.lld: error: undefined symbol: syscall.seek

With #2571 applied, the program links and seems to produce correct output on Ubuntu amd64 for arm, 386, and native:

$ GOARCH=arm tinygo run main.go
The time is 2022-01-24 08:19:08.892313672 -0800 PST m=+1158.118011446
$ GOARCH=386 tinygo run main.go
The time is 2022-01-24 08:19:42.121299131 -0800 PST m=+1191.347873439
$ tinygo run main.go
The time is 2022-01-24 08:19:58.911269014 -0800 PST m=+1208.138197336
@dkegel-fastly dkegel-fastly added the bug Something isn't working label Jan 24, 2022
@deadprogram deadprogram added next-release Will be part of next release and removed next-release Will be part of next release labels Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants