Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238906 - app-shells/ksh refuses to build, throws "cross compiler" error
Summary: app-shells/ksh refuses to build, throws "cross compiler" error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on: 386339
Blocks:
  Show dependency tree
 
Reported: 2008-09-27 19:57 UTC by Michael Jinks
Modified: 2012-02-13 03:38 UTC (History)
0 users

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


Attachments
Full output from "emerge ksh" (transcript,2.45 KB, text/plain)
2008-09-27 20:00 UTC, Michael Jinks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Jinks 2008-09-27 19:57:34 UTC
Trying to install app-shells/ksh-93.20071105.  Early in the build process, I get an error:

 package: update /var/tmp/portage/app-shells/ksh-93.20071105/work/bin/execrate
 /var/tmp/portage/app-shells/ksh-93.20071105/work/bin/package: line 2562: ./pkg27864.exe: Permission denied
 package: cc: seems to be a cross-compiler
 package: set HOSTTYPE to something other than the native linux.i386

(Will attach a complete transcript of the attempted build after the bug is posted.)

My first attempt at this was on a Xen guest running in 32-bit mode on top of a 64-bit dom0, and I thought something might have disliked the mismatch between the compiler and the reported CPU, so I tried again, first on a VMware guest (32 bit), then on my bare metal 32-bit laptop.  All produced similar results.

Reproducible: Always




[this from the 32-bit VMware machine, can post --info from the other two if it would be useful]

# emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20-gentoo-r10-tasc-vmware-0.6 i686)
=================================================================
System uname: 2.6.20-gentoo-r10-tasc-vmware-0.6 i686 Dual Core AMD Opteron(tm) Processor 285
Timestamp of tree: Thu, 04 Sep 2008 03:36:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r14, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl apache2 berkdb bzip2 cli cracklib crypt cups dri fortran ftp gdbm gif gpm gtk iconv imap ipv6 isdnlog java5 jpeg ldap maildir mbox midi mime mmx mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl png posix postgres pppd python readline reflection sasl session slang source spl sqlite ssl sysvipc tcpd tiff unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Jinks 2008-09-27 20:00:32 UTC
Created attachment 166632 [details]
Full output from "emerge ksh"
Comment 2 SpanKY gentoo-dev 2008-10-27 05:02:25 UTC
do you have /var/tmp mounted as a diff filesystem ?  perhaps with the noexec option ?
Comment 3 Michael Jinks 2008-10-27 18:02:22 UTC
(In reply to comment #2)
> do you have /var/tmp mounted as a diff filesystem ?  perhaps with the noexec
> option ?

Aha.  No, /var/tmp is part of /, but /tmp is mounted noexec (which used to be recommended practice from the Gentoo install guide, IIRC).  I thought I'd tried this already, but I just remounted /tmp exec, and as I type I'm watching ksh compile happily.  So apparently something tries to exec out of /tmp?
Comment 4 Tom Hendrikx 2010-09-15 20:23:31 UTC
I can second this bug (not that I really care about ksh, but broken packages should die :>).

/var/tmp/portage is a separate fs here, mounted as:
tmpfs on /var/tmp/portage type tmpfs (rw,nodev,size=800m)
Removing the nodev option does not make a difference.

emerge --info says:

Portage 2.1.8.3 (hardened/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.27-openvz-kiprensky.1-r1 i686)
=================================================================
System uname: Linux-2.6.27-openvz-kiprensky.1-r1-i686-Intel-R-_Pentium-R-_III_CPU_family_1133MHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 15 Sep 2010 10:45:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/whyscream-experimental"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="cli cracklib crypt cxx hardened ipv6 modules mudflap nptl nptlonly pam pcre pic readline ssl sysfs tcpd unicode urandom x86 zlib" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Oo.et.oO 2011-08-23 14:48:21 UTC
this bites me over and over and i have to look it up every time :-)

confirmed on amd64.

nothing explicitly stating /tmp in the 93.20090505.ebuild
Comment 6 Mike Gilbert gentoo-dev 2012-02-13 03:38:03 UTC
Should be fixed in ksh-93.20110208.