eresi icon indicating copy to clipboard operation
eresi copied to clipboard

eresi doesn't build fails ld: unrecognised option -p

Open mrexcessive opened this issue 9 years ago • 1 comments

Error:----------------------------------- Building libaspect.. make[1]: Entering directory '/home/peter/CTFs/IOsmash/lv32/eresi/libaspect' ld: unrecognized option -p collect2: error: ld returned 1 exit status Makefile:27: recipe for target 'libaspect32.so' failed make[1]: *** [libaspect32.so] Error 1 make[1]: Leaving directory '/home/peter/CTFs/IOsmash/lv32/eresi/libaspect' Makefile:37: recipe for target 'world' failed make: *** [world] Error 2

using make on $ uname -a Linux kali2 4.0.0-kali1-amd64 #1 SMP Debian 4.0.4-1+kali2 (2015-06-03) x86_64 GNU/Linux

$ ld --version ld (elftoolchain HEAD Linux git:heads/master-0-gf143ddf-dirty)

I'm sure just something I don't understand about toolchain setup. Couldn't find anyone else having this error, so new issue.

mrexcessive avatar Aug 31 '16 08:08 mrexcessive

Would you mind running make again such as to print more information (e.g. with -d)? You might wanna delete the @'s from libaspect/Makefile to echo the commands if make -d doesn't do it already.

The error is weird. I don't see how any of the rules would pass a -p (?!?!?!) to ld. But I'd agree with you that it looks like it's something about your toolchain setup. I never used elftoolchain, but the build process works just fine on my kali with the standard GNU binutils for Debian - and maybe switching to binutils is your easiest workaround at this point.

julioauto avatar Sep 08 '16 13:09 julioauto