pothosware / homebrew-pothos

Homebrew formulas for Pothos and SoapySDR
https://github.com/pothosware/homebrew-pothos/wiki
MIT License
62 stars 17 forks source link

LimeSuite installation fails #40

Closed adrianbrink closed 4 years ago

adrianbrink commented 4 years ago

This is on latest Catalina 10.15 with the latest version of Xcode and cli tools 11.5.

Running softwareupdate --all --install --force doesn't update since there isn't an update available.

Running

➜  ~ sudo xcode-select --install
Password:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
➜  ~ brew install --HEAD limesuite
Updating Homebrew...
==> Installing limesuite from pothosware/pothos
==> Downloading https://github.com/pothosware/SoapySDR/archive/soapy-sdr-0.7.2.tar.gz
Already downloaded: /Users/adrian/Library/Caches/Homebrew/downloads/72b545f299183367d5aab40ff270c5598407078ba7d5e2ec28e5d24f46e34a63--SoapySDR-soapy-sdr-0.7.2.tar.gz
==> Cloning https://github.com/myriadrf/LimeSuite.git
Updating /Users/adrian/Library/Caches/Homebrew/limesuite--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 04707b3 Mini: update default ref voltage
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you an update run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

==> Installing dependencies for pothosware/pothos/limesuite: soapysdr
==> Installing pothosware/pothos/limesuite dependency: soapysdr
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you an update run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

==> cmake .. -DENABLE_PYTHON=OFF -DENABLE_PYTHON3=ON -DSOAPY_SDR_EXTVER=release -DSOAPY_SDR_ROOT='/usr/local'
==> make install
Last 15 lines from /Users/adrian/Library/Logs/Homebrew/soapysdr/02.make:
      _wrap_SwigPyIterator_incr(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      _wrap_SwigPyIterator_next(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      ...
  "__Py_NotImplementedStruct", referenced from:
      _wrap_SwigPyIterator___eq__(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      _wrap_SwigPyIterator___ne__(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      _wrap_SwigPyIterator___add__(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      _wrap_SwigPyIterator___sub__(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      SwigPyObject_richcompare(SwigPyObject*, SwigPyObject*, int) in SoapySDRPYTHON_wrap.cxx.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [python3/_SoapySDR.so] Error 1
make[1]: *** [python3/CMakeFiles/_SoapySDR3.dir/all] Error 2
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/pothosware/homebrew-pothos/issues

Error: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you an update run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC.
adrianbrink commented 4 years ago

Okay, so I removed and reinstalled the same version of the cli tools which got rid of that warning, albeit I'm not sure why.

However the main error remains

➜  ~ brew install --HEAD limesuite
Updating Homebrew...
==> Installing limesuite from pothosware/pothos
==> Downloading https://github.com/pothosware/SoapySDR/archive/soapy-sdr-0.7.2.tar.gz
Already downloaded: /Users/adrian/Library/Caches/Homebrew/downloads/72b545f299183367d5aab40ff270c5598407078ba7d5e2ec28e5d24f46e34a63--SoapySDR-soapy-sdr-0.7.2.tar.gz
==> Cloning https://github.com/myriadrf/LimeSuite.git
Updating /Users/adrian/Library/Caches/Homebrew/limesuite--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 04707b3 Mini: update default ref voltage
==> Installing dependencies for pothosware/pothos/limesuite: soapysdr
==> Installing pothosware/pothos/limesuite dependency: soapysdr
==> cmake .. -DENABLE_PYTHON=OFF -DENABLE_PYTHON3=ON -DSOAPY_SDR_EXTVER=release -DSOAPY_SDR_ROOT='/usr/local'
==> make install
Last 15 lines from /Users/adrian/Library/Logs/Homebrew/soapysdr/02.make:
      _wrap_SwigPyIterator_incr(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      _wrap_SwigPyIterator_next(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      ...
  "__Py_NotImplementedStruct", referenced from:
      _wrap_SwigPyIterator___eq__(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      _wrap_SwigPyIterator___ne__(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      _wrap_SwigPyIterator___add__(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      _wrap_SwigPyIterator___sub__(_object*, _object*) in SoapySDRPYTHON_wrap.cxx.o
      SwigPyObject_richcompare(SwigPyObject*, SwigPyObject*, int) in SoapySDRPYTHON_wrap.cxx.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [python3/_SoapySDR.so] Error 1
make[1]: *** [python3/CMakeFiles/_SoapySDR3.dir/all] Error 2
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/pothosware/homebrew-pothos/issues

Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC.
guruofquality commented 4 years ago

Something weird with the python bindings for soapysdr...

Can you brew install soapysdr --verbose for verbosity I believe, im curious what flags went into the python config

Any different with head (aka master branch)? brew install soapysdr --verbose --head

cortices commented 4 years ago

Same error here. I tried brew uninstall swig; brew install swig --head; brew install soapysdr --verbose --head and it had slightly different but similar linking errors in the Swig python bindings.

guruofquality commented 4 years ago

Moved the issue, i think is a flag change needed with newer python, so it should be resolved if you install soapysdr with --head: https://github.com/pothosware/homebrew-pothos/issues/41

cortices commented 4 years ago

Confirmed this fixed the issue, LimeSuite installs correctly. Thanks!

adrianbrink commented 4 years ago

Thank you!