<html><body><p><font size="2">Looks like to me that your clang is too old. </font><br><br><tt><font size="2">  clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)</font></tt><br><br><font size="2">clang 3.8.0 was released on 08 Mar 2016.</font><br><br><font size="2">While vec_xl was added in </font><a href="https://reviews.llvm.org/rL286455"><font size="2">https://reviews.llvm.org/rL286455</font></a><font size="2"> onNov 11 2016, which is around half an year later then 3.8.0.</font><br><br><font size="2">Can you please try using newer clang.</font><br><br><font size="2"><br>Best,<br><br>Jinsong Ji (ΌΝ½πΛΙ), PhD.<br><br>XL/LLVM on Power Compiler Development <br>E-mail: jji@us.ibm.com</font><br><br><img width="16" height="16" src="cid:1__=8FBB0E0EDFF7398B8f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for Jeffrey Walton via llvm-dev ---10/24/2019 03:57:02 AM---Hi Everyone, I'm having trouble figuring out "><font size="2" color="#424282">Jeffrey Walton via llvm-dev ---10/24/2019 03:57:02 AM---Hi Everyone, I'm having trouble figuring out a compile failure on ppc64le. The</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Jeffrey Walton via llvm-dev <llvm-dev@lists.llvm.org></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">llvm-dev <llvm-dev@lists.llvm.org></font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">10/24/2019 03:57 AM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">[EXTERNAL] [llvm-dev] Failed PPC64 compile when using Power7 loads and stores?</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">"llvm-dev" <llvm-dev-bounces@lists.llvm.org></font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><tt><font size="2">Hi Everyone,<br><br>I'm having trouble figuring out a compile failure on ppc64le. The<br>failure is at </font></tt><tt><font size="2"><a href="https://travis-ci.org/noloader/cryptopp-autotools/jobs/602187190">https://travis-ci.org/noloader/cryptopp-autotools/jobs/602187190</a></font></tt><tt><font size="2"> <br>. The message is:<br><br>/bin/bash ./libtool  --tag=CXX   --mode=compile clang++<br>-DHAVE_CONFIG_H -I.    -DCRYPTOPP_DISABLE_POWER8  -pipe -mcpu=power7<br>-mvsx -maltivec -g -O2 -MT libppc_power7_la-ppc_power7.lo -MD -MP -MF<br>.deps/libppc_power7_la-ppc_power7.Tpo -c -o<br>libppc_power7_la-ppc_power7.lo `test -f 'ppc_power7.cpp' || echo<br>'./'`ppc_power7.cpp<br><br>ppc_power7.cpp:71:21: error: use of undeclared identifier 'vec_xl'<br>            vec_xst(vec_xl(0, (__vector unsigned int*)(b1+3)), 0, (__vec...<br><br>The source file includes <altivec.h>. The source file is compiled with<br>-mcpu=power7 -mvsx -maltivec.<br><br>==========<br><br>Here is the source code of interest:<br><br>// POWER7 added unaligned loads and store operations<br>byte b1[19] = {255, 255, 255, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, b2[17];<br><br>#if defined(_ARCH_PWR7) && defined(__xlC__)<br>    // Workaround XL C++<br>    vec_xst(vec_xl(0, (unsigned int*)(b1+3)), 0, (unsigned int*)(b2+1));<br>#elif defined(_ARCH_PWR7)<br>    vec_xst(vec_xl(0, (__vector unsigned int*)(b1+3)), 0, (__vector<br>unsigned int*)(b2+1));<br>#else<br>    std::memset(b2, 0x00, sizeof(b2));<br>#endif<br><br>result = (0 == std::memcmp(b1+3, b2+1, 16));<br><br>Why is the file failing to compile?<br><br>==========<br><br>Here are some details of the host:<br><br>  Operating System Details<br>  Distributor ID: Ubuntu<br>  Description: Ubuntu 16.04.6 LTS<br>  Release: 16.04<br>  Codename: xenial<br>  ...<br>  OS/Arch:           linux/ppc64le<br>  clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)<br><br>==========<br><br>Compile is OK on my old PowerMac G5, GCC112 and GCC119 from the<br>compile farm. Unfortunately, the compile farm only tests GCC and XLC.<br>The Clang compiler does not work.<br><br>Thanks in advance.<br><br>Jeff<br>_______________________________________________<br>LLVM Developers mailing list<br>llvm-dev@lists.llvm.org<br></font></tt><tt><font size="2"><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></font></tt><tt><font size="2"> <br><br></font></tt><br><br><BR>
</body></html>