bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22518: 25.0.90; --with-ns fails to build on Fedora 23 x86-64


From: Paul Eggert
Subject: bug#22518: 25.0.90; --with-ns fails to build on Fedora 23 x86-64
Date: Sun, 31 Jan 2016 23:59:44 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

To reproduce the problem, check out emacs-25 commit 43cb9f8ff378100ec31cb576faf347a87a05ba5d on Fedora 23 x86-64,
then type:

./autogen.sh
./configure --with-ns
make

It fails with:

  CCLD     temacs
/usr/bin/ld: vm-limit.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
vm-limit.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:588: recipe for target 'temacs' failed

For more details, 'make -V1' fails with:

gcc -Demacs -I. -I. -I../lib -I../lib -I/usr/include/alsa -pthread -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 -I/usr/include/libxml2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -MMD -MF deps/.d -MP -I/usr/include/p11-kit-1 -g3 -O2 -Wl,-znocombreloc \ -o temacs vm-limit.o dispnew.o frame.o scroll.o xdisp.o menu.o window.o charset.o coding.o category.o ccl.o character.o chartab.o bidi.o cm.o term.o terminal.o xfaces.o dbusbind.o emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.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 inotify.o profiler.o decompress.o fontset.o fringe.o image.o nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o terminfo.o lastfile.o ../lib/libgnu.a -rdynamic -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -shared-libgcc -pthread -fexceptions -fgnu-runtime -L/home/eggert/GNUstep/Library/Libraries -L/usr/local/lib64 -L/usr/lib64 -lgnustep-gui -lgnustep-base -lobjc -lm -ljpeg -lasound -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lMagickWand-6.Q16 -lMagickCore-6.Q16 -lacl -lrt -ldbus-1 -lxml2 -lgpm -ltinfo -lselinux -lgnutls -lpthread -lm -lz /usr/bin/ld: vm-limit.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
vm-limit.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:588: recipe for target 'temacs' failed



Perhaps 'configure' should add -fPIC automatically, so I don't have to? But if I try again, like this:

./configure --with-ns CFLAGS='-g3 -O2 -fPIC'
make V=1

it gets further but then fails as follows:

./temacs --batch --load loadup bootstrap
Loading loadup.el (source)...
Using load-path (/home/eggert/src/gnu/emacs/emacs-25-sc/lisp /home/eggert/src/gnu/emacs/emacs-25-sc/lisp/emacs-lisp /home/eggert/src/gnu/emacs/emacs-25-sc/lisp/language /home/eggert/src/gnu/emacs/emacs-25-sc/lisp/international /home/eggert/src/gnu/emacs/emacs-25-sc/lisp/textmodes /home/eggert/src/gnu/emacs/emacs-25-sc/lisp/vc)
Loading emacs-lisp/byte-run...
Loading emacs-lisp/backquote...
Loading subr...
Loading version...
Loading widget...
Loading custom...
Loading emacs-lisp/map-ynp...
Loading international/mule...
Loading international/mule-conf...
Loading env...
Loading format...
Loading bindings...
Loading window...
Loading files...
Loading emacs-lisp/macroexp...
Loading cus-face...
Loading faces...
Loading button...
Loading /home/eggert/src/gnu/emacs/emacs-25-sc/lisp/loaddefs.el (source)...
Loading emacs-lisp/nadvice...
Loading emacs-lisp/cl-preloaded...
Loading minibuffer...
Loading abbrev...
Loading simple...
Loading help...
Loading jka-cmpr-hook...
Loading epa-hook...
Loading international/mule-cmds...
Loading case-table...
Loading /home/eggert/src/gnu/emacs/emacs-25-sc/lisp/international/charprop.el (source)...
Loading international/characters...
Loading composite...
Loading language/chinese...
Loading language/cyrillic...
Loading language/indian...
Loading language/sinhala...
Loading language/english...
Loading language/ethiopic...
Loading language/european...
Loading language/czech...
Loading language/slovak...
Loading language/romanian...
Loading language/greek...
Loading language/hebrew...
Loading international/cp51932...
Loading international/eucjp-ms...
Loading language/japanese...
Loading language/korean...
Loading language/lao...
Loading language/tai-viet...
Loading language/thai...
Loading language/tibetan...
Loading language/vietnamese...
Loading language/misc-lang...
Loading language/utf-8-lang...
Loading language/georgian...
Loading language/khmer...
Loading language/burmese...
Loading language/cham...
Loading indent...
Loading emacs-lisp/cl-generic...
Loading frame...
Loading startup...
Loading term/tty-colors...
Loading font-core...
Loading facemenu...
Loading emacs-lisp/syntax...
Loading font-lock...
Loading jit-lock...
Loading mouse...
Loading scroll-bar...
Loading select...
Loading emacs-lisp/timer...
Loading isearch...
Loading rfn-eshadow...
Loading menu-bar...
Loading emacs-lisp/lisp...
Loading textmodes/page...
Loading register...
Loading textmodes/paragraphs...
Loading progmodes/prog-mode...
Loading emacs-lisp/lisp-mode...
Loading progmodes/elisp-mode...
Loading textmodes/text-mode...
Loading textmodes/fill...
Loading newcomment...
Loading replace...
Loading emacs-lisp/tabulated-list...
Loading buff-menu...
Loading fringe...
Loading emacs-lisp/regexp-opt...
Loading image...
Loading international/fontset...
Loading dnd...
Loading tool-bar...
Loading term/common-win...
Loading international/ucs-normalize...
Loading term/ns-win...
Loading mwheel...
Loading emacs-lisp/float-sup...
Loading vc/vc-hooks...
Loading vc/ediff-hook...
Loading uniquify...
Loading electric...
Loading emacs-lisp/eldoc...
Loading cus-start...
Loading tooltip...
Loading /home/eggert/src/gnu/emacs/emacs-25-sc/lisp/leim/leim-list.el 
(source)...
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
Makefile:727: recipe for target 'bootstrap-emacs' failed
make[1]: *** [bootstrap-emacs] Segmentation fault (core dumped)
make[1]: Leaving directory '/home/eggert/src/gnu/emacs/emacs-25-sc/src'
Makefile:394: recipe for target 'src' failed
make: *** [src] Error 2


