Skip to content

Compiling for target freestanding_wasm32 results in an assertion #1200

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
thebirk opened this issue Sep 29, 2021 · 2 comments
Closed

Compiling for target freestanding_wasm32 results in an assertion #1200

thebirk opened this issue Sep 29, 2021 · 2 comments

Comments

@thebirk
Copy link
Contributor

thebirk commented Sep 29, 2021

Context

  • Operating System: Windows 10 21H1, x64
  • Commit: bd1e1c6

Failure Information (for bugs)

Compiling for freestanding_wasm32 currently results in some debug prints followed by an assertion.

Steps to Reproduce

odin build main.odin -target=freestanding_wasm32 -no-entry-point

package main

@export
add :: proc(a, b: i32) -> i32 {
    return a + b
}

Failure Logs

[DEBUG] 9007199254740992
int -> 4
G:\Dropbox\bin\odin\src\llvm_backend_const.cpp(335): Assertion Failure: `sz >= max_count` max_count: 7, sz: 4, written: 0  
@phillvancejr
Copy link
Contributor

Same for OSX 10.13

@phillvancejr
Copy link
Contributor

@thebirk the newest builds are working for me on Mac for both feestanding_wasm32 and js_wasm32, try again with a new version of the compiler

@thebirk thebirk closed this as completed Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants