Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513080 - sys-devel/gcc-4.2.4-r01.4: failed to compile on prefix/mipsel
Summary: sys-devel/gcc-4.2.4-r01.4: 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 07:38 UTC by Andrey Ovcharov
Modified: 2020-12-14 20:33 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,41.28 KB, application/x-xz)
2014-06-13 07:42 UTC, Andrey Ovcharov
Details
gcc-4.2.4-r01.4-build-logs.tar.bz2 (gcc-4.2.4-r01.4-build-logs.tar.bz2,73.36 KB, application/x-bzip)
2014-06-13 19:12 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 07:38:17 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. ./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-devel/gcc-4.2.4-r01.4"

Actual Results:  
failed to compile on emerge -1 --nodeps =sys-devel/gcc-4.2.4-r01.4

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 07:42:54 UTC
Created attachment 378772 [details]
build.log.xz
Comment 2 Andrey Ovcharov 2014-06-13 07:43:58 UTC
Failed to build on:

gcc    -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H -L/opt/usr/lib -Wl,-rpath=/opt/usr/lib -L/opt/lib -Wl,-rpath=/opt/lib -L/opt/tmp/usr/lib -Wl,-rpath=/opt/tmp/usr/lib -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o  c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \
  main.o  libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
libbackend.a(options.o):(.data.rel.ro+0x4774): undefined reference to `TARGET_R10K_SPECEX'
libbackend.a(options.o):(.data.rel.ro+0x4914): undefined reference to `TARGET_R10K_SPECEX'
libbackend.a(options.o):(.data.rel.ro+0x4934): undefined reference to `TARGET_R10K_SPECEX'
libbackend.a(mips.o): In function `check_p_pattern_for_store':
mips.c:(.text+0x308): undefined reference to `TARGET_R10K_SPECEX'
libbackend.a(mips.o): In function `r10k_insert_cache_barriers':
mips.c:(.text+0xf44): undefined reference to `TARGET_R10K_SPECEX'
libbackend.a(mips.o):mips.c:(.text+0x22db0): more undefined references to `TARGET_R10K_SPECEX' follow
collect2: error: ld returned 1 exit status
Makefile:1422: recipe for target 'cc1-dummy' failed
make[3]: *** [cc1-dummy] Error 1
make[3]: Leaving directory '/opt/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/gcc'
Makefile:4516: recipe for target 'all-stage1-gcc' failed
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory '/opt/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
Makefile:12515: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/opt/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'
Makefile:12792: recipe for target 'bootstrap-lean' failed
make: *** [bootstrap-lean] Error 2
emake failed
Comment 3 Andrey Ovcharov 2014-06-13 19:12:38 UTC
Created attachment 378814 [details]
gcc-4.2.4-r01.4-build-logs.tar.bz2
Comment 4 Fabian Groffen gentoo-dev 2020-12-14 20:33:38 UTC
this is an unsupported target for which we don't have resources to add it, sorry