steeve / libtorrent

Mirror of libtorrent-rasterbar's SVN https://svn.code.sf.net/p/libtorrent/code/
Other
13 stars 2 forks source link

error: inconsistent operand constraints in an ‘asm’ #5

Open trappedinspacetime opened 9 years ago

trappedinspacetime commented 9 years ago

Hi, I am on Ubuntu 14.04.2 32 bit platform. I cloned libtorent and issued following command:

   ./bootstrap.sh --with-boost=/opt/boost-1-58-0/

in compilation process I got :

     CXX      crc32c.lo
   In file included from crc32c.cpp:34:0:
   ../include/libtorrent/cpuid.hpp: In function ‘bool libtorrent::supports_sse42()’:
   ../include/libtorrent/cpuid.hpp:54:27: error: inconsistent operand constraints in an ‘asm’
        : "a" (type), "c" (0));
                       ^

I read that it's related to recent version of gnu gcc compiler.

How can I fix it?

steeve commented 9 years ago

This version is fairly old (the mirror is not actively maintained)

Try from the official release (1.0.5 at the moment)

On Saturday, May 16, 2015, Kenn notifications@github.com wrote:

Hi, I am on Ubuntu 14.04.2 32 bit platform. I cloned libtorent and issued following command:

./bootstrap.sh --with-boost=/opt/boost-1-58-0/

in compilation process I got :

 CXX      crc32c.lo

In file included from crc32c.cpp:34:0: ../include/libtorrent/cpuid.hpp: In function ‘bool libtorrent::supports_sse42()’: ../include/libtorrent/cpuid.hpp:54:27: error: inconsistent operand constraints in an ‘asm’ : "a" (type), "c" (0)); ^

I read that it's related to recent version of gnu gcc compiler.

How can I fix it?

— Reply to this email directly or view it on GitHub https://github.com/steeve/libtorrent/issues/5.

Steeve Morin twitter.com/steeve github.com/steeve linkd.in/smorin