<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>190613</bug_id>
          
          <creation_ts>2007-08-29 08:15 0000</creation_ts>
          <short_desc>sys-apps/util-linux-2.13 compilation fails on MIPS (SGI O2)</short_desc>
          <delta_ts>2008-02-27 22:19:15 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2007.0</version>
          <rep_platform>MIPS</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/583</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>pchrist@gentoo.org</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>michael@hammill.name</cc>
    
    <cc>mips@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>pchrist@gentoo.org</who>
            <bug_when>2007-08-29 08:15:15 0000</bug_when>
            <thetext>I upgraded my world, and when trying to upgrade from util-linux-2.12r-r7 to 2.13, I came to this:

mips-unknown-linux-gnu-gcc -fsigned-char -O2 -march=mips4 -pipe -mabi=32   -o addpart  addpart.o  
mips-unknown-linux-gnu-gcc -fsigned-char -O2 -march=mips4 -pipe -mabi=32   -o delpart  delpart.o  
mips-unknown-linux-gnu-gcc -fsigned-char -O2 -march=mips4 -pipe -mabi=32   -o partx  bsd.o dos.o partx.o solaris.o unixware.o gpt.o crc32.o  
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.13/work/util-linux-ng-2.13/partx&apos;
Making all in po
make[2]: Entering directory `/var/tmp/portage/sys-apps/util-linux-2.13/work/util-linux-ng-2.13/po&apos;
make[2]: Nothing to be done for `all&apos;.
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.13/work/util-linux-ng-2.13/po&apos;
Making all in schedutils
make[2]: Entering directory `/var/tmp/portage/sys-apps/util-linux-2.13/work/util-linux-ng-2.13/schedutils&apos;
if mips-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\&quot;\&quot;  -fsigned-char -O2 -march=mips4 -pipe -mabi=32 -MT chrt.o -MD -MP -MF &quot;.deps/chrt.Tpo&quot; -c -o chrt.o chrt.c; \
        then mv -f &quot;.deps/chrt.Tpo&quot; &quot;.deps/chrt.Po&quot;; else rm -f &quot;.deps/chrt.Tpo&quot;; exit 1; fi
if mips-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\&quot;\&quot;  -fsigned-char -O2 -march=mips4 -pipe -mabi=32 -MT ionice.o -MD -MP -MF &quot;.deps/ionice.Tpo&quot; -c -o ionice.o ionice.c; \
        then mv -f &quot;.deps/ionice.Tpo&quot; &quot;.deps/ionice.Po&quot;; else rm -f &quot;.deps/ionice.Tpo&quot;; exit 1; fi
if mips-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\&quot;\&quot;  -fsigned-char -O2 -march=mips4 -pipe -mabi=32 -MT taskset.o -MD -MP -MF &quot;.deps/taskset.Tpo&quot; -c -o taskset.o taskset.c; \
        then mv -f &quot;.deps/taskset.Tpo&quot; &quot;.deps/taskset.Po&quot;; else rm -f &quot;.deps/taskset.Tpo&quot;; exit 1; fi
chrt.c:24:1: warning: &quot;_GNU_SOURCE&quot; redefined
In file included from &lt;command line&gt;:1:
./../config.h:206:1: warning: this is the location of the previous definition
taskset.c:29:1: warning: &quot;_GNU_SOURCE&quot; redefined
In file included from &lt;command line&gt;:1:
./../config.h:206:1: warning: this is the location of the previous definition
ionice.c:42:4: error: #error &quot;Unsupported arch&quot;
ionice.c: In function &apos;ioprio_set&apos;:
ionice.c:52: error: &apos;__NR_ioprio_set&apos; undeclared (first use in this function)
ionice.c:52: error: (Each undeclared identifier is reported only once
ionice.c:52: error: for each function it appears in.)
ionice.c: In function &apos;ioprio_get&apos;:
ionice.c:57: error: &apos;__NR_ioprio_get&apos; undeclared (first use in this function)
make[2]: *** [ionice.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.13/work/util-linux-ng-2.13/schedutils&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.13/work/util-linux-ng-2.13&apos;
make: *** [all] Error 2
 * 
 * ERROR: sys-apps/util-linux-2.13 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call &apos;src_compile&apos;
 *   ebuild.sh, line 44:   Called src_compile
 *   util-linux-2.13.ebuild, line 68:   Called die
 * 
 * emake failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at &apos;/var/tmp/portage/sys-apps/util-linux-2.13/temp/build.log&apos;.
 * 
 
 * Messages for package sys-apps/util-linux-2.13:
 
 * 
 * ERROR: sys-apps/util-linux-2.13 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call &apos;src_compile&apos;
 *   ebuild.sh, line 44:   Called src_compile
 *   util-linux-2.13.ebuild, line 68:   Called die
 * 
 * emake failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at &apos;/var/tmp/portage/sys-apps/util-linux-2.13/temp/build.log&apos;.
 * 
Neo ~ #

My emerge --info output:

Neo ~ # emerge --info
Portage 2.1.3.7 (default-linux/mips/2007.0/generic-be/o32, gcc-4.1.2, glibc-2.3.6-r5, 2.6.20.14-mipsgit-20070415 mips64)
=================================================================
System uname: 2.6.20.14-mipsgit-20070415 mips64 R5000 V2.1 FPU V1.0
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 29 Aug 2007 05:50:01 +0000
distcc 2.18.3 mips-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.4.0-r1
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.16.16
ACCEPT_KEYWORDS=&quot;mips ~mips&quot;
CBUILD=&quot;mips-unknown-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=mips4 -pipe -mabi=32&quot;
CHOST=&quot;mips-unknown-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=mips4 -pipe -mabi=32&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig ccache distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.uoi.gr/mirror/OS/gentoo/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://10.0.0.51/gentoo-portage&quot;
USE=&quot;bzip2 mips ncurses posix readline session test unicode verbose zsh-completion&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;ncurses text&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;dummy fbdev impact newport v4l&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-08-29 11:38:44 0000</bug_when>
            <thetext>i bet if you upgraded your kernel headers it&apos;d work fine ...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kumba@gentoo.org</who>
            <bug_when>2007-09-02 21:16:01 0000</bug_when>
            <thetext>He&apos;ll need to switch to the 2007.1-dev profile and use linux-headers.  I stopped mips-headers after 2.6.16, and it&apos;s slated to die with 2007.0.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-09-04 00:13:56 0000</bug_when>
            <thetext>we&apos;ll fix this nicely upstream ... in Gentoo, you get unimplemented stubs :p</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2008-02-04 03:35:00 0000</bug_when>
            <thetext>Mind spreading the love to 2.13.1?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2008-02-04 03:40:36 0000</bug_when>
            <thetext>nevermind, this is because i&apos;m still on mips-headers, isn&apos;t it?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2008-02-04 21:01:24 0000</bug_when>
            <thetext>nein.

Making all in schedutils
make[2]: Entering directory `/var/tmp/portage/sys-apps/util-linux-2.13.1/work/util-linux-ng-2.13.1/schedutils&apos;
mips-unknown-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\&quot;/usr/share/locale\&quot;  -fsigned-char -O2 -march=r5000 -mabi=32 -fomit-frame-pointer -pipe -MT chrt.o -MD -MP -MF .deps/chrt.Tpo -c -o chrt.o chrt.c
mips-unknown-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\&quot;/usr/share/locale\&quot;  -fsigned-char -O2 -march=r5000 -mabi=32 -fomit-frame-pointer -pipe -MT ionice.o -MD -MP -MF .deps/ionice.Tpo -c -o ionice.o ionice.c
mips-unknown-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\&quot;/usr/share/locale\&quot;  -fsigned-char -O2 -march=r5000 -mabi=32 -fomit-frame-pointer -pipe -MT taskset.o -MD -MP -MF .deps/taskset.Tpo -c -o taskset.o taskset.c
mv -f .deps/chrt.Tpo .deps/chrt.Po
mips-unknown-linux-gnu-gcc -std=gnu99 -fsigned-char -O2 -march=r5000 -mabi=32 -fomit-frame-pointer -pipe  -Wl,-O1 -o chrt chrt.o
mv -f .deps/taskset.Tpo .deps/taskset.Po
mips-unknown-linux-gnu-gcc -std=gnu99 -fsigned-char -O2 -march=r5000 -mabi=32 -fomit-frame-pointer -pipe  -Wl,-O1 -o taskset taskset.o
ionice.c:42:4: error: #error &quot;Unsupported arch&quot;
make[2]: *** [ionice.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.13.1/work/util-linux-ng-2.13.1/schedutils&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.13.1/work/util-linux-ng-2.13.1&apos;
make: *** [all] Error 2
 *
 * ERROR: sys-apps/util-linux-2.13.1 failed.


Portage 2.1.4 (default-linux/mips/2007.1-dev/generic-be/o32, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20.18-mipsgit-20070902 mips64)
=================================================================
System uname: 2.6.20.18-mipsgit-20070902 mips64 R5000 V2.1 FPU V1.0
Timestamp of tree: Wed, 30 Jan 2008 04:30:01 +0000
distcc 2.18.3 mips-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.3-r1, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61
sys-devel/automake:  1.6.3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS=&quot;mips ~mips&quot;
CBUILD=&quot;mips-unknown-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=r5000 -mabi=32 -fomit-frame-pointer -pipe&quot;
CHOST=&quot;mips-unknown-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=r5000 -mabi=32 -fomit-frame-pointer -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig buildpkg ccache distcc distlocks fixpackages metadata-transfer parallel-fetch sfperms splitdebug strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://gentoo.arcticnetwork.ca/source/ http://gentoo.osuosl.org http://distfiles.gentoo.org&quot;
LANG=&quot;en_US.utf8&quot;
LDFLAGS=&quot;-Wl,-O1&quot;
LINGUAS=&quot;en en_US&quot;
MAKEOPTS=&quot;-j8&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;bash-completion berkdb bitmap-fonts cli cracklib crypt gdbm gmp iconv isdnlog libwww midi mips ncurses network-cron nptl nptlonly openmp pam pcre perl pic pppd python readline reflection sdl session spl ssl tcpd truetype-fonts type1-fonts unicode vim-syntax xorg zlib&quot; ALSA_PCM_PLUGINS=&quot;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&quot; APACHE2_MODULES=&quot;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 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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;mouse keyboard&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en en_US&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;dummy fbdev impact newport v4l&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


feel free to laugh if i&apos;m doing something dumb.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pchrist@gentoo.org</who>
            <bug_when>2008-02-05 18:59:34 0000</bug_when>
            <thetext>Can you try without distcc enabled?

Panagiotis(pchrist on irc)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-02-09 20:11:41 0000</bug_when>
            <thetext>open a new bug report ... 2.13.1 had its code rewritten to account for this</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-02-26 23:02:31 0000</bug_when>
            <thetext>*** Bug 211573 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>michael@hammill.name</who>
            <bug_when>2008-02-27 11:04:59 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; *** Bug 211573 has been marked as a duplicate of this bug. ***
&gt; 

Just so I understand better what a status of &quot;RESOLVED FIXED&quot; means, if the fix is indeed checked into the tree, how do I, a simple user, get it?  I&apos;m running ~mips, and linux-headers, and all the other nice new mips stuff, but still no joy (i.e., from a *user* perspective, it doesn&apos;t seem resolved or fixed).  Is the solution for me to get the masked  &quot;[m]**9999&quot; version?  Or is it better to leave well enough alone :-)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2008-02-27 13:24:08 0000</bug_when>
            <thetext>just sync and try again.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2008-02-27 18:56:28 0000</bug_when>
            <thetext>i explained in the bug you filed what i did to fix things</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>michael@hammill.name</who>
            <bug_when>2008-02-27 22:19:15 0000</bug_when>
            <thetext>(In reply to comment #12)
&gt; i explained in the bug you filed what i did to fix things

Thanks for the explanation and fix.  I read it and then did a re-sync and it built without any problem.  

Thanks!
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>