Opened 23 months ago

Closed 23 months ago

Last modified 23 months ago

#65469 closed defect (fixed)

emacs 28.1 fails, missing '/usr/local/lib/libgcc_s.1.1.dylib'

Reported by: robballan (Robb Aley Allan) Owned by: Chris Jones <jonesc@…>
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc: eric-j-ason, cjones051073 (Chris Jones), mascguy (Christopher Nielsen)
Port: emacs

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

Binary install of emacs 28.1 fails with error:

Error using execdir /opt/local/libexec/emacs/28.1/x86_64-apple-darwin21.3.0/../../../../bin/:
emacs: dlopen(/opt/local/libexec/emacs/28.1/x86_64-apple-darwin21.3.0/../../../../bin/../lib/emacs/28.1/native-lisp/28.1-c641014f/preloaded/frame-b40fc590-795a6ee7.eln, 0x0001): Library not loaded: @rpath/libgcc_s.1.1.dylib
  Referenced from: /opt/local/lib/libgcc/libgcc_s.1.dylib
  Reason: tried: '/usr/local/lib/libgcc_s.1.1.dylib' (no such file), '/usr/lib/libgcc_s.1.1.dylib' (no such file)

Installation from source files succeeds.

Change History (16)

comment:1 Changed 23 months ago by kencu (Ken)

many things that use gcc will need to be rebuilt once the rpath transition finishes making it’s way thru all the various gcc ports. It’s in a bit of a transitional state right now.

Last edited 23 months ago by kencu (Ken) (previous) (diff)

comment:2 Changed 23 months ago by eric-j-ason

Cc: eric-j-ason added

comment:3 Changed 23 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:4 Changed 23 months ago by mascguy (Christopher Nielsen)

Cc: cjones051073 added

comment:5 Changed 23 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:6 Changed 23 months ago by snowflake (Dave Evans)

After rebuilding emacs, I found I needed to delete the lisp programs that had been compiled to machine code. I found these in $HOME/.emacs.d/eln-cache directory. emacs then spent a couple of minutes rebuilding them.

For some reason emacs did not know it was running a new binary.

comment:7 Changed 23 months ago by kickingvegas (Charles Choi)

Seeing the same issue.

fwiw, just updated to emacs-mac-app and do not see the same issue.

comment:8 Changed 23 months ago by Chris Jones <jonesc@…>

Owner: set to Chris Jones <jonesc@…>
Resolution: fixed
Status: newclosed

In 1b2f0488c26fc7c99849b77368dc9abaffb605ac/macports-ports (master):

emacs: revbump for new GCC, update to gcc12
Closes: #65469

comment:9 Changed 23 months ago by robballan (Robb Aley Allan)

Removed compiled version, re-installed binary. gcc12, libgcc12 installed (already were). Problem remains. Same message.

Last edited 23 months ago by robballan (Robb Aley Allan) (previous) (diff)

comment:10 Changed 23 months ago by cjones051073 (Chris Jones)

you are going to have to provide more details as it works fine here. Please uninstall emacs, then run the commands below and report back

Oberon ~/Projects/MacPorts/ports > sudo port sync
--->  Updating the ports tree
Oberon ~/Projects/MacPorts/ports > sudo port install emacs
--->  Computing dependencies for emacs
--->  Fetching archive for emacs
--->  Attempting to fetch emacs-28.1_1+nativecomp.darwin_21.x86_64.tbz2 from https://packages.macports.org/emacs
--->  Attempting to fetch emacs-28.1_1+nativecomp.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/emacs
--->  Installing emacs @28.1_1+nativecomp
--->  Activating emacs @28.1_1+nativecomp
--->  Cleaning emacs
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.
Oberon ~/Projects/MacPorts/ports > /opt/local/bin/emacs
Last edited 23 months ago by cjones051073 (Chris Jones) (previous) (diff)

comment:11 Changed 23 months ago by cjones051073 (Chris Jones)

