From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: [PATCH 1/2] daemon: Fix '--version'. Date: Tue, 30 Aug 2016 12:29:22 +0800 Message-ID: <8760qi282l.fsf@gmail.com> References: <87fupvx83x.fsf@gmail.com> <87vayjy2nq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beag4-00024t-8R for guix-devel@gnu.org; Tue, 30 Aug 2016 00:29:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beag0-0002hN-4E for guix-devel@gnu.org; Tue, 30 Aug 2016 00:29:35 -0400 In-Reply-To: <87vayjy2nq.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 29 Aug 2016 18:12:57 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Hello, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hi! > > Alex Vong skribis: > >> This one and the next patch fix '--version' of guix-daemon and >> guix-register. Currently, they are not working, which is the reason why >> help2man gives error when building from source. > > How are they not working exactly? :-) > > It definitely works for me: > > $ ./guix-daemon --version > guix-daemon (GNU Guix) 0.11.0 > $ ./guix-register --version > guix-register (GNU Guix) 0.11.0 > I get this output instead: $ LC_ALL=3DC ./guix-daemon --version ./guix-daemon: unrecognized option '--version' Try `guix-daemon --help' or `guix-daemon --usage' for more information. This is werid, but I think it is because I build guix with lto. Here is how I build guix: $ ./bootstrap && ./configure CFLAGS=3D'-O2 -flto' CXXFLAGS=3D'-O2 -flto' LD= FLAGS=3D'-O2 -flto' && make -j`nproc` AR=3Dgcc-ar NM=3Dgcc-nm RANLIB=3Dgcc-= ranlib So, perhaps this is a gcc bug! (not guix's one, we can forget about the patch) Could you reproduce it? > Ludo=E2=80=99. Thanks, Alex