From owner-freebsd-ports@freebsd.org Sat May 7 17:18:58 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13E7DB3219D for ; Sat, 7 May 2016 17:18:58 +0000 (UTC) (envelope-from elferdo@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D54141753 for ; Sat, 7 May 2016 17:18:57 +0000 (UTC) (envelope-from elferdo@gmail.com) Received: by mail-ig0-x22b.google.com with SMTP id bi2so72430952igb.0 for ; Sat, 07 May 2016 10:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=V/4OVl/hFNg6U+oOiWjPWe+L/ZPQ1PypLosfUS1ZD58=; b=g+AkeGL5BfC8repN4KwbESDAswmjZ06n4oes/H1N9BIF1oi2B8ALtfvW5dyryMuRKx pK3Vq4E0A+DRo9hVx7YhuX4VT+tWPe7QJKkupA2eOpmaQewkW1gkvszgrqmNNjWa6iym DRUsCaK2zCpQOG9Cxdg+jnCzqLxCkZZ7i2P8t0XIW3PRBxHLaN+xgpHwLvlGcfQ8B9+2 2Ab0djEqDbsGPdOU3UAe+OMpiYoCujSYv8m11zbyZin3ZiZWw5brpS6CRjoqREmXXt/Z VnripkMJTF6up+SB2R+e0kJNGZDPiGaK4hbvdDePFrcTo8j5Sc9rpbXPpL1O2/mbWCWk nIGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=V/4OVl/hFNg6U+oOiWjPWe+L/ZPQ1PypLosfUS1ZD58=; b=XqeAEJ7jZeB2QT5u34DBmAoV4/6rI/7y2ouMVutjWH7v8U289Zb9TS+FxD++9fpuIV y79bm2Yg1GdeRWQSnsey5chwDv9vpFDlVKLwnmD2VW9DBKB73b3CtkNvSS2W3PWC/4AR cSJjZ/Q3xxId5DnTmgUOECrQxxLhNNoFpy4abR+bitPTS0UO98+uoLqZhdqB2D6tbswS tkeecp4bduXKNbsbJj1xCwIh5LctlkE6wcNYxLB9XO54QzIm0tt0LDC1+GR7eRmspZ7z V+NaxrRK+EO0YvwXIF3nhUawpREZoCwrDJy+I61aTyOmHvwFREDk+GBz9Wajx71zbbLB 0TTg== X-Gm-Message-State: AOPr4FXpVFDCu6Fhv7sAylqoX8HP91e1aucY87Y1J7XeSoptJ3b4zGbKUWpcMtSw36Tyq7oUvW7UxVs06ZOpaA== MIME-Version: 1.0 X-Received: by 10.50.142.97 with SMTP id rv1mr2982504igb.74.1462641537111; Sat, 07 May 2016 10:18:57 -0700 (PDT) Received: by 10.36.206.3 with HTTP; Sat, 7 May 2016 10:18:57 -0700 (PDT) Date: Sat, 7 May 2016 19:18:57 +0200 Message-ID: Subject: editors/emacs-nox11 not compiling with LTO enabled From: =?UTF-8?Q?Fernando_Herrero_Carr=C3=B3n?= To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 May 2016 17:18:58 -0000 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