From owner-freebsd-current@freebsd.org Thu Jul 26 06:35:10 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 469A91041F00 for ; Thu, 26 Jul 2018 06:35:10 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DD9C780B19; Thu, 26 Jul 2018 06:35:09 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (124-169-199-167.dyn.iinet.net.au [124.169.199.167]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w6Q6Z4jR085604 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 25 Jul 2018 23:35:07 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: gcc/clang interoperability problem with a custom "samba" build in recent -current. From: Julian Elischer To: Dimitry Andric , Yuri Pankov Cc: freebsd-current References: <3dd60a0d-7a5e-e9f0-3018-d09b5b8ac389@yuripv.net> <0a54cb6e-f528-df63-57f2-6caa3d76ff6c@freebsd.org> Message-ID: <2c5d8af1-f703-e33b-2b71-905dc8fe0908@freebsd.org> Date: Thu, 26 Jul 2018 14:34:59 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <0a54cb6e-f528-df63-57f2-6caa3d76ff6c@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2018 06:35:10 -0000 On 25/7/18 12:40 am, Julian Elischer wrote: > On 22/7/18 4:32 am, Dimitry Andric wrote: >> On 21 Jul 2018, at 21:11, Yuri Pankov wrote: >>> Yuri Pankov wrote: >>>> Julian Elischer wrote: >> ... >>>>>> anyone know if there is a clang equivalent of -Wp, -E,-lang-asm? >>>> In later GCC versions the cpp's -lang-asm seems to be deprecated in >>>> favor of -x assembler-with-cpp as it conflicts with -l option. >>>> Could you try changing the -Wp,-E,-lang-asm to >>>> -Wp,-E,-xassembler-with-cpp? I did this but if failed.. I had to reread this email  a few times to think of replacing the whole -Wp,-E,-lang-asm  with just  -xassembler-with-cpp! >>> Just tried it myself, and if you indeed mean the >>> third_party/aesni-intel/aesni-intel_asm.c, the following seems to >>> work for me: >>> >>> clang -xassembler-with-cpp -c >>> third_party/aesni-intel/aesni-intel_asm.c >> Yes, that is exactly what I suggested to Julian on IRC.  The point is >> that the ".c" extension is misleading, it should more likely be a ".S" >> extension.  But maybe this source file is used for multiple purposes. >> >> Note that -x assembler-with-cpp should also work fine for gcc. Ah..  the trick is to remove the -Wp,-E as well... >> >> -Dimitry >> > thanks > > I tried that but the version of the file we have has several lines > that caused problems... > > a lot of the assembler has assembler comments (starting with '#') > which clang complained about and died.. > > it also had #.align 4 > > which I HOPE is just a commented out line.. > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" >