* [gentoo-embedded] Gentoo on Asus WL-HDD2.5 (mips32)
@ 2006-02-23 22:50 Nicolas MASSÉ
2006-02-24 0:55 ` Mike Frysinger
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas MASSÉ @ 2006-02-23 22:50 UTC (permalink / raw
To: gentoo-embedded
[-- Attachment #1: Type: text/plain, Size: 2633 bytes --]
Hello,
A couple of months ago, I bought a wireless box (Asus WL-HDD2.5) with a linux
firmware, a description is available at [1].
The first thing that I did, was to flash the firmware with openwrt, see [2].
Then, I wanted to install a gentoo on it so I started with a mips stage 3,
and it worked fine.
Since the box has a few bogomips (less than 100), I tried to crosscompile
using portage, but I often have problems with the ./configure scripts (it
cannot execute test programs while crosscompiling. Sometimes the script makes
a bad guess and it doesn't compile).
I successfully compiled hdparm, but it segfault when launched on the target.
So I decided to compile gdb, but the compilation ends with :
checking for main in -lm... yes
checking for wctype... yes
checking for library containing gethostbyname... none required
checking for library containing socketpair... none required
checking for library containing waddstr... no
checking for library containing tgetent... no
configure: error: no termcap library found
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory `/tmp/portage/gdb-6.4-r2/work/gdb-6.4'
make: *** [all] Error 2
!!! ERROR: sys-devel/gdb-6.4-r2 failed.
Call stack:
ebuild.sh, line 1894: Called dyn_compile
ebuild.sh, line 941: Called src_compile
The last configure script (gdb has several ./configure) was :
configure: running /bin/sh '../.././sim/igen/configure' --prefix=/usr
'--cache-file=./config.cache' '--build=i686-pc-linux-gnu'
'--host=mipsel-default-linux-uclibc' '--target=mipsel-default-linux-uclibc'
'--with-stabs' '--prefix=/usr' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc'
'--localstatedir=/var/lib' '--disable-werror' '--disable-nls'
'--program-transform-name=s,y,y,' '--srcdir=.././sim'
'CC=mipsel-default-linux-uclibc-gcc' 'CFLAGS=-O2 -fomit-frame-pointer -pipe '
'CPPFLAGS=-I/target/usr/include' 'LDFLAGS=' 'build_alias=i686-pc-linux-gnu'
'host_alias=mipsel-default-linux-uclibc'
'target_alias=mipsel-default-linux-uclibc' --cache-file=.././config.cache
--srcdir=../.././sim/igen
But on other ./configure from gdb I can see :
checking for tgetent in -ltermcap... no
checking for tgetent in -ltinfo... no
checking for tgetent in -lcurses... no
checking for tgetent in -lncurses... no
checking which library has the termcap functions... using gnutermcap
I attached the interresting lines of the config.log.
I am a bit lost, does anyone have an idea ?
Best regards,
Nicolas MASSE
[1] http://www.asus.com/products4.aspx?l1=12&l2=44&l3=0&model=460&modelmenu=1
[2] http://openwrt.org/
[-- Attachment #2: gdb_config.log --]
[-- Type: text/x-log, Size: 1266 bytes --]
configure:8289: mipsel-default-linux-uclibc-gcc -o conftest -O2 -fomit-frame-pointer -pipe -I/target/usr/include conftest.c -ltermcap -lm >&5
/usr/lib/gcc/mipsel-default-linux-uclibc/3.4.5/../../../../mipsel-default-linux-uclibc/bin/ld: cannot find -ltermcap
collect2: ld returned 1 exit status
configure:8289: mipsel-default-linux-uclibc-gcc -o conftest -O2 -fomit-frame-pointer -pipe -I/target/usr/include conftest.c -ltinfo -lm >&5
/usr/lib/gcc/mipsel-default-linux-uclibc/3.4.5/../../../../mipsel-default-linux-uclibc/bin/ld: cannot find -ltinfo
collect2: ld returned 1 exit status
configure:8289: mipsel-default-linux-uclibc-gcc -o conftest -O2 -fomit-frame-pointer -pipe -I/target/usr/include conftest.c -lcurses -lm >&5
/usr/lib/gcc/mipsel-default-linux-uclibc/3.4.5/../../../../mipsel-default-linux-uclibc/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
configure:8289: mipsel-default-linux-uclibc-gcc -o conftest -O2 -fomit-frame-pointer -pipe -I/target/usr/include conftest.c -lncurses -lm >&5
/usr/lib/gcc/mipsel-default-linux-uclibc/3.4.5/../../../../mipsel-default-linux-uclibc/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
configure:8323: result: no
configure:8332: error: no termcap library found
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-embedded] Gentoo on Asus WL-HDD2.5 (mips32)
2006-02-23 22:50 [gentoo-embedded] Gentoo on Asus WL-HDD2.5 (mips32) Nicolas MASSÉ
@ 2006-02-24 0:55 ` Mike Frysinger
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2006-02-24 0:55 UTC (permalink / raw
To: gentoo-embedded; +Cc: Nicolas MASSÉ
On Thursday 23 February 2006 17:50, Nicolas MASSÉ wrote:
> Since the box has a few bogomips (less than 100), I tried to crosscompile
> using portage, but I often have problems with the ./configure scripts (it
> cannot execute test programs while crosscompiling. Sometimes the script
> makes a bad guess and it doesn't compile).
usually this is a bug in the configure script ... you should prob file a bug
about the package
> I successfully compiled hdparm, but it segfault when launched on the
> target. So I decided to compile gdb, but the compilation ends with :
you need to have ncurses setup for the cross-compiler to find it
if you cross-compile ncurses and then copy the headers/libs
to /usr/$CTARGET/{lib,include}, that should be enough
-mike
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-24 0:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-23 22:50 [gentoo-embedded] Gentoo on Asus WL-HDD2.5 (mips32) Nicolas MASSÉ
2006-02-24 0:55 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox