Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#61534 closed defect (duplicate)

macvim failed to build on macos BigSur: Undefined symbols for architecture arm64:

Reported by: benoitc (Benoit Chesneau) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur x86_64 Cc:
Port: macvim

Description (last modified by benoitc (Benoit Chesneau))

running an installation of macvim without options on macos BigSUr on an iMac Pro freshly installed return the erro below. Latest macports was just installed with anything installed yet.

info:build ld: warning: ignoring file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_MacVim/MacVim/work/macvim-dev-macvim-3079528/src/MacVim/Sparkle.framework/Sparkle, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
:info:build Undefined symbols for architecture arm64:
:info:build   "_OBJC_CLASS_$_SUUpdater", referenced from:
:info:build       objc-class-ref in MMAppController.o
:info:build ld: symbol(s) not found for architecture arm64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build ** BUILD FAILED **
:info:build The following build commands failed:
:info:build 	Ld build/Release/MacVim.app/Contents/MacOS/MacVim normal arm64
:info:build (1 failure)
:info:build make[1]: *** [macvim] Error 65
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_MacVim/MacVim/work/macvim-dev-macvim-3079528/src'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_MacVim/MacVim/work/macvim-dev-macvim-3079528'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_MacVim/MacVim/work/macvim-166" && /usr/bin/make -j20 -w all XCODEFLAGS="CACHE_ROOT=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_MacVim/MacVim/work/caches -UseNewBuildSystem=NO MACOSX_DEPLOYMENT_TARGET=11.0" 
:info:build Exit code: 2
:error:build Failed to build MacVim: command execution failed
:debug:build Error code: CHILDSTATUS 12245 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"

Attachments (1)

main.log (1.6 MB) - added by benoitc (Benoit Chesneau) 3 years ago.
build log

Download all attachments as: .zip

Change History (7)

Changed 3 years ago by benoitc (Benoit Chesneau)

Attachment: main.log added

build log

comment:1 Changed 3 years ago by benoitc (Benoit Chesneau)

Description: modified (diff)

comment:2 Changed 3 years ago by benoitc (Benoit Chesneau)

Description: modified (diff)

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

Owner: set to raimue
Status: newassigned

Hmm, you are asking the port to build for x86_64 and yet it is also trying to build arm64, which it should not do.

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: assignedclosed

Duplicate of #61481.

comment:5 in reply to:  3 Changed 3 years ago by benoitc (Benoit Chesneau)

Replying to ryandesign:

Hmm, you are asking the port to build for x86_64 and yet it is also trying to build arm64, which it should not do.

i don't ask anything. Just doing port install macvim. I will check the other issue anyway.

comment:6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

I understand. I'm just trying to provide some analysis of the problem. By just doing sudo port install macvim, you instruct MacPorts to build x86_64, and yet it is disobeying your instructions and trying to build arm64. So whatever's happening there is what we need to fix.

Note: See TracTickets for help on using tickets.