Hello all,
i am trying to compile libusb-1.0 to put in the toolchain, to get a working oscam running on my wndr3700v2. But I have many troubles. First of all, i have installed a stable release (kernel 2.6), compiled oscam and all works great. Then I have installed a trunk release of openwrt (a snapshot downloaded from official page), then oscam does not works anymore. So i have download sources to compile openwrt by myself, selecting ONLY "make toolchain.." in menuconfig options, waited, then in staging_dir i have the toolchain for openwrt. The next step i have to do is put libusb-1.0 into toolchain. But, when i run the command:
./configure CC=/home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/bin/mips-openwrt-linux-uclibc-gcc-4.6.3 --target=mips-linux --host=mips-linux --prefix=/home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/usr --exec-prefix=/home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/usr CC=/home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/bin/mips-openwrt-linux-uclibc-gcc-4.6.3
that is the right command that with openwrt toolchain from backfire works great, the output is
checking for mips-linux-gcc... /home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/bin/mips-openwrt-linux-uclibc-gcc-4.6.3
checking whether the C compiler works... no
configure: error: in `/home/jerrino77/oscam/tool/libusb-1.0.8':
configure: error: C compiler cannot create executables
See `config.log' for more details.
and this is the log
configure:3203: $? = 0
configure:3192: /home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/bin/mips-openwrt-linux-uclibc-gcc-4.6.3 -v >&5
Reading specs from /home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/lib/gcc/mips-openwrt-linux-uclibc/4.6.3/specs
COLLECT_GCC=/home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/bin/mips-openwrt-linux-uclibc-gcc-4.6.3
COLLECT_LTO_WRAPPER=/home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/libexec/gcc/mips-openwrt-linux-uclibc/4.6.3/lto-wrapper
Target: mips-openwrt-linux-uclibc
Configured with: /home/jerrino77/router/trunk/build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/gcc-linaro-4.6-2012.02/configure --prefix=/home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33 --build=i686-linux-gnu --host=i686-linux-gnu --target=mips-openwrt-linux-uclibc --with-gnu-ld --enable-target-optspace --disable-libgomp --disable-libmudflap --disable-multilib --disable-nls --with-host-libstdcxx=-lstdc++ --with-float=soft --with-gmp=/home/jerrino77/router/trunk/staging_dir/host --with-mpfr=/home/jerrino77/router/trunk/staging_dir/host --disable-decimal-float --with-mips-plt --with-mpc=/home/jerrino77/router/trunk/staging_dir/host --disable-libssp --disable-__cxa_atexit --with-headers=/home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/include --enable-languages=c,c++ --enable-shared --enable-threads --with-slibdir=/home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/lib --enable-lto --with-libelf=/home/jerrino77/router/trunk/staging_dir/host --disable-tls
Thread model: posix
gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02)
configure:3203: $? = 0
configure:3192: /home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/bin/mips-openwrt-linux-uclibc-gcc-4.6.3 -V >&5
mips-openwrt-linux-uclibc-gcc-4.6.3: error: unrecognized option '-V'
mips-openwrt-linux-uclibc-gcc-4.6.3: fatal error: no input files
compilation terminated.
configure:3203: $? = 1
configure:3192: /home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/bin/mips-openwrt-linux-uclibc-gcc-4.6.3 -qversion >&5
mips-openwrt-linux-uclibc-gcc-4.6.3: error: unrecognized option '-qversion'
mips-openwrt-linux-uclibc-gcc-4.6.3: fatal error: no input files
compilation terminated.
configure:3203: $? = 1
configure:3223: checking whether the C compiler works
configure:3245: /home/jerrino77/router/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/bin/mips-openwrt-linux-uclibc-gcc-4.6.3 conftest.c >&5
mips-openwrt-linux-uclibc-gcc-4.6.3: fatal error: environment variable 'STAGING_DIR' not defined
compilation terminated.
configure:3249: $? = 1
configure:3287: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libusb"
| #define PACKAGE_TARNAME "libusb"
| #define PACKAGE_VERSION "1.0.8"
| #define PACKAGE_STRING "libusb 1.0.8"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "libusb"
| #define VERSION "1.0.8"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3292: error: in `/home/jerrino77/oscam/tool/libusb-1.0.8':
configure:3296: error: C compiler cannot create executables
See `config.log' for more details.
Why does not works? there is some new option to give in ./configure variabiles between gcc-4.3.3 (that, i repeat, works) and gcc-4.6.3?
Thanks in advance (and sorry for my poor english!!)