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

Closed
Rajadeepan opened this issue Feb 8, 2018 · 2 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@Rajadeepan
Copy link

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?

yes

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 GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_LDFLAGS=-g -02
set GO386=sse2
set GCCGO=gccgo

What did you do?

I wanted to compile a open-source code https://github.com/ServiceComb/go-chassis 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.

test

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 
@ianlancetaylor
Copy link
Contributor

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 added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Mar 13, 2018
@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
@gopherbot
Copy link

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.)

@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.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants