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

libskype.c:1:0: error: CPU you selected does not support x86-64 instruction set #311

Closed
jusa213 opened this issue Jul 27, 2015 · 2 comments

Comments

@jusa213
Copy link

jusa213 commented Jul 27, 2015

Hello

Thanks for the nice plugin.
I get an error while trying to compile it on debian 8. I try to compile it on debian 64bit and of course a cpu that is 64bit. If this is the same issue like #306 then sorry for the double post.

here is what I get:

make
i686-pc-linux-gnu-gcc -I/usr/include/libpurple -DPURPLE_PLUGINS -DENABLE_NLS -Wall -pthread pkg-config --cflags glib-2.0 -I/usr/include -I. -g -march=athlon-xp -pipe libskype.c -o libskype.so -shared -fPIC -DPIC
/bin/sh: 1: i686-pc-linux-gnu-gcc: not found
Makefile:68: recipe for target 'libskype.so' failed
make: *** [libskype.so] Error 127

So I made some symlinks:
ln -s g++ i686-pc-linux-gnu-g++
ln -s gcc i686-pc-linux-gnu-gcc
ln -s c++ i686-pc-linux-gnu-c++
ln -s cpp i686-pc-linux-gnu-cpp

But then I get the following error:

make
i686-pc-linux-gnu-gcc -I/usr/include/libpurple -DPURPLE_PLUGINS -DENABLE_NLS -Wall -pthread pkg-config --cflags glib-2.0 -I/usr/include -I. -g -march=athlon-xp -pipe libskype.c -o libskype.so -shared -fPIC -DPIC
libskype.c:1:0: error: CPU you selected does not support x86-64 instruction set
/*
^
libskype.c:1:0: error: CPU you selected does not support x86-64 instruction set
Makefile:68: recipe for target 'libskype.so' failed
make: *** [libskype.so] Error 1

Any idea about that?

@vitalyster
Copy link
Contributor

  1. you are building old skype plugin, the new one located in skypeweb/ directory
  2. Makefile provided with old plugin assumed you have both 32 and 64 bit compilers, you should not link 32-bit stuff to 64-bit compiler, you need to install 32 bit compiler or comment out compilation of 32-bit plugin (in fact you need to go 1)

@jusa213
Copy link
Author

jusa213 commented Jul 27, 2015

@vitalyster, thanks for the explanation. Compiling inside skypeweb dir did work. I tink this ticket can be closed.

@jusa213 jusa213 closed this as completed Jul 27, 2015
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