Build fails with Xcode 12

2020-09-19 Thread Adam Stewart
I recently updated to Xcode 12 on macOS 10.15.6. Xcode 12 comes with Apple Clang 12.0.0 (LLVM Clang 10.0.0), which fails to compile bash 5.0.18. This can be reproduced with the typical `./configure; make; make install` logic. The exact error message is: In file included from siglist.c:36: In f

Re: Build fails with Xcode 12

2020-09-21 Thread Adam Stewart
Thanks Chet, When I apply your patch it solves the string.h issue but now I see an issue with _stdio.h: snprintf.c:1706:1: error: expected parameter declarator vsnprintf(char *string, size_t length, const char *format, va_list args) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.

Re: Build fails with Xcode 12

2020-09-21 Thread Adam Stewart
Thanks Chet, That patch did the trick! All tests pass now. Thanks again for your help! P.S. I'm going to add this patch to the Spack package manager. Would you or anyone else be interested in "maintaining" Spack's bash build recipe? You don't have to be a Spack expert, it just gives us someone