[MacPorts] #51905: Bear is broken on 10.11 (.5) because of Library Validation
MacPorts
noreply at macports.org
Mon Jul 25 11:28:44 PDT 2016
#51905: Bear is broken on 10.11 (.5) because of Library Validation
----------------------------+-------------------
Reporter: jlargentaye@… | Owner: cal@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: Bear |
----------------------------+-------------------
Changes (by ryandesign@…):
* owner: macports-tickets@… => cal@…
* priority: High => Normal
Old description:
> When trying to run a build on OS X 10.11.5 (El Capitan), I get:
>
> $ bear make
> dyld: warning: could not load inserted library
> '/usr/local/lib/libear.dylib' into library validated process because no
> suitable image found. Did find:
> /usr/local/lib/libear.dylib: mmap() error 1 at
> address=0x105CDA000, size=0x00003000 segment=__TEXT in Segment::map()
> mapping /usr/local/lib/libear.dylib
>
> And the compile_commands.json file is empty.
>
> Investigation led me to processRestricted() in dyld:
> https://opensource.apple.com/source/dyld/dyld-360.22/src/dyld.cpp
>
> Various sources online point to System Integrity Protection (SIP), but
> disabling that didn't change anything. I haven't yet found a workaround
New description:
When trying to run a build on OS X 10.11.5 (El Capitan), I get:
{{{
$ bear make
dyld: warning: could not load inserted library
'/usr/local/lib/libear.dylib' into library validated process because no
suitable image found. Did find:
/usr/local/lib/libear.dylib: mmap() error 1 at
address=0x105CDA000, size=0x00003000 segment=__TEXT in Segment::map()
mapping /usr/local/lib/libear.dylib
}}}
And the compile_commands.json file is empty.
Investigation led me to processRestricted() in dyld:
https://opensource.apple.com/source/dyld/dyld-360.22/src/dyld.cpp
Various sources online point to System Integrity Protection (SIP), but
disabling that didn't change anything. I haven't yet found a workaround
--
Comment:
MacPorts does not install files in /usr/local, and installing files there
manually while using MacPorts is [wiki:FAQ#usrlocal not supported]. Does
/usr/local/lib/libear.dylib or /usr/local/bin/bear exist? If so, remove
it.
--
Ticket URL: <https://trac.macports.org/ticket/51905#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list