Skip to content

runtime: give better diagnostic when it should be compiled with GOARM=5 #3381

Closed
@gopherbot

Description

@gopherbot

by [email protected]:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull", "hg update default", rebuild, and
retry
what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. Build a binary file or use go command
2. run it

What is the expected output?
Program should run

What do you see instead?
./5.out 
This program can only be run on EABI kernels


Which compiler are you using (5g, 6g, 8g, gccgo)?
5g

Which operating system are you using?
Linux

Which revision are you using?  (hg identify)
a303acb0a5f2 tip


Please provide any additional information below.

My ARM machine is using AEABI, /proc/config.gz has:

CONFIG_AEABI=y
# CONFIG_OABI_COMPAT is not set

However the test code in ./src/pkg/runtime/rt0_linux_arm.s is somehow failing apparently.

If I comment out the test syscalls in that file, everything runs fine, so somehow this
test breaks on my CPU.

(Oddly, the tests in build do pass, which is odd and confused me).

/proc/cpuinfo

cat /proc/cpuinfo
Processor   : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS    : 1191.11
Features    : swp half thumb fastmult edsp 
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part    : 0x131
CPU revision    : 1

Hardware    : Marvell GuruPlug Reference Board
Revision    : 0000
Serial      : 0000000000000000

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions