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

Trouble installing on windows #77

Closed
shixish opened this issue Sep 3, 2013 · 16 comments
Closed

Trouble installing on windows #77

shixish opened this issue Sep 3, 2013 · 16 comments

Comments

@shixish
Copy link

shixish commented Sep 3, 2013

I'm installing into Windows 8 64 bit

When I run: go get github.com/mattn/go-sqlite3
I get this:

github.com/mattn/go-sqlite3

In file included from sqlite3.go:4:
sqlite3.h:35: stdarg.h: No such file or directory
sqlite3.go:5: stdlib.h: No such file or directory
sqlite3.go:6: string.h: No such file or directory
sqlite3.go:35: stdio.h: No such file or directory
sqlite3.go:36: stdint.h: No such file or directory

Any ideas of what's screwing up?

I saw that there's an issue for a Windows 64 bit bug here:
#27

But I don't think it's the same issue..?

@mattn
Copy link
Owner

mattn commented Sep 3, 2013

Probably, you don't install mingw/gcc.

@mattn
Copy link
Owner

mattn commented Sep 9, 2013

Is this closable?

@mattn mattn closed this as completed Sep 9, 2013
@mattn mattn reopened this Sep 9, 2013
@mattn
Copy link
Owner

mattn commented Sep 9, 2013

Ooops sorry

@shixish
Copy link
Author

shixish commented Sep 10, 2013

I never actually got it working... I'm still getting the same error.
I tried a couple things for a couple hours, and I never got it working...

I have mingw installed. I also tried re-installing it.
I also tried messing with cygwin, but that didn't really do much either.

C:\Users\Andrew>gcc --version
2.95

@mattn
Copy link
Owner

mattn commented Sep 11, 2013

gcc version is too old. I'm using:

gcc (gcc-4.6.3 release with patches [build 20121012 by perlmingw.sf.net]) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@shixish
Copy link
Author

shixish commented Sep 11, 2013

I'm having trouble with MinGW...

It fails to install gcc, it says this:

...
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/dir.h: extraction failed
mingw-get: *** ERROR *** cannot replace existing file
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/direct.h: extraction failed
mingw-get: *** ERROR *** cannot replace existing file
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/dirent.h: extraction failed
mingw-get: *** ERROR *** cannot replace existing file
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/dos.h: extraction failed
mingw-get: *** ERROR *** cannot replace existing file
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/errno.h: extraction failed
mingw-get: *** ERROR *** cannot replace existing file
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/excpt.h: extraction failed
mingw-get: *** ERROR *** cannot replace existing file
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/fcntl.h: extraction failed
mingw-get: *** ERROR *** cannot replace existing file
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/fenv.h: extraction failed
mingw-get: *** ERROR *** cannot replace existing file
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/float.h: extraction failed
mingw-get: *** ERROR *** cannot replace existing file
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/getopt.h: extraction failed
mingw-get: *** ERROR *** cannot replace existing file
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/glob.h: extraction failed
mingw-get: *** ERROR *** cannot replace existing file
mingw-get: *** ERROR *** C:\MinGW\/mingw32/include/inttypes.h: extraction failed
...

It just spams this for everything it's trying to do. I tried a couple of different things:
I tried running mingw gui as administrator, it doesn't make a difference.

I tried it on the command line:
mingw-get install gcc

... that gives me the same error messages.

I also tried changing the file permissions for the mingw folder...

@shixish
Copy link
Author

shixish commented Sep 11, 2013

It looks like I have this old version of gcc from WinAVR:
http://sourceforge.net/projects/winavr/

I'll see if uninstalling that helps

@shixish
Copy link
Author

shixish commented Sep 11, 2013

I just used where gcc.exe and it turns out it was using a version of gcc that came with this garbage:
http://www.cse.yorku.ca/~roumani/fortran/ftn.htm

@shixish
Copy link
Author

shixish commented Sep 11, 2013

I rooted out that junk gcc version, and so now I have this:

C:\Users\Andrew>gcc --version
gcc (GCC) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I then tried installing go-sqlite3 again like this:

C:\Users\Andrew\gotestsite>go get github.com/mattn/go-sqlite3
# github.com/mattn/go-sqlite3
cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

But it seems I have some new error...

@shixish
Copy link
Author

shixish commented Sep 11, 2013

It looks like I need to get the 64 bit version of mingw...
http://sourceforge.net/projects/mingw-w64/

I'll try that out later.

@rdscorreia
Copy link

Hello, I am having the same problem CC1.exe

@chowey
Copy link

chowey commented Oct 27, 2013

For the record, I had the same problem, tried the 64-bit version (Mingw-w64), and it worked.

http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.8.2/threads-win32/seh/

@rzhb
Copy link

rzhb commented Mar 31, 2014

I have the same problem like

cc1.exe: sorry, unimplemented: 64-bit mode not compiled in

and tried MinGW-W64, it worked too.

@rusco
Copy link

rusco commented Apr 7, 2014

For a smooth win64 build experience I recommend using http://tdm-gcc.tdragon.net/ (the 64 bit version) instead.

@mattn
Copy link
Owner

mattn commented Jun 25, 2014

Any update on this? If not, I'll close this.

@yukinagae
Copy link

thanks rusco, it works!

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

7 participants