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

cmd/link: output has .exe suffix added by gcc during external linking #11725

Closed
7phs opened this issue Jul 15, 2015 · 8 comments

Comments

Projects
None yet
5 participants
@7phs
Copy link

commented Jul 15, 2015

Environment:

  • go version devel +2e4b659 Wed Jul 15 06:04:51 2015 +0000 windows/amd64
  • Windows 8.1 x64

A project with the one file "main.go":

package main

/*
#cgo LDFLAGS: -L${SRCDIR}/libs -lopus

#include "include/opus.h"
 */
import "C"

func opus_init() {
    var err C.int

    opus := C.opus_encoder_create(8000, 2, 1, &err)

    C.opus_encoder_destroy(opus)
}

func main() {
    opus_init()
}

Run a console command:

go.exe build -o C:\Users\username\AppData\Local\Temp\run0go C:\dev\IdeaProjects\go-ot\main.go

Got two files in "C:\Users\username\AppData\Local\Temp":

  • run0go - 0 bytes
  • run0go.exe - 3666808 bytes

Expect only one file in "C:\Users\username\AppData\Local\Temp":

  • run0go - 3666808 bytes

Like as a result of project without cgo.

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Jul 15, 2015

Please run the go command with -x option and paste the output here. Thanks.

@ianlancetaylor ianlancetaylor changed the title A result of build cgo project on windows: two files and one zero sized cmd/go: A result of build cgo project on windows: two files and one zero sized Jul 15, 2015

@ianlancetaylor ianlancetaylor added this to the Go1.5Maybe milestone Jul 15, 2015

@7phs

This comment has been minimized.

Copy link
Author

commented Jul 15, 2015

