Issue 1:
What version of Go are you using (go version)?

# go version
go version go1.6.1 linux/amd64

What operating system and processor architecture are you using (go env)?

# go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/hyperbuild"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

What did you do?

Tried to build an compile https://github.com/hyperhq/hyperd.git

mkdir -p ${GOPATH}/src/github.com/hyperhq

cd ${GOPATH}/src/github.com/hyperhq

git clone https://github.com/hyperhq/runv.git runv

git clone https://github.com/hyperhq/hyperd.git hyperd

git clone https://github.com/hyperhq/hyperstart.git hyperstart

cd hyperd

./autogen.sh

./configure

make

What did you expect to see?

Two go binaries hyperd and hyperctlto be built succesfully like it happens in Ubuntu/debian.

What did you see instead?

During make, the error thrown was:

# make
make[1]: Entering directory '/root/hyperbuild/src/github.com/hyperhq/hyperd'
go build -tags "static_build libdm_no_deferred_remove exclude_graphdriver_btrfs" -ldflags "-X github.com/hyperhq/hyperd/utils.VERSION 0.5.0" hyperd.go
# command-line-arguments
link: warning: option -X github.com/hyperhq/hyperd/utils.VERSION 0.5.0 may not work in future releases; use -X github.com/hyperhq/hyperd/utils.VERSION=0.5.0
**/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1**
/usr/lib/gcc/x86_64-alpine-linux-musl/5.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/go-link-108672170/000004.o: unrecognized relocation (0x2a) in section `.text'
/usr/lib/gcc/x86_64-alpine-linux-musl/5.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

Makefile:785: recipe for target 'build-hyperd' failed
make[1]: *** [build-hyperd] Error 2
make[1]: Leaving directory '/root/hyperbuild/src/github.com/hyperhq/hyperd'
Makefile:359: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Posted Makefile with the error above at: http://hastebin.com/evikapojav.mel

Thanks in advance!

Issue 2:
by qeed.quan:

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. run test.go with the sdl bindings i attached, sdl version i used is 1.2.14

What is the expected output?
should print "test" periodically if all works ok.

What do you see instead?

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

Which operating system are you using?
Slackware Linux 64 bit version

Which revision are you using? (hg identify)
43cf9b39b647 weekly/weekly.2012-02-14
using go amd64

Please provide any additional information below.

I think this is a threading problem, since using pthreads also leads to segfault. when I
try to do stuff like pthread_join on a c thread that calls a go function.

I've attached my SDL bindings for SDL 1.2.14 and
a sample go code that receives signal 11

Attachments:

sdl.tar.gz (7419 bytes)

test.go (406 bytes)