Newly added Zig portfile build error

Gregory Anders greg at gpanders.com
Sat Mar 27 19:42:43 UTC 2021


On Sun, 28 Mar 2021 02:37 +0900, 조성빈 wrote:
>As the llvm-11 and zig PRs were merged, I selfupdated the macports port tree and tried to install zig.
>Looks like the build fails when CMake tries to install the built binaries to destroot:
>
>:info:destroot CMake Error at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.7.1/cmake/install.cmake:36 (message):
>:info:destroot Call Stack (most recent call first):
>:info:destroot   cmake_install.cmake:63 (include)
>:info:destroot make: *** [install/fast] Error 1
>:info:destroot make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build'
>:info:destroot Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build" && /usr/bin/make -w install/fast DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/destroot
>:info:destroot Exit code: 2
>:error:destroot Failed to destroot zig: command execution failed
>
>Attached is the full build log… Is this something that I misconfigured or something that the updated portfile should be fixed?
>
>

It looks like the command that is failing is zig itself when it runs 
`zig build`. Try running this command manually from the zig build 
directory and see if it gives you a more detailed error message.

For reference, the full (very lengthy command) is:

     zig build --override-lib-dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.7.1/lib -Dlib-files-only --prefix /opt/local -Dconfig_h=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/config.h install

Greg


More information about the macports-users mailing list