Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241142 - touch from sys-apps/coreutils-6.12-r1 does not work
Summary: touch from sys-apps/coreutils-6.12-r1 does not work
Status: RESOLVED DUPLICATE of bug 224483
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 19:12 UTC by Stefan Behte (RETIRED)
Modified: 2008-10-26 04:18 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,1.47 KB, text/plain)
2008-10-10 19:13 UTC, Stefan Behte (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Behte (RETIRED) gentoo-dev Security 2008-10-10 19:12:58 UTC
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 3) sys-apps/portage-2.2_rc12
 * portage-2.2_rc1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                             [ ok ]
 * portage-2.2_rc12.patch.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                 [ ok ]
touch: setting times of `/var/tmp/portage/sys-apps/portage-2.2_rc12/temp/environment.success': Unknown error 4294967207
>>> Unpacking source...
>>> Unpacking portage-2.2_rc1.tar.bz2 to /var/tmp/portage/sys-apps/portage-2.2_rc12/work
>>> Unpacking portage-2.2_rc12.patch.bz2 to /var/tmp/portage/sys-apps/portage-2.2_rc12/work
 * Applying portage-2.2_rc12.patch ...                                                                                                                  [ ok ]
 * Setting portage.VERSION to 2.2_rc12 ...
touch: setting times of `/var/tmp/portage/sys-apps/portage-2.2_rc12/.unpacked': Unknown error 4294967207
 *
 * ERROR: sys-apps/portage-2.2_rc12 failed.
 * Call stack:
 * ebuild.sh, line 2091:  Called ebuild_main
 * ebuild.sh, line 2025:  Called dyn_unpack
 * ebuild.sh, line  705:  Called die
 * The specific snippet of code:
 * touch "${PORTAGE_BUILDDIR}/.unpacked" || die "IO Failure -- Failed 'touch .unpacked' in ${PORTAGE_BUILDDIR}"
 * The die message:
 * IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/sys-apps/portage-2.2_rc12
 *
 * 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/portage-2.2_rc12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.2_rc12/temp/environment'.
 *

>>> Failed to emerge sys-apps/portage-2.2_rc12, Log file:

>>>  '/var/tmp/portage/sys-apps/portage-2.2_rc12/temp/build.log'

 * Messages for package sys-apps/portage-2.2_rc12:

 *
 * ERROR: sys-apps/portage-2.2_rc12 failed.
 * Call stack:
 * ebuild.sh, line 2091:  Called ebuild_main
 * ebuild.sh, line 2025:  Called dyn_unpack
 * ebuild.sh, line  705:  Called die
 * The specific snippet of code:
 * touch "${PORTAGE_BUILDDIR}/.unpacked" || die "IO Failure -- Failed 'touch .unpacked' in ${PORTAGE_BUILDDIR}"
 * The die message:
 * IO Failure -- Failed 'touch .unpacked' in /var/tmp/portage/sys-apps/portage-2.2_rc12
 *
 * 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/portage-2.2_rc12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/portage-2.2_rc12/temp/environment'.
 *

 * GNU info directory index is up-to-date.



Portage 2.2_rc11 (default-linux/mips/2007.1-dev/generic-be/o32, gcc-4.1.2, glibc-2.6.1-r0, 2.6.19.1-mipsgit-20061224-speedracer-gcc4.1.1 mips64)
=================================================================
System uname: Linux-2.6.19.1-mipsgit-20061224-speedracer-gcc4.1.1-mips64-R12000_V2.3_FPU_V0.0-with-glibc2.0
Timestamp of tree: Fri, 10 Oct 2008 10:01:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.63
sys-devel/automake:  1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="mips ~mips"
CBUILD="mips-unknown-linux-gnu"
CFLAGS="-O2 -mips4 -mabi=32 -pipe"
CHOST="mips-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mips4 -mabi=32 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks parallel-fetch preserve-libs protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS=""
MAKEOPTS="-j2"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="berkdb cli cracklib fortran gdbm gpm iconv ipv6 isdnlog libwww midi mips mudflap ncurses nls nptl nptlonly offensive openmp pam pcre perl pppd python readline reflection sdl session spl ssl tcpd unicode xorg" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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="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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Stefan Behte (RETIRED) gentoo-dev Security 2008-10-10 19:13:31 UTC
Created attachment 167904 [details]
build.log
Comment 2 Stefan Behte (RETIRED) gentoo-dev Security 2008-10-10 19:56:43 UTC
It's not only portage, touch is broken and does seem to call a syscall that does not exist.
Somehow, this does seem to be related: http://archive.netbsd.se/?ml=debian-mips&a=2008-01&t=6201080

prozium ~ # touch me
touch: setting times of `me': Unknown error 4294967207

strace:
open("me", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_LARGEFILE, 0666) = 3
dup2(3, 0)                              = 0
close(3)                                = 0
syscall_4294967207(0, 0, 0, 0x1, 0x422070, 0x2abaa3b8, 0x1b6, 0x1b6, 0x422070, 0, 0x420000, 0, 0x7fce5a0b, 0, 0x1, 0x401ddc, 0x2ac4e72a, 0x2ac24264, 0x7fce5758, 0x2aac5f70, 0, 0x1, 0, 0, 0x2aadd010, 0, 0x422070, 0x2ac502b0, 0x2aac60b8, 0x2, 0x5, 0) = -1 (errno 4006)
svr4_syscall()                          = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = 4004
touch: svr4_wait()                             = 4004
setting times of `thebitch'svr4_alarm()                            = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = -1 ERRNO_4005 (Unknown error 4005)
svr4_fork()                             = 4004
: Unknown error 4294967207svr4_ptrace()                           = 4004

svr4_exit()                             = -1 ERRNO_4006 (Unknown error 4006)
svr4_syscall()                          = -1 ERRNO_4006 (Unknown error 4006)
svr4_syscall()                          = -1 ERRNO_4246 (Unknown error 4246)

This seems to be related to an update to coreutils-6.12-r1
Comment 3 Joshua Kinard gentoo-dev 2008-10-17 07:02:30 UTC
Wasn't able to reproduce this on mips (yet).  Kernel 2.6.27, glibc-2.7, and merging coreutils-6.12-r2 went smoothly, and touch created two zero-byte files.

I did have to copy my glibc from another system because the one on my Octane was broken, so that very likely is linked against an older kernel headers.  I'll have to rebuild glibc against newer headers and see if the problem arises then.
Comment 4 Stefan Behte (RETIRED) gentoo-dev Security 2008-10-17 07:53:03 UTC
Thanks for your efforts!
Does 2.6.27 run on the octane 2?! I thought we were stuck with Linux-2.6.19.1-mipsgit-20061224 (I did not install that machine - I was just told so by the guy who did)?

I temporarily fixed the issue by "./configure"-ing and "make"-ing coreutils-6.11 manually and copying touch over the broken version.
Comment 6 Joshua Kinard gentoo-dev 2008-10-17 15:54:20 UTC
(In reply to comment #4)
> Thanks for your efforts!
> Does 2.6.27 run on the octane 2?! I thought we were stuck with
> Linux-2.6.19.1-mipsgit-20061224 (I did not install that machine - I was just
> told so by the guy who did)?

I have an ebuild for 2.6.27 almost ready.  Running on my O2 and Octane right now.  I'll spin it on an IP28 machine later on just to see how long it lives before committing it.  The latest in portage is a 2.6.24 version.  .25 and .26 were in a bit of flux for IP32, and then there was the merge of IP28 core code.  .27 looks like a good, calm release, so it should play nice on the main machines people have.
Comment 7 SpanKY gentoo-dev 2008-10-26 04:15:51 UTC
are you sure you're using coreutils-6.12-r1 ?  this should already be fixed with Bug 224483 ...
Comment 8 SpanKY gentoo-dev 2008-10-26 04:18:04 UTC

*** This bug has been marked as a duplicate of bug 224483 ***