[MacPorts] #61534: macvim failed to build on macos BigSur: Undefined symbols for architecture arm64:

MacPorts noreply at macports.org
Tue Nov 17 20:38:38 UTC 2020


#61534: macvim failed to build on macos BigSur:  Undefined symbols for architecture
arm64:
----------------------+---------------------------
  Reporter:  benoitc  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.4
Resolution:           |   Keywords:  bigsur x86_64
      Port:  macvim   |
----------------------+---------------------------
Description changed by benoitc:

Old description:

> running simple installation of macvim on BigSUr on an iMac Pro freshly
> installed return the following error:
>
> 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"

New description:

 running simple installation of macvim on 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"

 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/61534#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list