Re: [MacPorts] #62155: Can’t install shards

MacPorts noreply at macports.org
Tue Jan 26 16:11:58 UTC 2021


#62155: Can’t install shards
-----------------------------+----------------------------
  Reporter:  PeterMozesMerl  |      Owner:  (none)
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.6.4
Resolution:                  |   Keywords:  crystal shards
      Port:  shards          |
-----------------------------+----------------------------
Description changed by PeterMozesMerl:

Old description:

> During the last year, I could almost never install shards or crystal with
> MacPorts. A few days ago, the installation worked on a laptop with
> Catalyna. Unfortunately, it still doesn’t work on Mojave and Big Sur. I’m
> not sure it’s related to the macOS version.
>

> {{{
> $ sudo port install shards
> Password:
> --->  Computing dependencies for shards
> --->  Cleaning shards
> --->  Scanning binaries for linking errors
> --->  Found 1 broken file, matching files to ports
> --->  Found 1 broken port, determining rebuild order
> You can always run 'port rev-upgrade' again to fix errors.
> The following ports will be rebuilt: shards @0.9.0
> Continue? [Y/n]: y
> --->  Computing dependencies for shards
> --->  Cleaning shards
> --->  Scanning binaries for linking errors
> --->  Found 1 broken file, matching files to ports
> --->  Found 1 broken port, determining rebuild order
> --->  Rebuilding in order
>      shards @0.9.0
> --->  Computing dependencies for shards
> --->  Fetching distfiles for shards
> --->  Verifying checksums for shards
> --->  Extracting shards
> --->  Configuring shards
> --->  Building shards
> Error: Failed to build shards: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/main.log
> for details.
> Error: rev-upgrade failed: Error rebuilding shards
> Error: Follow https://guide.macports.org/#project.tickets to report a
> bug.
> }}}
>

