aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: compiling for nslu2  (Read 5874 times)

zichichi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
compiling for nslu2
« on: March 17, 2007, 03:18:01 PM »

You could indicate to me like compiling amuled for nslu2? they are little practical…


Sorry for my english...  :(

THX!!!
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: compiling for nslu2
« Reply #1 on: March 17, 2007, 03:40:01 PM »

http://en.wikipedia.org/wiki/NSLU2

There it says it is possible to run Debian or Gentoo on such devices. It is then no different from compiling aMule in any linux system. Please check our wiki:
http://www.amule.org/wiki/index.php/Main_Page
http://www.amule.org/wiki/index.php/HowTo_Compile_In_Debian
http://www.amule.org/wiki/index.php/HowTo_Compile_In_Gentoo
Logged

zichichi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: compiling for nslu2
« Reply #2 on: March 21, 2007, 11:56:53 PM »

I have tried to compile amuled but they give this error to me:


  Configure script has finished system check.

  Configured aMule CVS for 'armv5tel-unknown-linux-gnu'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/local
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    no
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               no
  Should aMule be compiled with UPnP support?                yes
  Should aMule monolithic application be built?              no
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 no

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.6.3
                                       crypto++              embedded
                                       libpng                1.2.15beta5
                                       libgd                 Not detected
                                       zlib                  1.2.3
debian:~/cvsa/amule-cvs# make
make  all-recursive
make[1]: Entering directory `/root/cvsa/amule-cvs'
Making all in m4
make[2]: Entering directory `/root/cvsa/amule-cvs/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/cvsa/amule-cvs/m4'
Making all in docs
make[2]: Entering directory `/root/cvsa/amule-cvs/docs'
Making all in man
make[3]: Entering directory `/root/cvsa/amule-cvs/docs/man'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/cvsa/amule-cvs/docs/man'
make[3]: Entering directory `/root/cvsa/amule-cvs/docs'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/cvsa/amule-cvs/docs'
make[2]: Leaving directory `/root/cvsa/amule-cvs/docs'
Making all in src
make[2]: Entering directory `/root/cvsa/amule-cvs/src'
Making all in libs
make[3]: Entering directory `/root/cvsa/amule-cvs/src/libs'
Making all in ec
make[4]: Entering directory `/root/cvsa/amule-cvs/src/libs/ec'
make  all-recursive
make[5]: Entering directory `/root/cvsa/amule-cvs/src/libs/ec'
Making all in cpp
make[6]: Entering directory `/root/cvsa/amule-cvs/src/libs/ec/cpp'
make  all-am
make[7]: Entering directory `/root/cvsa/amule-cvs/src/libs/ec/cpp'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..    -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA   -I../../../../src -I../../../../src/libs -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef   -DUSE_WX_EXTENSIONS -MT libec_a-ECTag.o -MD -MP -MF ".deps/libec_a-ECTag.Tpo" -c -o libec_a-ECTag.o `test -f 'ECTag.cpp' || echo './'`ECTag.cpp; \
        then mv -f ".deps/libec_a-ECTag.Tpo" ".deps/libec_a-ECTag.Po"; else rm -f ".deps/libec_a-ECTag.Tpo"; exit 1; fi
ECTag.cpp:676: warning: unused parameter 'name'
ECTag.cpp:687: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
Preprocessed source stored into /tmp/ccV9ojVi.out file, please attach this to your bugreport.
make[7]: *** [libec_a-ECTag.o] Error 1
make[7]: Leaving directory `/root/cvsa/amule-cvs/src/libs/ec/cpp'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/root/cvsa/amule-cvs/src/libs/ec/cpp'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/root/cvsa/amule-cvs/src/libs/ec'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/root/cvsa/amule-cvs/src/libs/ec'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/cvsa/amule-cvs/src/libs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/cvsa/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/cvsa/amule-cvs'
make: *** [all] Error 2
debian:~/cvsa/amule-cvs#


Heeelllppp.. :(
« Last Edit: March 22, 2007, 12:11:43 AM by zichichi »
Logged

lfroen

  • Guest
Re: compiling for nslu2
« Reply #3 on: March 22, 2007, 12:32:41 PM »

Quote
ECTag.cpp:687: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.

As you can see - your compiler crashed. This most probably have nothing to do with amule, but memory or hardware problems as well as bugs in gcc.
Logged

zichichi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: compiling for nslu2
« Reply #4 on: March 22, 2007, 12:54:46 PM »

thanks for this reply. Increasing the  swap I can resolve the problem? When will exit version 2.20?
Logged

lfroen

  • Guest
Re: compiling for nslu2
« Reply #5 on: March 24, 2007, 06:18:27 PM »

Quote
Increasing the  swap I can resolve the problem?
How can I know?

BTW: why don't you using cross-compilation? You may get far better results when compiler is running on regular PC.
Logged

zichichi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: compiling for nslu2
« Reply #6 on: March 25, 2007, 01:04:18 PM »

   
I have resolved, the problem was to an error in the GCC installation. You could indicate like making a cross-compiling to me? Thanks.
Logged

lfroen

  • Guest
Re: compiling for nslu2
« Reply #7 on: March 25, 2007, 08:44:52 PM »

Quote
You could indicate like making a cross-compiling to me?

What ?
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: compiling for nslu2
« Reply #8 on: March 25, 2007, 10:55:25 PM »

Quote
You could indicate like making a cross-compiling to me?

What ?
C'mon, use your language-fu. He means "Would you please tell me how to do a cross-compiling?" :)
Logged

zichichi

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: compiling for nslu2
« Reply #9 on: March 26, 2007, 12:17:41 AM »

sorry for my english.......im italian... :-[
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: compiling for nslu2
« Reply #10 on: March 26, 2007, 02:24:37 AM »

Hey, no one here speaks english. That's why I understand you :D I am brazilian!
Logged

lfroen

  • Guest
Re: compiling for nslu2
« Reply #11 on: March 26, 2007, 11:38:53 AM »

Quote
C'mon, use your language-fu. He means "Would you please tell me how to do a cross-compiling?" Smiley
Unfortunately I have no clear idea. google?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: compiling for nslu2
« Reply #12 on: March 26, 2007, 03:10:51 PM »

Logged