Hi Bill,

Thanks for the quick response.  I tried to roll back to pre-v8 gfortran, 
couldn’t find v7 pre-built and didn’t want to go down that rabbit hole of 
building it.  
I tried again with gfortran 6.3.0 and got the same error however-
[ 17%] Building Fortran object CMakeFiles/wsjt_fort_omp.dir/lib/packjt.f90.o
gfortran: error: unrecognized command line option ‘-Xclang’

grey>:/Users/alex/wsjtx-2.5.0-rc1$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/gfortran/libexec/gcc/x86_64-apple-darwin16/6.3.0/lto-wrapper
Target: x86_64-apple-darwin16
Configured with: ../gcc-6.3.0/configure --prefix=/usr/local/gfortran 
--enable-languages=c,c++,fortran,objc,obj-c++ --build=x86_64-apple-darwin16 
--with-gmp=/Users/fx/devel/gcc/deps-static/x86_64 
--with-mpfr=/Users/fx/devel/gcc/deps-static/x86_64 
--with-mpc=/Users/fx/devel/gcc/deps-static/x86_64 
--with-isl=/Users/fx/devel/gcc/deps-static/x86_64
Thread model: posix
gcc version 6.3.0 (GCC) 

This might be a stupid question but is there a build-guide for MacOS X?  I feel 
like I’m missing something simple here unless there is only one person in the 
world who can build the Mac code.  :)

In the meantime if I can motivate myself to enter the hell that is CMake, I 
will see if I can suppress this option from the gfortran make.  
It’s been awhile since I’ve had the misfortune of working with CMake.  ;-)  A 
necessary evil for truly cross platform work. 

Thanks again for your help,
alex K6LOT


> On Jul 18, 2021, at 11:25 AM, Bill Somerville via wsjt-devel 
> <[email protected]> wrote:
> 
> 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 
>>> <[email protected] 
>>> <mailto:[email protected]>> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wsjt-devel

_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to