[MacPorts] #66929: gptfdisk @1.0.9_0 Compile error mixing arm64 and x86_64 during linking

MacPorts noreply at macports.org
Wed Feb 15 02:29:47 UTC 2023


#66929: gptfdisk @1.0.9_0 Compile error mixing arm64 and x86_64 during linking
-----------------------+----------------------
 Reporter:  damoclark  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  High       |  Milestone:
Component:  ports      |    Version:  2.8.1
 Keywords:             |       Port:  gptfdisk
-----------------------+----------------------
 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/66929>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list