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

build fail. #42

Closed
combab0 opened this issue Jan 21, 2015 · 5 comments
Closed

build fail. #42

combab0 opened this issue Jan 21, 2015 · 5 comments
Labels

Comments

@combab0
Copy link

combab0 commented Jan 21, 2015

error: ‘TCC_RELOCATE_AUTO’ undeclared

root@ubuntu:~/miasm# python setup.py build
building
build with 'all'
running build
running build_py
running build_ext
building 'miasm2.jitter.Jittcc' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c miasm2/jitter/Jittcc.c -o build/temp.linux-x86_64-2.7/miasm2/jitter/Jittcc.o
miasm2/jitter/Jittcc.c: In function ‘tcc_compil’:
miasm2/jitter/Jittcc.c:172:30: error: ‘TCC_RELOCATE_AUTO’ undeclared (first use in this function)
if (tcc_relocate(tcc_state, TCC_RELOCATE_AUTO) < 0) {
^
miasm2/jitter/Jittcc.c:172:30: note: each undeclared identifier is reported only once for each function it appears in
miasm2/jitter/Jittcc.c:172:2: error: too many arguments to function ‘tcc_relocate’
if (tcc_relocate(tcc_state, TCC_RELOCATE_AUTO) < 0) {
^
In file included from miasm2/jitter/Jittcc.c:21:0:
/usr/include/libtcc.h:96:15: note: declared here
LIBTCCAPI int tcc_relocate(TCCState *s1);
^
SystemExit("error: command 'x86_64-linux-gnu-gcc' failed with exit status 1",)
build with 'notcc'
running build
running build_py
running build_ext
build notcc


Warning: TCC is not properly installed,
Miasm will be installed without TCC Jitter
Etheir install TCC or use LLVM jitter


build/lib.linux-x86_64-2.7

how build miasm?

@p-l-
Copy link
Contributor

p-l- commented Jan 21, 2015

Hi,

What version of TCC have you installed on your system? (run tcc -v)

@combab0
Copy link
Author

combab0 commented Jan 21, 2015

root@ubuntu:/var/hacklab# cd /root/
root@ubuntu:/root# tcc -v
tcc version 0.9.25
root@ubuntu:/root# apt-get install tcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
tcc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

@combab0
Copy link
Author

combab0 commented Jan 21, 2015

which version I should install ??

@p-l-
Copy link
Contributor

p-l- commented Jan 21, 2015

Do you have libtcc-dev installed from Ubuntu packages? If so, please read this.

@combab0
Copy link
Author

combab0 commented Jan 21, 2015

thanks for reply. it's work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants