[MacPorts] #64913: vlang fails for PowerPC: -latomic flag needed, Header file <sys/errno.h>, needed for module `sync` was not found

MacPorts noreply at macports.org
Sun Apr 10 12:25:57 UTC 2022


#64913: vlang fails for PowerPC: -latomic flag needed, Header file <sys/errno.h>,
needed for module `sync` was not found
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  harens
      Type:  defect        |     Status:  accepted
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, leopard, snowleopard
      Port:  vlang         |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 Replying to [comment:28 harens]:
 > Oh I know why this happened. It's because the line numbers are changing
 when we remove lines from before. Here's the corrected version:

 Today I can only check on Rosetta, and here is the error:


 {{{
 The executable './thirdparty/tcc/tcc.exe' does not work.
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-weekly.2022.13'
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/compwrap/cc/opt/local/bin
 /gcc-mp-10 -Os -arch ppc -std=gnu99 -w -I ./thirdparty/stdatomic/nix -o
 v1.exe
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work
 /vc-de63146da0a0f93628f8a65e70267e2c8d4c7ce1/v.c -lm -lpthread
 -Wl,-headerpad_max_install_names -latomic
 /opt/local/lib/libMacportsLegacySupport.a -arch ppc
 ./v1.exe -no-parallel -o v2.exe -v -cg -showcc -prod -cc /opt/local/bin
 /gcc-mp-10 -cflags -Os cmd/v
 builder.compile() pref:
 all .v files before:
 v.pref.lookup_path: ['/usr/libexec/oah/vlib',
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/.home/.vmodules']
 builder error: `builtin/` not included on module lookup path.
 Did you forget to add vlib to the path? (Use @vlib for default vlib)
 make: *** [all] Error 1
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-weekly.2022.13'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/v-weekly.2022.13"
 && /usr/bin/make -j4 -w all local=true VFLAGS="-v -cg -showcc -prod -cc
 /opt/local/bin/gcc-mp-10 -cflags -Os"
 VC=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work
 /vc-de63146da0a0f93628f8a65e70267e2c8d4c7ce1
 CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/compwrap/cc/opt/local/bin
 /gcc-mp-10"
 CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/compwrap/cxx/opt/local/bin/g++-mp-10"
 OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/compwrap/objc/opt/local/bin
 /gcc-mp-10"
 OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/compwrap/objcxx/opt/local/bin/g++-mp-10"
 FC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/compwrap/fc/opt/local/bin
 /gfortran-mp-10"
 F77="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/compwrap/f77/opt/local/bin
 /gfortran-mp-10"
 F90="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/work/compwrap/f90/opt/local/bin
 /gfortran-mp-10" INSTALL="/usr/bin/install -c"
 Exit code: 2
 Error: Failed to build vlang: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_vlang/vlang/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there
 is a bug.
 Error: Processing of port vlang failed
 }}}

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


More information about the macports-tickets mailing list