Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xemacs-21.4.15-r2 ebuild segfaults on amd64
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
glassbear
n00b
n00b


Joined: 02 Jul 2004
Posts: 9
Location: Cincinnati, OH

PostPosted: Tue Sep 07, 2004 11:43 pm    Post subject: xemacs-21.4.15-r2 ebuild segfaults on amd64 Reply with quote

The ebuild for app-editors/xemacs-21.4.15-r2 has been marked as stable, but segfaults during compilation on my amd64 system.

The ebuild terminates part way through with the following message:

Code:
...
./xemacs -nd -batch -l /var/tmp/portage/xemacs-21.4.15-r2/work/xemacs-21.4.15/src/../lisp/update-elc.el
make[1]: *** [update-elc.stamp] Segmentation fault
make[1]: Leaving directory `/var/tmp/portage/xemacs-21.4.15-r2/work/xemacs-21.4.15/src'
make: *** [src] Error 2

!!! ERROR: app-editors/xemacs-21.4.15-r2 failed.
!!! Function src_compile, Line 168, Exitcode 2
!!! (no error message)


A few details about my system (I am happy to post additional info upon request, to assist in diagnosing the problem):

  • Hypersonic Aviator AX6 laptop (based on the Mitac 8355 barebone design), VIA K8T800 northbridge/VT8237 southbridge, ATI Mobility Radeon 9600 video
  • Kernel: 2.6.7-gentoo-r14
  • GCC: 3.3.4 20040623
  • glibc: 2.3.4.20040619-r1
  • CFLAGS: -O2 -pipe -fno-stack-protector
  • USE flags: -gtk -gnome qt kde acpi alsa avi bzlib cdr crypt directfb divx4linux dvd emacs encode exif fbcon foomaticdb ftp gif gphoto2 hardened imagemagick ipv6 java jpeg mozilla mpeg multilib oggvorbis pam pdflib png python quicktime samba tetex theora tidy tiff truetype unicode usb xml2 xsl xmms amd64


Any help appreciated! :) G
Back to top
View user's profile Send private message
glassbear
n00b
n00b


Joined: 02 Jul 2004
Posts: 9
Location: Cincinnati, OH

PostPosted: Wed Sep 08, 2004 10:21 pm    Post subject: xemacs-21-4-15-r2 ebuild segfaults on amd64 Reply with quote

filed bug 63358
Back to top
View user's profile Send private message
Tsonn
Guru
Guru


Joined: 03 Jun 2004
Posts: 550

PostPosted: Thu Sep 09, 2004 9:16 pm    Post subject: Reply with quote

It worked on my system; the only obvious difference I can see is CFLAGS. Mine are:

Code:

CFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe"


Might as well try compiling with those.
Back to top
View user's profile Send private message
glassbear
n00b
n00b


Joined: 02 Jul 2004
Posts: 9
Location: Cincinnati, OH

PostPosted: Mon Sep 13, 2004 12:36 am    Post subject: Reply with quote

Changing the CFLAGS did not change the results. Compilation always fails in the file update-elc.el, with the same line # and error message quoted in my original posting.

I tried changing the CFLAGS one at a time to see whether I could isolate the effect on compilation of any one of them. Since compilation never succeeded, I can't point to any individual flag as the culprit, but just for the sake of completeness, here are the different combinations I tried:


  • -O2 -pipe -fno-stack-protector (original settings)
  • -O2 -march=k8 -pipe -fno-stack-protector
  • -O2 -pipe -fno-stack-protector -fomit-frame-pointer
  • -O2 -march=k8 -pipe -fno-stack-protector -fomit-frame-pointer
  • -O2 -march=k8 -pipe -fomit-frame-pointer


G
Back to top
View user's profile Send private message
trantorvega
n00b
n00b


Joined: 19 Sep 2005
Posts: 13

PostPosted: Mon Sep 19, 2005 2:05 pm    Post subject: Possible solution Reply with quote

I had the same kind of problem during the compilation. Since i had a previous verion of xemacs installed (actually the same version, just -r2 instead of -r3), i thought that the problem might have had something to do with gcc or glibc, since i had previously recompiled them with the hardened flag on. Once recompiled both without the hardened flag (or maybe just one of them, i'm not sure), xemacs merged perfectly. Perhaps the same thing happened to you.
Back to top
View user's profile Send private message
apryan
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 124

PostPosted: Mon Aug 06, 2007 1:02 pm    Post subject: Reply with quote

Confirmed that this problem still exists with xemacs-21.4.20-r5. I have tried emerging with -berkdb and -postgres. I have not tried the one other suggestion of reemerging gcc and glibc with -harden as I do not want to screw up gcc. If this problem can be resolved with out going that way, let me know.

thanks

Quote:
Portage 2.1.3.3 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.6-r0, 2.6.20-hardened-r1 x86_64)
=================================================================
System uname: 2.6.20-hardened-r1 x86_64 Dual-Core AMD Opteron(tm) Processor 2214 HE
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 05 Aug 2007 02:20:01 +0000
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /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=k8 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
MAKEOPTS="-j12"
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.namerica.gentoo.org/gentoo-portage"
USE="X acpi aim amd64 apache2 apm avi berkdb bzlib cairo caps cracklib crypt curl encode exim extensions fam flash ftp gd gif gnutls gstreamer gtk2 hardened icq imagemagick imap innodb ithreads jpeg justify lcms mbox midi ming mng mpeg msql multilib mysql nls nptl nptlonly ogg oggvorbis opengl pam pic postgres python quicktime quotas readline sqlite ssl szip tcltk tcpd theora threads tiff tokenizer truetype urandom usb vhosts xml xorg xsl xvid 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="keyboard mouse" 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, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum