Page 1 of 1

rtorrent x86-64

Posted: 21 Aug 2012, 21:41
by Rava
I try to compile a current rtorrent, using 1.2rc1 (since I not managed to solve the NVidia Suspend Bug mentioned elsewhere with 1.2 finale) using the following files:

All files from http://slackbuilds.org/repository/12.0/ ... /rtorrent/
Changed the version of rtorrent to the used one in rtorrent.SlackBuild to 0.9.2

And the most recent sources: libtorrent-0.13.2.tar.gz and rtorrent-0.9.2.tar.gz from http://libtorrent.rakshasa.no/

It results in this error:

Code: Select all

configure:2438: checking for a BSD-compatible install
configure:2506: result: /usr/bin/ginstall -c
configure:2517: checking whether build environment is sane
configure:2567: result: yes
configure:2708: checking for a thread-safe mkdir -p
configure:2747: result: /usr/bin/mkdir -p
configure:2760: checking for gawk
configure:2776: found /usr/bin/gawk
configure:2787: result: gawk
configure:2798: checking whether make sets $(MAKE)
configure:2820: result: yes
configure:2936: checking for cppunit-config
configure:2967: result: no
configure:2977: checking for Cppunit - version >= 1.9.6
configure:2981: result: no
configure:3102: checking for g++
configure:3118: found /usr/bin/g++
configure:3129: result: g++
configure:3156: checking for C++ compiler version
configure:3165: g++ --version >&5
g++ (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3176: $? = 0
configure:3165: g++ -v >&5
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/specs
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/4.5.2/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../gcc-4.5.2/configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,fortran,java,objc,lto --enable-threads=posix --enable-checking=release --with-system-zlib --with-python-dir=/lib64/python2.6/site-packages --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --with-gnu-ld --verbose --disable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 4.5.2 (GCC) 
configure:3176: $? = 0
configure:3165: g++ -V >&5
g++: '-V' option must have argument
configure:3176: $? = 1
configure:3165: g++ -qversion >&5
g++: unrecognized option '-qversion'
g++: no input files
configure:3176: $? = 1
configure:3196: checking whether the C++ compiler works
configure:3218: g++ -O2 -march=i486 -mtune=i686   conftest.cpp  >&5
conftest.cpp:1:0: error: CPU you selected does not support x86-64 instruction set
configure:3222: $? = 1
configure:3260: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "rtorrent"
| #define PACKAGE_TARNAME "rtorrent"
| #define PACKAGE_VERSION "0.9.2"
| #define PACKAGE_STRING "rtorrent 0.9.2"
| #define PACKAGE_BUGREPORT "jaris@ifi.uio.no"
| #define PACKAGE_URL ""
| #define API_VERSION 6
| #define PACKAGE "rtorrent"
| #define VERSION "0.9.2"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3265: error: in `/tmp/SBo/rtorrent-0.9.2':
configure:3267: error: C++ compiler cannot create executables
I activated the 005-devel module, but not the crippled kernel sources, as I think I won't need them to compile a mere torrent client.

Any ideas why it fails at the g++ / C++ part?
Is it because g++ not uses

Code: Select all

g++: '-V' option must have argument
to get its version number, but

Code: Select all

root@porteus:/# g++ --version
g++ (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
??

Re: rtorrent x86-64

Posted: 21 Aug 2012, 22:42
by fanthom
@Rava

may i ask why (the heck) did you choose slackware-12.0 repository? there was not even 64bit slackware port at the time. that's why you get:

Code: Select all

configure:3218: g++ -O2 -march=i486 -mtune=i686   conftest.cpp  >&5
conftest.cpp:1:0: error: CPU you selected does not support x86-64 instruction set
please use slackware-13.37 instead and all your troubles should fade away...
http://slackbuilds.org/repository/13.37 ... /rtorrent/

Cheers

Re: rtorrent x86-64

Posted: 22 Aug 2012, 05:32
by Rava
@fanthom

Ohhhhh dum dum me.... I not realized that. *facepalms*

I will try again soon and tell you how it went... :)

wrote after 2 hours 41 minute 13 seconds:
_______________________________________________________

Finally, I managed to get on a bit, but not suceeded.

I installed libsigc++-2.2.10.tar.bz2 via libsigc++.SlackBuild, that went well.

Then I tried the same with curl-7.27.0.tar.bz2, but there is no such libcurl.SlackBuild or curl.SlackBuild.
So I did configure, make and make install of curl without the SlackBuild.

It installed the header files into /usr/local/include/curl/ ... And since the folder /usr/local/include was created just then, I presume that with Slackware the include dir is just /usr/include.
I first tried it with the above, but curl was not found by rtorrent.SlackBuild / the configure of rtorrent. Moved the curl include to /usr/include, but still not found:

Code: Select all

checking pkg-config is at least version 0.9.0... yes
checking for sigc... yes
checking for libcurl... no
configure: error: Package requirements (libcurl >= 7.15.4) were not met:

No package 'libcurl' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libcurl_CFLAGS
and libcurl_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Any ideas?

Re: rtorrent x86-64

Posted: 22 Aug 2012, 08:19
by fanthom
curl is maintained directly by slackware developers thus no need to keep it in slackbuilds database.

please use search engines in the future:
link
link2
link3

btw: curl is included in 1.2 Final and some time ago i have pushed kernel update + all drivers to the repo:
click

there is latest nVidia-304.37 driver so maybe it could resolve your suspend bug.
please try it as rc's are unsupported right now (i cant even remember what was included in each rc and what wasn't)

Cheers