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

make error #8

Closed
nerd-qp opened this issue May 25, 2017 · 4 comments
Closed

make error #8

nerd-qp opened this issue May 25, 2017 · 4 comments

Comments

@nerd-qp
Copy link

nerd-qp commented May 25, 2017

➜ rappel git:(master) make ARCH=x86

/usr/bin/ld: cannot find -ledit
collect2: error: ld returned 1 exit status
Makefile:52: recipe for target 'bin/rappel' failed
make: *** [bin/rappel] Error 1

OS: Linux 4.4.0-75-generic #96-Ubuntu SMP Thu Apr 20 09:56:33 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
cc: gcc

@yrp604
Copy link
Owner

yrp604 commented May 25, 2017

Did you have libedit-dev installed?

@nerd-qp
Copy link
Author

nerd-qp commented May 26, 2017

Yes, I have.

libedit-dev is already the newest version (3.1-20150325-1ubuntu2).

thanks!

BTW: this result is produced by a virtual machine
uname -v: Linux precise32 3.2.0-126-generic-pae #169-Ubuntu SMP Fri Mar 31 14:43:09 UTC 2017 i686 i686 i386 GNU/Linux
gcc -v: gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04)

ptrace.c: 100:4: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat]
ptrace.c: In function 'ptrace_launch':
ptrace.c:131:2: error: 'PTRACE_O_EXITKILL' undeclared (first use in this function)
ptrace.c:131:2: note: each undeclared identifier is reported only once for each function it appears in
ptrace.c: At top level:
cc1: warning: unrecognized command line option "-Wno-gnu-empty-initializer" [enabled by default]
make: *** [obj/ptrace.o] Error 1

Actually I can use -ledit on empty main. Maybe compiling using 64bits library with -m32 can be troubling?

@yrp604
Copy link
Owner

yrp604 commented May 27, 2017

I was able to reproduce and fix your problem by installing libedit-dev:i386 (dpkg --add-architecture i386). Could you try this?

Unfortunately PTRACE_O_EXITKILL requires linux 3.8+, so it doesn't look like rappel will work on 3.2

@nerd-qp
Copy link
Author

nerd-qp commented May 27, 2017

Many thanks!!! It worked!

@yrp604 yrp604 closed this as completed May 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants