Hi there,
I'm having some problems with Amule at my RT-AC66U B1 and decided to compile a binary with debug symbols enabled (for backtracing). I've followed wiki instruction to compile upon Entware and when running make package/amule/compile -j1 V=s, this is what I get:
Having a look into such file, I think issue is the one below:
Am I doing something wrong and my setup is not the proper one? Or is it something specific to Amule (I've been able to compile OpenVpn successfully)?.
Also, is there any guide for beginners on compiling upon Entware? . I've a lot of questions, like the ones below:
- How I can tell compiler that I want to build a binary for my router architecture?. Similar topic for Entware-ng (here) instructs on choosing the proper config file, but I cannot find them at Entware
- At Entware, Amule version is 2.3.1, while at Entware-ng is 2.3.2; is it possible to replace the older with the newer (e.g. by copying folder in /feed/oldports/amule)?
- Should I replace Amule compiling options (e.g. --enable-debug) with my own set directly at Makefile?.
- If I decide to give compiling upon Entware-ng a try, which options should I mark at make menuconfig?. I've no idea about which one I could need (beside target system / target profile)
Thanks a lot for reading,
Antiel.
I'm having some problems with Amule at my RT-AC66U B1 and decided to compile a binary with debug symbols enabled (for backtracing). I've followed wiki instruction to compile upon Entware and when running make package/amule/compile -j1 V=s, this is what I get:
Code:
checking whether the C++ compiler works... no
configure: error: in `/home/router/openwrt_trunk/build_dir/target-mipsel-linux-gnu/aMule-2.3.1':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
make[2]: *** [/home/router/openwrt_trunk/build_dir/target-mipsel-linux-gnu/aMule-2.3.1/.configured_yyyyyyyyyy] Error 77
make[2]: Leaving directory `/home/router/openwrt_trunk/feeds/oldports/amule'
make[1]: *** [package/feeds/oldports/amule/compile] Error 2
make[1]: Leaving directory `/home/router/openwrt_trunk'
make: *** [package/amule/compile] Error 2
Having a look into such file, I think issue is the one below:
Code:
configure:3518: $? = 0
configure:3507: mipsel-linux-uclibc-g++ -v >&5
Using built-in specs.
COLLECT_GCC=mipsel-linux-uclibc-g++
COLLECT_LTO_WRAPPER=/opt/entware/toolchain-entware/libexec/gcc/mipsel-linux-uclibc/4.6.4/lto-wrapper
Target: mipsel-linux-uclibc
Configured with: /home/ryzhovau/toolchain-src-git/build_dir/toolchain-mipsel_gcc4.6.4/gcc-4.6.4/configure --prefix=/opt/entware/toolchain-entware --build=i586-linux-gnu --host=i586-linux-gnu --target=mips$
Thread model: posix
gcc version 4.6.4 (GCC)
configure:3518: $? = 0
configure:3507: mipsel-linux-uclibc-g++ -V >&5
mipsel-linux-uclibc-g++: error: unrecognized option '-V'
mipsel-linux-uclibc-g++: fatal error: no input files
compilation terminated.
configure:3518: $? = 1
configure:3507: mipsel-linux-uclibc-g++ -qversion >&5
mipsel-linux-uclibc-g++: error: unrecognized option '-qversion'
mipsel-linux-uclibc-g++: fatal error: no input files
compilation terminated.
configure:3518: $? = 1
configure:3538: checking whether the C++ compiler works
configure:3560: mipsel-linux-uclibc-g++ -O2 -pipe -mips32 -mtune=mips32 -fno-caller-saves -I/home/router/openwrt_trunk/staging_dir/target-mipsel-linux-gnu/opt/lib/libiconv-full/include -I/home/router/open$
/opt/entware/toolchain-entware/lib/gcc/mipsel-linux-uclibc/4.6.4/../../../../mipsel-linux-uclibc/bin/ld: cannot find -liconv
collect2: ld returned 1 exit status
Am I doing something wrong and my setup is not the proper one? Or is it something specific to Amule (I've been able to compile OpenVpn successfully)?.
Also, is there any guide for beginners on compiling upon Entware? . I've a lot of questions, like the ones below:
- How I can tell compiler that I want to build a binary for my router architecture?. Similar topic for Entware-ng (here) instructs on choosing the proper config file, but I cannot find them at Entware
- At Entware, Amule version is 2.3.1, while at Entware-ng is 2.3.2; is it possible to replace the older with the newer (e.g. by copying folder in /feed/oldports/amule)?
- Should I replace Amule compiling options (e.g. --enable-debug) with my own set directly at Makefile?.
- If I decide to give compiling upon Entware-ng a try, which options should I mark at make menuconfig?. I've no idea about which one I could need (beside target system / target profile)
Thanks a lot for reading,
Antiel.