Opened 4 years ago

Closed 4 years ago

#62526 closed defect (fixed)

librsync @0.9.7_3 fails to configure on M1 Mac

Reported by: ttelford (Troy Telford) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: arm64 Cc:
Port: librsync

Description

The compile fails - when I chase it down to config.log, I see:

configure:3372: checking for a BSD-compatible install
configure:3427: result: /usr/bin/install -c
configure:3438: checking whether make sets $(MAKE)
configure:3458: result: yes
configure:3521: checking build system type
configure:3534: error: /bin/sh ./config.sub -apple-darwin20.3.0 failed

When I manually enter the directory, and run autoreconf -fi, configure works, and I can proceed to use a normal make -j8 all, the compilation succeeds.

I've tried updating the Portfile to execute the autoreconf --install --verbose --force prior to compilation, but the build then fails in a new way: For whatever reason, at the very last compile (a libtool command), the arguments -arch arm64 is somehow transposed to arm64 -arch, and the compile fails there.

Attachments (3)

config.log (14.7 KB) - added by ttelford (Troy Telford) 4 years ago.
config.log on unmodified Portfile
main.log (231.5 KB) - added by ttelford (Troy Telford) 4 years ago.
main.log after modifying portfile to execute 'autoreconf --install --verbose --force'
Portfile-librsync.diff (382 bytes) - added by ttelford (Troy Telford) 4 years ago.
My Portfile differences - though they aren't enough

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by ttelford (Troy Telford)

Attachment: config.log added

config.log on unmodified Portfile

Changed 4 years ago by ttelford (Troy Telford)

Attachment: main.log added

main.log after modifying portfile to execute 'autoreconf --install --verbose --force'

Changed 4 years ago by ttelford (Troy Telford)

Attachment: Portfile-librsync.diff added

My Portfile differences - though they aren't enough

comment:1 Changed 4 years ago by ttelford (Troy Telford)

Ignore the file "Portfile" - I accidentally uploaded the original. Sorry!

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Port: librsync added
Summary: Can't compile librsync on M1 Maclibrsync @0.9.7_3 fails to configure on M1 Mac

comment:3 Changed 4 years ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 88aa888ecf3f0c8f65acc493539275c5970f54dd/macports-ports (master):

librsync: fix arm64 build

Closes: #62526

Note: See TracTickets for help on using tickets.