Hi Alex,
thanks for that. We currently do not recommend using a gfortran version
>= 8 on macOS, this is due to some known issues with our code for which
fixes are a WIP. With gfortran v7 that compiler diagnostic message is
only a warning, which is how our build gets passed it. The passing of
-Xclang to the Fortran compiler is not done directly by us, I guess it
is a CMake issue which we have not been too concerned about yet.
73
Bill
G4WJS.
On 18/07/2021 19:18, Alex Lelievre via wsjt-devel wrote:
Hi Bill,
Thanks for getting back to me. This is what I get:
grey>:/Users/alex$which gfortran
/usr/local/bin/gfortran
grey>:/Users/alex$gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/11.1.0_1/libexec/gcc/x86_64-apple-darwin20/11.1.0/lto-wrapper
Target: x86_64-apple-darwin20
Configured with: ../configure --prefix=/usr/local/Cellar/gcc/11.1.0_1
--libdir=/usr/local/Cellar/gcc/11.1.0_1/lib/gcc/11 --disable-nls
--enable-checking=release
--enable-languages=c,c++,objc,obj-c++,fortran,d --program-suffix=-11
--with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr
--with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl
--with-zstd=/usr/local/opt/zstd --with-pkgversion='Homebrew GCC
11.1.0_1'
--with-bugurl=https://github.com/Homebrew/homebrew-core/issues
<https://github.com/Homebrew/homebrew-core/issues> --enable-libphobos
--build=x86_64-apple-darwin20 --with-system-zlib --disable-multilib
--without-build-config --with-native-system-header-dir=/usr/include
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.1.0 (Homebrew GCC 11.1.0_1)
alex K6LOT
On Jul 17, 2021, at 11:51 PM, Bill Somerville via wsjt-devel
<wsjt-devel@lists.sourceforge.net
<mailto:wsjt-devel@lists.sourceforge.net>> wrote:
On 18/07/2021 03:31, Alex Lelievre via wsjt-devel wrote:
Hi there,
I’m running into an error in the fortran portion of the WSJT-X
project on MacOS X. I’m reaching out to see if anyone has bumped
into this:
[ 17%] Built target record_time_signal
[ 17%] *Automatic MOC for target fort_qt*
[ 17%] Built target fort_qt_autogen
[ 17%] Built target fort_qt
[ 17%] Building Fortran object
CMakeFiles/wsjt_fort_omp.dir/lib/packjt.f90.o
*gfortran:* *error: *unrecognized command-line option '*-Xclang*'
make[5]: *** [CMakeFiles/wsjt_fort_omp.dir/lib/packjt.f90.o] Error 1
make[4]: *** [CMakeFiles/wsjt_fort_omp.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [wsjtx-prefix/src/wsjtx-stamp/wsjtx-build] Error 2
make[1]: *** [CMakeFiles/wsjtx-build.dir/all] Error 2
make: *** [all] Error 2
I’m not sure why -Xclang is being passed to the fortran compiler.
Calling gfortran with a test file and -Xclang option generates the
same error.
I’m wondering if I misconfigured the project or perhaps I’m using
the wrong tool chain?
Any help would be appreciated,
alex K6LOT
Hi Alex,
which Fortran compiler are you using and what version?
73
Bill
G4WJS.
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel