You are not logged in.

#1 2009-12-29 17:45:25

kfour
Member
From: chicago
Registered: 2009-07-15
Posts: 5
Website

libtorrent-svn compiling trouble

Using gcc 4.4.2-4
libtorrent-svn revision 1119

I get this error when trying to build the package from AUR:
checking signedness of mincore parameter... configure: error: failed, do *not* attempt fix this with --disable-mincore unless you are running Win32.

The libtorrent wiki specifically addresses this problem here: http://libtorrent.rakshasa.no/wiki/CompilationHelp

Problem: Most likely, no C++ compiler is installed.

Solution: Install g++ or any other competent C++ compiler.

In most cases this error message is very misleading and indicates a general inability to compile C++ code rather than a specific problem with the signedness of the mincore parameter.

I do have a C++ compiler installed. I have not been able to find any information on issues with libtorrent-svn and my compiler. What are my options for getting this compiled? Does anyone know what might be the problem? Thanks

Offline

#2 2009-12-29 22:04:18

zeerak
Member
Registered: 2007-12-24
Posts: 33

Re: libtorrent-svn compiling trouble

Whate versions of gcc and c++ compiler do you have installed? And do the versions match? if not then update to make them run the same version. That should take care of your issue :-)

Edit: Forgot to mention that glibc needs to be the same version as gcc and your c++ (assuming it's g++) compiler :-)

Last edited by zeerak (2009-12-29 22:08:23)

Offline

#3 2009-12-29 22:11:29

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: libtorrent-svn compiling trouble

maybe it can't find it? What does 'g++ --version' give you?

Offline

#4 2009-12-29 22:15:43

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: libtorrent-svn compiling trouble

post config.log


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2009-12-29 22:18:07

zeerak
Member
Registered: 2007-12-24
Posts: 33

Re: libtorrent-svn compiling trouble

I'm not quite sure I understand why that command would do anything to help other than compare the versions of the three packages i mentioned.
Also wouldn't it be quite strange for it not to be able to find the c++ compiler? If it is g++, I mean unless it's been manually it should just be at the standard place, or unless one has manually edited files pointing to it. Or am I mistaken about it?

Offline

#6 2009-12-29 23:39:25

kfour
Member
From: chicago
Registered: 2009-07-15
Posts: 5
Website

Re: libtorrent-svn compiling trouble

I copied the parts of config.log that seemed relevant. If I missed something important I will just post the entire thing, but it was fairly large.

configure:16597: g++ -c -march=i686 -mtune=generic -O2 -pipe -DNDEBUG   -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include    conftest.cpp >&5
conftest.cpp:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
configure:16597: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libtorrent"
| #define PACKAGE_TARNAME "libtorrent"
| #define PACKAGE_VERSION "0.12.6"
| #define PACKAGE_STRING "libtorrent 0.12.6"
| #define PACKAGE_BUGREPORT "jaris@ifi.uio.no"
| #define PACKAGE_URL ""
| #define PEER_NAME "-lt0C60-"
| #define PEER_VERSION "lt\x0C\x60"
| #define PACKAGE "libtorrent"
| #define VERSION "0.12.6"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define IS_LITTLE_ENDIAN 1
| #define _FILE_OFFSET_BITS 64
| #define USE_EPOLL 1
| #define SIZEOF_LONG 4
| #define DEFAULT_ADDRESS_SPACE_SIZE 1024
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_STATVFS_H 1
| #define HAVE_SYS_STATFS_H 1
| #define FS_STAT_FD fstatvfs(fd, &m_stat) == 0
| #define FS_STAT_FN statvfs(fn, &m_stat) == 0
| #define FS_STAT_STRUCT struct statvfs
| #define FS_STAT_SIZE_TYPE unsigned long
| #define FS_STAT_COUNT_TYPE fsblkcnt_t
| #define FS_STAT_BLOCK_SIZE (m_stat.f_frsize)
| #define USE_OPENSSL 1
| #define USE_OPENSSL_SHA 1
| #define USE_MADVISE 1
| #define LT_SMP_CACHE_BYTES 128
| #define lt_cacheline_aligned __attribute__((__aligned__(LT_SMP_CACHE_BYTES)))
| /* end confdefs.h.  */
| #include <sys/types.h>
|           #include <sys/mman.h>
|           #include <unistd.h>
|           void f() { mincore((char*)0, 0, (char*)0); }
|
configure:16610: error: failed, do *not* attempt fix this with --disable-mincore unless you are running Win32.

g++ --version and gcc --version returns: g++ (GCC) 4.4.2 20091208 (prerelease)

Also, forgot to add: glibc shows as 2.11.1-1. Is this correct? zeerak mentioned that glibc/gcc/g++ all need to be the same version...maybe this is whats going on?


edit #2: Ok so I switched repositories just to see if that helped. Apparently the one I was using was a tiny bit behind the unixheads one, so I updated to the new 2.6.32.2 kernel and headers. Tried to rebuild libtorrent-svn with no difference, still fails with the same error.

Last edited by kfour (2009-12-29 23:50:45)

Offline

#7 2009-12-30 07:45:37

kfour
Member
From: chicago
Registered: 2009-07-15
Posts: 5
Website

Re: libtorrent-svn compiling trouble

I used a bit of a workaround to solve this problem. I still have no idea why its doing what its doing but its not critical to solve anymore. I appreciate everyone's input.

Offline

Board footer

Powered by FluxBB