> {{{
> :notice:extract --->  Extracting shards
> :debug:extract Executing org.macports.extract (shards)
> :info:extract --->  Extracting shards-0.9.0.tar.gz
> :debug:extract setting option extract.args to
> '/opt/local/var/macports/distfiles/shards/shards-0.9.0.tar.gz'
> :debug:extract Environment:
> :debug:extract CC_PRINT_OPTIONS='YES'
> :debug:extract
> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/.CC_PRINT_OPTIONS'
> :debug:extract CPATH='/opt/local/include'
> :debug:extract DEVELOPER_DIR='/Library/Developer/CommandLineTools'
> :debug:extract LIBRARY_PATH='/opt/local/lib'
> :debug:extract MACOSX_DEPLOYMENT_TARGET='10.14'
> :debug:extract
> SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk'
> :info:extract Executing:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work"
> && /usr/bin/gzip -dc
> '/opt/local/var/macports/distfiles/shards/shards-0.9.0.tar.gz' |
> /usr/bin/tar -xf -
> :debug:extract system:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work"
> && /usr/bin/gzip -dc
> '/opt/local/var/macports/distfiles/shards/shards-0.9.0.tar.gz' |
> /usr/bin/tar -xf -
> :debug:extract euid/egid changed to: 0/0
> :debug:extract chowned
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work
> to macports
> :debug:extract euid/egid changed to: 502/501
> :debug:extract Symlink:
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/shards-0.9.0
> -> crystal-lang-shards-81ea693
> :debug:extract Executing proc-post-org.macports.extract-extract-0
> :debug:extract Privilege de-escalation not attempted as not running as
> root.
> :debug:patch patch phase started at Tue Jan 26 17:00:16 CET 2021
> :debug:patch Executing org.macports.patch (shards)
> :debug:patch Privilege de-escalation not attempted as not running as
> root.
> :debug:configure configure phase started at Tue Jan 26 17:00:16 CET 2021
> :notice:configure --->  Configuring shards
> :debug:configure Preferred compilers: clang macports-clang-9.0 macports-
> clang-8.0 macports-clang-7.0 macports-clang-6.0 macports-clang-5.0
> :debug:configure Using compiler 'Xcode Clang'
> :debug:configure Executing org.macports.configure (shards)
> :debug:configure Privilege de-escalation not attempted as not running as
> root.
> :debug:build build phase started at Tue Jan 26 17:00:16 CET 2021
> :notice:build --->  Building shards
> :debug:build Executing org.macports.build (shards)
> :debug:build Environment:
> :debug:build CC_PRINT_OPTIONS='YES'
> :debug:build
> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/.CC_PRINT_OPTIONS'
> :debug:build CPATH='/opt/local/include'
> :debug:build DEVELOPER_DIR='/Library/Developer/CommandLineTools'
> :debug:build LIBRARY_PATH='/opt/local/lib'
> :debug:build MACOSX_DEPLOYMENT_TARGET='10.14'
> :debug:build
> SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk'
> :info:build Executing:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/shards-0.9.0"
> && /usr/bin/make -j16 -w all CRFLAGS=--release
> :debug:build system:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/shards-0.9.0"
> && /usr/bin/make -j16 -w all CRFLAGS=--release
> :info:build make: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work
> /crystal-lang-shards-81ea693'
> :info:build crystal build src/shards.cr -o bin/shards --release
> :info:build ESC[2mShowing last frame. Use --error-trace for full
> trace.ESC[0m
> :info:build In ESC[4msrc/resolvers/path.cr:46:22ESC[0m
> :info:build ESC[2m 46 | ESC[0mESC[1mrescue errno : ErrnoESC[0m
> :info:build                      ESC[32;1m^ESC[0m
> :info:build ESC[33;1mError: Errno is not a subclass of ExceptionESC[0m
> :info:build make: *** [bin/shards] Error 1
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work
> /crystal-lang-shards-81ea693'
> :info:build Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/shards-0.9.0"
> && /usr/bin/make -j16 -w all CRFLAGS=--release
> :info:build Exit code: 2
> :error:build Failed to build shards: command execution failed
> :debug:build Error code: CHILDSTATUS 11133 2
> :debug:build Backtrace: command execution failed
> :debug:build     while executing
> :debug:build "system {*}$notty {*}$nice $fullcmdstring"
> :debug:build     invoked from within
> :debug:build "command_exec build"
> :debug:build     (procedure "portbuild::build_main" line 8)
> :debug:build     invoked from within
> :debug:build "$procedure $targetname"
> :error:build See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/main.log
> for details.
> }}}
>
> I tried:
>
> * Reinstalling Command Line Tools
> * Removing the broken shards install, running port uninstall leaves, and
> starting over
> * Asking the Programmer Spirit to help me

New description:

 During the last year, I could almost never install shards or crystal with
 MacPorts. A few days ago, the installation worked on a laptop with
 Catalina. Unfortunately, it still doesn’t work on Mojave and Big Sur. I’m
 not sure it’s related to the macOS version.


 {{{
 $ sudo port install shards
 Password:
 --->  Computing dependencies for shards
 --->  Cleaning shards
 --->  Scanning binaries for linking errors
 --->  Found 1 broken file, matching files to ports
 --->  Found 1 broken port, determining rebuild order
 You can always run 'port rev-upgrade' again to fix errors.
 The following ports will be rebuilt: shards @0.9.0
 Continue? [Y/n]: y
 --->  Computing dependencies for shards
 --->  Cleaning shards
 --->  Scanning binaries for linking errors
 --->  Found 1 broken file, matching files to ports
 --->  Found 1 broken port, determining rebuild order
 --->  Rebuilding in order
      shards @0.9.0
 --->  Computing dependencies for shards
 --->  Fetching distfiles for shards
 --->  Verifying checksums for shards
 --->  Extracting shards
 --->  Configuring shards
 --->  Building shards
 Error: Failed to build shards: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/main.log
 for details.
 Error: rev-upgrade failed: Error rebuilding shards
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 }}}


 {{{
 :notice:extract --->  Extracting shards
 :debug:extract Executing org.macports.extract (shards)
 :info:extract --->  Extracting shards-0.9.0.tar.gz
 :debug:extract setting option extract.args to
 '/opt/local/var/macports/distfiles/shards/shards-0.9.0.tar.gz'
 :debug:extract Environment:
 :debug:extract CC_PRINT_OPTIONS='YES'
 :debug:extract
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/.CC_PRINT_OPTIONS'
 :debug:extract CPATH='/opt/local/include'
 :debug:extract DEVELOPER_DIR='/Library/Developer/CommandLineTools'
 :debug:extract LIBRARY_PATH='/opt/local/lib'
 :debug:extract MACOSX_DEPLOYMENT_TARGET='10.14'
 :debug:extract
 SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk'
 :info:extract Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work"
 && /usr/bin/gzip -dc
 '/opt/local/var/macports/distfiles/shards/shards-0.9.0.tar.gz' |
 /usr/bin/tar -xf -
 :debug:extract system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work"
 && /usr/bin/gzip -dc
 '/opt/local/var/macports/distfiles/shards/shards-0.9.0.tar.gz' |
 /usr/bin/tar -xf -
 :debug:extract euid/egid changed to: 0/0
 :debug:extract chowned
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work
 to macports
 :debug:extract euid/egid changed to: 502/501
 :debug:extract Symlink:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/shards-0.9.0
 -> crystal-lang-shards-81ea693
 :debug:extract Executing proc-post-org.macports.extract-extract-0
 :debug:extract Privilege de-escalation not attempted as not running as
 root.
 :debug:patch patch phase started at Tue Jan 26 17:00:16 CET 2021
 :debug:patch Executing org.macports.patch (shards)
 :debug:patch Privilege de-escalation not attempted as not running as root.
 :debug:configure configure phase started at Tue Jan 26 17:00:16 CET 2021
 :notice:configure --->  Configuring shards
 :debug:configure Preferred compilers: clang macports-clang-9.0 macports-
 clang-8.0 macports-clang-7.0 macports-clang-6.0 macports-clang-5.0
 :debug:configure Using compiler 'Xcode Clang'
 :debug:configure Executing org.macports.configure (shards)
 :debug:configure Privilege de-escalation not attempted as not running as
 root.
 :debug:build build phase started at Tue Jan 26 17:00:16 CET 2021
 :notice:build --->  Building shards
 :debug:build Executing org.macports.build (shards)
 :debug:build Environment:
 :debug:build CC_PRINT_OPTIONS='YES'
 :debug:build
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/.CC_PRINT_OPTIONS'
 :debug:build CPATH='/opt/local/include'
 :debug:build DEVELOPER_DIR='/Library/Developer/CommandLineTools'
 :debug:build LIBRARY_PATH='/opt/local/lib'
 :debug:build MACOSX_DEPLOYMENT_TARGET='10.14'
 :debug:build
 SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk'
 :info:build Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/shards-0.9.0"
 && /usr/bin/make -j16 -w all CRFLAGS=--release
 :debug:build system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/shards-0.9.0"
 && /usr/bin/make -j16 -w all CRFLAGS=--release
 :info:build make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work
 /crystal-lang-shards-81ea693'
 :info:build crystal build src/shards.cr -o bin/shards --release
 :info:build ESC[2mShowing last frame. Use --error-trace for full
 trace.ESC[0m
 :info:build In ESC[4msrc/resolvers/path.cr:46:22ESC[0m
 :info:build ESC[2m 46 | ESC[0mESC[1mrescue errno : ErrnoESC[0m
 :info:build                      ESC[32;1m^ESC[0m
 :info:build ESC[33;1mError: Errno is not a subclass of ExceptionESC[0m
 :info:build make: *** [bin/shards] Error 1
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work
 /crystal-lang-shards-81ea693'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/work/shards-0.9.0"
 && /usr/bin/make -j16 -w all CRFLAGS=--release
 :info:build Exit code: 2
 :error:build Failed to build shards: command execution failed
 :debug:build Error code: CHILDSTATUS 11133 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_shards/shards/main.log
 for details.
 }}}

 I tried:

 * Reinstalling Command Line Tools
 * Removing the broken shards install, running port uninstall leaves, and
 starting over
 * Asking the Programmer Spirit to help me

--

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


More information about the macports-tickets mailing list