Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example "booking" not working #631

Closed
vadim-su opened this issue Jun 1, 2014 · 4 comments
Closed

Example "booking" not working #631

vadim-su opened this issue Jun 1, 2014 · 4 comments
Assignees
Labels
type-support not actionable, recommend StackOverflow
Milestone

Comments

@vadim-su
Copy link

vadim-su commented Jun 1, 2014

revel run github.com/revel/revel/samples/booking
.....
INFO  2014/06/02 00:59:56 harness.go:165: Listening on :9000
TRACE 2014/06/02 00:59:58 harness.go:126: Rebuild
TRACE 2014/06/02 00:59:58 build.go:128: Exec: [/usr/bin/git --git-dir=..../.local/lib/go/src/github.com/revel/revel/samples/booking/.git describe --always --dirty]
WARN  2014/06/02 00:59:58 build.go:132: Cannot determine git repository version: exit status 128
TRACE 2014/06/02 00:59:58 build.go:77: Exec: [/usr/bin/go build -ldflags -X github.com/revel/revel/samples/booking/app.APP_VERSION "" -tags gorp -o .../.local/lib/go/bin/booking github.com/revel/revel/samples/booking/app/tmp]
ERROR 2014/06/02 01:00:30 build.go:84: # github.com/revel/revel/samples/booking/app/tmp
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/go-link-fGMVn1/go.o: перемещение R_X86_64_32 для «main.runMode» не может использоваться при создании общего объекта; перекомпилируйте с -fPIC
/var/tmp/go-link-fGMVn1/go.o: error adding symbols: Некорректное значение
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
/usr/lib/go/pkg/tool/linux_amd64/6l: running gcc failed: unsuccessful exit status 0x100

ERROR 2014/06/02 01:00:30 build.go:248: Failed to parse build errors:
 # github.com/revel/revel/samples/booking/app/tmp
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/go-link-fGMVn1/go.o: перемещение R_X86_64_32 для «main.runMode» не может использоваться при создании общего объекта; перекомпилируйте с -fPIC
/var/tmp/go-link-fGMVn1/go.o: error adding symbols: Некорректное значение
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
/usr/lib/go/pkg/tool/linux_amd64/6l: running gcc failed: unsuccessful exit status 0x100

@brendensoares
Copy link
Member

Hmm...Cyrillic script...

"Некорректное значение
collect2: ошибка: выполнение ld завершилось с кодом возврата 1"

in English:
"incorrect value
collect2: error: ld execution completed with return code 1"

What is collect2?

@brendensoares brendensoares self-assigned this Jun 6, 2014
@brendensoares brendensoares modified the milestone: v0.11 Jun 6, 2014
@pushrax
Copy link
Contributor

pushrax commented Jun 6, 2014

http://gcc.gnu.org/onlinedocs/gccint/Collect2.html

What version of Go are you using?

@brendensoares brendensoares added this to the v0.11 milestone Jun 19, 2014
@ghost
Copy link

ghost commented Aug 2, 2014

Looks like the issue is not related to Revel:

relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
Bad value
collect2: ld returned 1 exit status
running gcc failed: unsuccessful exit status 0x100

  1. https://code.google.com/p/go/issues/detail?id=6940
  2. https://code.google.com/p/go/issues/detail?id=5067

The Go linker does not currently support building objects that may be linked into a PIE.

@brendensoares
Copy link
Member

Thanks for the update @AnonX. I'm closing this issue unless there is an action item for Revel. Thanks @deterok.

notzippy added a commit to notzippy/revel that referenced this issue Oct 8, 2014
May be used by the revel run, build, package, test or debug commands to send specific flags
to "go build" like -ldflags -extldflags=-fno-PIC which would allow you to resolve issue revel#631 in the booking app on some machines
notzippy added a commit to notzippy/revel that referenced this issue Oct 20, 2014
May be used by the revel run, build, package, test or debug commands to send specific flags
to "go build" like -ldflags -extldflags=-fno-PIC which would allow you to resolve issue revel#631 in the booking app on some machines

Signed-off-by: NotZippy <notzippy@gmail.com>
notzippy added a commit to notzippy/revel that referenced this issue Oct 21, 2014
May be used by the revel run, build, package, test or debug commands to send specific flags
to "go build" like -ldflags -extldflags=-fno-PIC which would allow you to resolve issue revel#631 in the booking app on some machines

Signed-off-by: NotZippy <notzippy@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-support not actionable, recommend StackOverflow
Projects
None yet
Development

No branches or pull requests

3 participants