Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 May 2016 19:18:57 +0200
From:      =?UTF-8?Q?Fernando_Herrero_Carr=C3=B3n?= <elferdo@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   editors/emacs-nox11 not compiling with LTO enabled
Message-ID:  <CAMwkeZyj1Uv3vVjfKZHEmkMTEiJXr5OABZSSeq6OSJmrBQTvHQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi everyone,

I just upgraded my ports tree with portsnap and am upgrading my
packages. When compiling emacs-nox11-24.5_3,3 with Link Time Optimization
disabled, everything compiles and works fine. If I enable LTO, though, I
get the following error:

*gcc48* -std=gnu99 -Demacs  -I. -I. -I../lib -I./../lib
-I/usr/local/include/libxml2           -MMD -MF *deps/.d* -MP
-I/usr/local/include -I/usr/local/include/p11-kit-1
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include -pthread     -O2 -pipe -O2 -fno-strict-aliasing -pipe
-march=core2  -isystem /usr/local/include -fstack-protector
-Wl,-rpath=/usr/local/lib/gcc48 -flto -ffat-lto-objects  -Wl,-znocombreloc
-ltinfo -L/usr/local/lib -Wl,-rpath=/usr/local/lib -fstack-protector
-Wl,-rpath=/usr/local/lib/gcc48 -L/usr/local/lib/gcc48 \
  -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    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
gfilenotify.o profiler.o decompress.o        xgselect.o  terminfo.o
lastfile.o gmalloc.o     ../lib/libgnu.a                -lrt  -lexecinfo
-L/usr/local/lib -lxml2     -lutil -lncurses        -L/usr/local/lib
-lgnutls   -lpthread  -L/usr/local/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0
-lintl   -lm -lz

*gcc48: error: deps/.d: No such file or directorylto-wrapper:
/usr/local/bin/gcc48 returned 1 exit status*
/usr/local/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
Makefile:664: recipe for target 'temacs' failed
gmake[3]: *** [temacs] Error 1
gmake[3]: Leaving directory
'/usr/ports/editors/emacs-nox11/work/emacs-24.5/src'
Makefile:387: recipe for target 'src' failed

The directory src/deps exists however:

ports/editors/emacs-nox11% ls work/emacs-24.5/src/deps
alloc.d        casetab.d      coding.d       editfns.d      frame.d
keymap.d       process.d      sysdep.d       window.d
atimer.d       category.d     composite.d    emacs.d        gfilenotify.d
lastfile.d     profiler.d     term.d         xdisp.d
bidi.d         ccl.d          data.d         eval.d         gmalloc.d
lread.d        regex.d        terminal.d     xfaces.d
buffer.d       character.d    decompress.d   fileio.d       gnutls.d
macros.d       region-cache.d terminfo.d     xgselect.d
bytecode.d     charset.d      dired.d        filelock.d     indent.d
marker.d       scroll.d       textprop.d     xml.d
callint.d      chartab.d      dispnew.d      floatfns.d     insdel.d
menu.d         search.d       undo.d
callproc.d     cm.d           doc.d          fns.d          intervals.d
minibuf.d      sound.d        unexelf.d
casefiddle.d   cmds.d         doprnt.d       font.d         keyboard.d
print.d        syntax.d       vm-limit.d

Any help with this will be greatly appreciated.

Cheers,
Fernando



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMwkeZyj1Uv3vVjfKZHEmkMTEiJXr5OABZSSeq6OSJmrBQTvHQ>