I have crosscompiled nano-1.3.11-r2 and found that it compiles and works, but nano executeble is called /bin/armv5tel-softfloat-linux-gnu-nano but all links still point to /bin/nano. Here is log: ********************* ... >>> Source unpacked. * econf: updating nano-1.3.11/config.guess with /usr/share/gnuconfig/config.guess * econf: updating nano-1.3.11/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=armv5tel-softfloat-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --bindir=/bin --enable-color --enable-multibuffer --enable-nanorc --disable-wrapping-as-root --disable-spell --disable-justify --disable-debug --disable-nls --disable-utf8 --disable-tiny --without-slang --libdir=/usr/lib64 --target=armv5tel-softfloat-linux-gnu --build=x86_64-pc-linux-gnu checking build system type... x86_64-pc-linux-gnu ... strip: armv5tel-softfloat-linux-gnu-strip --strip-unneeded bin/armv5tel-softfloat-linux-gnu-nano >>> Completed installing nano-1.3.11-r2 into /var/tmp/portage/nano-1.3.11-r2/image/ >>> Merging app-editors/nano-1.3.11-r2 to /mnt/gntpda/ --- /mnt/gntpda/usr/ --- /mnt/gntpda/usr/share/ --- /mnt/gntpda/usr/share/man/ --- /mnt/gntpda/usr/share/man/man1/ >>> /mnt/gntpda/usr/share/man/man1/armv5tel-softfloat-linux-gnu-nano.1.gz >>> /mnt/gntpda/usr/share/man/man1/armv5tel-softfloat-linux-gnu-rnano.1.gz --- /mnt/gntpda/usr/share/man/man5/ >>> /mnt/gntpda/usr/share/man/man5/armv5tel-softfloat-linux-gnu-nanorc.5.gz --- /mnt/gntpda/usr/share/info/ >>> /mnt/gntpda/usr/share/info/nano.info.gz --- /mnt/gntpda/usr/share/doc/ --- /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/ >>> /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/ChangeLog.gz >>> /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/README.gz >>> /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/AUTHORS.gz >>> /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/nanorc.sample.gz >>> /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/BUGS.gz >>> /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/NEWS.gz >>> /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/TODO.gz --- /mnt/gntpda/usr/bin/ >>> /mnt/gntpda/usr/bin/nano -> /bin/nano --- /mnt/gntpda/bin/ >>> /mnt/gntpda/bin/armv5tel-softfloat-linux-gnu-nano >>> /mnt/gntpda/bin/rnano -> nano --- /mnt/gntpda/etc/ >>> /mnt/gntpda/etc/nanorc >>> Safely unmerging already-installed instance... --- !mtime obj /mnt/gntpda/usr/share/man/man5/armv5tel-softfloat-linux-gnu-nanorc.5.gz --- !mtime obj /mnt/gntpda/usr/share/man/man1/armv5tel-softfloat-linux-gnu-rnano.1.gz --- !mtime obj /mnt/gntpda/usr/share/man/man1/armv5tel-softfloat-linux-gnu-nano.1.gz --- !mtime obj /mnt/gntpda/usr/share/info/nano.info.gz --- !mtime obj /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/nanorc.sample.gz --- !mtime obj /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/TODO.gz --- !mtime obj /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/README.gz --- !mtime obj /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/NEWS.gz --- !mtime obj /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/ChangeLog.gz --- !mtime obj /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/BUGS.gz --- !mtime obj /mnt/gntpda/usr/share/doc/nano-1.3.11-r2/AUTHORS.gz --- cfgpro obj /mnt/gntpda/etc/nanorc --- !mtime obj /mnt/gntpda/bin/armv5tel-softfloat-linux-gnu-nano <<< sym /mnt/gntpda/bin/rnano --- !empty dir /mnt/gntpda/usr/share/man/man5 --- !empty dir /mnt/gntpda/usr/share/man/man1 --- !empty dir /mnt/gntpda/usr/share/man --- !empty dir /mnt/gntpda/usr/share/info --- !empty dir /mnt/gntpda/usr/share/doc/nano-1.3.11-r2 --- !empty dir /mnt/gntpda/usr/share/doc --- !empty dir /mnt/gntpda/usr/share --- !empty dir /mnt/gntpda/usr/bin --- !empty dir /mnt/gntpda/usr --- !empty dir /mnt/gntpda/etc --- !empty dir /mnt/gntpda/bin --- !targe sym /mnt/gntpda/usr/bin/nano >>> original instance of package unmerged safely. * More helpful info about nano, visit the GDP page: * http://www.gentoo.org/doc/en/nano-basics-guide.xml >>> Regenerating /mnt/gntpda/etc/ld.so.cache... >>> app-editors/nano-1.3.11-r2 merged. ******************************************* I think, that it should be called "nano" in any system.
This is fixed by passing --program-prefix= to configure. (As a workaround until it's in portage, you can use the EXTRA_ECONF variable for this.)
CTARGET has no meaning when cross-compiling nano remove CTARGET from the env when cross-compiling it and it'll work just fine