-
Notifications
You must be signed in to change notification settings - Fork 100
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
Windows example demo won't build #62
Comments
very weird, looks like your toolchain is broken.. Are you sure that |
Note the GCC output above, it says Target mingw32. I googled around and saw that one could set environment variable MSYSTEM to mingw64, which I did, no change in result. I am able to build other Go programs, specifically some easy tutorial go programs. Here is full output,
|
okay I "think" I understand what the issue is.... The install of MinGW I have is for 32bit systems, but my machine is a 64bit system. I was lead to cygwin for MinGW 64bit version, and when I build in a cygwin shell, I get,
So I think its an issue with using the "MinGW installer" link that is in the instructions, which is a 32bit gcc, versus my machine being 64bit. But I am just hypothesizing... I was unable to find the missing files, and I suspect cygwin doesn't have these libs, so this may be a deeper make issue, which is beyond my pay grade... I am willing to get to the bottom of this but I would need direction... |
Based on all the experience I have, it seems that you've gone too far off the radar, the later errors are not common and it seems that your MinGW is totally broken. It's important that Go's arch and GCC's arch match, you can get 64/64 or 32/32 on the same 64-bit machine, but they must match. @martin-guthrie-docker MSYS 1.0: |
Thank you for the help. I removed my previous MinGW, and installed new (64bit) one from this link,
I do start the batch file msys to get a console. The result,
It seems this is a known issue,
I tried using msys2 from https://www.msys2.org BTW, gcc version info:
|
Same here, undefined reference to __assert_func. I am using msys2 + go 1.12. |
Getting this build error,
GCC:
Go:
The text was updated successfully, but these errors were encountered: