Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190613 - sys-apps/util-linux-2.13 compilation fails on MIPS (SGI O2)
Summary: sys-apps/util-linux-2.13 compilation fails on MIPS (SGI O2)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: MIPS Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://thread.gmane.org/gmane.linux.u...
Whiteboard:
Keywords:
: 211573 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-29 08:15 UTC by Panagiotis Christopoulos (RETIRED)
Modified: 2008-02-27 22:19 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Panagiotis Christopoulos (RETIRED) gentoo-dev 2007-08-29 08:15:15 UTC
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'
Making all in po
make[2]: Entering directory `/var/tmp/portage/sys-apps/util-linux-2.13/work/util-linux-ng-2.13/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.13/work/util-linux-ng-2.13/po'
Making all in schedutils
make[2]: Entering directory `/var/tmp/portage/sys-apps/util-linux-2.13/work/util-linux-ng-2.13/schedutils'
if mips-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\"\"  -fsigned-char -O2 -march=mips4 -pipe -mabi=32 -MT chrt.o -MD -MP -MF ".deps/chrt.Tpo" -c -o chrt.o chrt.c; \
        then mv -f ".deps/chrt.Tpo" ".deps/chrt.Po"; else rm -f ".deps/chrt.Tpo"; exit 1; fi
if mips-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\"\"  -fsigned-char -O2 -march=mips4 -pipe -mabi=32 -MT ionice.o -MD -MP -MF ".deps/ionice.Tpo" -c -o ionice.o ionice.c; \
        then mv -f ".deps/ionice.Tpo" ".deps/ionice.Po"; else rm -f ".deps/ionice.Tpo"; exit 1; fi
if mips-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\"\"  -fsigned-char -O2 -march=mips4 -pipe -mabi=32 -MT taskset.o -MD -MP -MF ".deps/taskset.Tpo" -c -o taskset.o taskset.c; \
        then mv -f ".deps/taskset.Tpo" ".deps/taskset.Po"; else rm -f ".deps/taskset.Tpo"; exit 1; fi
chrt.c:24:1: warning: "_GNU_SOURCE" redefined
In file included from <command line>:1:
./../config.h:206:1: warning: this is the location of the previous definition
taskset.c:29:1: warning: "_GNU_SOURCE" redefined
In file included from <command line>:1:
./../config.h:206:1: warning: this is the location of the previous definition
ionice.c:42:4: error: #error "Unsupported arch"
ionice.c: In function 'ioprio_set':
ionice.c:52: error: '__NR_ioprio_set' 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 'ioprio_get':
ionice.c:57: error: '__NR_ioprio_get' 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'
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'
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 'src_compile'
 *   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 '/var/tmp/portage/sys-apps/util-linux-2.13/temp/build.log'.
 * 
 
 * 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 'src_compile'
 *   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 '/var/tmp/portage/sys-apps/util-linux-2.13/temp/build.log'.
 * 
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="mips ~mips"
CBUILD="mips-unknown-linux-gnu"
CFLAGS="-O2 -march=mips4 -pipe -mabi=32"
CHOST="mips-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=mips4 -pipe -mabi=32"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.uoi.gr/mirror/OS/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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://10.0.0.51/gentoo-portage"
USE="bzip2 mips ncurses posix readline session test unicode verbose zsh-completion" ELIBC="glibc" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="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, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2007-08-29 11:38:44 UTC
i bet if you upgraded your kernel headers it'd work fine ...
Comment 2 Joshua Kinard gentoo-dev 2007-09-02 21:16:01 UTC
He'll need to switch to the 2007.1-dev profile and use linux-headers.  I stopped mips-headers after 2.6.16, and it's slated to die with 2007.0.
Comment 3 SpanKY gentoo-dev 2007-09-04 00:13:56 UTC
we'll fix this nicely upstream ... in Gentoo, you get unimplemented stubs :p
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2008-02-04 03:35:00 UTC
Mind spreading the love to 2.13.1?
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2008-02-04 03:40:36 UTC
nevermind, this is because i'm still on mips-headers, isn't it?
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2008-02-04 21:01:24 UTC
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'
mips-unknown-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -include ../config.h -I../include -DLOCALEDIR=\"/usr/share/locale\"  -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=\"/usr/share/locale\"  -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=\"/usr/share/locale\"  -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 "Unsupported arch"
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'
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'
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="mips ~mips"
CBUILD="mips-unknown-linux-gnu"
CFLAGS="-O2 -march=r5000 -mabi=32 -fomit-frame-pointer -pipe"
CHOST="mips-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=r5000 -mabi=32 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distcc distlocks fixpackages metadata-transfer parallel-fetch sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/source/ http://gentoo.osuosl.org http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="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" 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" APACHE2_MODULES="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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="dummy fbdev impact newport v4l"
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'm doing something dumb.
Comment 7 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-02-05 18:59:34 UTC
Can you try without distcc enabled?

Panagiotis(pchrist on irc)
Comment 8 SpanKY gentoo-dev 2008-02-09 20:11:41 UTC
open a new bug report ... 2.13.1 had its code rewritten to account for this
Comment 9 SpanKY gentoo-dev 2008-02-26 23:02:31 UTC
*** Bug 211573 has been marked as a duplicate of this bug. ***
Comment 10 Mike Hammill 2008-02-27 11:04:59 UTC
(In reply to comment #9)
> *** Bug 211573 has been marked as a duplicate of this bug. ***
> 

Just so I understand better what a status of "RESOLVED FIXED" means, if the fix is indeed checked into the tree, how do I, a simple user, get it?  I'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't seem resolved or fixed).  Is the solution for me to get the masked  "[m]**9999" version?  Or is it better to leave well enough alone :-)
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2008-02-27 13:24:08 UTC
just sync and try again.
Comment 12 SpanKY gentoo-dev 2008-02-27 18:56:28 UTC
i explained in the bug you filed what i did to fix things
Comment 13 Mike Hammill 2008-02-27 22:19:15 UTC
(In reply to comment #12)
> 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!