[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
Fri Apr 22 22:22:55 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:41 harens]:
 > Oh and there's also Rosetta that I haven't dealt with yet. Would you
 mind deleting `/usr/libexec/oah/vlib` and building it again?

 There is no such file or folder there. I have tried the latest `vlang` on
 Rosetta now, it still fails:

 {{{
 macmini:~ svacchanda$ sudo port clean vlang
 --->  Cleaning vlang
 macmini:~ svacchanda$ sudo port extract vlang
 --->  Fetching distfiles for vlang
 --->  Verifying checksums for vlang
 --->  Extracting vlang
 macmini:~ svacchanda$ sudo sed -i "" "10d" "$(port work
 vlang)/v-weekly.2022.16/vlib/sync/sync_darwin.c.v"
 macmini:~ svacchanda$ sudo sed -i "" "255d" "$(port work
 vlang)/v-weekly.2022.16/vlib/v/builder/cc.v"
 macmini:~ svacchanda$ sudo sed -i "" "91905d" "$(port work vlang)/vc-
 4505557b56638eb931182f764580767e22cf110d/v.c"
 macmini:~ svacchanda$ sudo sed -i "" "337d" "$(port work
 vlang)/v-weekly.2022.16/vlib/v/builder/cc.v"
 macmini:~ svacchanda$ sudo sed -i "" "91978d" "$(port work vlang)/vc-
 4505557b56638eb931182f764580767e22cf110d/v.c"
 macmini:~ svacchanda$ sudo port -v -n -o install vlang
 --->  Computing dependencies for vlang.
 --->  Applying patches to vlang
 --->  Applying patch-freetype2-prefix.diff
 Executing:  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.16"
 && /usr/bin/patch -p0 <
 '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/vlang/files
 /patch-freetype2-prefix.diff'
 patching file vlib/fontstash/a_d_use_freetype.v
 --->  Applying patch-openssl-prefix.diff
 Executing:  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.16"
 && /usr/bin/patch -p0 <
 '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/vlang/files
 /patch-openssl-prefix.diff'
 patching file vlib/net/openssl/c.v
 --->  Applying patch-clock-gettime.diff
 Executing:  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.16"
 && /usr/bin/patch -p0 <
 '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/vlang/files
 /patch-clock-gettime.diff'
 patching file vlib/time/time_nix.c.v
 --->  Patching cc.v: s|-mmacosx-version-min=10.7|-mmacosx-version-
 min=10.6|
 --->  Patching v.c: s|-mmacosx-version-min=10.7|-mmacosx-version-min=10.6|
 --->  Patching c.v: s|@PREFIX@|/opt/local|g
 --->  Patching a_d_use_freetype.v: s|@PREFIX@|/opt/local|g
 --->  Patching time_nix.c.v: s|@PREFIX@|/opt/local|g
 --->  Configuring vlang
 --->  Building vlang
 Executing:  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.16"
 && /usr/bin/make -j4 -w all local=true VFLAGS="-v -cg -showcc
 -show-c-output -prod -cc /opt/local/bin/gcc-mp-11 -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-4505557b56638eb931182f764580767e22cf110d
 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-11"
 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-11"
 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-11"
 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-11"
 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-11"
 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-11"
 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-11" INSTALL="/usr/bin/install -c"
 make: Entering 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.16'
 Using local vc
 Using local tcc
 make[1]: Entering 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.16'
 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.16'
 /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-11 -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-4505557b56638eb931182f764580767e22cf110d/v.c -lm -lpthread
 -Wl,-headerpad_max_install_names -latomic -L/opt/local/lib
 -lMacportsLegacySupport -arch ppc
 ./v1.exe -no-parallel -o v2.exe -v -cg -showcc -show-c-output -prod -cc
 /opt/local/bin/gcc-mp-11 -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.16'
 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.16"
 && /usr/bin/make -j4 -w all local=true VFLAGS="-v -cg -showcc
 -show-c-output -prod -cc /opt/local/bin/gcc-mp-11 -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-4505557b56638eb931182f764580767e22cf110d
 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-11"
 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-11"
 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-11"
 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-11"
 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-11"
 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-11"
 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-11" 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:44>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list