#67138 closed defect (fixed)

srecord @1.64_3: /bin/sh: -I.: command not found

Reported by: DarwinNE (Davide Bucci) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: ventura Cc:
Port: srecord

Description

Hello,

I have recently installed MacPorts on a MacBook Pro M2 running Ventura 13.2.1, Xcode Version 14.2 (14C18).

I could not build and install srecord (required for the package minipro). Here is a copy of the error messages:

% sudo port clean srecord  
Password:
--->  Cleaning srecord
% sudo port install srecord
--->  Computing dependencies for srecord
--->  Fetching archive for srecord
--->  Attempting to fetch srecord-1.64_3.darwin_22.arm64.tbz2 from https://packages.macports.org/srecord
--->  Attempting to fetch srecord-1.64_3.darwin_22.arm64.tbz2 from https://mse.uk.packages.macports.org/srecord
--->  Attempting to fetch srecord-1.64_3.darwin_22.arm64.tbz2 from http://fco.it.packages.macports.org/srecord
--->  Fetching distfiles for srecord
--->  Verifying checksums for srecord
--->  Extracting srecord
--->  Applying patches to srecord
--->  Configuring srecord
--->  Building srecord                                   
Error: Failed to build srecord: command execution failed 
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_srecord/srecord/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port srecord failed

I ran port selfupdate and port upgrade outdated yesterday to see if the problem could be solved, with no success.

Towards the end of the (attached) main.log file there is this error:

:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_srecord/srecord/work/srecord-1.64'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_srecord/srecord/work/srecord-1.64" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build Failed to build srecord: command execution failed
:debug:build Error code: CHILDSTATUS 4393 2

I hope it helps!

Attachments (1)

main.log.zip (14.0 KB) - added by DarwinNE (Davide Bucci) 14 months ago.
Main log file suggested by the error message in the failed build of the port.

Download all attachments as: .zip

Change History (4)

Changed 14 months ago by DarwinNE (Davide Bucci)

Attachment: main.log.zip added

Main log file suggested by the error message in the failed build of the port.

comment:1 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: ventura added
Summary: srecord-1.64_3.darwin_22.arm64 does not build on macOS Ventura 13.2.1srecord @1.64_3: /bin/sh: -I.: command not found

The real error in the log is:

:info:configure checking for groff... no
:info:configure checking for roff... no
:info:build GROFF_NO_SGR=-c  -I. -Tascii -t -man man/man1/srec_cat.1 > man/cat1/srec_cat.1
:info:build /bin/sh: -I.: command not found

So this port requires a build dependency on groff. We didn't notice it before because macOS 12 and earlier included a copy of groff; macOS 13 doesn't anymore.

You can work around the problem by cleaning the port, installing groff, and then trying again:

sudo port clean srecord
sudo port install --unrequested groff
sudo port install srecord

comment:2 Changed 14 months ago by DarwinNE (Davide Bucci)

Hello,

many thanks!

Now I could successfully install srecord (and thus minipro).

Cheers, D.

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

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 313b31016c70914abffc7eaee43f2aeac06d3d27/macports-ports (master):

srecord: Add groff dependency

Closes: #67138

Note: See TracTickets for help on using tickets.