Your message dated Fri, 14 Oct 2016 12:03:36 +0000
with message-id <>
and subject line Bug#839690: Removed package(s) from unstable
has caused the Debian Bug report #776401,
regarding Enable CGO for MinGW platforms
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact

Debian Bug Tracking System
Contact with problems
--- Begin Message ---
Package: src:golang
Severity: wishlist
Version: 2:1.3.3-1
Tags: patch

Apparently, it is possible to build a CGO-enabled Golang cross compiler
on all platforms if CGO_ENABLED=1 is set at build-time. I have
successfully built Windows executables that use fopen(), fread()
functions from the C standard library using something like:

$ CC=i686-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=i386 go build ...

Please consider adding the simple patch attached below.

(I am still trying to figure out if there's a way to set a
GOARCH/GOOS-specific sensible default for CC, CXX.)

diff --git a/debian/rules b/debian/rules
index d73e90f..642b9c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -116,6 +116,7 @@ debian/build.stamp:
        -${FOR_GO_ARCH} \
                export GOARCH=$$arch; \
                export GOOS=$$os; \
+              export CGO_ENABLED=1; \
                cd src && bash ./make.bash --no-clean; \
                [ "$$arch" = "amd64" ] && [ "$$os" = "linux" ] && $(GOBIN)/go 
install -race std; \
                cd ..; \

--- End Message ---
--- Begin Message ---
Version: 2:1.6.1-2+rm

Dear submitter,

as the package golang has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see

The version of this package that was in Debian prior to this removal
can still be found using

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing

Debian distribution maintenance software
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to