> -----Original Message-----
> From: Mcnamara, John
> Sent: Monday, February 15, 2016 9:39 AM
> To: 'Marc' <marcdevel at gmail.com>; dev at dpdk.org
> Subject: RE: [dpdk-dev] x86_64-native-linuxapp-clang compilation broken?
> 
> 
> 
> > -----Original Message-----
> > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Marc
> > Sent: Sunday, February 14, 2016 10:21 PM
> > To: dev at dpdk.org
> > Subject: [dpdk-dev] x86_64-native-linuxapp-clang compilation broken?
> >
> > It seems compilation for clang Linux target is broken:
> >
> > In file included from
> > /home/marc/dpdk/lib/librte_eal/linuxapp/eal/eal_pci.c:42:
> > /home/marc/dpdk/x86_64-native-linuxapp-clang/include/rte_memcpy.h:870:2:
> > error: implicit declaration of function '_mm_alignr_epi8' is invalid in
> > C99
> >       [-Werror,-Wimplicit-function-declaration]
> >         MOVEUNALIGNED_LEFT47(dst, src, n, srcofs);
> >         ^
> > ...
> >
> > marc at dpdk:~/dpdk$ clang --version
> > Debian clang version 3.5.0-10 (tags/RELEASE_350/final) (based on LLVM
> > 3.5.0)
> > Target: x86_64-pc-linux-gnu
> > Thread model: posix
> 
> Hi,
> 
> It compiles ok for me with the latest HEAD and clang 3.70:
> 
>     $ make install -j T=x86_64-native-linuxapp-clang CC=/usr/bin/clang
>     ...
>     Build complete [x86_64-native-linuxapp-clang]
>     ...
> 
> 
>     $ clang --version
>     clang version 3.7.0 (tags/RELEASE_370/final)
>     Target: x86_64-redhat-linux-gnu
>     Thread model: posix
> 
> I do have to avoid using the ccached clang since it gives a (different)
> error about macro expansions. However, that isn't the issue you are
> seeing.
> 

P.S.

I see that similar, but not quite the same errors, if I use the -gcc target 
with clang:

    $ make install -j T=x86_64-native-linuxapp-gcc CC=/usr/bin/clang

John

Reply via email to