Summary: | app-shells/ksh doesn't build on x86 or mips | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joshua Kinard <kumba> |
Component: | New packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | azalio, brant, jjm, mips, mjinks, ml8128 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 123293 |
Description
Joshua Kinard
2006-02-18 10:26:23 UTC
*** Bug 149553 has been marked as a duplicate of this bug. *** *** Bug 154072 has been marked as a duplicate of this bug. *** I am having problems with this ebuild as well, both on x86 (one is a hardened box): mamake: *** exit code 1 making cmd/ksh93 package: make: errors making /var/tmp/portage/app-shells/ksh-93.20040229/work/arch/linux.i386/bin/ksh package: make done at Thu Apr 26 19:38:18 CDT 2007 in /var/tmp/portage/app-shells/ksh-93.20040229/work/arch/linux.i386 !!! ERROR: app-shells/ksh-93.20040229 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3370: Called src_compile ksh-93.20040229.ebuild, line 51: Called die !!! (no error message) !!! 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/app-shells/ksh-93.20040229/temp/build.log'. Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686) ================================================================= System uname: 2.6.19-gentoo-r5 i686 Pentium III (Coppermine) Gentoo Base System release 1.12.9 Timestamp of tree: Sun, 22 Apr 2007 11:00:10 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.31-r5 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="* /etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo" LINGUAS="en" 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://nerv/gentoo-portage" USE="X aac acpi alsa audiofile bitmap-fonts cdparanoia cdr cli cracklib crypt cups dbus doc dri dvd dvdread encode ffmpeg firefox flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk hal hpijs iconv imlib isdnlog jpeg libg++ mad midi mmx mp3 mp4 mpeg ncurses nfs nls nptl nptlonly nsplugin ogg oggvorbis opengl oss pam pcmcia pcre perl png ppds pppd python quicktime readline real reflection sdl session sndfile spell spl sse ssl svg svga tcpd truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs wma x86 xorg xv xvid zlib" ALSA_CARDS="maestro3" 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" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="r128" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS And on the hardened box, a different error...it hangs right here: >>> Source unpacked. >>> Compiling source in /var/tmp/portage/app-shells/ksh-93.20040229/work ... package: initialize the /var/tmp/portage/app-shells/ksh-93.20040229/work/arch/linux.i386 view package: update /var/tmp/portage/app-shells/ksh-93.20040229/work/arch/linux.i386/lib/probe/C/make/probe package: update /var/tmp/portage/app-shells/ksh-93.20040229/work/arch/linux.i386/bin/proto /home/gsf/src/lib/libast/port/astlicense.c:98: warning: conflicting types for built-in function 'index' package: update /var/tmp/portage/app-shells/ksh-93.20040229/work/arch/linux.i386/bin/mamake package: update /var/tmp/portage/app-shells/ksh-93.20040229/work/arch/linux.i386/bin/ratz package: update /var/tmp/portage/app-shells/ksh-93.20040229/work/arch/linux.i386/bin/release package: make output captured in /var/tmp/portage/app-shells/ksh-93.20040229/work/arch/linux.i386/lib/package/gen/make.out package: make start at Thu Apr 26 22:24:04 CDT 2007 in /var/tmp/portage/app-shells/ksh-93.20040229/work/arch/linux.i386 + mamake -r '*/*' -k install ksh93 + mamake -C cmd/INIT -k install probing C language processor /var/tmp/portage/app-shells/ksh-93.20040229/work/arch/linux.i386/bin/cc for mam information Exiting on signal 2 [1]+ Stopped /usr/bin/emerge --nospinner ksh nerv ~ # kill %1 [1]+ Stopped /usr/bin/emerge --nospinner ksh nerv ~ # [1]+ Exit 102 /usr/bin/emerge --nospinner ksh Portage 2.1.2.2 (hardened/x86, gcc-3.4.6, glibc-2.3.6-r5, 2.4.34-grsec i686) ================================================================= System uname: 2.4.34-grsec i686 Pentium III (Coppermine) Gentoo Base System release 1.12.9 Timestamp of tree: Thu, 26 Apr 2007 11:00:10 +0000 ccache version 2.4 [enabled] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.4.26-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 berkdb crypt hardened midi ncurses nls pam pic readline ssl tcpd unicode x86 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY I have also tried using the hardenednopiessp gcc profile, but still get stopped at the same place on the hardened system. Looks like an old bug... and KSH is already installed on another box; thought the bug was worth a mention though. later I just ran into this bug myself, and noticed that the "unpack" stage of the build writes some files out to /tmp, and then executes them. That's where the "./pkg#####.exe: Permission denied" error is coming from, at least in my case, since (like a lot of Gentoo users, I bet) I mount /tmp noexec. As a workaround, I did: # mount -o remount,exec /tmp ...then, emerge builds the package just fine. The ebuild script (at least the one for 20070628) doesn't refer to /tmp directly, and I haven't gone digging far enough into the upstream source to look for a fix, but this is a clue anyway. Should sandboxing be catching this sort of stuff? Try your luck w/ 93.20071105 please. 93.20071105 works for me, on: Linux keelhaul 2.6.23-gentoo-r3 #1 Wed Dec 12 11:29:59 GMT 2007 i686 AMD Athlon(tm) 64 Processor 3500+ AuthenticAMD GNU/Linux Many thanks for fixing! Lets mark this resolved then. this is happening again in ksh-93.20090505. i had to remount /tmp with exec privs, which i don't like doing. then it built fine... |