Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123297 - app-shells/ksh doesn't build on x86 or mips
Summary: app-shells/ksh doesn't build on x86 or mips
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 149553 154072 (view as bug list)
Depends on:
Blocks: 123293
  Show dependency tree
 
Reported: 2006-02-18 10:26 UTC by Joshua Kinard
Modified: 2011-07-05 21:26 UTC (History)
6 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 Joshua Kinard gentoo-dev 2006-02-18 10:26:23 UTC
Either I'm missing something, but a straight up `emerge ksh` fails to build 20040229 or 20050202 ksh-0.93.  Here are the build errors for both:

ksh-93.20040229.ebuild
 * Applying ksh-build-problems.diff ...                                                                                                           [ ok ]
>>> Source unpacked.
>>> Compiling source in /usr/obj/portage/ksh-93.20040229/work ...
package: initialize the /usr/obj/portage/ksh-93.20040229/work/arch/linux.i386 view
package: update /usr/obj/portage/ksh-93.20040229/work/arch/linux.i386/lib/probe/C/make/probe
package: proto: not found: make the local linux.i386 binary package before linux.i386

(Same for mips)



ksh-93.20050202
Calculating dependencies ...done!
>>> emerge (1 of 1) app-shells/ksh-93.20050202 to /
>>> checksums src_uri ;-) INIT.2005-02-02.tgz
>>> checksums src_uri ;-) ast-ksh.2005-02-02.tgz
>>> Unpacking source...
>>> Unpacking INIT.2005-02-02.tgz to /usr/obj/portage/ksh-93.20050202/work
package: update /usr/obj/portage/ksh-93.20050202/work/bin/execrate
/usr/obj/portage/ksh-93.20050202/work/bin/package: line 2481: ./pkg20478.exe: Permission denied
package: cc: seems to be a cross-compiler
package: set HOSTTYPE to something other than the native linux.i386

(Same for mips as well)



emerge Info from both systems:
Portage 2.1_pre4-r1 (default-linux/x86/2005.0, gcc-3.4.1, glibc-2.3.6-r1, 2.6.13.2 i686)
=================================================================
System uname: 2.6.13.2 i686 AMD Athlon(tm) MP 2000+
Gentoo Base System version 1.12.0_pre10
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.91.0.2
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-mp -O2 -pipe -fomit-frame-pointer -fstack-protector -fforce-addr -falign-functions=4 -ftracer -fweb -maccumulate-outgoing-args -static"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/pam.d /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-mp -O2 -pipe -fomit-frame-pointer -fstack-protector -fforce-addr -falign-functions=4 -ftracer -fweb -maccumulate-outgoing-args -static"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sfperms userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/obj"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 alsa apm berkdb bitmap-fonts eds emboss foomaticdb gdbm gif gstreamer gtk2 jpeg libwww mmx mp3 ncurses nptl nptlonly offensive ogg pam perl png python readline sdl spell ssl static tcpd truetype-fonts type1-fonts vorbis xml2 zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS




Portage 2.1_pre3-r1 (default-linux/mips/mips64/2006.0, gcc-3.4.5, glibc-2.3.6-r2,glibc-2.3.5-r0, 2.6.15.4-mipsgit-20060109 mips64)
=================================================================
System uname: 2.6.15.4-mipsgit-20060109 mips64 R12000 V2.3  FPU V0.0
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 mips-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.94.0.1, 2.16.91.0.2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.21-r3, 2.6.14.4
ACCEPT_KEYWORDS="mips ~mips"
AUTOCLEAN="yes"
CBUILD="mips-unknown-linux-gnu"
CFLAGS="-O2 -march=r10000 -mtune=r10000 -pipe -fomit-frame-pointer -ftracer -fforce-addr"
CHOST="mips-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/pam.d /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=r10000 -mtune=r10000 -pipe -fomit-frame-pointer -ftracer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sfperms strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/obj"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="mips bash-completion berkdb bzip2 cscope expat fortran gdbm idn ip30 jpeg lcms libwww lua mhash mng ncurses pam pcre perl png python readline recode samba slang ssl tcpd truetype truetype-fonts type1-fonts udev usb userlocales xml2 zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-29 12:56:45 UTC
*** Bug 149553 has been marked as a duplicate of this bug. ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-11-04 14:41:45 UTC
*** Bug 154072 has been marked as a duplicate of this bug. ***
Comment 3 brant williams 2007-04-27 03:29:22 UTC
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
Comment 4 Michael Jinks 2007-09-24 23:45:04 UTC
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?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-28 10:30:45 UTC
Try your luck w/ 93.20071105 please.
Comment 6 Jonathan Marten 2008-02-28 11:55:12 UTC
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!
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2008-02-28 12:01:00 UTC
Lets mark this resolved then.
Comment 8 Oo.et.oO 2011-07-05 21:26:19 UTC
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...