anyone with eh_frame_hdr problem after update?

414 views
Skip to first unread message

Dorival Pedroso

unread,
Oct 1, 2014, 12:10:28 AM10/1/14
to golan...@googlegroups.com
hi, i'm just wondering if anyone is having the following kind of problem lately?

/usr/bin/ld: .eh_frame_hdr refers to overlapping FDEs.
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
 go/pkg/tool/linux_amd64/6l: running g++ failed: unsuccessful exit status 0x100

Dave Cheney

unread,
Oct 1, 2014, 12:14:31 AM10/1/14
to golan...@googlegroups.com
It's a bit hard to debug the problem without more details.

Which version did you come from, which version are you on now? Where did you get them from? Are you sure you've removed the old version? Which platform are you using? What package are you trying to compile? Etc

Dave

Dorival Pedroso

unread,
Oct 1, 2014, 12:27:04 AM10/1/14
to golan...@googlegroups.com
all right, here you are

i've deleted everything (rm -rf $GOPATH/bin && rm $GOPATH/pkg) and did a clean 
followed by
./all.bash
thus, it's the latest version (output of hg iden just now):
304279587445 tip

i'm trying to compile the code from:
https://code.google.com/p/gemlab/
by means of:
go get code.google.com/p/gemlab
and then running
touch gemlab.go
./all.bash
which uses cgo

it used to work a while ago...
cheers
d

Dorival Pedroso

unread,
Oct 1, 2014, 12:30:30 AM10/1/14
to golan...@googlegroups.com
oh yeah:

Which platform are you using? => Debian/unstable (updated just now)
$ gcc --version
gcc (Debian 4.9.1-15) 4.9.1
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Dave Cheney

unread,
Oct 1, 2014, 12:38:09 AM10/1/14
to Dorival Pedroso, golan...@googlegroups.com
What did you upgrade from? Can you check that 'which go' points to the version of go you just built, and that you do not have GOROOT set.

If that doesn't fix the problem, please paste the full output from go install -x, that should make it pretty easy to figure out what is going wrong.

Dave


--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/SZf3bXzMEVk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dorival Pedroso

unread,
Oct 1, 2014, 8:56:06 PM10/1/14
to golan...@googlegroups.com, dorival...@gmail.com
I cannot find what upgrade (debian, gcc, go) caused the problem...

I've created a smaller (tiny/clean) test; but can no longer find any error.

Basically, there are two files part1.go and part2.go; each one needs to be linked to an external library. Files attached.

To run (if interested; otherwise forget it and THANKS for the help).
cd cgoproblem/uselib
go run main.go

we should see a window with a sphere in interactive mode (by VTK)
cheers
d
part1.cpp
part1.go
part1.h
part2.cpp
part2.go
part2.h
uselib_main.go

epru...@googlemail.com

unread,
Oct 3, 2014, 8:50:58 AM10/3/14
to golan...@googlegroups.com, dorival...@gmail.com


Am Donnerstag, 2. Oktober 2014 02:56:06 UTC+2 schrieb Dorival Pedroso:
I cannot find what upgrade (debian, gcc, go) caused the problem...

The failure to link was caused by a patch to binutils:

https://www.sourceware.org/ml/binutils/2014-09/msg00175.html
https://www.sourceware.org/ml/binutils/2014-09/msg00094.html

I'm still wondering what's causing the condition, or more importantly, how to work around this (in ARB).
Reply all
Reply to author
Forward
0 new messages