[cmake-developers] [PATCH] Fix broken PGI builds for liblzma.

Chuck Atkins chuck.atkins at kitware.com
Fri Aug 1 14:27:55 EDT 2014


It should be noted that the patch is really a set of workaround for PGI
compiler being broken and  less to do with the code itself.  If desired, I
could refactor the #if C99 test to  use a CHECK_SOURCE_COMPILES at the
CMake level instead.

- Chuck


On Fri, Aug 1, 2014 at 2:22 PM, Chuck Atkins <chuck.atkins at kitware.com>
wrote:

> I noticed the recent merge of liblzma broke the PGI compiler.  The
> attached patch should address the issues:
>
> PGC-S-0037-Syntax error: Recovery attempted by deleting keyword static
> (/home/chuck/Code/cmake/source/Utilities/cmliblzma/liblzma/check/sha256.c:
> 84)
>
> Once that's fixed, then the 32-bit build works but the 64-bit build is
> still broken with:
>
> ../Utilities/cmliblzma/libcmliblzma.a(sha256.c.o): In function
> `lzma_sha256_finish':
> /home/chuck/Code/cmake/source/Utilities/cmliblzma/liblzma/check/sha256.c:196:
> undefined reference to `__bswap_64'
>
> The patch should address both issues with explanations as to why.
>
>
> - Chuck
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140801/8b80ca63/attachment-0002.html>


More information about the cmake-developers mailing list