gcc/clang interoperability problem with a custom "samba" build in recent -current.

Dimitry Andric dim at FreeBSD.org
Sat Jul 21 20:32:55 UTC 2018


On 21 Jul 2018, at 21:11, Yuri Pankov <yuripv at yuripv.net> 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?
> 
> 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.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20180721/2c9ab8d3/attachment.sig>


More information about the freebsd-current mailing list