Skip to content

core:thread does not compile with -default-to-nil-allocator #5078

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
herohiralal opened this issue Apr 26, 2025 · 1 comment
Closed

core:thread does not compile with -default-to-nil-allocator #5078

herohiralal opened this issue Apr 26, 2025 · 1 comment

Comments

@herohiralal
Copy link
Contributor

herohiralal commented Apr 26, 2025

Context

  • Operating System & Odin Version: Win10 x64, dev-2025-03
  • Please paste odin report output:
    • Odin: dev-2025-04-nightly:d9f990d
    • OS: Windows 10 Professional (version: 22H2), build 19045.5796
    • CPU: Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
    • RAM: 32713 MiB
    • Backend: LLVM 20.1.0

Expected Behavior

Program should compile.

Current Behavior

Program doesn't compile.

Failure Information (for bugs)

It's a bug, program doesn't compile.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  • I used this short example program:
// k.odin -----

package main

@(require) import "core:thread" // <-- this is the line that breaks it.
import "core:fmt"

main :: proc() {
	fmt.println("Hello, world!")
}
  • Trying to compile using the following command:
odin run ./k.odin -file -default-to-nil-allocator
  • does not compile, here's the error:
<odin-install-location>/core/thread/thread.odin(517:30) Error: 'global_default_temp_allocator_data' is not declared by 'runtime'
        ... emp_allocator.data = &runtime.global_default_temp_allocator_data
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

Failure Logs

Irrelevant

@blob1807
Copy link
Contributor

Should already be fixed on master, as of this commit 1c655b8 last week

@laytan laytan closed this as completed Apr 26, 2025
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

3 participants