ryanvolz / radioconda

Software radio distribution and installer for conda
Other
340 stars 39 forks source link

cmake -G Xcode ... fails #71

Closed kgarrels closed 9 months ago

kgarrels commented 10 months ago

Hi,

I recently switched from macports to radioconda for gnuradio.

I have a cmake based project that builds fine with It does work correctly if I just build with cmake -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DLIB_SUFFIX="" ..

But now, when I try to generate an Xcode project from a cmake project with cmake -G Xcode -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DLIB_SUFFIX="" .. it fails, with errors.

I want the xcode version for debugging.

Errors are:

-- The C compiler identification is unknown
-- The CXX compiler identification is Clang 15.0.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /Users/kai/radioconda/bin/x86_64-apple-darwin13.4.0-ld
-- Check for working C compiler: /Users/kai/radioconda/bin/x86_64-apple-darwin13.4.0-ld - broken
CMake Error at /Users/kai/radioconda/share/cmake-3.26/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/Users/kai/radioconda/bin/x86_64-apple-darwin13.4.0-ld"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5

    Run Build Command(s):/usr/bin/xcodebuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_88fa8 -parallelizeTargets -configuration Debug -hideShellScriptEnvironment && Command line invocation:
        /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_88fa8 -parallelizeTargets -configuration Debug -hideShellScriptEnvironment

    User defaults from command line:
        HideShellScriptEnvironment = YES
        IDEPackageSupportUseBuiltinSCM = YES

    Computing target dependency graph and provisioning inputs

    Create build description
    Build description signature: 6522802e27f4d99a579aeff48583c727
    Build description path: /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/XCBuildData/6522802e27f4d99a579aeff48583c727-desc.xcbuild

    note: Building targets in dependency order
    CreateBuildDirectory /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build
        cd /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/CMAKE_TRY_COMPILE.xcodeproj
        builtin-create-build-directory /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build

    CreateBuildDirectory /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/Debug
        cd /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/CMAKE_TRY_COMPILE.xcodeproj
        builtin-create-build-directory /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/Debug

    CreateBuildDirectory /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/EagerLinkingTBDs
        cd /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/CMAKE_TRY_COMPILE.xcodeproj
        builtin-create-build-directory /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/EagerLinkingTBDs

    WriteAuxiliaryFile /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/cmTC_88fa8.build/Debug/Objects-normal/x86_64/cmTC_88fa8.LinkFileList (in target 'cmTC_88fa8' from project 'CMAKE_TRY_COMPILE')
        cd /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5
        write-file /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/cmTC_88fa8.build/Debug/Objects-normal/x86_64/cmTC_88fa8.LinkFileList

    CompileC /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/cmTC_88fa8.build/Debug/Objects-normal/x86_64/testCCompiler.o /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/testCCompiler.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'cmTC_88fa8' from project 'CMAKE_TRY_COMPILE')
        cd /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5
        x86_64-apple-darwin13.4.0-clang -x c -target x86_64-apple-macos13.1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O2 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Debug\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -I/Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/Debug/include -I/Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/cmTC_88fa8.build/Debug/DerivedSources-normal/x86_64 -I/Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/cmTC_88fa8.build/Debug/DerivedSources/x86_64 -I/Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/cmTC_88fa8.build/Debug/DerivedSources -F/Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/Debug -march\=core2 -mtune\=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -pipe -isystem /Users/kai/radioconda/include -MMD -MT dependencies -MF /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/cmTC_88fa8.build/Debug/Objects-normal/x86_64/testCCompiler.d --serialize-diagnostics /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/cmTC_88fa8.build/Debug/Objects-normal/x86_64/testCCompiler.dia -c /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/testCCompiler.c -o /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/cmTC_88fa8.build/Debug/Objects-normal/x86_64/testCCompiler.o

    Ld /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/Debug/cmTC_88fa8 normal (in target 'cmTC_88fa8' from project 'CMAKE_TRY_COMPILE')
        cd /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5
        /Users/kai/radioconda/bin/x86_64-apple-darwin13.4.0-ld -target x86_64-apple-macos13.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -L/Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/EagerLinkingTBDs -L/Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/Debug -F/Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/EagerLinkingTBDs -F/Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/Debug -filelist /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/cmTC_88fa8.build/Debug/Objects-normal/x86_64/cmTC_88fa8.LinkFileList -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/kai/radioconda/lib -L/Users/kai/radioconda/lib -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Xlinker -dependency_info -Xlinker /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/build/cmTC_88fa8.build/Debug/Objects-normal/x86_64/cmTC_88fa8_dependency_info.dat -o /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/Debug/cmTC_88fa8
    ld: unknown option: -target

    ** BUILD FAILED **

    The following build commands failed:
        Ld /Users/kai/gqrx/xcode/CMakeFiles/CMakeScratch/TryCompile-Hu82I5/Debug/cmTC_88fa8 normal (in target \'cmTC_88fa8\' from project \'CMAKE_TRY_COMPILE\')
    (1 failure)

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)

-- Configuring incomplete, errors occurred!

I would be very grateful for a hint.

regards, kai

ryanvolz commented 9 months ago

What exact packages do you have installed? Try mamba list.

CMake is not successfully identifying the correct C compiler (thinking that it's x86_64-apple-darwin13.4.0-ld), so it will be useful to know what (if any) extra packages you have installed beyond radioconda. You probably need what conda-forge calls a "compiler activation" package that runs a script to setup the build system when you activate the conda environment. You probably want the clang_osx-64 package, but if you already have that then the activation script is not doing what you need it to.

kgarrels commented 9 months ago

thanks.

I have clang_osx-64 installed - and I think the main riddle is: why does cmake .. work nicely, but cmake -G Xcode .. fail? And why is it complaining about ld, and not the compiler?

I tried installing/ removing the compilerspackage, no change.

I attach the mamba listoutput, maybe you see something very obvious.

mamba list
# packages in environment at /Users/kai/radioconda:
#
# Name                    Version                   Build  Channel
adwaita-icon-theme        43                       unix_0    conda-forge
airspy                    1.0.10               h0d85af4_0    conda-forge
airspyhf                  1.6.8                h0d85af4_0    conda-forge
appdirs                   1.4.4              pyh9f0ad1d_0    conda-forge
appnope                   0.1.3              pyhd8ed1ab_0    conda-forge
asciimatics               1.14.0             pyhd8ed1ab_2    conda-forge
asttokens                 2.2.1              pyhd8ed1ab_0    conda-forge
atk-1.0                   2.38.0               h1d18e73_1    conda-forge
attrs                     23.1.0             pyh71513ae_1    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                pyhd8ed1ab_3    conda-forge
backports.functools_lru_cache 1.6.5              pyhd8ed1ab_0    conda-forge
bcrypt                    4.0.1           py310h3461e44_0    conda-forge
bidict                    0.22.1             pyhd8ed1ab_0    conda-forge
bladerf                   2023.02              hb7f2c08_0    conda-forge
blinker                   1.6.2              pyhd8ed1ab_0    conda-forge
boltons                   23.0.0             pyhd8ed1ab_0    conda-forge
boost-cpp                 1.78.0               hf5ba120_3    conda-forge
brotli                    1.1.0                h0dc2134_0    conda-forge
brotli-bin                1.1.0                h0dc2134_0    conda-forge
brotli-python             1.1.0           py310h9e9d8ca_0    conda-forge
bzip2                     1.0.8                h0d85af4_4    conda-forge
c-ares                    1.19.1               h0dc2134_0    conda-forge
c-compiler                1.6.0                h63c33a9_0    conda-forge
ca-certificates           2023.7.22            h8857fd0_0    conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cairo                     1.16.0            h09dd18c_1016    conda-forge
cctools                   973.0.1             hd9ad811_14    conda-forge
cctools_osx-64            973.0.1             habff3f6_14    conda-forge
certifi                   2023.7.22          pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py310ha78151a_3    conda-forge
charset-normalizer        3.2.0              pyhd8ed1ab_0    conda-forge
clang                     15.0.7               h694c41f_3    conda-forge
clang-15                  15.0.7          default_hdb78580_3    conda-forge
clang_osx-64              15.0.7               h03d6864_3    conda-forge
clangxx                   15.0.7          default_hdb78580_3    conda-forge
clangxx_osx-64            15.0.7               h2133e9c_3    conda-forge
click                     8.1.7           unix_pyh707e725_0    conda-forge
click-plugins             1.1.1                      py_0    conda-forge
cmake                     3.26.4               hf40c264_0    conda-forge
codec2                    1.0.3                h0d85af4_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
compiler-rt               15.0.7               he1888fc_1    conda-forge
compiler-rt_osx-64        15.0.7               he1888fc_1    conda-forge
conda                     23.7.3          py310h2ec42d9_0    conda-forge
conda-package-handling    2.2.0              pyh38be061_0    conda-forge
conda-package-streaming   0.9.0              pyhd8ed1ab_0    conda-forge
construct                 2.10.68            pyhd8ed1ab_0    conda-forge
contourpy                 1.1.0           py310h88cfcbd_0    conda-forge
cppzmq                    4.10.0               h478c2f3_0    conda-forge
cryptography              41.0.3          py310ha1817de_0    conda-forge
cxx-compiler              1.6.0                h1c7c39f_0    conda-forge
cycler                    0.11.0             pyhd8ed1ab_0    conda-forge
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
digital_rf                2.6.8           py310h4951aab_2    conda-forge
epoxy                     1.5.10               h5eb16cf_1    conda-forge
exceptiongroup            1.1.3              pyhd8ed1ab_0    conda-forge
executing                 1.2.0              pyhd8ed1ab_0    conda-forge
expat                     2.5.0                hf0c8a7f_1    conda-forge
fftw                      3.3.10          nompi_h4fa670e_108    conda-forge
flask                     2.3.3              pyhd8ed1ab_0    conda-forge
flask-socketio            5.3.5              pyhd8ed1ab_0    conda-forge
fmt                       9.1.0                hb8565cd_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
fontconfig                2.14.2               h5bb23bf_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.42.1          py310h6729b98_0    conda-forge
fortran-compiler          1.6.0                h932d759_0    conda-forge
freetype                  2.12.1               h3f81eb7_1    conda-forge
fribidi                   1.0.10               hbcb3906_0    conda-forge
fs                        2.4.16             pyhd8ed1ab_0    conda-forge
future                    0.18.3             pyhd8ed1ab_0    conda-forge
gdk-pixbuf                2.42.10              hff535ac_2    conda-forge
gettext                   0.21.1               h8a4c099_0    conda-forge
gevent                    22.10.2         py310h0aff47e_0    conda-forge
gevent-websocket          0.10.1                     py_0    conda-forge
gfortran                  12.3.0               h2c809b3_1    conda-forge
gfortran_impl_osx-64      12.3.0               h54fd467_1    conda-forge
gfortran_osx-64           12.3.0               h18f7dce_1    conda-forge
giflib                    5.2.1                hb7f2c08_3    conda-forge
glew                      2.1.0                h046ec9c_2    conda-forge
glfw                      3.3.8                h0dc2134_1    conda-forge
glib                      2.76.4               h7d26f99_0    conda-forge
glib-tools                2.76.4               h7d26f99_0    conda-forge
gmp                       6.2.1                h2e338ed_0    conda-forge
gnuradio                  3.10.7.0        py310h3ef1072_1    conda-forge
gnuradio-adsb             0.0.0.20230411.dev+g32bcb616f unix_pyh139f5c4_0    ryanvolz
gnuradio-core             3.10.7.0        py310h7c2c798_1    conda-forge
gnuradio-dect2            0.0.0.20230724.dev+g1e19fec9b py310h3a7906d_0    ryanvolz
gnuradio-filerepeater     0.0.0.20230720.dev+g6cfdd6298 py310hb0edf77_0    ryanvolz
gnuradio-foo              0.0.0.20230719.dev+g4544a4be7 py310h57e2db8_0    ryanvolz
gnuradio-fosphor          0.0.0.20230721.dev+g3bc8c63 py310hd2a73e2_0    ryanvolz
gnuradio-gpredict-doppler 0.0.0.20230406.dev+g24c9948ff unix_pyh6bc11b9_0    ryanvolz
gnuradio-grc              3.10.7.0        py310h22386e1_1    conda-forge
gnuradio-hermeslite2      v1.0.0.0.post9+65907c7 py310h3a7906d_0    ryanvolz
gnuradio-hpsdr            0.0.0.20230724.dev+g3adf748 py310h3a7906d_0    ryanvolz
gnuradio-ieee802_11       0.0.0.20230721.dev+gd1f9fc80c py310h12a0417_0    ryanvolz
gnuradio-ieee802_15_4     3.6.post122+g285a13a py310h791d3f1_0    ryanvolz
gnuradio-iio              3.10.7.0        py310hb237721_1    conda-forge
gnuradio-inspector        0.0.0.20230721.dev+gdee563b py310h5a7b220_0    ryanvolz
gnuradio-iridium          1!1.0.0         py310ha61664e_5    conda-forge
gnuradio-leo              1.0.0.post93+138c953 py310h47aa161_0    ryanvolz
gnuradio-leo-data         1.0.0.post93+138c953          unix_0    ryanvolz
gnuradio-lora_sdr         0.0.0.20230720.dev+g734d2ee71 py310h47aa161_0    ryanvolz
gnuradio-m2k              1.0.0           py310hd4a9733_5    conda-forge
gnuradio-osmosdr          0.2.4           py310h2346193_5    conda-forge
gnuradio-paint            0.0.0.20230721.dev+g851daac py310h47aa161_0    ryanvolz
gnuradio-pmt              3.10.7.0        py310h077ac18_1    conda-forge
gnuradio-qtgui            3.10.7.0        py310h95320e4_1    conda-forge
gnuradio-radar            0.0.0.20230721.dev+gb7a3cfc py310h4f23cf0_0    ryanvolz
gnuradio-rds              3.10.post11+gd2589c8 py310he6423ff_0    ryanvolz
gnuradio-satellites       5.4.0           py310h06d5dd6_0    conda-forge
gnuradio-soapy            3.10.7.0        py310hf8b6e0b_1    conda-forge
gnuradio-uhd              3.10.7.0        py310hd65b268_1    conda-forge
gnuradio-video-sdl        3.10.7.0        py310h22386e1_1    conda-forge
gnuradio-zeromq           3.10.7.0        py310h51ad3a0_1    conda-forge
gqrx                      2.16                 h7f459ec_1    conda-forge
graphite2                 1.3.13            h2e338ed_1001    conda-forge
greenlet                  2.0.2           py310h9e9d8ca_1    conda-forge
gsl                       2.7                  h93259b0_0    conda-forge
gst-plugins-base          1.22.5               hb5d3a86_0    conda-forge
gstreamer                 1.22.5               h840fbdc_0    conda-forge
gstreamer-orc             0.4.34               h0dc2134_0    conda-forge
gtk3                      3.24.38              h5a9695a_0    conda-forge
h5py                      3.9.0           nompi_py310h88235ec_102    conda-forge
hackrf                    2023.01.1            h75b6cab_0    conda-forge
harfbuzz                  7.3.0                h413ba03_0    conda-forge
hdf5                      1.14.2          nompi_hedada53_100    conda-forge
hicolor-icon-theme        0.17                 h694c41f_2    conda-forge
icu                       72.1                 h7336db1_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
importlib-metadata        6.8.0              pyha770c72_0    conda-forge
importlib_resources       6.0.1              pyhd8ed1ab_0    conda-forge
inspectrum                0.2.3                h71b3e54_2    conda-forge
ipython                   8.15.0             pyh31c8845_0    conda-forge
isl                       0.25                 hb486fe8_0    conda-forge
itsdangerous              2.1.2              pyhd8ed1ab_0    conda-forge
jedi                      0.19.0             pyhd8ed1ab_0    conda-forge
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
jsonpatch                 1.32               pyhd8ed1ab_0    conda-forge
jsonpointer               2.0                        py_0    conda-forge
jsonschema                4.19.0             pyhd8ed1ab_1    conda-forge
jsonschema-specifications 2023.7.1           pyhd8ed1ab_0    conda-forge
kiwisolver                1.4.5           py310h88cfcbd_0    conda-forge
krb5                      1.21.2               hb884880_0    conda-forge
lame                      3.100             hb7f2c08_1003    conda-forge
lcms2                     2.15                 h2dcdeff_1    conda-forge
ld64                      609                 ha91a046_14    conda-forge
ld64_osx-64               609                 h0fd476b_14    conda-forge
lerc                      4.0.0                hb486fe8_0    conda-forge
libad9361-iio             0.2                  hafe1066_3    conda-forge
libaec                    1.0.6                hf0c8a7f_1    conda-forge
libairspy                 1.0.10               h0d85af4_0    conda-forge
libairspyhf               1.6.8                h0d85af4_0    conda-forge
libarchive                3.6.2                h0b5dc4a_1    conda-forge
libbladerf-python         2023.02                    py_0    conda-forge
libbladerf2               2023.02              hb7f2c08_0    conda-forge
libblas                   3.9.0           17_osx64_openblas    conda-forge
libbrotlicommon           1.1.0                h0dc2134_0    conda-forge
libbrotlidec              1.1.0                h0dc2134_0    conda-forge
libbrotlienc              1.1.0                h0dc2134_0    conda-forge
libcblas                  3.9.0           17_osx64_openblas    conda-forge
libclang                  15.0.7          default_hdb78580_3    conda-forge
libclang-cpp15            15.0.7          default_hdb78580_3    conda-forge
libclang13                15.0.7          default_h953c2e9_3    conda-forge
libcodec2                 1.0.3                h0d85af4_0    conda-forge
libcorrect                0.0.0                hb7f2c08_0    conda-forge
libcurl                   8.2.1                h5f667d7_0    conda-forge
libcxx                    16.0.6               hd57cbcb_0    conda-forge
libdeflate                1.18                 hac1461d_0    conda-forge
libedit                   3.1.20191231         h0678c8f_2    conda-forge
libev                     4.33                 haf1e3a3_1    conda-forge
libevent                  2.1.12               ha90c15b_1    conda-forge
libexpat                  2.5.0                hf0c8a7f_1    conda-forge
libffi                    3.4.2                h0d85af4_5    conda-forge
libflac                   1.4.3                he965462_0    conda-forge
libgfortran               5.0.0           12_3_0_h97931a8_1    conda-forge
libgfortran-devel_osx-64  12.3.0               h0b6f5ec_1    conda-forge
libgfortran5              12.3.0               hbd3c1fe_1    conda-forge
libgirepository           1.76.1               he30e17e_0    conda-forge
libglib                   2.76.4               hc62aa5d_0    conda-forge
libhackrf0                2023.01.1            hb7f2c08_0    conda-forge
libiconv                  1.17                 hac89ed1_0    conda-forge
libiio                    0.24                 h694c41f_1    conda-forge
libiio-c                  0.24                 hf8c4c5d_1    conda-forge
libjpeg-turbo             2.1.5.1              hb7f2c08_0    conda-forge
liblapack                 3.9.0           17_osx64_openblas    conda-forge
liblimesuite              22.09.1              hf0c8a7f_0    conda-forge
libliquid1                1.6.0                h3c6534c_0    conda-forge
libllvm15                 15.0.7               he4b1e75_3    conda-forge
libm2k                    0.7.0           py310hfba3bd2_1    conda-forge
libmamba                  1.5.0                hc2ec11d_0    conda-forge
libmambapy                1.5.0           py310h6b6d02b_0    conda-forge
libnghttp2                1.52.0               he2ab024_0    conda-forge
libogg                    1.3.4                h35c211d_1    conda-forge
libopenblas               0.3.23          openmp_h429af6e_0    conda-forge
libopus                   1.3.1                hc929b4f_1    conda-forge
libpng                    1.6.39               ha978bb4_0    conda-forge
libpq                     15.4                 h3df487d_0    conda-forge
librsvg                   2.56.3               hec3db73_0    conda-forge
librtaudio6               5.2.0                he965462_1    conda-forge
libsndfile                1.2.2                hb941fa5_0    conda-forge
libsodium                 1.0.18               hbcb3906_1    conda-forge
libsolv                   0.7.24               h7d26f99_3    conda-forge
libsqlite                 3.43.0               h58db7d2_0    conda-forge
libssh2                   1.11.0               hd019ec5_0    conda-forge
libthrift                 0.18.1               h88b220a_2    conda-forge
libtiff                   4.5.1                hf955e92_1    conda-forge
libusb                    1.0.26             hc2f2c32_100    conda-forge
libuv                     1.46.0               h0c2f820_0    conda-forge
libvorbis                 1.3.7                h046ec9c_0    conda-forge
libwebp                   1.3.1                hc961f54_0    conda-forge
libwebp-base              1.3.1                h0dc2134_0    conda-forge
libxcb                    1.15                 hb7f2c08_0    conda-forge
libxml2                   2.11.5               hd95e348_0    conda-forge
libxslt                   1.1.37               h20bfa82_1    conda-forge
libzlib                   1.2.13               h8a1eda9_5    conda-forge
limesuite                 22.09.1              h6beca88_0    conda-forge
llvm-openmp               16.0.6               hff08bdf_0    conda-forge
llvm-tools                15.0.7               he4b1e75_3    conda-forge
log4cpp                   1.1.4                he965462_0    conda-forge
lxml                      4.9.3           py310h479f746_0    conda-forge
lz4-c                     1.9.4                hf0c8a7f_0    conda-forge
lzo                       2.10              haf1e3a3_1000    conda-forge
m17-cxx-demod             2.3.3                ha8422f1_2    conda-forge
mako                      1.2.4              pyhd8ed1ab_0    conda-forge
mamba                     1.5.0           py310h6bde348_0    conda-forge
markupsafe                2.1.3           py310h6729b98_0    conda-forge
matplotlib                3.7.2           py310h2ec42d9_0    conda-forge
matplotlib-base           3.7.2           py310h475a17b_0    conda-forge
matplotlib-inline         0.1.6              pyhd8ed1ab_0    conda-forge
mpc                       1.3.1                h81bd1dd_0    conda-forge
mpfr                      4.2.0                h4f9bd69_0    conda-forge
mpg123                    1.31.3               hf0c8a7f_0    conda-forge
munkres                   1.1.4              pyh9f0ad1d_0    conda-forge
mysql-common              8.0.33               hc6116ba_2    conda-forge
mysql-libs                8.0.33               haa61052_2    conda-forge
ncurses                   6.4                  hf0c8a7f_0    conda-forge
ninja                     1.11.1               hb8565cd_0    conda-forge
nspr                      4.35                 hea0b92c_0    conda-forge
nss                       3.92                 hd6ac835_0    conda-forge
numpy                     1.25.2          py310h7451ae0_0    conda-forge
openjpeg                  2.5.0                h13ac156_2    conda-forge
openssl                   3.1.2                h8a1eda9_0    conda-forge
packaging                 23.1               pyhd8ed1ab_0    conda-forge
pandas                    2.1.0           py310h5262a37_0    conda-forge
pango                     1.50.14              hbce5e75_1    conda-forge
paramiko                  3.3.1              pyhd8ed1ab_0    conda-forge
parso                     0.8.3              pyhd8ed1ab_0    conda-forge
pcre2                     10.40                h1c4e4bc_0    conda-forge
pexpect                   4.8.0              pyh1a96a4e_2    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    10.0.0          py310hd63a8c7_0    conda-forge
pip                       23.2.1             pyhd8ed1ab_0    conda-forge
pixman                    0.40.0               hbcb3906_0    conda-forge
pkg-config                0.29.2            ha3d46e9_1008    conda-forge
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_0    conda-forge
platformdirs              3.10.0             pyhd8ed1ab_0    conda-forge
pluggy                    1.3.0              pyhd8ed1ab_0    conda-forge
ply                       3.11                       py_1    conda-forge
pooch                     1.7.0              pyha770c72_3    conda-forge
portaudio                 19.6.0               he965462_8    conda-forge
prompt-toolkit            3.0.39             pyha770c72_0    conda-forge
prompt_toolkit            3.0.39               hd8ed1ab_0    conda-forge
pthread-stubs             0.4               hc929b4f_1001    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
pyadi-iio                 0.0.16             pyhd8ed1ab_0    conda-forge
pybind11                  2.11.1          py310h88cfcbd_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pybind11-global           2.11.1          py310h88cfcbd_0    conda-forge
pycairo                   1.24.0          py310h0b97775_0    conda-forge
pycosat                   0.6.4           py310h90acd4f_1    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pyfiglet                  0.8.post1                  py_0    conda-forge
pygments                  2.16.1             pyhd8ed1ab_0    conda-forge
pygobject                 3.44.1          py310ha8dcd3d_0    conda-forge
pylibiio                  0.24                       py_1    conda-forge
pynacl                    1.5.0           py310h90acd4f_2    conda-forge
pyopengl                  3.1.6              pyhd8ed1ab_1    conda-forge
pyopenssl                 23.2.0             pyhd8ed1ab_1    conda-forge
pyparsing                 3.0.9              pyhd8ed1ab_0    conda-forge
pyqt                      5.15.9          py310hecc045f_4    conda-forge
pyqt5-sip                 12.12.2         py310h018f80b_4    conda-forge
pyqtgraph                 0.13.3             pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.12         had23ca6_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python-engineio           4.6.1              pyhd8ed1ab_0    conda-forge
python-socketio           5.8.0              pyhd8ed1ab_0    conda-forge
python-tzdata             2023.3             pyhd8ed1ab_0    conda-forge
python_abi                3.10                    3_cp310    conda-forge
pytz                      2023.3             pyhd8ed1ab_0    conda-forge
pywin32-on-windows        0.1.0              pyh1179c8e_3    conda-forge
pyyaml                    6.0.1           py310h6729b98_0    conda-forge
pyzmq                     25.1.1          py310h998be00_0    conda-forge
qt                        5.15.8               h93fa01e_0    conda-forge
qt-main                   5.15.8              heb9da5c_15    conda-forge
qt-webengine              5.15.8               h66b1b81_1    conda-forge
qwt                       6.2.0                hed3eaa1_6    conda-forge
readline                  8.2                  h9e318b2_1    conda-forge
referencing               0.30.2             pyhd8ed1ab_0    conda-forge
reproc                    14.2.4               hb7f2c08_0    conda-forge
reproc-cpp                14.2.4               hf0c8a7f_0    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
rhash                     1.4.3                h0dc2134_2    conda-forge
rpds-py                   0.10.0          py310h3461e44_0    conda-forge
rtl-sdr                   0.6.0.post20230829      h0dc2134_1    conda-forge
ruamel.yaml               0.17.32         py310h6729b98_0    conda-forge
ruamel.yaml.clib          0.2.7           py310h90acd4f_1    conda-forge
scipy                     1.11.2          py310h3900cf1_0    conda-forge
sdl                       1.2.64               hce1cd6f_0    conda-forge
sdl2                      2.28.2               he965462_0    conda-forge
setuptools                68.1.2             pyhd8ed1ab_0    conda-forge
sigtool                   0.1.3                h88f4db0_0    conda-forge
sip                       6.7.11          py310h9e9d8ca_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
soapysdr                  0.8.1           py310ha23aa8a_3    conda-forge
soapysdr-module-airspy    0.2.0                ha64c28d_0    conda-forge
soapysdr-module-airspyhf  0.2.0                ha64c28d_0    conda-forge
soapysdr-module-audio     0.1.1                h7ecdfb7_0    conda-forge
soapysdr-module-bladerf   0.4.1                h3f20bda_0    conda-forge
soapysdr-module-hackrf    0.3.4                ha64c28d_0    conda-forge
soapysdr-module-lms7      22.09.1              hcbf95fb_0    conda-forge
soapysdr-module-netsdr    0.2.0                h7ecdfb7_1    conda-forge
soapysdr-module-plutosdr  0.2.1                hbfed937_3    conda-forge
soapysdr-module-redpitaya 0.1.1                h7ecdfb7_0    conda-forge
soapysdr-module-remote    0.5.2                ha64c28d_2    conda-forge
soapysdr-module-rtlsdr    0.3.3                h85dcec6_1    conda-forge
soapysdr-module-uhd       0.4.1                h14c3ef5_7    conda-forge
soapysdr-module-volk-converters 0.1.1                h91a6bfa_1    conda-forge
spdlog                    1.11.0               ha64ae7f_1    conda-forge
stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
tapi                      1100.0.11            h9ce4665_0    conda-forge
tk                        8.6.12               h5dbffcc_0    conda-forge
toml                      0.10.2             pyhd8ed1ab_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
tornado                   6.3.3           py310h6729b98_0    conda-forge
tqdm                      4.66.1             pyhd8ed1ab_0    conda-forge
traitlets                 5.9.0              pyhd8ed1ab_0    conda-forge
typing-extensions         4.7.1                hd8ed1ab_0    conda-forge
typing_extensions         4.7.1              pyha770c72_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
uhd                       4.4.0.0         py310h50d9707_0    conda-forge
unicodedata2              15.0.0          py310h90acd4f_0    conda-forge
urllib3                   2.0.4              pyhd8ed1ab_0    conda-forge
volk                      3.0.0                h75ea093_1    conda-forge
watchdog                  3.0.0           py310h389cd99_0    conda-forge
wcwidth                   0.2.6              pyhd8ed1ab_0    conda-forge
websocket-client          1.6.2              pyhd8ed1ab_0    conda-forge
werkzeug                  2.3.7              pyhd8ed1ab_0    conda-forge
wheel                     0.41.2             pyhd8ed1ab_0    conda-forge
wxwidgets                 3.2.2.1              h254b04c_3    conda-forge
xorg-libxau               1.0.11               h0dc2134_0    conda-forge
xorg-libxdmcp             1.1.3                h35c211d_0    conda-forge
xz                        5.2.6                h775f41a_0    conda-forge
yaml                      0.2.5                h0d85af4_2    conda-forge
yaml-cpp                  0.7.0                hf0c8a7f_2    conda-forge
zeromq                    4.3.4                he49afe7_1    conda-forge
zipp                      3.16.2             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               h8a1eda9_5    conda-forge
zope.event                5.0                pyhd8ed1ab_0    conda-forge
zope.interface            6.0             py310h90acd4f_0    conda-forge
zstandard                 0.19.0          py310h151724a_2    conda-forge
zstd                      1.5.2                h829000d_7    conda-forge
kgarrels commented 9 months ago

I just found: https://stackoverflow.com/questions/65146106/xcodebuild-using-ld-rather-than-clang-for-linking

after export LD="/usr/bin/clang", I was able to create the xcode project. Not sure why though :-)

We could close the issue I think.

ryanvolz commented 9 months ago

Now my theory is that the conda activation script for clang is setting variables that make it not work with the Xcode generator (like here where it sets the linker to ld, when apparently you need clang). Removing the clang_osx-64 and clangxx_osx-64 (and maybe any other clang packages) might help by just letting Xcode do its own thing.

I also wonder if there is some path using the options described on the Xcode generator documentation page to set the toolset or build system to something compatible with what the conda-forge packages are doing. But the workaround you found is probably easier.

Feel free to reopen this if you run into more problems.