[MacPorts] #65988: libdispatch: how to make linking to libblocksruntime work?

MacPorts noreply at macports.org
Thu Oct 13 08:12:15 UTC 2022


#65988: libdispatch: how to make linking to libblocksruntime work?
--------------------------+-------------------------
 Reporter:  barracuda156  |      Owner:  kencu
     Type:  submission    |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.7.2
 Keywords:                |       Port:  libdispatch
--------------------------+-------------------------
 I am trying to make `libdispatch` port. Configure fails on 10.6.8 (both
 x86 and Rosetta), not being able to find libBlocksRuntime.

 {{{
 CMake Error at src/CMakeLists.txt:140 (target_link_libraries):
   Target "dispatch" links to:

     BlocksRuntime::BlocksRuntime

   but the target was not found.  Possible reasons include:

     * There is a typo in the target name.
     * A find_package call is missing for an IMPORTED target.
     * An ALIAS target is missing.
 }}}
 On Rosetta I tried to link to libblocksruntime port, on x86 it is supposed
 to exist, but both fail likewise.

 Any ideas how to make it work? :)

 Another issue: while Ninja is supposed to be used with Cmake, it fails
 immediately on some parsing error during configure:
 {{{
 -- Check for working C compiler: /opt/local/bin/gcc-mp-12 - broken
 CMake Error at
 /opt/local/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
   The C compiler

     "/opt/local/bin/gcc-mp-12"

   is not able to compile a simple test program.

   It fails with the following output:

     Change Dir:
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libdispatch/libdispatch/work/build/CMakeFiles/CMakeTmp

     Run Build Command(s):ninja -f Makefile cmTC_e8fee/fast && ninja:
 error: Makefile:5: expected '=', got ':'
     default_target: all
                   ^ near here
 }}}
 (Without setting Ninja this error does not occur.)

-- 
Ticket URL: <https://trac.macports.org/ticket/65988>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list