Changes between Version 5 and Version 6 of TipAndDoc/Linux/OpenWRT/CrossCompile


Ignore:
Timestamp:
Jun 21, 2012 2:31:04 PM (12 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/Linux/OpenWRT/CrossCompile

    v5 v6  
    395395openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/openssl: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1, dynamically linked (uses shared libs), with unknown capability 0x41000000 = 0xf676e75, with unknown capability 0x10000 = 0x70403, not stripped 
    396396}}} 
     397 
     398 == ncurses == 
     399 * mitty@precise:~/openwrt$ wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz 
     400 * mitty@precise:~/openwrt/ncurses-5.9$ CC=mips-openwrt-linux-gcc ./configure --prefix=$STAGING_DIR 
     401{{{ 
     402checking for egrep... grep -E 
     403Configuring NCURSES 5.9 ABI 5 (Sun Jun 17 21:04:38 JST 2012) 
     404checking build system type... x86_64-unknown-linux-gnu 
     405checking host system type... x86_64-unknown-linux-gnu 
     406checking target system type... x86_64-unknown-linux-gnu 
     407Configuring for linux-gnu 
     408checking for prefix... /home/mitty/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/ 
     409checking for gcc... mips-openwrt-linux-gcc 
     410checking for C compiler default output... a.out 
     411checking whether the C compiler works... configure: error: cannot run C compiled programs. 
     412If you meant to cross compile, use `--host'. 
     413}}} 
     414 
     415 === configure with host=mips-unknown-linux-gnu === 
     416 * mitty@precise:~/openwrt/ncurses-5.9$ CC=mips-openwrt-linux-gcc CXX=mips-openwrt-linux-g++ ./configure --prefix=$STAGING_DIR --host=mips-unknown-linux-gnu 
     417{{{ 
     418checking for mips-unknown-linux-gnu-g++... no 
     419checking for mips-unknown-linux-gnu-c++... no 
     420checking for mips-unknown-linux-gnu-gpp... no 
     421checking for mips-unknown-linux-gnu-aCC... no 
     422checking for mips-unknown-linux-gnu-CC... no 
     423checking for mips-unknown-linux-gnu-cxx... no 
     424checking for mips-unknown-linux-gnu-cc++... no 
     425checking for mips-unknown-linux-gnu-cl... no 
     426checking for mips-unknown-linux-gnu-FCC... no 
     427checking for mips-unknown-linux-gnu-KCC... no 
     428checking for mips-unknown-linux-gnu-RCC... no 
     429checking for mips-unknown-linux-gnu-xlC_r... no 
     430checking for mips-unknown-linux-gnu-xlC... no 
     431checking for g++... g++ 
     432}}} 
     433  * oops 
     434 
     435 === configure with host=mips-openwrt-linux === 
     436 * mitty@precise:~/openwrt/ncurses-5.9$ CC=mips-openwrt-linux-gcc CXX=mips-openwrt-linux-g++ ./configure --prefix=$STAGING_DIR --host=mips-openwrt-linux 
     437 * mitty@precise:~/openwrt/ncurses-5.9$ make 
     438{{{ 
     439compatibility.cc:(.text._ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEi+0x188): undefined reference to `_Unwind_Resume' 
     440collect2: ld returned 1 exit status 
     441make[1]: *** [demo] Error 1 
     442make[1]: Leaving directory `/home/mitty/openwrt/ncurses-5.9/c++' 
     443make: *** [all] Error 2 
     444}}} 
     445 
     446 * https://dev.openwrt.org/browser/trunk/package/ncurses/Makefile のCONFIGURE_ARGSを参考にする 
     447 
     448 * mitty@precise:~/openwrt/ncurses-5.9$ CC=mips-openwrt-linux-gcc CXX=mips-openwrt-linux-g++ ./configure --prefix=$STAGING_DIR --host=mips-openwrt-linux  --enable-echo --enable-const --enable-overwrite --disable-rpath --without-ada --without-debug --without-profile --without-progs --disable-big-core --disable-home-terminfo --with-normal --with-shared --with-terminfo-dirs=/usr/share/terminfo --with-default-terminfo-dir=/usr/share/terminfo 
     449 * mitty@precise:~/openwrt/ncurses-5.9$ make 
     450 * mitty@precise:~/openwrt/ncurses-5.9$ make install