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: linking error when build and executed go binary on 32 bit windows OS #23741

Rajadeepan opened this issue Feb 8, 2018 · 2 comments


Copy link

@Rajadeepan Rajadeepan commented Feb 8, 2018

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.9.2 windows/386

Does this issue reproduce with the latest release?


What operating system and processor architecture are you using (go env)?

   windows and 32 bit architecture

set GOARCH=386
set GOBIN=
set GOEXE=.exe
set GOHOSTOS=windows
set GOOS=windows
set CC=gcc
set CXX=g++
set CGO_LDFLAGS=-g -02
set GO386=sse2
set GCCGO=gccgo

What did you do?

I wanted to compile a open-source code and execute example(/examples/discovery/server).
The code successfully get compiled and executed in the 64-bit windows system.
But in 32bit windows system it gets build (using go build) successfully but while running the binary it is giving linking error "error while loading shared library : : cannot open shared object file": No Such file or directory.


What did you expect to see?

   Compile and execution should be working fine on 32 bit windows system

What did you see instead?

   Linking error 
Copy link

@ianlancetaylor ianlancetaylor commented Feb 8, 2018

This does not look like a Go error. It looks like a missing shared library, or perhaps you need to update the path used to find shared libraries.

@andybons andybons changed the title Linking error when build and executed go binary on 32 bit windows OS cmd/link: linking error when build and executed go binary on 32 bit windows OS Mar 13, 2018
@andybons andybons added this to the Unplanned milestone Mar 26, 2018
Copy link

@gopherbot gopherbot commented Apr 13, 2018

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@gopherbot gopherbot closed this Apr 13, 2018
@golang golang locked and limited conversation to collaborators Apr 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.