Gentoo Archives: gentoo-embedded

From: "Nicolas MASSÉ" <nicolas27.masse@×××××××.net>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] Gentoo on Asus WL-HDD2.5 (mips32)
Date: Thu, 23 Feb 2006 22:53:50

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:, line 1894:   Called dyn_compile, 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' 
'target_alias=mipsel-default-linux-uclibc' --cache-file=.././config.cache 

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



File name MIME type
gdb_config.log text/x-log


Subject Author
Re: [gentoo-embedded] Gentoo on Asus WL-HDD2.5 (mips32) Mike Frysinger <vapier@g.o>