Binaryen: /usr/bin/ld: final link failed: Bad value

Created on 9 Aug 2016  路  5Comments  路  Source: WebAssembly/binaryen

I built it on my ubuntu 14.04

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o: unrecognized relocation (0x2a) in section `.init'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: ** [bin/asm2wasm] Error 1
make[1]: *
* [CMakeFiles/asm2wasm.dir/all] Error 2
make: *** [all] Error 2

Most helpful comment

I had the same issue. Solved it by deleting .o file from Make/linux64GccDPOpt directory (it had conflicting copies from build on 2 different machines for some reason. This may or may not apply to your case though) and then rebuilding. Hope it helps.

All 5 comments

My guess is some local problem happened on your machine, like running out of memory or disk space. Does this happen consistently? Trying a rebuild from scratch might also help.

@tsangint did you solve your problem..I face same problem..

@tsangint did you solve your problem..I face same problem..

I had the same problem and founded that I was linking with librairies that was built with another binutils version.

I had the same issue. Solved it by deleting .o file from Make/linux64GccDPOpt directory (it had conflicting copies from build on 2 different machines for some reason. This may or may not apply to your case though) and then rebuilding. Hope it helps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tlively picture tlively  路  10Comments

Becavalier picture Becavalier  路  4Comments

chicoxyzzy picture chicoxyzzy  路  6Comments

kripken picture kripken  路  11Comments

aheejin picture aheejin  路  5Comments