Opened 18 months ago
Last modified 11 months ago
#72062 new defect
mu fails to build without emacs: ERROR: Command `/usr/bin/emacs --version` failed with status 1
| Reported by: | barracuda156 | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.10.5 |
| Keywords: | Cc: | ra1nb0w | |
| Port: | mu |
Description
---> Configuring mu Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mu/mu/work/mu-1.12.7" && /opt/local/bin/meson setup --prefix=/opt/local /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mu/mu/work/mu-1.12.7 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mu/mu/work/build --wrap-mode=default The Meson build system Version: 1.7.0 Source dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mu/mu/work/mu-1.12.7 Build dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mu/mu/work/build Build type: native build Project name: mu Project version: 1.12.7 C compiler for the host machine: /opt/local/bin/gcc-mp-14 (gcc 14.2.0 "gcc-mp-14 (MacPorts gcc14 14.2.0_1+G5+stdlib_flag) 14.2.0") C linker for the host machine: /opt/local/bin/gcc-mp-14 ld64 97.17 C++ compiler for the host machine: /opt/local/bin/g++-mp-14 (gcc 14.2.0 "g++-mp-14 (MacPorts gcc14 14.2.0_1+G5+stdlib_flag) 14.2.0") C++ linker for the host machine: /opt/local/bin/g++-mp-14 ld64 97.17 Host machine cpu family: ppc Host machine cpu: power macintosh Compiler for C supports arguments -Wno-unused-parameter: YES Compiler for C supports arguments -Wno-cast-function-type: YES Compiler for C supports arguments -Wformat-security: YES Compiler for C supports arguments -Wformat=2: YES Compiler for C supports arguments -Wstack-protector: YES Compiler for C supports arguments -fstack-protector-strong: YES Compiler for C supports arguments -Wno-switch-enum: YES Compiler for C supports arguments -Wno-array-bounds: YES Compiler for C supports arguments -Wno-stringop-overflow: YES Compiler for C++ supports arguments -Wno-unused-parameter: YES Compiler for C++ supports arguments -Wno-cast-function-type: YES Compiler for C++ supports arguments -Wformat-security: YES Compiler for C++ supports arguments -Wformat=2: YES Compiler for C++ supports arguments -Wstack-protector: YES Compiler for C++ supports arguments -fstack-protector-strong: YES Compiler for C++ supports arguments -Wno-switch-enum: YES Compiler for C++ supports arguments -Wno-array-bounds: YES Compiler for C++ supports arguments -Wno-stringop-overflow: YES Compiler for C++ supports arguments -Wno-volatile: YES Check usable header "charconv" : YES Program /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mu/mu/work/mu-1.12.7/build-aux/date.py found: YES (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mu/mu/work/mu-1.12.7/build-aux/date.py) Message: use Xapian only in a single thread Checking whether type "struct dirent" has member "d_ino" : YES Checking whether type "struct dirent" has member "d_type" : YES Checking for function "setsid" : YES Checking for function "wordexp" : YES Program cp found: YES (/bin/cp) Program ln found: YES (/bin/ln) Program rm found: YES (/bin/rm) Found pkg-config: YES (/opt/local/bin/pkg-config) 0.29.2 Run-time dependency glib-2.0 found: YES 2.78.4 Run-time dependency gobject-2.0 found: YES 2.78.4 Run-time dependency gio-2.0 found: YES 2.78.4 Run-time dependency gio-unix-2.0 found: YES 2.78.4 Run-time dependency gmime-3.0 found: YES 3.2.7 Run-time dependency threads found: YES Run-time dependency xapian-core found: YES 1.4.27 Message: xapian 1.4.27 supports c++ move-semantics Message: xapian 1.4.27 supports ngrams Checking for function "g_log_writer_syslog" with dependency glib-2.0: NO Library cld2 found: NO Message: CLD2 not found or disabled; no support for language detection Found CMake: /opt/local/bin/cmake (3.31.3) Run-time dependency guile-3.0 found: NO (tried pkgconfig, framework and cmake) Program makeinfo found: YES (/opt/local/bin/makeinfo) Program install-info found: YES (/opt/local/bin/install-info) Configuring version.texi using configuration meson.build:303:6: ERROR: Command `/usr/bin/emacs --version` failed with status 1. A full log can be found at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mu/mu/work/build/meson-logs/meson-log.txt Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mu/mu/work/mu-1.12.7" && /opt/local/bin/meson setup --prefix=/opt/local /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mu/mu/work/mu-1.12.7 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_mu/mu/work/build --wrap-mode=default Exit code: 1
Change History (4)
comment:1 follow-up: 2 Changed 18 months ago by ra1nb0w
comment:2 Changed 18 months ago by barracuda156
Replying to ra1nb0w:
it is using the macOS version
/usr/bin/emacs. Are you using theemacsvariant? Because in that case the configure should use the right binary. What the command/usr/bin/emacs --versionreturns? If the port is without any variants, we should disable the emacs inclusion but this should be the default. Also, I notice that your are on PPC.
If it is supposed to use emacs in any case, even without a variant, then it is likely that my system binary does not work (I never used it or even checked). Not an issue then, can be closed as wontfix. (I can take care of the system emacs binary, and proper emacs builds fine at the moment.)
comment:3 follow-up: 4 Changed 18 months ago by ra1nb0w
by default emacs is not selected. The check is done here and should be enough to detect incompatible versions and other issues. What the command /usr/bin/emacs --version returns in your installation?
comment:4 Changed 11 months ago by barracuda156
Replying to ra1nb0w:
by default
emacsis not selected. The check is done here and should be enough to detect incompatible versions and other issues. What the command/usr/bin/emacs --versionreturns in your installation?
That’s some Apple weirdness: to “install” emacs for ppc one needs to run /usr/libexec/dumpemacs, otherwise the binary won’t run. Anyway, not MacPorts bug.
Interestingly, building with emacs from MacPorts fails: https://github.com/djcb/mu/issues/2873 (system one works).

it is using the macOS version
/usr/bin/emacs. Are you using theemacsvariant? Because in that case the configure should use the right binary. What the command/usr/bin/emacs --versionreturns? If the port is without any variants, we should disable the emacs inclusion but this should be the default. Also, I notice that your are on PPC.