[MacPorts] #72102: bison-runtime @3.8.2: "Error: No files have been installed in the destroot directory" with build_arch x86_64 on ARM (was: bison: "No files have been installed in the destroot directory" with build_arch x86_64 on ARM)

MacPorts noreply at macports.org
Sat Mar 1 01:31:44 UTC 2025


#72102: bison-runtime @3.8.2: "Error: No files have been installed in the destroot
directory" with build_arch x86_64 on ARM
----------------------+----------------------
  Reporter:  ehrmann  |      Owner:  mascguy
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  bison    |
----------------------+----------------------

Comment (by ryandesign):

 The bison-runtime port declares itself to be `supported_archs noarch` and
 `platforms any`, meaning it is believed that it will install the same
 exact files on any OS and architecture. The only thing it installed on my
 machine when building for the native architecture was gettext .mo files.
 However, in your case, cross-compiling for a different architecture, the
 destroot phase doesn't appear to have installed anything. This is probably
 because your log says:

 {{{
 :info:configure checking for GNU gettext in libintl... no
 :info:configure checking whether to use NLS... no
 }}}

 Since the port is `noarch`, MacPorts doesn't use `-arch` flags, which
 means that when it is looking for libintl, it's looking for one matching
 your native architecture (arm64) but you only have it installed for
 x86_64. Maybe there's a way we can tell the configure script not to bother
 checking for libintl and just to assume it is present, since this port is
 just installing message catalogs and doesn't actually use libintl.

 As a temporary workaround, you can set your `build_arch` back to the
 native `arm64`, then `sudo port clean bison-runtime` and try installing it
 again, which should succeed; then you can set `build_arch` back to your
 desired `x86_64`.

-- 
Ticket URL: <https://trac.macports.org/ticket/72102#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list