#66929 closed defect (fixed)

gptfdisk @1.0.9_0 Compile error mixing arm64 and x86_64 during linking

Reported by: damoclark (Damo) Owned by: nano103
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: gptfdisk

Description

Upgrading gptfdisk on macos 12.6.1 with macports 2.8.1 and during compilation, it warns:

:info:build ld: warning: ignoring file mbrpart.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64

Immediately above, the following output is noted, with -arch set to x86_64

:info:build /usr/bin/clang++ -Os -stdlib=libc++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o gptcl.o sgdisk.o -L/opt/local/lib -lpopt -arch x86_64 -mmacosx-version-min=10.9 -o sgdisk

While all other files use -arch arm64, for example:

:info:build /usr/bin/clang++ -Os -stdlib=libc++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o gpttext.o gdisk.o -arch arm64 -o gdisk

I'll attach the entire main.log file.

Attachments (1)

main.log (16.5 KB) - added by damoclark (Damo) 21 months ago.
macports install log file during compilation

Download all attachments as: .zip

Change History (4)

Changed 21 months ago by damoclark (Damo)

Attachment: main.log added

macports install log file during compilation

comment:1 Changed 21 months ago by jmroot (Joshua Root)

Owner: set to nano103
Priority: HighNormal
Status: newassigned

comment:2 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added

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

Resolution: fixed
Status: assignedclosed

In e1264f9aa77217213bcb7a7d3f576b104e29bb5b/macports-ports (master):

gptfdisk: Fix arch of sgdisk

Closes: #66929

Note: See TracTickets for help on using tickets.