9 Jan 2012

errno 530 when building go program

So I was trying to get my pulleb program work on my office machine. I built my program on my virtual machine, 32bit Debian, and copied the binary to the work machine, ran it. It says "errno 530". Go is statically linked, so it can't be the library problem, so it might has something to do with the system compatibility.
So the `uname -a` on the office machine is:
Linux hostname 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux

$cat /etc/issue
Red Hat Enterprise Linux WS release 4 (Nahant Update 4)
Kernel \r on an \m
Then I downloaded go source and tried building the compiler, and got the same error:
...
# Building go command from bootstrap script.
# Building Go code.
# net
open cgo_linux.go: errno 530
# os/user
open lookup_unix.go: errno 530
...
WHAT?!!!
Then I filed a issue: http://code.google.com/p/go/issues/detail?id=2640
and turns out this is an issue go deep in the kernel.
RHEL uses a customised kernel and changed libc constants.

So either I can upgrade the kernel, or there is a workaround: 
in $GOROOT/src/pkg/syscall/zerrors_linux_386.go, change:
    O_CLOEXEC = 0x80000
to
    O_CLOEXEC = 0 
And if there are more error, try:
export CGO_ENABLED=0
Reference: 
[1] http://code.google.com/p/go/issues/detail?id=293
[2] http://sourceware.org/bugzilla/show_bug.cgi?id=5227

4 comments:

Anonymous said...

Facebook apps are the hottest things of these days.

The victim installs the application, and the application spreads to friends.
After that, you'll move on to Map Mayhem where you'll have to recognize the shapes of
countries before the time is up.

Here is my blog post ... how To hack a facebook account without downloading anything

Anonymous said...

The dedicated team of AVG professionals is available here
all round time, whom you are able to reach by calling around the AVG tech support
number. Investors are there to assist the entrepreneur and to achieve a profit from their investment from the entrepreneurs
company. Birthdays, Anniversaries, Housewarmings,
Weddings, Baby Showers, Christmas and Valentines Day.

Feel free to surf to my webpage http://saleschannel.blogspot.com/

Anonymous said...

Cazual cards tend tо Ƅе developed wіth the primary purpose
tߋ engage an individual inside satisfying, neνertheless habit forming game play instantly աith no intricate management ѕystem oor evеn extended studying contour.
Ԝe've ǥot աere forced tօ re also-match up Һow we operate ɑnd still have invest in muϲh more
regulates ѕo wе cаn stay moree tightly focused аnd grow fɑr moгe
profitable. Some place, tɦere is a fashionable that wіll women mаn givе other types of gift tɦerefore to thеiг life partner rɑther
than diamond rings but man preѕent trսly bridal bands.

My web pаge free games solitaire download

Anonymous said...

It is not my first time to pay a quick visit this site, i am visitong
this web site dailly and get fastidious data from here ever day.



Have a look at my blog - iron force hack download