WORK=C:\Users\username\AppData\Local\Temp\go-build106725530
mkdir -p $WORK\runtime\_obj\
mkdir -p $WORK\
cd C:\dev\go\src\runtime
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p runtime -+ -buildid 3c5c68d5bb5550d14b0dac338d1c1224ef7ec18e -D _/E_/dev/go/src/runtime -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack -asmhdr "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\go_asm.h" "C:\\dev\\go\\src\\runtime\\alg.go" "C:\\dev\\go\\src\\runtime\\arch1_amd64.go" "C:\\dev\\go\\src\\runtime\\arch_amd64.go" "C:\\dev\\go\\src\\runtime\\atomic_amd64x.go" "C:\\dev\\go\\src\\runtime\\atomic_pointer.go" "C:\\dev\\go\\src\\runtime\\cgo.go" "C:\\dev\\go\\src\\runtime\\cgocall.go" "C:\\dev\\go\\src\\runtime\\cgocallback.go" "C:\\dev\\go\\src\\runtime\\chan.go" "C:\\dev\\go\\src\\runtime\\compiler.go" "C:\\dev\\go\\src\\runtime\\complex.go" "C:\\dev\\go\\src\\runtime\\cpuprof.go" "C:\\dev\\go\\src\\runtime\\cputicks.go" "C:\\dev\\go\\src\\runtime\\debug.go" "C:\\dev\\go\\src\\runtime\\defs_windows_amd64.go" "C:\\dev\\go\\src\\runtime\\env_posix.go" "C:\\dev\\go\\src\\runtime\\error.go" "C:\\dev\\go\\src\\runtime\\extern.go" "C:\\dev\\go\\src\\runtime\\hash64.go" "C:\\dev\\go\\src\\runtime\\hashmap.go" "C:\\dev\\go\\src\\runtime\\hashmap_fast.go" "C:\\dev\\go\\src\\runtime\\heapdump.go" "C:\\dev\\go\\src\\runtime\\iface.go" "C:\\dev\\go\\src\\runtime\\lfstack.go" "C:\\dev\\go\\src\\runtime\\lfstack_amd64.go" "C:\\dev\\go\\src\\runtime\\lock_sema.go" "C:\\dev\\go\\src\\runtime\\malloc.go" "C:\\dev\\go\\src\\runtime\\mbarrier.go" "C:\\dev\\go\\src\\runtime\\mbitmap.go" "C:\\dev\\go\\src\\runtime\\mcache.go" "C:\\dev\\go\\src\\runtime\\mcentral.go" "C:\\dev\\go\\src\\runtime\\mem_windows.go" "C:\\dev\\go\\src\\runtime\\mfinal.go" "C:\\dev\\go\\src\\runtime\\mfixalloc.go" "C:\\dev\\go\\src\\runtime\\mgc.go" "C:\\dev\\go\\src\\runtime\\mgcmark.go" "C:\\dev\\go\\src\\runtime\\mgcsweep.go" "C:\\dev\\go\\src\\runtime\\mgcwork.go" "C:\\dev\\go\\src\\runtime\\mheap.go" "C:\\dev\\go\\src\\runtime\\mprof.go" "C:\\dev\\go\\src\\runtime\\msize.go" "C:\\dev\\go\\src\\runtime\\mstats.go" "C:\\dev\\go\\src\\runtime\\netpoll.go" "C:\\dev\\go\\src\\runtime\\netpoll_windows.go" "C:\\dev\\go\\src\\runtime\\os1_windows.go" "C:\\dev\\go\\src\\runtime\\os2_windows.go" "C:\\dev\\go\\src\\runtime\\os_windows.go" "C:\\dev\\go\\src\\runtime\\panic.go" "C:\\dev\\go\\src\\runtime\\panic1.go" "C:\\dev\\go\\src\\runtime\\parfor.go" "C:\\dev\\go\\src\\runtime\\print1.go" "C:\\dev\\go\\src\\runtime\\print1_write.go" "C:\\dev\\go\\src\\runtime\\proc.go" "C:\\dev\\go\\src\\runtime\\proc1.go" "C:\\dev\\go\\src\\runtime\\race0.go" "C:\\dev\\go\\src\\runtime\\rdebug.go" "C:\\dev\\go\\src\\runtime\\rune.go" "C:\\dev\\go\\src\\runtime\\runtime.go" "C:\\dev\\go\\src\\runtime\\runtime1.go" "C:\\dev\\go\\src\\runtime\\runtime2.go" "C:\\dev\\go\\src\\runtime\\select.go" "C:\\dev\\go\\src\\runtime\\sema.go" "C:\\dev\\go\\src\\runtime\\signal_windows.go" "C:\\dev\\go\\src\\runtime\\sigqueue.go" "C:\\dev\\go\\src\\runtime\\slice.go" "C:\\dev\\go\\src\\runtime\\softfloat64.go" "C:\\dev\\go\\src\\runtime\\sqrt.go" "C:\\dev\\go\\src\\runtime\\stack1.go" "C:\\dev\\go\\src\\runtime\\stack2.go" "C:\\dev\\go\\src\\runtime\\string.go" "C:\\dev\\go\\src\\runtime\\string1.go" "C:\\dev\\go\\src\\runtime\\stubs.go" "C:\\dev\\go\\src\\runtime\\symtab.go" "C:\\dev\\go\\src\\runtime\\sys_x86.go" "C:\\dev\\go\\src\\runtime\\syscall_windows.go" "C:\\dev\\go\\src\\runtime\\time.go" "C:\\dev\\go\\src\\runtime\\trace.go" "C:\\dev\\go\\src\\runtime\\traceback.go" "C:\\dev\\go\\src\\runtime\\type.go" "C:\\dev\\go\\src\\runtime\\typekind.go" "C:\\dev\\go\\src\\runtime\\typekind1.go" "C:\\dev\\go\\src\\runtime\\unaligned1.go" "C:\\dev\\go\\src\\runtime\\vdso_none.go" "C:\\dev\\go\\src\\runtime\\wbfat.go" "C:\\dev\\go\\src\\runtime\\zcallback_windows.go" "C:\\dev\\go\\src\\runtime\\zgoarch_amd64.go" "C:\\dev\\go\\src\\runtime\\zgoos_windows.go" "C:\\dev\\go\\src\\runtime\\zversion.go"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\asm.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\asm.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\asm.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\asm.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\asm_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\asm_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\asm_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\asm_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\duff_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\duff_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\duff_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\duff_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\memclr_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\memclr_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\memclr_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\memclr_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\memmove_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\memmove_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\memmove_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\memmove_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\rt0_windows_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\rt0_windows_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\rt0_windows_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\rt0_windows_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\sys_windows_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\sys_windows_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\sys_windows_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\sys_windows_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\zcallback_windows.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\zcallback_windows.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\zcallback_windows.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\zcallback_windows.s"
pack r "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime.a" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\asm.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\asm_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\duff_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\memclr_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\memmove_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\rt0_windows_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\sys_windows_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\_obj\\zcallback_windows.o" # internal
mkdir -p $WORK\errors\_obj\
cd C:\dev\go\src\errors
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\errors.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p errors -complete -buildid 28144ef065de12409bb019f4c14d6d5e1f1677c3 -D _/E_/dev/go/src/errors -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\dev\\go\\src\\errors\\errors.go"
mkdir -p $WORK\sync\atomic\_obj\
mkdir -p $WORK\sync\
cd C:\dev\go\src\sync\atomic
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\sync\\atomic.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p sync/atomic -buildid c749b6a4301a8268c02fc981ad0ebcaee99d1077 -D _/E_/dev/go/src/sync/atomic -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack -asmhdr "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\sync\\atomic\\_obj\\go_asm.h" "C:\\dev\\go\\src\\sync\\atomic\\doc.go" "C:\\dev\\go\\src\\sync\\atomic\\value.go"
mkdir -p $WORK\math\_obj\
cd C:\dev\go\src\math
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p math -buildid 72cb39e5fbd50fd26e1a678c66d0b65a95e98b60 -D _/E_/dev/go/src/math -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack -asmhdr "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\go_asm.h" "C:\\dev\\go\\src\\math\\abs.go" "C:\\dev\\go\\src\\math\\acosh.go" "C:\\dev\\go\\src\\math\\asin.go" "C:\\dev\\go\\src\\math\\asinh.go" "C:\\dev\\go\\src\\math\\atan.go" "C:\\dev\\go\\src\\math\\atan2.go" "C:\\dev\\go\\src\\math\\atanh.go" "C:\\dev\\go\\src\\math\\bits.go" "C:\\dev\\go\\src\\math\\cbrt.go" "C:\\dev\\go\\src\\math\\const.go" "C:\\dev\\go\\src\\math\\copysign.go" "C:\\dev\\go\\src\\math\\dim.go" "C:\\dev\\go\\src\\math\\erf.go" "C:\\dev\\go\\src\\math\\exp.go" "C:\\dev\\go\\src\\math\\expm1.go" "C:\\dev\\go\\src\\math\\floor.go" "C:\\dev\\go\\src\\math\\frexp.go" "C:\\dev\\go\\src\\math\\gamma.go" "C:\\dev\\go\\src\\math\\hypot.go" "C:\\dev\\go\\src\\math\\j0.go" "C:\\dev\\go\\src\\math\\j1.go" "C:\\dev\\go\\src\\math\\jn.go" "C:\\dev\\go\\src\\math\\ldexp.go" "C:\\dev\\go\\src\\math\\lgamma.go" "C:\\dev\\go\\src\\math\\log.go" "C:\\dev\\go\\src\\math\\log10.go" "C:\\dev\\go\\src\\math\\log1p.go" "C:\\dev\\go\\src\\math\\logb.go" "C:\\dev\\go\\src\\math\\mod.go" "C:\\dev\\go\\src\\math\\modf.go" "C:\\dev\\go\\src\\math\\nextafter.go" "C:\\dev\\go\\src\\math\\pow.go" "C:\\dev\\go\\src\\math\\pow10.go" "C:\\dev\\go\\src\\math\\remainder.go" "C:\\dev\\go\\src\\math\\signbit.go" "C:\\dev\\go\\src\\math\\sin.go" "C:\\dev\\go\\src\\math\\sincos.go" "C:\\dev\\go\\src\\math\\sinh.go" "C:\\dev\\go\\src\\math\\sqrt.go" "C:\\dev\\go\\src\\math\\tan.go" "C:\\dev\\go\\src\\math\\tanh.go" "C:\\dev\\go\\src\\math\\unsafe.go"
mkdir -p $WORK\unicode\utf16\_obj\
mkdir -p $WORK\unicode\
cd C:\dev\go\src\unicode\utf16
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\unicode\\utf16.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p unicode/utf16 -complete -buildid 4b4f0eeff349825069c574df646f508c56b96354 -D _/E_/dev/go/src/unicode/utf16 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\dev\\go\\src\\unicode\\utf16\\utf16.go"
mkdir -p $WORK\unicode\utf8\_obj\
cd C:\dev\go\src\unicode\utf8
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\unicode\\utf8.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p unicode/utf8 -complete -buildid 1343095680c37ad0b362e88d99315b1631e487ab -D _/E_/dev/go/src/unicode/utf8 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\dev\\go\\src\\unicode\\utf8\\utf8.go"
cd C:\dev\go\src\sync\atomic
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\sync\\atomic\\_obj\\asm_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\sync\\atomic\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\sync\\atomic\\asm_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\sync\\atomic\\_obj\\asm_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\sync\\atomic\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\sync\\atomic\\asm_amd64.s"
pack r "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\sync\\atomic.a" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\sync\\atomic\\_obj\\asm_amd64.o" # internal
mkdir -p $WORK\sync\_obj\
cd C:\dev\go\src\sync
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\sync.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p sync -buildid d9e75f832945d6199f181ad917ec45cc7d8a4bf9 -D _/E_/dev/go/src/sync -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\dev\\go\\src\\sync\\cond.go" "C:\\dev\\go\\src\\sync\\mutex.go" "C:\\dev\\go\\src\\sync\\once.go" "C:\\dev\\go\\src\\sync\\pool.go" "C:\\dev\\go\\src\\sync\\race0.go" "C:\\dev\\go\\src\\sync\\runtime.go" "C:\\dev\\go\\src\\sync\\rwmutex.go" "C:\\dev\\go\\src\\sync\\waitgroup.go"
mkdir -p $WORK\io\_obj\
cd C:\dev\go\src\io
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\io.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p io -complete -buildid 2413ee4c3d030ad2645babc682f3f76975c5bd15 -D _/E_/dev/go/src/io -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\dev\\go\\src\\io\\io.go" "C:\\dev\\go\\src\\io\\multi.go" "C:\\dev\\go\\src\\io\\pipe.go"
mkdir -p $WORK\syscall\_obj\
cd C:\dev\go\src\syscall
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\syscall.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p syscall -buildid ef11c8be9254440593d8ff56a7bc89bcdf501283 -D _/E_/dev/go/src/syscall -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack -asmhdr "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\syscall\\_obj\\go_asm.h" "C:\\dev\\go\\src\\syscall\\dll_windows.go" "C:\\dev\\go\\src\\syscall\\env_windows.go" "C:\\dev\\go\\src\\syscall\\exec_windows.go" "C:\\dev\\go\\src\\syscall\\race0.go" "C:\\dev\\go\\src\\syscall\\security_windows.go" "C:\\dev\\go\\src\\syscall\\str.go" "C:\\dev\\go\\src\\syscall\\syscall.go" "C:\\dev\\go\\src\\syscall\\syscall_windows.go" "C:\\dev\\go\\src\\syscall\\syscall_windows_amd64.go" "C:\\dev\\go\\src\\syscall\\zerrors_windows.go" "C:\\dev\\go\\src\\syscall\\zerrors_windows_amd64.go" "C:\\dev\\go\\src\\syscall\\zsyscall_windows.go" "C:\\dev\\go\\src\\syscall\\zsysnum_windows_amd64.go" "C:\\dev\\go\\src\\syscall\\ztypes_windows.go" "C:\\dev\\go\\src\\syscall\\ztypes_windows_amd64.go"
cd C:\dev\go\src\math
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\abs_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\abs_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\abs_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\abs_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\asin_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\asin_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\asin_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\asin_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\atan2_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\atan2_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\atan2_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\atan2_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\atan_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\atan_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\atan_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\atan_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\dim_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\dim_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\dim_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\dim_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\exp2_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\exp2_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\exp2_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\exp2_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\exp_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\exp_amd64.s"
cd C:\dev\go\src\syscall
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\syscall\\_obj\\asm.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\syscall\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\syscall\\asm.s"
cd C:\dev\go\src\math
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\exp_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\exp_amd64.s"
cd C:\dev\go\src\syscall
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\syscall\\_obj\\asm.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\syscall\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\syscall\\asm.s"
cd C:\dev\go\src\math
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\expm1_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\expm1_amd64.s"
cd C:\dev\go\src\syscall
pack r "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\syscall.a" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\syscall\\_obj\\asm.o" # internal
mkdir -p $WORK\internal\syscall\windows\_obj\
mkdir -p $WORK\internal\syscall\
cd C:\dev\go\src\internal\syscall\windows
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\internal\\syscall\\windows.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p internal/syscall/windows -complete -buildid a7c057996598410d33d7af460ef4119e6cee74dd -D _/E_/dev/go/src/internal/syscall/windows -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\dev\\go\\src\\internal\\syscall\\windows\\syscall_windows.go" "C:\\dev\\go\\src\\internal\\syscall\\windows\\zsyscall_windows.go"
mkdir -p $WORK\internal\syscall\windows\registry\_obj\
mkdir -p $WORK\internal\syscall\windows\
cd C:\dev\go\src\internal\syscall\windows\registry
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\internal\\syscall\\windows\\registry.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p internal/syscall/windows/registry -complete -buildid 47cb629e21b867f6af1446ab88716ec900ebed6e -D _/E_/dev/go/src/internal/syscall/windows/registry -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\dev\\go\\src\\internal\\syscall\\windows\\registry\\key.go" "C:\\dev\\go\\src\\internal\\syscall\\windows\\registry\\syscall.go" "C:\\dev\\go\\src\\internal\\syscall\\windows\\registry\\value.go" "C:\\dev\\go\\src\\internal\\syscall\\windows\\registry\\zsyscall_windows.go"
cd C:\dev\go\src\math
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\expm1_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\expm1_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\floor_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\floor_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\floor_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\floor_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\frexp_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\frexp_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\frexp_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\frexp_amd64.s"
mkdir -p $WORK\time\_obj\
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\hypot_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\hypot_amd64.s"
cd C:\dev\go\src\time
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\time.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p time -buildid adda2c1d03441bb78b5a01948f4c10dd96d17507 -D _/E_/dev/go/src/time -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\dev\\go\\src\\time\\format.go" "C:\\dev\\go\\src\\time\\sleep.go" "C:\\dev\\go\\src\\time\\sys_windows.go" "C:\\dev\\go\\src\\time\\tick.go" "C:\\dev\\go\\src\\time\\time.go" "C:\\dev\\go\\src\\time\\zoneinfo.go" "C:\\dev\\go\\src\\time\\zoneinfo_abbrs_windows.go" "C:\\dev\\go\\src\\time\\zoneinfo_read.go" "C:\\dev\\go\\src\\time\\zoneinfo_windows.go"
cd C:\dev\go\src\math
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\hypot_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\hypot_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\ldexp_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\ldexp_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\ldexp_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\ldexp_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\log10_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\log10_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\log10_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\log10_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\log1p_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\log1p_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\log1p_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\log1p_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\log_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\log_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\log_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\log_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\mod_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\mod_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\mod_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\mod_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\modf_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\modf_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\modf_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\modf_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\remainder_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\remainder_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\remainder_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\remainder_amd64.s"
mkdir -p $WORK\os\_obj\
cd C:\dev\go\src\os
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\os.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p os -buildid 4450da31fd556ca092423988201f2853da57a0db -D _/E_/dev/go/src/os -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\dev\\go\\src\\os\\dir_windows.go" "C:\\dev\\go\\src\\os\\doc.go" "C:\\dev\\go\\src\\os\\env.go" "C:\\dev\\go\\src\\os\\error.go" "C:\\dev\\go\\src\\os\\error_windows.go" "C:\\dev\\go\\src\\os\\exec.go" "C:\\dev\\go\\src\\os\\exec_posix.go" "C:\\dev\\go\\src\\os\\exec_windows.go" "C:\\dev\\go\\src\\os\\file.go" "C:\\dev\\go\\src\\os\\file_posix.go" "C:\\dev\\go\\src\\os\\file_windows.go" "C:\\dev\\go\\src\\os\\getwd.go" "C:\\dev\\go\\src\\os\\path.go" "C:\\dev\\go\\src\\os\\path_windows.go" "C:\\dev\\go\\src\\os\\proc.go" "C:\\dev\\go\\src\\os\\stat_windows.go" "C:\\dev\\go\\src\\os\\sticky_notbsd.go" "C:\\dev\\go\\src\\os\\str.go" "C:\\dev\\go\\src\\os\\sys_windows.go" "C:\\dev\\go\\src\\os\\types.go" "C:\\dev\\go\\src\\os\\types_windows.go"
cd C:\dev\go\src\math
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\sin_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\sin_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\sin_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\sin_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\sincos_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\sincos_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\sincos_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\sincos_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\sqrt_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\sqrt_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\sqrt_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\sqrt_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\tan_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\tan_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\tan_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\math\\tan_amd64.s"
pack r "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math.a" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\abs_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\asin_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\atan2_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\atan_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\dim_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\exp2_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\exp_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\expm1_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\floor_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\frexp_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\hypot_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\ldexp_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\log10_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\log1p_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\log_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\mod_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\modf_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\remainder_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\sin_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\sincos_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\sqrt_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\math\\_obj\\tan_amd64.o" # internal
mkdir -p $WORK\strconv\_obj\
cd C:\dev\go\src\strconv
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\strconv.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p strconv -complete -buildid fda9aa19b60a87aaf88a54030514a7435a770093 -D _/E_/dev/go/src/strconv -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\dev\\go\\src\\strconv\\atob.go" "C:\\dev\\go\\src\\strconv\\atof.go" "C:\\dev\\go\\src\\strconv\\atoi.go" "C:\\dev\\go\\src\\strconv\\decimal.go" "C:\\dev\\go\\src\\strconv\\extfloat.go" "C:\\dev\\go\\src\\strconv\\ftoa.go" "C:\\dev\\go\\src\\strconv\\isprint.go" "C:\\dev\\go\\src\\strconv\\itoa.go" "C:\\dev\\go\\src\\strconv\\quote.go"
mkdir -p $WORK\reflect\_obj\
cd C:\dev\go\src\reflect
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\reflect.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p reflect -buildid 8c98f1fd3c6b993dc2b0a4303988ac7dc27ade11 -D _/E_/dev/go/src/reflect -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack -asmhdr "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\reflect\\_obj\\go_asm.h" "C:\\dev\\go\\src\\reflect\\deepequal.go" "C:\\dev\\go\\src\\reflect\\makefunc.go" "C:\\dev\\go\\src\\reflect\\type.go" "C:\\dev\\go\\src\\reflect\\value.go"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\reflect\\_obj\\asm_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\reflect\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\reflect\\asm_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\reflect\\_obj\\asm_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\reflect\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\reflect\\asm_amd64.s"
pack r "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\reflect.a" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\reflect\\_obj\\asm_amd64.o" # internal
mkdir -p $WORK\fmt\_obj\
cd C:\dev\go\src\fmt
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\fmt.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p fmt -complete -buildid 0a832900cc1e24786c786ed3bc3e05d2ddb482c6 -D _/E_/dev/go/src/fmt -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\dev\\go\\src\\fmt\\doc.go" "C:\\dev\\go\\src\\fmt\\format.go" "C:\\dev\\go\\src\\fmt\\print.go" "C:\\dev\\go\\src\\fmt\\scan.go"
mkdir -p $WORK\runtime\cgo\_obj\
mkdir -p $WORK\runtime\
cd C:\dev\go\src\runtime\cgo
CGO_LDFLAGS="-g" "-O2" "-lm" "-mthreads" "C:\\dev\\go\\pkg\\tool\\windows_amd64\\cgo.exe" -objdir "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -importpath runtime/cgo -import_runtime_cgo=false -import_syscall=false -- -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -Wall -Werror cgo.go
gcc -I "C:\\dev\\go\\src\\runtime\\cgo" -m64 -mthreads -fmessage-length=0 -print-libgcc-file-name
gcc -I "C:\\dev\\go\\src\\runtime\\cgo" -m64 -mthreads -fmessage-length=0 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -g -O2 -Wall -Werror -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_main.o" -c "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_main.c"
gcc -I "C:\\dev\\go\\src\\runtime\\cgo" -m64 -mthreads -fmessage-length=0 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -g -O2 -Wall -Werror -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_export.o" -c "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_export.c"
gcc -I "C:\\dev\\go\\src\\runtime\\cgo" -m64 -mthreads -fmessage-length=0 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -g -O2 -Wall -Werror -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\cgo.cgo2.o" -c "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\cgo.cgo2.c"
gcc -I "C:\\dev\\go\\src\\runtime\\cgo" -m64 -mthreads -fmessage-length=0 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -g -O2 -Wall -Werror -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_libinit_windows.o" -c "C:\\dev\\go\\src\\runtime\\cgo\\gcc_libinit_windows.c"
gcc -I "C:\\dev\\go\\src\\runtime\\cgo" -m64 -mthreads -fmessage-length=0 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -g -O2 -Wall -Werror -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_util.o" -c "C:\\dev\\go\\src\\runtime\\cgo\\gcc_util.c"
gcc -I "C:\\dev\\go\\src\\runtime\\cgo" -m64 -mthreads -fmessage-length=0 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -g -O2 -Wall -Werror -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_windows_amd64.o" -c "C:\\dev\\go\\src\\runtime\\cgo\\gcc_windows_amd64.c"
gcc -I "C:\\dev\\go\\src\\runtime\\cgo" -m64 -mthreads -fmessage-length=0 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -g -O2 -Wall -Werror -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_amd64.o" -c "C:\\dev\\go\\src\\runtime\\cgo\\gcc_amd64.S"
gcc -I "C:\\dev\\go\\src\\runtime\\cgo" -m64 -mthreads -fmessage-length=0 -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_main.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_export.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\cgo.cgo2.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_libinit_windows.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_util.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_windows_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_amd64.o" -g -O2 -lm -mthreads
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\cgo.exe" -objdir "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -dynpackage cgo -dynimport "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_.o" -dynout "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_import.go" -dynlinker
gcc -I "C:\\dev\\go\\src\\runtime\\cgo" -m64 -mthreads -fmessage-length=0 -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_all.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_export.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\cgo.cgo2.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_libinit_windows.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_util.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_windows_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\gcc_amd64.o" -g -O2 -mthreads -Wl,-r -nostdlib -Wl,--start-group -lmingwex -lmingw32 -Wl,--end-group C:/dev/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/libgcc.a
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p runtime/cgo -buildid ed5f47d56c028a2a380b284b16c76381a44b71e1 -D _/E_/dev/go/src/runtime/cgo -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack -asmhdr "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\go_asm.h" "C:\\dev\\go\\src\\runtime\\cgo\\callbacks.go" "C:\\dev\\go\\src\\runtime\\cgo\\iscgo.go" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_gotypes.go" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\cgo.cgo1.go" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_cgo_import.go"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\asm.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\asm_amd64.o" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\cgo\\asm_amd64.s"
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\old6a.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\asm_amd64.o.new" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\" -I "C:\\dev\\go\\pkg\\include" -D GOOS_windows -D GOARCH_amd64 "C:\\dev\\go\\src\\runtime\\cgo\\asm_amd64.s"
pack r "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo.a" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\asm_amd64.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\runtime\\cgo\\_obj\\_all.o" # internal
mkdir -p $WORK\command-line-arguments\_obj\
mkdir -p C:\Users\username\AppData\Local\Temp\
cd C:\dev\IdeaProjects\go-ot
CGO_LDFLAGS="-g" "-O2" "-LC:/dev/IdeaProjects/go-ot/libs" "-lopus" "C:\\dev\\go\\pkg\\tool\\windows_amd64\\cgo.exe" -objdir "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\" -importpath command-line-arguments -- -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\" main.go
gcc -I "C:\\dev\\IdeaProjects\\go-ot" -m64 -mthreads -fmessage-length=0 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\" -g -O2 -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_main.o" -c "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_main.c"
gcc -I "C:\\dev\\IdeaProjects\\go-ot" -m64 -mthreads -fmessage-length=0 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\" -g -O2 -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_export.o" -c "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_export.c"
gcc -I "C:\\dev\\IdeaProjects\\go-ot" -m64 -mthreads -fmessage-length=0 -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\" -g -O2 -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\main.cgo2.o" -c "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\main.cgo2.c"
gcc -I "C:\\dev\\IdeaProjects\\go-ot" -m64 -mthreads -fmessage-length=0 -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_main.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_export.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\main.cgo2.o" -g -O2 -LC:/dev/IdeaProjects/go-ot/libs -lopus
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\cgo.exe" -objdir "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\" -dynpackage main -dynimport "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_.o" -dynout "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_import.go"
gcc -I "C:\\dev\\IdeaProjects\\go-ot" -m64 -mthreads -fmessage-length=0 -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_all.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_export.o" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\main.cgo2.o" -g -O2 -LC:/dev/IdeaProjects/go-ot/libs -Wl,-r -nostdlib -Wl,--start-group -lmingwex -lmingw32 -Wl,--end-group C:/dev/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/libgcc.a
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\compile.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments.a" -trimpath "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -p main -buildid 8943f0e79821ead7f985e023f832a7fe2816ad8c -D _/C_/dev/IdeaProjects/go-ot -I "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -pack "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_gotypes.go" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\main.cgo1.go" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_cgo_import.go"
pack r "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments.a" "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments\\_obj\\_all.o" # internal
cd .
"C:\\dev\\go\\pkg\\tool\\windows_amd64\\link.exe" -o "C:\\Users\\username\\AppData\\Local\\Temp\\run0go" -L "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530" -extld=gcc -buildmode=exe -buildid=8943f0e79821ead7f985e023f832a7fe2816ad8c "C:\\Users\\username\\AppData\\Local\\Temp\\go-build106725530\\command-line-arguments.a"
@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Jul 15, 2015

Thanks. Here is what I think is happening:

You invoke go build with "-o PATH/run0go". The go command passed that -o option directly to the linker. The linker opened that exact file name as the output file, without appending ".exe". The linker saw this was a cgo build, and decided to invoke the external linker. The Go linker closed the output file (PATH/run0go) but did not remove it. The Go linker passed the same -o option to the external linker. The external linker, being a regular Windows linker, appended ".exe". That created run0go.exe. The empty run0go file was created by the Go linker and never removed.

@7phs

This comment has been minimized.

Copy link
Author

commented Jul 15, 2015

I propose to add a default extension '.exe' when building an executable file in Windows, regardless of the file name specified in the option -o.
How it is implemented in gcc.

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Jul 15, 2015

We could do that. The change I sent is still reasonable, though.

I will leave that decision up to the Windows folks. It would most likely be a 1.6 change.

@gopherbot

This comment has been minimized.

Copy link

commented Jul 15, 2015

CL https://golang.org/cl/12243 mentions this issue.

@7phs

This comment has been minimized.

Copy link
Author

commented Jul 15, 2015

A file with zero size removed.
Thank you for the fix.

@alexbrainman

This comment has been minimized.

Copy link
Member

commented Jul 16, 2015

I think the real problem here is that gcc does not honour value passed via "-o" flag:

