You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A module's own extern fn is rejected as "requires an explicit import" once another module imports std.libc #1919
Spec: §18.1 (imports), D70 (last explicit import wins). A name a module declares itself (here an extern fn) is that module's; importing std.libc elsewhere in the program must not make it unresolvable.
use helper
use std.libc
fn main:
print(f"{remove_it(c"/nonexistent/x".ptr)}")
with check main.w:
error: 'unlink' requires an explicit import (§18.1); add: use std.libc.unlink
--> helper.w:4:14
Expected: ok — helper.w's own declaration resolves unlink.
Found in #1915 (macOS slice): the compiler cannot use std.zip (which imports std.libc), because src/compiler/ClangBridge.w declares its own extern fn unlink. Workaround used: with get still unpacks .zip source archives with the host's tar, with a printed warning; the fix lets ConanClient use std.zip and drop that.
Fixed on main in 8b6b850 (#1926): frontend_fn_tier_verdict no longer drops a module's own extern fn when a standard-library fn of the same name exists elsewhere; behav_1919_extern_beside_std_fn.
Activity
macOS builds and links with no host toolchain: the SDK's sysroot and …
ehartford commentedon Sep 30, 2026
Fixed on main in 8b6b850 (#1926): frontend_fn_tier_verdict no longer drops a module's own extern fn when a standard-library fn of the same name exists elsewhere; behav_1919_extern_beside_std_fn.
Battery: runtime extern views of with_free; fixtures that spelled C s…
D155/D156: the C aliases are the target's builtins; a corpus is compi…
Compiler sources spell their C strings c_char (the interim i8 casts of …