[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:57:42 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         |
---------------------------+-------------------------------------------
Changes (by harens):

 * status:  assigned => accepted


Comment:

 Hi there! Thanks for opening this ticket and for your comments on the
 original commit.

 > To begin with, -latomic must be added for darwin powerpc

 Good to know. I'll make this change. Judging by
 https://trac.macports.org/ticket/62688, I also need to blacklist clang <
 700.

 > 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
 > }}}

 That's interesting. I would've thought that `errno.h` comes with the
 command line tools?

 {{{
 > echo '#include <errno.h>' | cpp -H -fsyntax-only - 2>&1 1>/dev/null
 clang: warning: argument unused during compilation: '-fsyntax-only'
 [-Wunused-command-line-argument]
 . /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/errno.h
 ..
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/errno.h
 ...
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h
 ....
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_symbol_aliasing.h
 ....
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_posix_availability.h
 ...
 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_errno_t.h
 }}}

 For your machine, I would've thought that the header file would be in
 `/usr/include/errno.h`.

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


More information about the macports-tickets mailing list