Opened 8 years ago

Last modified 4 years ago

#51905 closed defect

Bear is broken on 10.11 (.5) because of Library Validation — at Version 1

Reported by: jlargentaye (John de Largentaye) Owned by: cal@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: upstream Cc:
Port: Bear

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (1)

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to cal@…
Priority: HighNormal

MacPorts does not install files in /usr/local, and installing files there manually while using MacPorts is not supported. Does /usr/local/lib/libear.dylib or /usr/local/bin/bear exist? If so, remove it.

Note: See TracTickets for help on using tickets.