Skip to content

undefined reference to `_open_osfhandle' #15053

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
ursic opened this issue Jun 20, 2014 · 4 comments
Closed

undefined reference to `_open_osfhandle' #15053

ursic opened this issue Jun 20, 2014 · 4 comments

Comments

@ursic
Copy link

ursic commented Jun 20, 2014

Windows 8, 64-bit
rustc 0.11.0-pre-nightly (3047614)
host: i686-pc-mingw32

libnative-1fb5e2c0-0.11.0-pre.rlib(native.o):(.text+0xf471): undefined reference to `_open_osfhandle'
libnative-1fb5e2c0-0.11.0-pre.rlib(native.o):(.text+0x132a7): undefined reference to ` _wchmod'
libnative-1fb5e2c0-0.11.0-pre.rlib(native.o):(.text+0x134a0): undefined reference to ` _wrmdir'
libnative-1fb5e2c0-0.11.0-pre.rlib(native.o):(.text+0x1492d): undefined reference to ` _wstat64'
libnative-1fb5e2c0-0.11.0-pre.rlib(native.o):(.text+0x14d6c): undefined reference to ` _wutime64'


@alexcrichton
Copy link
Member

This looks like it may be because msvcrt is missing?

@ursic
Copy link
Author

ursic commented Jun 20, 2014

It worked a few commits back.
After I supply msvcrt, there's another error: undefined reference to _imp__timezone.

@alexcrichton
Copy link
Member

This looks like your mingw installation has gone awry in one form or another. There haven't been any major changes recently in how windows is linked, so possibly some local corruption occurred?

@ursic ursic closed this as completed Jun 20, 2014
@ursic
Copy link
Author

ursic commented Jun 23, 2014

Yeah, I uninstalled/reinstalled Cygwin at some point which I think deleted some dlls in the process.
Thanks.

lnicola pushed a commit to lnicola/rust that referenced this issue Jun 19, 2023
internal: Add a CrateRootModuleId that encodes a module id that is always a crate root
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