Skip to content

Instantly share code, notes, and snippets.

@uggedal
Last active December 29, 2015 15:29
Show Gist options
  • Save uggedal/7691234 to your computer and use it in GitHub Desktop.
Save uggedal/7691234 to your computer and use it in GitHub Desktop.
relocation R_X86_64_32 against `main.func·001·f' can not be used when making a shared object; recompile with -fPIC
--- FAIL: TestCgoCrashHandler (0.88 seconds)
crash_test.go:78: expected "main: recovered done\nnew-thread: recovered done\nsecond-new-thread: recovered done\nmain-again: recovered done\n", but got "# command-line-arguments\n/usr/lib/gcc/x86_64-alpine-linux-uclibc/4.8.2/../../../../x86_64-alpine-linux-uclibc/bin/ld: /var/tmp/go-link-7nRypE/go.o: relocation R_X86_64_32 against `main.func·001·f' can not be used when making a shared object; recompile with -fPIC\n/var/tmp/go-link-7nRypE/go.o: could not read symbols: Bad value\ncollect2: error: ld returned 1 exit status\n/home/eu/src/alpine-docker/aports/go/src/go/pkg/tool/linux_amd64/6l: running gcc failed: unsuccessful exit status 0x100\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment