Re: dyld: Library not loaded: @rpath/libgcc_s.1.1.dylib
Hanspeter Niederstrasser <[email protected]>
| Newsgroups | gmane.os.apple.fink.general |
|---|---|
| Organization | Snaggled Works |
| Message-ID | <[email protected]> |
On 12/17/22 2:29 PM, Scott Hannahs via Fink-users wrote: > Does the file "/opt/sw/lib/gcc11/lib/libgcc_s.1.1.dylib” exist? It seems to be missing and you may need to reinstall gcc11? > > -Scott > >> On Dec 17, 2022, at 7:42 AM, Franchetti, Giuliano Dr. <[email protected]> wrote: >> >> Hello, >> >> I have installed imagemagik, but as I use “covert” the following error appears >> >> >> /Users/giuliano> convert >> dyld: Library not loaded: @rpath/libgcc_s.1.1.dylib >> Referenced from: /opt/sw/lib/gcc11/lib/libgcc_s.1.dylib >> Reason: image not found >> Abort trap: 6 >> /Users/giuliano> This is for the current version of gcc11-11.3.0-2: $ otool -L /sw/lib/gcc11/lib/libgcc_s.1.dylib /sw/lib/gcc11/lib/libgcc_s.1.dylib: /sw/lib/gcc11/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.1.0) @rpath/libgcc_s.1.1.dylib (compatibility version 1.0.0, current version 1.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0) For the previous revsion 11.3.0-1, this is the result: $ otool -L /sw/lib/gcc11/lib/libgcc_s.1.dylib /sw/lib/gcc11/lib/libgcc_s.1.dylib: /sw/lib/gcc11/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /sw/lib/gcc11/lib/libgcc_s.1.1.dylib (compatibility version 1.0.0, current version 1.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0) The linkage of libgcc_s.1.dylib to libgcc_s.1.1.dylib has changed. It's now using @rpath, but clearly the @rpath used during the compile phase was not set correctly. Is the blame this line in the .info? https://github.com/fink/fink-distributions/blob/32ca6d9def69f5c21b1cabfb8d54c66f91ec01c4/10.9-libcxx/stable/main/finkinfo/languages/gcc11.info#L207 ``` install_name_tool -id ${dylib#.} $dylib ``` It fixes install_names after `make install`, but if something linked to a changed dylib, it'll do it using the unmodified install_name. Hanspeter _______________________________________________ Fink-users mailing list [email protected] List archive: https://sourceforge.net/p/fink/mailman/fink-users/ Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users