Oberon ~/Projects/MacPorts/ports > otool -L /opt/local/bin/emacs                  
/opt/local/bin/emacs:
	/opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.14.0)
	/opt/local/lib/libncurses.6.dylib (compatibility version 6.0.0, current version 6.0.0)
	/opt/local/lib/libgnutls.30.dylib (compatibility version 59.0.0, current version 59.2.0)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.12)
	/opt/local/lib/libjansson.4.dylib (compatibility version 18.0.0, current version 18.0.0)
	/opt/local/lib/libgmp.10.dylib (compatibility version 15.0.0, current version 15.1.0)
	@rpath/libgccjit.0.dylib (compatibility version 0.0.0, current version 0.0.1)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)
Oberon ~/Projects/MacPorts/ports > otool -l /opt/local/bin/emacs | grep RPATH -A 3
          cmd LC_RPATH
      cmdsize 40
         path /opt/local/lib/gcc12 (offset 12)
Load command 21

comment:12 Changed 23 months ago by robballan (Robb Aley Allan)

I presume you mean for me to uninstall the compiled emacs and install the binary. Otherwise none of those commands work.

otool -L /opt/local/bin/emacs /opt/local/bin/emacs:

/opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.13.0) /opt/local/lib/libncurses.6.dylib (compatibility version 6.0.0, current version 6.0.0) /opt/local/lib/libgnutls.30.dylib (compatibility version 59.0.0, current version 59.2.0) /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.12) /opt/local/lib/libjansson.4.dylib (compatibility version 18.0.0, current version 18.0.0) /opt/local/lib/libgmp.10.dylib (compatibility version 15.0.0, current version 15.1.0) /opt/local/lib/gcc11/libgccjit.0.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)

otool -l /opt/local/bin/emacs | grep RPATH -A 3 (null response)

comment:13 in reply to:  7 Changed 23 months ago by robballan (Robb Aley Allan)

Replying to kickingvegas:

Seeing the same issue.

fwiw, just updated to emacs-mac-app and do not see the same issue.

Odd. Won't even launch on my system.

comment:14 Changed 23 months ago by cjones051073 (Chris Jones)

What OS are you on ?

Please run exactly these commands

sudo port uninstall emacs
sudo port sync
sudo port install emacs

and post *everything* that prints.

Last edited 23 months ago by cjones051073 (Chris Jones) (previous) (diff)

comment:15 Changed 23 months ago by robballan (Robb Aley Allan)

robb@regional ~> sudo port uninstall emacs Password: robb@regional ~> sudo port sync ---> Updating the ports tree robb@regional ~> sudo port install emacs ---> Computing dependencies for libidn2 ---> Fetching archive for libidn2 ---> Attempting to fetch libidn2-2.3.3_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/libidn2 ---> Attempting to fetch libidn2-2.3.3_0.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/libidn2 ---> Installing libidn2 @2.3.3_0 ---> Cleaning libidn2 ---> Computing dependencies for libidn2 ---> Deactivating libidn2 @2.3.2_1 ---> Cleaning libidn2 ---> Activating libidn2 @2.3.3_0 ---> Cleaning libidn2 ---> Computing dependencies for emacs The following dependencies will be installed:

clang-14 clang_select gcc12 libcxx libomp llvm-14 llvm_select perl5 xar

Continue? [Y/n]: Y ---> Fetching archive for clang_select ---> Attempting to fetch clang_select-2.2_0.darwin_21.noarch.tbz2 from https://packages.macports.org/clang_select ---> Attempting to fetch clang_select-2.2_0.darwin_21.noarch.tbz2.rmd160 from https://packages.macports.org/clang_select ---> Installing clang_select @2.2_0 ---> Activating clang_select @2.2_0 ---> Cleaning clang_select ---> Fetching archive for libcxx ---> Attempting to fetch libcxx-5.0.1_4.darwin_21.noarch.tbz2 from https://packages.macports.org/libcxx ---> Attempting to fetch libcxx-5.0.1_4.darwin_21.noarch.tbz2.rmd160 from https://packages.macports.org/libcxx ---> Installing libcxx @5.0.1_4 ---> Activating libcxx @5.0.1_4 ---> Cleaning libcxx ---> Fetching archive for libomp ---> Attempting to fetch libomp-14.0.4_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/libomp ---> Attempting to fetch libomp-14.0.4_0.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/libomp ---> Installing libomp @14.0.4_0 ---> Activating libomp @14.0.4_0 ---> Cleaning libomp ---> Fetching archive for llvm_select ---> Attempting to fetch llvm_select-2_0.darwin_21.noarch.tbz2 from https://packages.macports.org/llvm_select ---> Attempting to fetch llvm_select-2_0.darwin_21.noarch.tbz2.rmd160 from https://packages.macports.org/llvm_select ---> Installing llvm_select @2_0 ---> Activating llvm_select @2_0 ---> Cleaning llvm_select ---> Fetching archive for xar ---> Attempting to fetch xar-1.8.0.487.100.1_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/xar ---> Attempting to fetch xar-1.8.0.487.100.1_0.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/xar ---> Installing xar @1.8.0.487.100.1_0 ---> Activating xar @1.8.0.487.100.1_0 ---> Cleaning xar ---> Fetching archive for llvm-14 ---> Attempting to fetch llvm-14-14.0.6_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/llvm-14 ---> Attempting to fetch llvm-14-14.0.6_0.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/llvm-14 ---> Installing llvm-14 @14.0.6_0 ---> Activating llvm-14 @14.0.6_0 ---> Cleaning llvm-14 ---> Fetching archive for perl5 ---> Attempting to fetch perl5-5.28.3_0+perl5_34.darwin_21.noarch.tbz2 from https://packages.macports.org/perl5 ---> Attempting to fetch perl5-5.28.3_0+perl5_34.darwin_21.noarch.tbz2.rmd160 from https://packages.macports.org/perl5 ---> Installing perl5 @5.28.3_0+perl5_34 ---> Activating perl5 @5.28.3_0+perl5_34 ---> Cleaning perl5 ---> Fetching archive for clang-14 ---> Attempting to fetch clang-14-14.0.6_0+analyzer+libstdcxx.darwin_21.x86_64.tbz2 from https://packages.macports.org/clang-14 ---> Attempting to fetch clang-14-14.0.6_0+analyzer+libstdcxx.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/clang-14 ---> Installing clang-14 @14.0.6_0+analyzer+libstdcxx ---> Activating clang-14 @14.0.6_0+analyzer+libstdcxx ---> Cleaning clang-14 ---> Fetching archive for gcc12 ---> Attempting to fetch gcc12-12.1.0_3+stdlib_flag.darwin_21.x86_64.tbz2 from https://packages.macports.org/gcc12 ---> Attempting to fetch gcc12-12.1.0_3+stdlib_flag.darwin_21.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/gcc12 ---> Attempting to fetch gcc12-12.1.0_3+stdlib_flag.darwin_21.x86_64.tbz2 from https://ema.uk.packages.macports.org/gcc12 ---> Fetching distfiles for gcc12 ---> Verifying checksums for gcc12 ---> Extracting gcc12 ---> Applying patches to gcc12 ---> Configuring gcc12 ---> Building gcc12 ---> Staging gcc12 into destroot ---> Installing gcc12 @12.1.0_3+stdlib_flag ---> Activating gcc12 @12.1.0_3+stdlib_flag ---> Cleaning gcc12 ---> Fetching archive for emacs ---> Attempting to fetch emacs-28.1_1+nativecomp.darwin_21.x86_64.tbz2 from https://packages.macports.org/emacs ---> Attempting to fetch emacs-28.1_1+nativecomp.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/emacs ---> Installing emacs @28.1_1+nativecomp ---> Activating emacs @28.1_1+nativecomp ---> Cleaning emacs ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. ---> No broken ports found. ---> Some of the ports you installed have notes:

libomp has the following notes:

To use this OpenMP library:

  • For clang-3.8+, or clang-3.7 with +openmp variant:

add "-fopenmp" during compilation / linking.

  • For clang-3.7 without +openmp variant, use:

"-I/opt/local/include/libomp -L/opt/local/lib/libomp -fopenmp”

And with that, it works. Port sync seems to have fixed it?

comment:16 Changed 23 months ago by cjones051073 (Chris Jones)

yes, port sync fixed things, which is why I asked you to do that a while back...

Last edited 23 months ago by cjones051073 (Chris Jones) (previous) (diff)
Note: See TracTickets for help on using tickets.