The core dump makes it look like something has gone seriously wrong with unexec, something having to do with hardened executables perhaps?

Program received signal SIGSEGV, Segmentation fault.
__memcpy_sse2_unaligned ()
    at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:33
(gdb) where
#0  0x00007ffff2c1dbf0 in __memcpy_sse2_unaligned ()
    at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:33
#1 0x00005555557132c5 in unexec (new_name=0x5555569a9f18 "/home/eggert/src/gnu/emacs/emacs-25-sc/src/emacs", old_name=0x5555569a9f58 "/home/eggert/src/gnu/emacs/emacs-25-sc/src/temacs") at unexelf.c:406 #2 0x0000555555667c72 in Fdump_emacs (filename=93825013639364, symfile=<optimized out>) at emacs.c:2086
#3  0x00005555556deb23 in eval_sub (form=<optimized out>) at eval.c:2169
#4  0x00005555556deddd in Fprogn (body=93825010156883) at eval.c:426
#5  0x00005555556dea40 in eval_sub (form=<optimized out>) at eval.c:2119
#6  0x00005555556dea40 in eval_sub (address@hidden)
    at eval.c:2119
#7 0x00005555557022b1 in readevalloop (address@hidden, address@hidden, address@hidden, address@hidden, address@hidden, address@hidden, start=0, end=0) at lread.c:1923 #8 0x0000555555702934 in Fload (file=93825003186676, noerror=<optimized out>, nomessage=0, nosuffix=<optimized out>, must_suffix=<optimized out>)
    at lread.c:1331
#9  0x00005555556deacc in eval_sub (address@hidden)
    at eval.c:2180
#10 0x00005555556e1e87 in Feval (form=93825003292931, lexical=<optimized out>)
    at eval.c:1988
#11 0x00005555556ddc56 in internal_condition_case (address@hidden <top_level_2>, address@hidden, address@hidden <cmd_error>) at eval.c:1309
#12 0x000055555566dfa8 in top_level_1 (address@hidden)
    at keyboard.c:1106
#13 0x00005555556ddbdb in internal_catch (address@hidden, address@hidden <top_level_1>, address@hidden) at eval.c:1074
#14 0x000055555566be3a in command_loop () at keyboard.c:1067
#15 0x000055555566f257 in recursive_edit_1 () at keyboard.c:674
#16 0x000055555566f593 in Frecursive_edit () at keyboard.c:745
#17 0x00005555555c0392 in main (argc=<optimized out>, argv=<optimized out>)
    at emacs.c:1600





reply via email to

[Prev in Thread] Current Thread [Next in Thread]