I need gentoo-prefix in /opt for asus rt-n16 http://wiki.openwrt.org/toh/asus/rt-n16 mipsel router with "Tomato by Shibby" http://tomato.groov.pl/?dir=K26/ current http://tomato.groov.pl/download/K26/build5x-120-EN/tomato-K26USB-1.28.RT-MIPSR2-120-AIO.trx firmware. Some info: $ cat /proc/cpuinfo system type : Broadcom BCM4716 chip rev 1 pkg 10 processor : 0 cpu model : MIPS 74K V4.0 BogoMIPS : 239.20 cpu MHz : 480 wait instruction : no microsecond timers : yes tlb_entries : 64 extra interrupt vector : no hardware watchpoint : yes ASEs implemented : mips16 dsp shadow register sets : 1 VCED exceptions : not available VCEI exceptions : not available unaligned_instructions : 110192 $ uname -a Linux asus 2.6.22.19 #22 Sat Jun 7 02:32:13 CEST 2014 mips GNU/Linux I build from sys-apps/proot ( http://packages.gentoo.org/package/sys-apps/proot?arches=all ) + app-emulation/qemu ( http://packages.gentoo.org/package/app-emulation/qemu ) and http://mirrors.ustc.edu.cn/gentoo/experimental/mips/stages/stage3-mips32el-20140426.tar.bz2 Steps to Reproduce: Unpack stage3-mips32el-20140426.tar.bz2 to /home/mips $ proot -R /home/mipsel -b /proc -q "qemu-mipsel" $ /bin/bash $ export EPREFIX="/opt" $ export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:/usr/bin:/bin" $ export CHOST="mipsel-pc-linux-gnu" $ ./bootstrap-prefix.sh /opt/tmp stage1 $ export LATEST_TREE_YES=1 $ ./bootstrap-prefix.sh /opt stage2 $ ./bootstrap-prefix.sh /opt stage3 Reproducible: Always Steps to Reproduce: 1. proot -R /home/mipsel -b /proc -q "qemu-mipsel" 2. ./bootstrap-prefix.sh /opt/tmp stage1 && ./bootstrap-prefix.sh /opt stage2 && ./bootstrap-prefix.sh /opt stage3 3. last command ( ./bootstrap-prefix.sh /opt stage3 ) failed on "emerge -1 --nodeps =sys-apps/baselayout-prefix-2.2-r3" Actual Results: failed to compile on emerge -1 --nodeps =sys-apps/baselayout-prefix-2.2-r3 Expected Results: successful compilation $ emerge --info Portage 2.2.8-prefix (default/linux/mips/13.0/mipsel, gcc-4.8.2, unavailable, 3.14.0-sabayon mips) ================================================================= System uname: Linux-3.14.0-sabayon-mips-with-gentoo-2.2 KiB Mem: 3075972 total, 770668 free KiB Swap: 5177340 total, 5148608 free Timestamp of tree: Wed, 11 Jun 2014 22:06:34 +0000 ld GNU ld (GNU Binutils) 2.24 app-shells/bash: 4.2_p45-r1 Repositories: gentoo_prefix ACCEPT_KEYWORDS="mips ~mips" ACCEPT_LICENSE="* -@EULA" CBUILD="mipsel-pc-linux-gnu" CFLAGS="" CHOST="mipsel-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/entropy /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0" 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="" DISTDIR="/opt/usr/portage/distfiles" FCFLAGS="" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/opt/usr/portage/packages" PORTAGE_CONFIGROOT="/opt/" 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="/opt/var/tmp" PORTDIR="/opt/usr/portage" PORTDIR_OVERLAY="" USE="acl berkdb bzip2 cli cracklib crypt cxx gdbm iconv ipv6 mips modules ncurses nls nptl pam pcre readline session ssl tcpd unicode zlib" ALSA_CARDS="au1x00" 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 ublox 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_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev impact newport 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 And $ emerge -1 --nodeps =sys-apps/baselayout-prefix-1.12.5-r11 build fine for my.
Created attachment 378764 [details] build.log
libtool: link: false cru .libs/libeinfo.a libeinfo_la-libeinfo.o Feels like it didn't find ar. checking for mipsel-unknown-linux-gnu-ar... no checking for ar... no which is odd.
Same problematic lib on powerpc. After emerging anything, I am asked to "emerge @preserved-rebuild": !!! existing preserved libs: >>> package: sys-libs/ncurses-5.9-r3 * - /Volumes/GENTOO/lib/libncurses.5.dylib * used by /Volumes/GENTOO/usr/lib/libeinfo.1.0.0.dylib (sys-apps/baselayout-prefix-2.2-r3) This results in: libtool: compile: powerpc-apple-darwin9-gcc -DHAVE_CONFIG_H -I. -I../.. -I./../includes -O2 -pipe-mcpu=G4 -mtune=G4 -MT libeinfo_la-libeinfo.lo -MD -MP -MF .deps/libeinfo_la-libeinfo.Tpo -c libeinfo.c -fno-common -DPIC -o .libs/libeinfo_la-libeinfo.o libeinfo.c:153: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘term_is_cons25’ libeinfo.c:236: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘yesno’ libeinfo.c:261: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘noyes’ libeinfo.c:277: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_quiet’ libeinfo.c:283: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_verbose’ libeinfo.c:355: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘colour_terminal’ libeinfo.c: In function ‘_eend’: libeinfo.c:834: error: ‘term_is_cons25’ undeclared (first use in this function) libeinfo.c:834: error: (Each undeclared identifier is reported only once libeinfo.c:834: error: for each function it appears in.) Makefile:422: recipe for target 'libeinfo_la-libeinfo.lo' failed make[3]: *** [libeinfo_la-libeinfo.lo] Error 1 make[3]: Leaving directory '/Volumes/GENTOO/var/tmp/portage/sys-apps/baselayout-prefix-2.2-r3/work/einfo-1.0.6/src/libeinfo' Makefile:339: recipe for target 'all-recursive' failed make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory '/Volumes/GENTOO/var/tmp/portage/sys-apps/baselayout-prefix-2.2-r3/work/einfo-1.0.6/src' Makefile:385: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/Volumes/GENTOO/var/tmp/portage/sys-apps/baselayout-prefix-2.2-r3/work/einfo-1.0.6' Makefile:316: recipe for target 'all' failed make: *** [all] Error 2 emake failed * ERROR: sys-apps/baselayout-prefix-2.2-r3::gentoo_prefix failed (compile phase): * emake failed * * Call stack: * ebuild.sh, line 93: Called __call-ebuildshell 'src_compile' * environment, line 230: Called src_compile * environment, line 2325: Called default * phase-functions.sh, line 777: Called default_src_compile * phase-functions.sh, line 814: Called __eapi2_src_compile * phase-helpers.sh, line 697: Called die * The specific snippet of code: * emake || die "emake failed" ar is found: checking for powerpc-apple-darwin9-ar... powerpc-apple-darwin9-ar
If possible, can you try with baselayout-prefix-2.2-r4?
this is an unsupported target for which we don't have resources to add it, sorry