[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
Thu Mar 31 14:25:22 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:  assigned
 Priority:  Normal                         |  Milestone:
Component:  ports                          |    Version:  2.7.2
 Keywords:  powerpc, leopard, snowleopard  |       Port:  vlang
-------------------------------------------+----------------------
 To begin with, `-latomic` must be added for `darwin powerpc`, otherwise
 build fails with:

 {{{
 Undefined symbols:
   "___atomic_fetch_add_8", referenced from:
       _sync__stdatomic__add_u64 in ccASGYHE.o
       _sync__stdatomic__add_i64 in ccASGYHE.o
   "___atomic_load_8", referenced from:
       _sync__stdatomic__load_u64 in ccASGYHE.o
       _sync__stdatomic__load_i64 in ccASGYHE.o
       _sync__ManyTimes_do in ccASGYHE.o
       _sync__Once_do in ccASGYHE.o
       _sync__Once_do_with_param in ccASGYHE.o
   "___atomic_fetch_sub_8", referenced from:
       _sync__stdatomic__sub_u64 in ccASGYHE.o
       _sync__stdatomic__sub_i64 in ccASGYHE.o
   "___atomic_store_8", referenced from:
       _sync__stdatomic__store_u64 in ccASGYHE.o
       _sync__stdatomic__store_i64 in ccASGYHE.o
       _sync__ManyTimes_do_slow in ccASGYHE.o
       _sync__Once_do_slow in ccASGYHE.o
       _sync__Once_do_slow_with_param in ccASGYHE.o
 ld: symbol(s) not found
 }}}

 After adding the flag, on 10.5.8 build fails with:

 {{{
 builder error: Header file <sys/errno.h>, needed for module `sync` was not
 found. Please install the corresponding development headers.
 Command failed: ./v1 -no-parallel -o v2 -cc /opt/local/bin/gcc-mp-7
 -cflags -Os cmd/v
 Exit code: 1
 }}}

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


More information about the macports-tickets mailing list