Various versions of binutils fail to compile dietlibc on MIPS. Compilation aborts at the following line: gcc -I. -isystem include -pipe -nostdinc -Os -fstrict-aliasing -Wall -W -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wno-unused -Wredundant-decls -c libcompat/syscall.S -o bin-mips/syscall.o libcompat/syscall.S: Assembler messages: libcompat/syscall.S:141: Error: operation combines symbols in different segments make: *** [bin-mips/syscall.o] Error 1 A web search turned up a few posts like this: http://sourceware.org/ml/binutils/2005-02/msg00645.html so assume it's binutils' fault. This happens with 2.17, the latest stable version on MIPS but I also tried 2.16.1-r3 and 2.16.91.0.2 (i.e. all that are currently keyworded at least ~mips) with identical results. I'm running a mipsel-o32 flavor on a Cobalt Qube 2 with mips4 CPU. Reproducible: Always Steps to Reproduce: 1. emerge dietlibc 2. 3. Actual Results: Compilation fails with the above error. Expected Results: Package compiles normally. Portage 2.1.2.2 (default-linux/mips/2007.0/cobalt/o32/nptl, gcc-4.1.1, glibc-2.5-r2, 2.6.17.14-mipsgit-20070415 mips) ================================================================= System uname: 2.6.17.14-mipsgit-20070415 mips Nevada V10.0 FPU V10.0 Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 15 May 2007 12:20:01 +0000 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.61 sys-devel/automake: 1.6.3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.91.0.2 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.14.4 ACCEPT_KEYWORDS="mips" AUTOCLEAN="yes" CBUILD="mipsel-unknown-linux-gnu" CFLAGS="-Os -mips4 -mabi=32 -pipe" CHOST="mipsel-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d /etc/terminfo" CXXFLAGS="-Os -mips4 -mabi=32 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sfperms strict" GENTOO_MIRRORS="ftp://gg3.net/pub/linux/gentoo/ ftp://ftp.isu.edu.tw/pub/Linux/Gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage/" USE="bash-completion bcmath berkdb bindist bzip2 bzlib caps chroot cli cobalt cracklib cron crypt ctype curl curlwrappers dba dbm dbx encode ethereal fam fastcgi flatfile foomaticdb ftp gdbm gif gnutls hardened iconv idea imap ipv6 isdnlog jpeg libwww maildir mbox memlimit midi mime mips mmap mng ncurses nis nodrm nptl nptlonly offensive pam pcntl pcre perl pic png posix pppd prelude python readline recode reflection samba session sharedmem slang snmp sockets spl sqlite ssl svg sysvipc szip tcpd truetype-fonts type1-fonts unicode xorg xsl zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev impact newport v4l" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
This is clearly an upstream bug in dietlibc, in my opinion. I can't imagine binutils would be the cause. I'd file a bug upstream and see if they can fix it there and then our dietlibc maintainers can pull a new CVS snap.