Comments (10)
Is this still a problem? Also is it specific to WASM?
from tinygo.
It is not specific to WebAssembly, but you wouldn't generally notice it otherwise.
I hope it is gone after #89 but I'm not entirely sure, I haven't tested this.
from tinygo.
Has this issue been correct in master
branch @j7b can you please verify? Thanks.
from tinygo.
Most likely not, I didn't touch that code (and I've seen the issue myself recently).
from tinygo.
What is the intended behavior here? Right now, when building, it compiles and the linker just complains about the symbol not being found.
from tinygo.
It would be nice to name the main package main
, so you have the symbol main.main
. This is what the Go toolchain does. I haven't seen a direct need for this, however.
from tinygo.
Okay I guess I just misunderstood the issue.
from tinygo.
OK I must be missing something here: https://play.golang.org/p/jqxNrK9fi_R
The output of the submitted test program does not work on the normal Go Playground either:
./prog.go:3:6: missing function body
Go build failed.
I feel like for the first time I am questioning what exactly this issue is about? Can anyone please clarify? Thank you.
from tinygo.
This now seems to produce the expected name.
The output of the submitted test program does not work on the normal Go Playground either:
The standard Go implementation requires an assembly file to be included in the package to allow this.
It would probably be more correct for this to use //export
or similar though.
from tinygo.
Agree. This is fixed I'm pretty sure.
~/go/src/github.com/dgryski/bug $ tinygo build -target wasm -o withdot.ll .
~/go/src/github.com/dgryski/bug $ grep 'declare i32.*x.*local_unnamed' withdot.ll
declare i32 @main.x(ptr) local_unnamed_addr #2
from tinygo.
Related Issues (20)
- latest versioning of compatible matrix of tinygo/go HOT 2
- TinyGo Program blocks forever with os.Pipe, go proc, and a sleep; same program returns as expected with go
- Error to find build id on OpenBSD
- Unable to find headers for building HOT 2
- Undefined os/signal symbols
- First write to WS2812 Led 0 sets green to 0xff (seen on RP2040 boards) HOT 15
- Support LLVM 18 HOT 5
- `reflect.Type.NumMethod()` returns 0 for interface types, impacting CBOR unmarshalling
- Very long indexing in IDE GoLand.
- hid-keyboard not working on nvidia agx orin HOT 12
- Does tinygo not support TLS features?
- Compiling programs SIGKILL on latest arm mac HOT 1
- tinygo build -gc none fails HOT 2
- `Type.AssignableTo` panics with "reflect: unimplemented: AssignableTo with interface"
- Is there a GOMEMLIMIT analog in TinyGo? HOT 2
- Missing C.CBytes
- Cgo doesn't support bitshifted constants HOT 2
- Unable to Build LLVM on Windows with GCC Version 11.2.0 HOT 1
- When using Go modules the TinyGo compiler doesn't find the TinyGo packages like machine | ERROR: undefined machine.I2C0 HOT 3
- TypeError: WebAssembly.instantiate(): Import #0 "gojs": module is not an object or function TypeError: Cannot convert a BigInt value to a number HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinygo.