build failure for OSX w/cmake version 3.23.2 #1

Open
opened 2022-06-07 17:31:53 +00:00 by Ghost · 1 comment

cmake .. warns:

CMake Warning (dev):
  Policy CMP0068 is not set: RPATH settings on macOS do not affect
  install_name.  Run "cmake --help-policy CMP0068" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  For compatibility with older versions of CMake, the install_name fields for
  the following targets are still affected by RPATH settings:

   gnuradio-osmosdr

This warning is for project developers.  Use -Wno-dev to suppress it.

and attempting to make install fails with:

Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/local/include/osmosdr/api.h
-- Up-to-date: /usr/local/include/osmosdr/pimpl.h
-- Up-to-date: /usr/local/include/osmosdr/ranges.h
-- Up-to-date: /usr/local/include/osmosdr/time_spec.h
-- Up-to-date: /usr/local/include/osmosdr/device.h
-- Up-to-date: /usr/local/include/osmosdr/source.h
-- Up-to-date: /usr/local/include/osmosdr/sink.h
-- Installing: /usr/local/lib/libgnuradio-osmosdr.0.2.0.0.dylib
-- Up-to-date: /usr/local/lib/libgnuradio-osmosdr.0.2.0.dylib
-- Up-to-date: /usr/local/lib/libgnuradio-osmosdr.dylib
-- Up-to-date: /usr/local/lib/cmake/osmosdr/gnuradio-osmosdrTargets.cmake
-- Up-to-date: /usr/local/lib/cmake/osmosdr/gnuradio-osmosdrTargets-release.cmake
-- Up-to-date: /usr/local/lib/cmake/osmosdr/gnuradio-osmosdrConfig.cmake
CMake Error at python/cmake_install.cmake:41 (file):
  file cannot create directory:
  /usr/local/../../../../../../Cellar/gnuradio/3.10.2.0/libexec/venv/lib/python3.9/site-packages/osmosdr.
  Maybe need administrative privileges.
Call Stack (most recent call first):
  cmake_install.cmake:44 (include)


make: *** [install] Error 1
`cmake ..` warns: ``` CMake Warning (dev): Policy CMP0068 is not set: RPATH settings on macOS do not affect install_name. Run "cmake --help-policy CMP0068" for policy details. Use the cmake_policy command to set the policy and suppress this warning. For compatibility with older versions of CMake, the install_name fields for the following targets are still affected by RPATH settings: gnuradio-osmosdr This warning is for project developers. Use -Wno-dev to suppress it. ``` and attempting to `make install` fails with: ``` Install the project... -- Install configuration: "Release" -- Up-to-date: /usr/local/include/osmosdr/api.h -- Up-to-date: /usr/local/include/osmosdr/pimpl.h -- Up-to-date: /usr/local/include/osmosdr/ranges.h -- Up-to-date: /usr/local/include/osmosdr/time_spec.h -- Up-to-date: /usr/local/include/osmosdr/device.h -- Up-to-date: /usr/local/include/osmosdr/source.h -- Up-to-date: /usr/local/include/osmosdr/sink.h -- Installing: /usr/local/lib/libgnuradio-osmosdr.0.2.0.0.dylib -- Up-to-date: /usr/local/lib/libgnuradio-osmosdr.0.2.0.dylib -- Up-to-date: /usr/local/lib/libgnuradio-osmosdr.dylib -- Up-to-date: /usr/local/lib/cmake/osmosdr/gnuradio-osmosdrTargets.cmake -- Up-to-date: /usr/local/lib/cmake/osmosdr/gnuradio-osmosdrTargets-release.cmake -- Up-to-date: /usr/local/lib/cmake/osmosdr/gnuradio-osmosdrConfig.cmake CMake Error at python/cmake_install.cmake:41 (file): file cannot create directory: /usr/local/../../../../../../Cellar/gnuradio/3.10.2.0/libexec/venv/lib/python3.9/site-packages/osmosdr. Maybe need administrative privileges. Call Stack (most recent call first): cmake_install.cmake:44 (include) make: *** [install] Error 1 ```
tnt was assigned by laforge 2022-06-11 06:07:18 +00:00
ewild was assigned by laforge 2022-06-11 06:07:18 +00:00
steve-m was assigned by laforge 2022-06-11 06:07:19 +00:00
horizon was assigned by laforge 2022-06-11 06:07:19 +00:00
Owner

There is unfortunately little we can do about it, you're apparently using homebrew/a venv that messes up the paths. None of the developers use osx, so we're unable to help.

There is unfortunately little we can do about it, you're apparently using homebrew/a venv that messes up the paths. None of the developers use osx, so we're unable to help.
Sign in to join this conversation.
No Label
No Milestone
No project
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sdr/gr-osmosdr#1
No description provided.