Bug 1100909 - golang arm cross compile fails complaining about 5g
Summary: golang arm cross compile fails complaining about 5g
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: golang
Version: 20
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Vincent Batts
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-23 19:53 UTC by Phil Sorber
Modified: 2014-08-14 00:56 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-14 00:56:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.