Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513126 - sys-devel/gcc-4.7.2-r1: failed to compile on prefix/mipsel
Summary: sys-devel/gcc-4.7.2-r1: failed to compile on prefix/mipsel
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: MIPS Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-13 15:30 UTC by Andrey Ovcharov
Modified: 2020-12-14 20:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,26.77 KB, application/x-xz)
2014-06-13 15:31 UTC, Andrey Ovcharov
Details
gcc-4.7.2-r1-build-logs.tar.bz2 (gcc-4.7.2-r1-build-logs.tar.bz2,75.63 KB, application/x-bzip)
2014-06-13 19:08 UTC, Andrey Ovcharov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Ovcharov 2014-06-13 15:30:32 UTC
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/mipsel

$ 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. emerge -1 --nodeps =sys-devel/gcc-4.7.2-r1
3.
Actual Results:  
Failed to compile with error:

(cut)
checking for mipsel-pc-linux-gnu-gcc... /opt/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/./gcc/xgcc -B/opt/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/./gcc/ -B/opt/usr/mipsel-pc-linux-gnu/bin/ -B/opt/usr/mipsel-pc-linux-gnu/lib/ -isystem /opt/usr/mipsel-pc-linux-gnu/include -isystem /opt/usr/mipsel-pc-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in `/opt/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build/mipsel-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:12227: recipe for target 'configure-stage1-target-libgcc' failed
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory '/opt/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'
Makefile:14394: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/opt/var/tmp/portage/sys-devel/gcc-4.7.2-r1/work/build'
Makefile:14693: recipe for target 'bootstrap-lean' failed
make: *** [bootstrap-lean] Error 2
emake failed

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
Comment 1 Andrey Ovcharov 2014-06-13 15:31:42 UTC
Created attachment 378790 [details]
build.log.xz
Comment 2 Andrey Ovcharov 2014-06-13 19:08:01 UTC
Created attachment 378800 [details]
gcc-4.7.2-r1-build-logs.tar.bz2
Comment 3 Fabian Groffen gentoo-dev 2020-12-14 20:30:52 UTC
this is an unsupported target for which we don't have resources to add it, sorry