From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: [PATCH 1/2] daemon: Fix '--version'. Date: Fri, 02 Sep 2016 09:00:54 +0800 Message-ID: <87d1knazeh.fsf@gmail.com> References: <87fupvx83x.fsf@gmail.com> <87vayjy2nq.fsf@gnu.org> <8760qi282l.fsf@gmail.com> <877fawk5fv.fsf@gnu.org> <87pooo3zpk.fsf@gmail.com> <871t13q0it.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]:40916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfcr0-00021T-AO for guix-devel@gnu.org; Thu, 01 Sep 2016 21:01:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfcqw-0000d0-4z for guix-devel@gnu.org; Thu, 01 Sep 2016 21:01:09 -0400 In-Reply-To: <871t13q0it.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 01 Sep 2016 14:15:22 +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 ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Alex Vong skribis: > [...] >> >> I think you have isolated the problem! This test case does not work for >> me. >> >> >> I get the following output after building with >> (g++ -O2 -flto version.cxx): > > What if you compile with =E2=80=98gcc=E2=80=99 (and rename to foo.c) inst= ead of =E2=80=98g++=E2=80=99? > > It might be a symbol visibility problem, or name mangling issue. > > Ludo=E2=80=99. Hmm, I try to build with 'gcc -O2 -flto version.c' and './a.out --version' still fails with 'unrecognized option'. I check the symbols using 'nm' and they are not mangled. How should I check for the sign of a symbol visibility problems?=20 Thanks, Alex