miguelfreitas / twister-core

twister core / daemon
MIT License
1.42k stars 251 forks source link

[Regression] Not compiling on raspberry pi with raspbian #147

Open Tschaul opened 10 years ago

Tschaul commented 10 years ago

The newset version of twisterd does not compile on my pi with a clean raspbian installation. The older version (from 2014-01-26) did compile. The make command crashes with the following being the last lines:

g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -O2 -DNDEBUG        -c helpers/memenv/memenv.cc -o helpers/memenv/memenv.o
rm -f libmemenv.a
ar -rs libmemenv.a helpers/memenv/memenv.o
ar: creating libmemenv.a
make[1]: Leaving directory `/home/pi/twister-core/src/leveldb'
make[1]: Entering directory `/home/pi/twister-core'
  CXX    libtorrent/src/web_connection_base.o
cc1plus: error: unrecognized command line option '-msse2'
make[1]: *** [libtorrent/src/web_connection_base.o] Error 1
make[1]: Leaving directory `/home/pi/twister-core'
make: *** [all-recursive] Error 1
mpancorbo commented 10 years ago

A quick roundabout is ./configure --enable-sse2=no. But ideally the autoconfig tools should know about the arquitecture.

With this fix, the modules compile, but the executable is not built at link stage because a problem with openssl that I don't understand. I'm quite sure I've installed all packages concerning openssl (development version also).

EDIT: after a shutdown make linked properly the program.

Tschaul commented 10 years ago

Worked for me also. It should be automatic, however. Leaving it open.