Zsh fails to build on with USE=static on three different machines. After removing the USE option it compiles fine on all machines. This error occurs with 4.3.9, 4.3.10 and perhaps older versions too. Reproducible: Always Steps to Reproduce: 1. echo "app-shells/zsh static" >> /etc/portage/package.use 2. emerge zsh 3. Actual Results: make[2]: Entering directory `/var/tmp/portage/app-shells/zsh-4.3.9/work/zsh-4.3.9/Src' i686-pc-linux-gnu-gcc -c -I. -DHAVE_CONFIG_H -march=athlon-mp -O2 -pipe -o builtin.o builtin.c In file included from zsh.mdh:19, from builtin.c:33: prototypes.h:121: error: conflicting types for ‘bcopy’ Expected Results: >>> Installing (1 of 1) app-shells/zsh-4.3.9 make[4]: Entering directory `/var/tmp/portage/app-shells/zsh-4.3.9/work/zsh-4.3.9/Src/Zle' make[4]: Leaving directory `/var/tmp/portage/app-shells/zsh-4.3.9/work/zsh-4.3.9/Src/Zle' Updated `zleparameter.mdh'. echo 'timestamp for zleparameter.mdh against zleparameter.mdd' > zleparameter.mdhs gawk -f ../../Src/makepro.awk zleparameter.c Src/Zle > zleparameter.syms (echo '/* Generated automatically */'; sed -n '/^E/{s/^E//;p;}' < zleparameter.syms) \ > zleparameter.epro (echo '/* Generated automatically */'; sed -n '/^L/{s/^L//;p;}' < zleparameter.syms) \ > `echo zleparameter.epro | sed 's/\.epro$/.pro/'` make[4]: Entering directory `/var/tmp/portage/app-shells/zsh-4.3.9/work/zsh-4.3.9/Src/Zle' make[4]: Leaving directory `/var/tmp/portage/app-shells/zsh-4.3.9/work/zsh-4.3.9/Src/Zle' Updated `zleparameter.mdh'. make[3]: Leaving directory `/var/tmp/portage/app-shells/zsh-4.3.9/work/zsh-4.3.9/Src/Zle' make[2]: Leaving directory `/var/tmp/portage/app-shells/zsh-4.3.9/work/zsh-4.3.9/Src' rm -f stamp-modobjs.tmp make[2]: Entering directory `/var/tmp/portage/app-shells/zsh-4.3.9/work/zsh-4.3.9/Src' i686-pc-linux-gnu-gcc -c -I. -DHAVE_CONFIG_H -march=athlon-mp -O2 -pipe -o builtin.o builtin.c In file included from zsh.mdh:19, from builtin.c:33: prototypes.h:121: error: conflicting types for ‘bcopy’ builtin.c: In function ‘bin_cd’: builtin.c:799: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result builtin.c:806: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result builtin.c: In function ‘bin_print’: builtin.c:3829: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result builtin.c:3840: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result builtin.c:3905: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result builtin.c:4297: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result builtin.c: In function ‘bin_read’: builtin.c:5151: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result make[2]: *** [builtin.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/app-shells/zsh-4.3.9/work/zsh-4.3.9/Src' make[1]: *** [modobjs] Error 2 make[1]: Leaving directory `/var/tmp/portage/app-shells/zsh-4.3.9/work/zsh-4.3.9/Src' make: *** [all] Error 1 * * ERROR: app-shells/zsh-4.3.9 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2571: Called die * The specific snippet of code: * emake || die "make failed" * The die message: * make 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/app-shells/zsh-4.3.9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-shells/zsh-4.3.9/temp/environment'. * Portage 2.1.6.13 (default/linux/x86/10.0/server, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.28.8 i686) ================================================================= System uname: Linux-2.6.28.8-i686-Dual-Core_AMD_Opteron-tm-_Processor_2220-with-gentoo-1.12.11.1 Timestamp of tree: Mon, 19 Oct 2009 21:15:01 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.5.4-r2, 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-mp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo " LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j4" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl apache2 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog ldap modules mssql mudflap mysql ncurses nls nptl nptlonly odbc openmp pam pcre perl pppd python readline reflection session snmp soap spl ssl sysfs tcpd truetype unicode x86 xml 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="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Same problem here Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r4-x86_64-Intel-R-_Xeon-R-_CPU_X3350_@_2.66GHz-with-gentoo-1.12.13 Timestamp of tree: Sat, 12 Dec 2009 02:15:02 +0000 app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.4 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://mirror.netcologne.de/gentoo/" LANG="de_DE.utf8" LC_ALL="" LDFLAGS="-Wl,-O1" LINGUAS="de en" MAKEOPTS="-j11" 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/local/portage/layman/java-overlay" SYNC=" rsync://137.226.34.228/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus directfb dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran fuse g15 gdbm gif gnome gpm gstreamer gtk hal iconv ieee1394 jpeg lcd ldap libcaca libnotify mad mikmod mmx modules mp3 mp4 mpeg mplayer mudflap multilib ncurses nls nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection sdl session smp sockets spell spl sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd threads thunar tiff truetype unicode usb vim-syntax vorbis x264 xface xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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" KERNEL="linux" LCD_DEVICES="g15" LINGUAS="de en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
app-shells/zsh-4.3.10-r1 [4.3.10] USE="caps* doc examples gdbm maildir pcre static* unicode -debug" hangs at "checking if POSIX sigsuspend() works..." with FEATURES=usersandbox, finishes configure successful with FEATURES=-usersandbox. http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob;f=configure.ac;hb=HEAD Portage 2.2_rc67 (!../var/portage/portage/profiles/default/linux/amd64/10.0/, gcc-4.3.4, glibc-2.10.1-r1, 2.6.33.2 i686) ================================================================= System uname: Linux-2.6.33.2-i686-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-1.12.13 Timestamp of tree: Unknown ccache version 2.4 [enabled] app-shells/bash: 4.0_p37 dev-lang/python: 2.6.4-r1 dev-util/ccache: 2.4-r8 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -Wall" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native -Wall" DISTDIR="/var/portage/distfiles" FEATURES="assume-digests buildpkg ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="en de" MAKEOPTS="-j5 -l3.2" PKGDIR="/var/portage/packages/amd64" 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="/var/portage/cvs.gentoo.org/gentoo-x86" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="hda-intel" 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="en de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nvidia nv" 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, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 243007 [details] sb-sigsuspend.c to reproduce: gcc -static sb-sigsuspend.c sandbox ./a.out <hang>
so the case is basically: - static app (so we're ptracing it) - app registers a SIGCHLD handler - app does a fork() - parent waits for the child to exit - parent waits forever this is because the ptrace code swallows all SIGCHLD events on the assumption that it's for us, not for the thing we're tracing. i added this during the initial ptrace work for the explicit reason of ignoring SIGCHLD events for a process, but perhaps i didnt think things through enough. i'll run some regression tests and package emerges, and if things still pass, just drop it and move on. also, this doesnt affect zsh stabilization as the issue only happens with ~arch sandbox (stable sandbox doesnt support static app tracing).
should be fixed for sandbox-2.3+ http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commitdiff;h=b3e79e5912f0a40248d60142c07d0bf3c36fd4ec
I'm not sure if Comment #2 and later are actually related to the problem I originally reported? In my case, the configure stage runs fine, it's the compile stage where things go wrong. Disabling sandbox does not make a difference, using sandbox-2.3 does not fix it either. However, the original bug has actually been fixed in zsh-4.3.10-r1: *zsh-4.3.10-r1 (02 May 2010) 02 May 2010; Torsten Veller <tove@gentoo.org> +zsh-4.3.10-r1.ebuild: EAPI=2. Depend on libpcre with USE=static-libs for a static build. zsh-4.3.10-r1 and zsh-4.3.9 compile fine with USE=static after libpcre has been compiled with USE=static-libs. I guess the the "libpcre with USE=static-libs" dependency should be added to zsh-4.3.9(-r1) ? Or perhaps it's time to stabilize >=zsh-4.3.10-r1 ?
By the way, the title of this bug used to be "app-shell/zsh fails to build with USE=static"
use the clone link to resubmit and re-review you need to post your config.log and a full build.log as an attachment when you do though