Bug 1100909

Summary: golang arm cross compile fails complaining about 5g
Product: [Fedora] Fedora Reporter: Phil Sorber <phil>
Component: golangAssignee: Vincent Batts <vbatts>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 20CC: adam, admiller, golang-updates, jkeck, lemenkov, phil, renich, s, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-14 00:56:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Phil Sorber 2014-05-23 19:53:44 UTC
Description of problem:
After new 1.2.2-2 rpms for golang were updated, I attempted to cross compile a hello world for arm and it failed complaining about lack of 5g.

Following packages installed:
golang-1.2.2-2.fc20.x86_64
golang-pkg-bin-linux-amd64-1.2.2-2.fc20.x86_64
golang-pkg-linux-arm-1.2.2-2.fc20.noarch
golang-src-1.2.2-2.fc20.noarch
golang-pkg-linux-amd64-1.2.2-2.fc20.noarch

$ GOOS=linux GOARCH=arm go build hello.go
go tool: no such tool "5g"

Version-Release number of selected component (if applicable):
1.2.2-2

How reproducible:
Easy.

Steps to Reproduce:
1. Install golang including the golang-pkg-linux-arm-1.2.2-2.fc20.noarch package
2. Attempt to build a hello world program with GOARCH=arm
3.

Actual results:
Error message:
go tool: no such tool "5g"

Expected results:
A shiny new arm binary.

Additional info:

Comment 1 Vincent Batts 2014-07-08 15:00:43 UTC
(In reply to Phil Sorber from comment #0)
> Description of problem:
> After new 1.2.2-2 rpms for golang were updated, I attempted to cross compile
> a hello world for arm and it failed complaining about lack of 5g.
> 
> Following packages installed:
> golang-1.2.2-2.fc20.x86_64
> golang-pkg-bin-linux-amd64-1.2.2-2.fc20.x86_64
> golang-pkg-linux-arm-1.2.2-2.fc20.noarch
> golang-src-1.2.2-2.fc20.noarch
> golang-pkg-linux-amd64-1.2.2-2.fc20.noarch
> 
> $ GOOS=linux GOARCH=arm go build hello.go
> go tool: no such tool "5g"
> 
> Version-Release number of selected component (if applicable):
> 1.2.2-2


Can you try this again with package version 1.2.2-7?

Comment 2 Phil Sorber 2014-07-28 03:36:58 UTC
It works with 1.2.2-9 now.

ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, not stripped

Thanks.