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

Newest runtime causes issues with the Rust programming language #3237

Closed
tspiteri opened this issue Dec 29, 2017 · 2 comments
Closed

Newest runtime causes issues with the Rust programming language #3237

tspiteri opened this issue Dec 29, 2017 · 2 comments

Comments

@tspiteri
Copy link

I've already posted the details to the Rust issue page: rust-lang/rust#47048, but I'm cross-posting here as I don't know if it's a rustc issue or a MinGW issue.

Basically, after commit Alexpux@aba4a3a updated the runtime to version 6.0.0.5066.61efe559, rustc is unable to link to freshly compiled C libraries that use stdout owing to an undefined reference to __imp___acrt_iob_func.

@csstaub
Copy link

csstaub commented Feb 16, 2018

I'm seeing a similar problem with linking in CGO: ghostunnel/ghostunnel#145

Build breaks with:

set CGO_ENABLED=1
go build -o ghostunnel-%GIT_VERSION%-windows-%GOARCH%-with-pkcs11.exe -ldflags "-w -extldflags \"-static\" -extld=%EXTLD%" -i .
# github.com/square/ghostunnel
C:\go\pkg\tool\windows_amd64\link.exe: running x86_64-w64-mingw32-gcc failed: exit status 1
C:/msys64/MINGW64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../lib\libltdl.a(libltdl_libltdl_la-lt__alloc.o):(.text+0x3b): undefined reference to `__imp___acrt_iob_func'
collect2.exe: error: ld returned 1 exit status

@mati865
Copy link
Collaborator

mati865 commented Feb 16, 2018

It should be reported to mingw-w64-public mailing list, preferably with minimal example.

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

4 participants