Skip to content

runtime: exit with useful message on ARM OABI #2533

@lupino3

Description

@lupino3
What steps will reproduce the problem?
1. Set up a Debian Lenny ARM VM under QEMU using the image and instructions available at
http://people.debian.org/~aurel32/qemu/arm/

The emulated processor is an ARM9 (according to
http://en.wikipedia.org/wiki/List_of_ARM_microprocessor_cores):

debian-arm:~/go/src/pkg/syscall# grep Processor /proc/cpuinfo
Processor       : ARM926EJ-S rev 5 (v5l)

2. Follow the instructions at http://golang.org/doc/install.html until the hg clone
command.

3. Compile go with the following commands 
debian-arm:~/go/src# GOOS=linux GOARCH=arm GOARM=9 ./make.bash
(I have also done the same with GOARM=5)

4. Run gofmt

What is the expected output?
no output, gofmt should wait for input on stdin

What do you see instead?
Illegal instruction

Which compiler are you using (5g, 6g, 8g, gccgo)?
5g (but I don't directly use any compiler)

Which operating system are you using?
Debian GNU/Linux Lenny for ARM

Which revision are you using?  (hg identify)
c1702f36df03 (release-branch.r60) release/release.r60.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions