[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
Sat Apr 9 18:39:10 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:25 harens]:
> Why don't we try the following:
>
> {{{#!bash
> > sudo port extract vlang
> > # Remove errno header
> > sudo sed -i "" "10d" "$(port work
vlang)/v-weekly.2022.13/vlib/sync/sync_darwin.c.v"
> > # Remove -no-pie flag
> > sudo sed -i "" "252d" "$(port work
vlang)/v-weekly.2022.13/vlib/v/builder/cc.v"
> > sudo sed -i "" "91227d" "$(port work vlang)/vc-
de63146da0a0f93628f8a65e70267e2c8d4c7ce1/v.c"
> > # Remove Objective-C Flag
> > sudo sed -i "" "335d" "$(port work
vlang)/v-weekly.2022.13/vlib/v/builder/cc.v"
> > sudo sed -i "" "91301d" "$(port work vlang)/vc-
de63146da0a0f93628f8a65e70267e2c8d4c7ce1/v.c"
> > sudo port -o install vlang
> }}}
And here is the failure after these commands:
{{{
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.13'
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
/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: In function
'v__builder__Builder_setup_ccompiler_options':
/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:94273:1: error: expected
declaration or statement at end of input
94273 | }
| ^
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
}}}
--
Ticket URL: <https://trac.macports.org/ticket/64913#comment:27>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list