errors compiling LALpulsar with clang 11.0.0 on MacOS Catalina
Hi,
I'm getting an error trying to build the LALpulsar package from the tar file on a MacOS Catalina.
laptop2:/usr/local> ls -l lalpulsar-1.18.2.tar.xz
-rw-rw-rw-@ 1 eric staff 91501832 Feb 10 10:50 lalpulsar-1.18.2.tar.xz
laptop2:/usr/local/lalpulsar-1.18.2> uname -a
[...] 19.2.0 Darwin Kernel Version
19.2.0: Sat Nov 9 03:47:04 PST 2019;
root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64
The configure stage runs successfully (config.log attached), but the
make stage produces the error below.
Any advice would be appreciated.
Thank you,
Eric
*laptop2:/usr/local/lalpulsar-1.18.2> ./configure *
...
configure:
==================================================
LALPulsar has now been successfully configured:
* Python support is ENABLED
* CFITSIO library support is ENABLED
* SWIG bindings for Octave are DISABLED
* SWIG bindings for Python are ENABLED
* OpenMP acceleration is DISABLED
* Doxygen documentation is DISABLED
and will be installed under the directory:
/usr/local
Now run 'make' to build LALPulsar,
and run 'make install' to install LALPulsar.
==================================================
*laptop2:/usr/local/lalpulsar-1.18.2> make*
GEN lalpulsar-user-env.shell
GEN lalpulsar-user-env.csh
GEN lalpulsar-user-env.sh
GEN lalpulsar-user-env.fish
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in debian
make[2]: Nothing to be done for `all'.
Making all in include
Making all in lal
Making header-links in lib
Making header-links in swig
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
make[4]: Nothing to be done for `all-am'.
make[3]: Nothing to be done for `all-am'.
Making all in lib
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
CC BinaryPulsarTiming.lo
CC CWMakeFakeData.lo
CWMakeFakeData.c:960:16: error: implicit declaration of function
'XLALReadConfigUINT4Variable' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
XLAL_CHECK ( XLALReadConfigUINT4Variable ( &transientStartTime, cfgdat...
^
CWMakeFakeData.c:960:16: note: did you mean 'XLALReadConfigINT4Variable'?
/opt/local/include/lal/ConfigFile.h:129:1: note:
'XLALReadConfigINT4Variable'
declared here
DECLARE_XLALREADCONFIGVARIABLE(INT4,INT4);
^
/opt/local/include/lal/ConfigFile.h:125:7: note: expanded from macro
'DECLARE_XLALREADCONFIGVARIABLE'
int XLALReadConfig ##TYPE## Variable ( CTYPE *varp, LALParsedDataFile ...
^
<scratch space>:84:1: note: expanded from here
XLALReadConfigINT4Variable
^
CWMakeFakeData.c:960:16: error: this function declaration is not a prototype
[-Werror,-Wstrict-prototypes]
XLAL_CHECK ( XLALReadConfigUINT4Variable ( &transientStartTime, cfgdat...
^
CWMakeFakeData.c:963:16: error: implicit declaration of function
'XLALReadConfigUINT4Variable' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
XLAL_CHECK ( XLALReadConfigUINT4Variable ( &transientTau, cfgdata, sec...
^
3 errors generated.
make[3]: *** [CWMakeFakeData.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2