Cgo + windows + mingw-w64: "sorry, not implemented: 64-bit mode is not compiled to"

When trying to install suapapa / go_sass on Windows 8.1 using the command:

go get github.com/suapapa/go_sass

I ran into this error:

cc1.exe: sorry, not implemented: 64-bit mode is not compiled into

According to stackoverflow and other forums, this problem occurs because I don't have the correct version of mingw (correct me if I am wrong). My version is 1.3.3 windows / amd64.

So, I tried to install the 64-bit version of gcc, which I found at http://tdm-gcc.tdragon.net/ .

I still cannot get the package I want to install. Any help? I am not familiar with compilers at all.

+4
source share
1 answer

During the installation of mingw-64, you should select "i686" "Architecture", like me. If so, the x86_64 architecture should work.

+1
source

Source: https://habr.com/ru/post/1606059/


All Articles