ipkg install libgmp
I'm trying to compile libtorrent on my router. (native, i dont understand how to cross-compile)
installed optware-devel and buildtools
goes on and on until I terminate it. Tried to install libgmp from source, but same thing happens.Code:[admin@WL500gP libtorrent-0.12.2]$ ./configure --prefix=/opt expr: can't load library 'libgmp.so.3' expr: can't load library 'libgmp.so.3' expr: can't load library 'libgmp.so.3'
ipkg install libgmp
right, i tried just gmp. Should have looked thru the packages. Sry.
But thanks for the help!
Now it has problems with libsigc++. it's installed. but says i should add it to PKG_CONFIG_PATH.
tried to compile from source. configure was ok. but make resulted in a compiler error: segmentation fault.
tried coping the sigc++2.0.pc to lib/pkgconfig
but its not a real solution since the includes are not in there place (so i cant really compile)
Last edited by 3ddy; 03-04-2009 at 02:02.
Figured out the include stuff.
Now its giving me internal compiler error too.
Code:[admin@WL500gP libtorrent-0.12.2]$ make make all-recursive make[1]: Entering directory `/tmp/mnt/disc0_3/libtorrent-0.12.2' Making all in src make[2]: Entering directory `/tmp/mnt/disc0_3/libtorrent-0.12.2/src' Making all in torrent make[3]: Entering directory `/tmp/mnt/disc0_3/libtorrent-0.12.2/src/torrent' Making all in data make[4]: Entering directory `/tmp/mnt/disc0_3/libtorrent-0.12.2/src/torrent/data' /opt/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -g -O2 -g -DDEBUG -fvisibility=hidden -I/opt/include -I/opt/include/sigc++-2.0 -I/opt/lib/sigc++-2.0/include -MT block.lo -MD -MP -MF .deps/block.Tpo -c -o block.lo block.cc mkdir .libs g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -g -O2 -g -DDEBUG -fvisibility=hidden -I/opt/include -I/opt/include/sigc++-2.0 -I/opt/lib/sigc++-2.0/include -MT block.lo -MD -MP -MF .deps/block.Tpo -c block.cc -fPIC -DPIC -o .libs/block.o /opt/include/c++/bits/stl_algo.h: In function 'void std::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<torrent::BlockTransfer**, std::vector<torrent::BlockTransfer*, std::allocator<torrent::BlockTransfer*> > >]': /opt/include/c++/bits/stl_algo.h:1814: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make[4]: *** [block.lo] Error 1 make[4]: Leaving directory `/tmp/mnt/disc0_3/libtorrent-0.12.2/src/torrent/data' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/mnt/disc0_3/libtorrent-0.12.2/src/torrent' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/mnt/disc0_3/libtorrent-0.12.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/mnt/disc0_3/libtorrent-0.12.2' make: *** [all] Error 2 [admin@WL500gP libtorrent-0.12.2]$
no idea people?
I have feeling that it's impossible to compile rtorrent on the router. I think that was the conclusion of Novik --- the author of the web interface for it. May be you give another try to cross compilation. Here is the instruction: http://www.nslu2-linux.org/wiki/Optw...ckageToOptware
Okay, here's what happens with the cross-compiling:
When i hit make libtorrent, it starts a script. It downloads buildroot, uclibc, some headers...etc.
After binutils it starts to compile.
Here's the end:
Code:/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd/doc' ./chew -f /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/doc.str </home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/../hash.c >hash.tmp /bin/sh /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/../../move-if-change hash.tmp hash.texi make chew make[6]: Entering directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd/doc' make[6]: `chew' is up to date. make[6]: Leaving directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd/doc' ./chew -f /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/doc.str </home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/../linker.c >linker.tmp /bin/sh /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/../../move-if-change linker.tmp linker.texi make chew make[6]: Entering directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd/doc' make[6]: `chew' is up to date. make[6]: Leaving directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd/doc' ./chew -f /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/doc.str </home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/../mmo.c >mmo.tmp /bin/sh /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/../../move-if-change mmo.tmp mmo.texi restore=: && backupdir=".am$$" && \ am__cwd=`pwd` && cd /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc && \ rm -rf $backupdir && mkdir $backupdir && \ if (/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/missing makeinfo --split-size=5000000 --split-size=5000000 --version) >/dev/null 2>&1; then \ for f in /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/bfd.info /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/bfd.info-[0-9] /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/bfd.info-[0-9][0-9] /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/bfd.i[0-9] /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/bfd.i[0-9][0-9]; do \ if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \ done; \ else :; fi && \ cd "$am__cwd"; \ if /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/missing makeinfo --split-size=5000000 --split-size=5000000 -I /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc \ -o /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/bfd.info /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/bfd.texinfo; \ then \ rc=0; \ cd /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc; \ else \ rc=$?; \ cd /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc && \ $restore $backupdir/* `echo ".//home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/bfd.info" | sed 's|[^/]*$||'`; \ fi; \ rm -rf $backupdir; exit $rc WARNING: `makeinfo' is missing on your system. You should only need it if you modified a `.texi' or `.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy `make' (AIX, DU, IRIX). You might want to install the `Texinfo' package or the `GNU make' package. Grab either from any GNU archive site. make[5]: *** [/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/doc/bfd.info] Error 1 make[5]: Leaving directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd/doc' Making info in po make[5]: Entering directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd/po' ( if test 'x/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/po' != 'x.'; then \ posrcprefix='/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/'; \ else \ posrcprefix="../"; \ fi; \ rm -f SRC-POTFILES-t SRC-POTFILES \ && (sed -e '/^#/d' \ -e '/^[ ]*$/d' \ -e "s@.*@ $posrcprefix& \\\\@" < /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/po/SRC-POTFILES.in \ | sed -e '$s/\\$//') > SRC-POTFILES-t \ && chmod a-w SRC-POTFILES-t \ && mv SRC-POTFILES-t SRC-POTFILES ) ( rm -f BLD-POTFILES-t BLD-POTFILES \ && (sed -e '/^#/d' \ -e '/^[ ]*$/d' \ -e "s@.*@ ../& \\\\@" < /home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8/bfd/po/BLD-POTFILES.in \ | sed -e '$s/\\$//') > BLD-POTFILES-t \ && chmod a-w BLD-POTFILES-t \ && mv BLD-POTFILES-t BLD-POTFILES ) cd .. \ && CONFIG_FILES=po/Makefile.in:po/Make-in \ CONFIG_HEADERS= /bin/sh ./config.status config.status: creating po/Makefile.in config.status: executing depfiles commands config.status: executing default-1 commands config.status: executing default commands make[5]: Leaving directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd/po' make[5]: Entering directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd/po' make[5]: Nothing to be done for `info'. make[5]: Leaving directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd/po' make[5]: Entering directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd' make[5]: Nothing to be done for `info-am'. make[5]: Leaving directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd' make[4]: *** [info-recursive] Error 1 make[4]: Leaving directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/bfd' make[3]: *** [all-bfd] Error 2 make[3]: Leaving directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build' make[1]: *** [/home/anakin/slug/optware/oleg/toolchain/buildroot/toolchain_build_mipsel/binutils-2.17.50.0.8-build/binutils/objdump] Error 2 make[1]: Leaving directory `/home/anakin/slug/optware/oleg/toolchain/buildroot' make: *** [/home/anakin/slug/optware/oleg/toolchain/buildroot/.built] Error 2 anakin@anakin-desktop:~/slug/optware/oleg$
Last edited by 3ddy; 08-04-2009 at 00:34.
seems like its something in Ubuntu. It did not matter that texinfo was installed.
Anyhow i installed Debian Lenny now works great.
Thanks for your help al37919!!
thread can be closed/deleted now
Last edited by 3ddy; 08-04-2009 at 12:56.