C:\tmp>dir
 Volume in drive C has no label.
 Volume Serial Number is PO76-FT4S

 Directory of C:\tmp

16/07/2015  12:05 PM    <DIR>          .
16/07/2015  12:05 PM    <DIR>          ..
16/07/2015  11:56 AM                59 a.c
               1 File(s)             59 bytes
               2 Dir(s)  106,400,501,760 bytes free

C:\tmp>type a.c
#include <stdio.h>

int main()
{
        printf("hello\n");
}
C:\tmp>gcc -o a a.c

C:\tmp>dir
 Volume in drive C has no label.
 Volume Serial Number is PO76-FT4S

 Directory of C:\tmp

16/07/2015  12:05 PM    <DIR>          .
16/07/2015  12:05 PM    <DIR>          ..
16/07/2015  11:56 AM                59 a.c
16/07/2015  12:05 PM            23,481 a.exe
               2 File(s)         23,540 bytes
               2 Dir(s)  106,400,481,280 bytes free

C:\tmp>gcc -o a. a.c

C:\tmp>dir
 Volume in drive C has no label.
 Volume Serial Number is PO76-FT4S

 Directory of C:\tmp

16/07/2015  12:06 PM    <DIR>          .
16/07/2015  12:06 PM    <DIR>          ..
16/07/2015  12:06 PM            23,481 a
16/07/2015  11:56 AM                59 a.c
16/07/2015  12:05 PM            23,481 a.exe
               3 File(s)         47,021 bytes
               2 Dir(s)  106,400,456,704 bytes free

C:\tmp>

I think we should "force" gcc by putting . at the end of the file name (see my example above).

Alex

@rsc rsc changed the title cmd/go: A result of build cgo project on windows: two files and one zero sized cmd/link: output has .exe suffix added by gcc during external linking Jul 20, 2015

@rsc rsc modified the milestones: Go1.5, Go1.5Maybe Jul 20, 2015

@golang golang locked and limited conversation to collaborators Aug 5, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.