Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420257 - app-editors/emacs-24.1_rc doesn't compile with ABI=x32
Summary: app-editors/emacs-24.1_rc doesn't compile with ABI=x32
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Emacs project
URL: http://debbugs.gnu.org/cgi/bugreport....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-08 14:11 UTC by Xavier Miller (RETIRED)
Modified: 2012-06-13 18:05 UTC (History)
1 user (show)

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


Attachments
x32 patch for Emacs 24.1 (03_all_x32.patch,245 bytes, patch)
2012-06-10 19:46 UTC, Ulrich Müller
Details | Diff
build.log (gz) (build.log.gz,137.53 KB, application/x-gzip)
2012-06-11 17:15 UTC, Xavier Miller (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2012-06-08 14:11:37 UTC
I got a lot of "warning: left shift count >= width of type [enabled by default]"

and it ends with a segfault:

buffer.h:1068:20: warning: right shift count >= width of type [enabled by default]
o doc.o editfns.o callint.o eval.o floatfns.o fns.o font.o print.o lread.o syntax.o unexelf.o bytecode.o process.o gnutls.o callproc.o region-cache.o sound.o atimer.o doprnt.o intervals.o textprop.o composite.o xml.o       terminfo.o lastfile.o    vm-limit.o   ../lib/libgnu.a             -lncurses         -lpthread   -lm -lgcc -lc -lgcc /usr/lib/gcc/x86_64-gentoo-linux-gnu/4.7.0/../../../../libx32/crtn.o
test "no" = "yes" || \
  test "X" = X ||  -r temacs
cd ../lisp; make -w --jobserver-fds=3,4 - --jobserver-fds=3,4 -j update-subdirs
make[2]: Entering directory `/var/tmp/portage/app-editors/emacs-24.1_rc/work/emacs-24.1/lisp'
cd /var/tmp/portage/app-editors/emacs-24.1_rc/work/emacs-24.1/lisp; subdirs=`(find . -type d -print)`; for file in $subdirs; do case $file in */.* | */.*/* | */=* | */cedet* ) ;; *) wins="$wins $file" ;; esac; done; \
for file in $wins; do \
   /var/tmp/portage/app-editors/emacs-24.1_rc/work/emacs-24.1/update-subdirs $file; \
done;
make[2]: Leaving directory `/var/tmp/portage/app-editors/emacs-24.1_rc/work/emacs-24.1/lisp'
if test "no" = "yes"; then \
  ln -f temacs bootstrap-emacs; \
else \
  `/bin/pwd`/temacs --batch --load loadup bootstrap || exit 1; \
  test "X" = X ||  -zex emacs; \
  mv -f emacs bootstrap-emacs; \
fi
/bin/sh: line 6: 24979 Segmentation fault      `/bin/pwd`/temacs --batch --load loadup bootstrap
make[1]: *** [bootstrap-emacs] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-editors/emacs-24.1_rc/work/emacs-24.1/src'
make: *** [src] Error 2
 * ERROR: app-editors/emacs-24.1_rc failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-editors/emacs-24.1_rc'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/emacs-24.1_rc'`.
 * The complete build log is located at '/var/tmp/portage/app-editors/emacs-24.1_rc/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/emacs-24.1_rc/temp/environment'.
 * Working directory: '/var/tmp/portage/app-editors/emacs-24.1_rc/work/emacs-24.1'
 * S: '/var/tmp/portage/app-editors/emacs-24.1_rc/work/emacs-24.1'

>>> Failed to emerge app-editors/emacs-24.1_rc, Log file:

>>>  '/var/tmp/portage/app-editors/emacs-24.1_rc/temp/build.log'

 * Messages for package app-editors/emacs-24.1_rc:

 * ERROR: app-editors/emacs-24.1_rc failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-editors/emacs-24.1_rc'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/emacs-24.1_rc'`.
 * The complete build log is located at '/var/tmp/portage/app-editors/emacs-24.1_rc/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/emacs-24.1_rc/temp/environment'.
 * Working directory: '/var/tmp/portage/app-editors/emacs-24.1_rc/work/emacs-24.1'
 * S: '/var/tmp/portage/app-editors/emacs-24.1_rc/work/emacs-24.1'




The build.log will come this night. I cannot upload it for now.

Reproducible: Always
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2012-06-08 14:12:32 UTC
This happends whatever USE is enabled.
Comment 2 Ulrich Müller gentoo-dev 2012-06-09 08:20:42 UTC
Please report this upstream. Maybe there's still a chance that it can be fixed in the 24.1 release.

Does emacs-vcs-24.1.9999-r1 compile?
Comment 3 Ulrich Müller gentoo-dev 2012-06-10 19:44:47 UTC
Reported upstream: <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11669>
Comment 4 Ulrich Müller gentoo-dev 2012-06-10 19:46:23 UTC
Created attachment 314887 [details, diff]
x32 patch for Emacs 24.1

Please test if attached patch fixes the issue for you.
Comment 5 Xavier Miller (RETIRED) gentoo-dev 2012-06-11 17:14:59 UTC
Hello,

The patch didn't work.

I will attach the build.log
Comment 6 Xavier Miller (RETIRED) gentoo-dev 2012-06-11 17:15:28 UTC
Created attachment 315019 [details]
build.log (gz)
Comment 7 Xavier Miller (RETIRED) gentoo-dev 2012-06-11 17:22:04 UTC
emerge --info emacs

Portage 2.2.0_alpha110 (default/linux/amd64/10.0/x32, gcc-4.7.0, glibc-2.15-r2, 3.4.0-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.0-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Mon, 11 Jun 2012 15:30:01 +0000
distcc 3.1 x86_64-gentoo-linux-gnu [disabled]
app-shells/bash:          4.2_p29
dev-lang/python:          2.7.3-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.7.0
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo local pandaboard pd-overlay proaudio
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE freedist"
CBUILD="x86_64-gentoo-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
CHOST="x86_64-gentoo-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --buildpkg --quiet-build=n"
FEATURES="assume-digests binpkg-logs buildpkg candy collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j5"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlay /var/lib/layman/pandaboard /var/lib/layman/pd-overlay /var/lib/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa amd64 amr apng branding btrfs bzip2 cairo cdda cddb cli consolekit cracklib crypt cups cxx dbus device-mapper dri dssi encode exif fat ffmpeg fftw flac fortran gif gpm gstreamer gudev iconv id3tag jack jpeg ladspa lame libsamplerate lxde mmx modules mp3 mpeg mudflap multilib ncurses nls nptl ntfs ogg opengl openmp osc pam pcre pdf png policykit pppd qt3support qt4 readline rubberband samba sdl session sna sqlite sse sse2 ssl ssse3 svg tcpd threads tiff truetype udev unicode usb vorbis wmf x264 xcb xetex xorg xvid zlib" ALSA_CARDS="hda-intel usb-audio virmidi" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-af9015" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 8 Xavier Miller (RETIRED) gentoo-dev 2012-06-11 18:01:48 UTC
(In reply to comment #5)
> Hello,
> 
> The patch didn't work.
> 
> I will attach the build.log

PEBKAC
s@app-editor@app-editors@

The patch worked for me.

Sorry for the previous reply.
Comment 9 Ulrich Müller gentoo-dev 2012-06-13 18:05:36 UTC
Fixed without revbump in 23.4-r3 and 24.1. I followed a slightly different approach now, namely patching the src/m/amdx86-64.h machine file (instead of configure).

Thank you for reporting the issue.