Skip to content
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

Build error when using -no-crt and -o:speed flags with core:fmt package #2107

Open
englerj opened this issue Oct 6, 2022 · 0 comments
Open

Comments

@englerj
Copy link
Contributor

englerj commented Oct 6, 2022

Context

  • Operating System & Odin Version:
    Odin: dev-2022-10-nightly:775c9648
    OS: Windows 11 Professional (version: 21H2), build 22000.978
    CPU: Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
    RAM: 32702 MiB

Expected Behavior

Build succeeds.

Current Behavior

Build fails.

Failure Information (for bugs)

When using the core:fmt package, and building with both the -no-crt and -o:speed flags, the build fails due to an unresolved external symbol. When building with either the -no-crt or -o:speed flags (but not both), the build succeeds. When building with both flags and, additionally, the -use-separate-modules flag, the build will succeed.

Steps to Reproduce

package exe

import "core:fmt"

main :: proc()
{
    fmt.printf("{:v}, {:v}", "it's working", "it's working")
}

odin build -no-crt -o:speed

Failure Logs

... : error LNK2019: unresolved external symbol __gnu_h2f_ieee referenced in function fmt.fmt_quaternion
... : fatal error LNK1120: 1 unresolved externals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants