Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cross-Emerge fails - missing dependencies
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gr4c3r
n00b
n00b


Joined: 21 Sep 2013
Posts: 3

PostPosted: Tue Oct 08, 2013 9:10 pm    Post subject: Cross-Emerge fails - missing dependencies Reply with quote

Hi,

I wanted to set up Gentoo on my Beaglebone Black.
As far, this handbook http://www.gentoo.org/doc/en/handbook/handbook-arm.xml?full=1#book_part1_chap1 was very helpful - BTW thanks to the Authors.

Since it takes long time to build programs directly on the Beaglebone and further more I have not enough free iNodes on my SD Card to build programs on it, I wanted to cross-merge some programs on my host PC directly into the rootfs for my Beaglebone.
Therefore I found this (I think most up to date handbook) https://www.gentoo.org/proj/en/base/embedded/handbook/?part=1&chap=3 about cross-merging.

Unfortunatelly the cross-emerge process tells me that "ncurses library is not usable" and "no terminal library found". When I insert the SD card into my Beaglebone, I can build vim without any problems.

Since I couldn't find further help in the world wide web which helps me to solve this I have decided to start a new Thread here.

# armv7a-hoardfloat-linux-gnueabi-emerge --root-deps -v vim
Code:
checking for tgetent in -ltinfo... no
checking for tgetent in -lncurses... yes
ncurses library is not usable
checking for tgetent in -ltermlib... no
checking for tgetent in -ltermcap... no
checking for tgetent in -lcurses... yes
curses library is not usable
no terminal library found
checking for tgetent()... configure: error: NOT FOUND!
      You need to install a terminal library; for example ncurses.
      Or specify the name of the library with --with-tlib.
 * ERROR: app-editors/vim-core-7.3.762::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 2722:  Called vim_src_configure
 *        environment, line 3760:  Called econf '--with-features=tiny' '--enable-gui=no' '--without-x' '--disable-darwin' '--disable-perlinterp' '--disable-pythoninterp' '--disable-rubyinterp' '--disable-gpm' '--enable-nls' '--enable-acl' '--disable-selinux' '--with-modified-by=Gentoo-7.3.762'
 *   phase-helpers.sh, line  521:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=app-editors/vim-core-7.3.762::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/vim-core-7.3.762::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-editors/vim-core-7.3.762/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/vim-core-7.3.762/temp/environment'.
 * Working directory: '/var/tmp/portage/app-editors/vim-core-7.3.762/work/vim73'
 * S: '/var/tmp/portage/app-editors/vim-core-7.3.762/work/vim73'

>>> Failed to emerge app-editors/vim-core-7.3.762 for /risc/crossdev/rootfs/, Log file:

>>>  '/var/tmp/portage/app-editors/vim-core-7.3.762/temp/build.log'

 * Messages for package app-editors/vim-core-7.3.762 merged to /risc/crossdev/rootfs/:

 * ERROR: app-editors/vim-core-7.3.762::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 2722:  Called vim_src_configure
 *        environment, line 3760:  Called econf '--with-features=tiny' '--enable-gui=no' '--without-x' '--disable-darwin' '--disable-perlinterp' '--disable-pythoninterp' '--disable-rubyinterp' '--disable-gpm' '--enable-nls' '--enable-acl' '--disable-selinux' '--with-modified-by=Gentoo-7.3.762'
 *   phase-helpers.sh, line  521:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=app-editors/vim-core-7.3.762::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/vim-core-7.3.762::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-editors/vim-core-7.3.762/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/vim-core-7.3.762/temp/environment'.
 * Working directory: '/var/tmp/portage/app-editors/vim-core-7.3.762/work/vim73'
 * S: '/var/tmp/portage/app-editors/vim-core-7.3.762/work/vim73'



# armv7a-hoardfloat-linux-gnueabi-emerge --root-deps --info '=app-editors/vim-core-7.3.762::gentoo'
Code:
Portage 2.2.1 (default/linux/arm/13.0/armv7a, gcc-4.6.3, glibc-2.15-r3, 3.8.13 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.8.13-x86_64-Intel-R-_Core-TM-_i5_CPU_M_430_@_2.27GHz-with-gentoo-2.2
KiB Mem:     3914300 total,    180076 free
KiB Swap:    2097148 total,   2096848 free
Timestamp of tree: Tue, 01 Oct 2013 05:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hoardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/risc/crossdev/rootfs/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="acl arm berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules mudflap ncurses nls nptl openmp pam pcre readline session ssl tcpd unicode zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON


# armv7a-hoardfloat-linux-gnueabi-emerge --root-deps --pqv '=app-editors/vim-core-7.3.762:gentoo'
Code:

[ebuild  N    ] app-editors/vim-core-7.3.762 to /risc/crossdev/rootfs/ USE="acl nls -livecd"
[ebuild  N    ] app-editors/vim-7.3.762 to /risc/crossdev/rootfs/ USE="acl nls -X -cscope -debug -gpm -minimal -perl -python -ruby -vim-pager"
[ebuild  N    ] app-vim/gentoo-syntax-20130619 to /risc/crossdev/rootfs/ USE="-ignore-glep31"


I could find a discussion about the ncurses problem, so I've recompiled ncurses without tinfo, but vim still stucks on the same point.

There're also issues cross-emerging other programs, maybe I missed anything?
Please tell me if you need any further information to be able to help me. :oops:

Thanks in advance and best regards Julian
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Oct 08, 2013 10:54 pm    Post subject: Reply with quote

You cannot cross merge as you put it. Most people call it Cross-Compiling, and the only thing Cross Compiling does is allow you to build the Toolchain only from one arch to another. When finished you will have built the build toolchain.
Example
  1. Start with AMD64 Toolchain. This is known as the host build system
  2. Choose an arch to work towards. In your case Arm
  3. Use the host system and a chroot to build the compile toolchain for Arm. Since you are in a chroot, your toolchain will ignore the host systems environment
  4. Copy the Toolchain build directory over to the target system, or continue using the chroot pointing all packages you build to the Toolchain build directory


Start with the Gentoo Embedded Handbook. The list I wrote above is a summary of Chapter one. BTW, this really works. To See a working example Visit the Chromium OS page. This is the FOSS equivalent to Google's ChromeOS
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
gr4c3r
n00b
n00b


Joined: 21 Sep 2013
Posts: 3

PostPosted: Mon Oct 21, 2013 8:04 pm    Post subject: Reply with quote

Hi eyoung100,

thanks for your answer.
Unfortunately as far I had no time to do what you've suggested.

I thought to use qemu is just an option, but seems to be necessary regarding the Gentoo Emb Handbook.
I hope I'll be able to give a try soon.

Kind regards
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum