[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
Mon Apr 4 10:06:29 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 harens):

 Thanks. One final thing, would you mind running this `errno.h` example
 program? ([https://www.geeksforgeeks.org/error-handling-c-programs/ based
 off here])

 {{{#!c
 //demo.c
 #include <stdio.h>
 #include <sys/errno.h>

 int main()
 {
     // If a file is opened which does not exist,
     // then it will be an error and corresponding
     // errno value will be set
     FILE * fp;

     // opening a file which does
     // not exist.
     fp = fopen("GeeksForGeeks.txt", "r");

     printf(" Value of errno: %d\n ", errno);

     return 0;
 }
 }}}

 {{{#!sh
 > /opt/local/bin/gcc-mp-7 -o demo demo.c
 > ./demo
 }}}

 If everything works, you should get something like this:

 {{{
  Value of errno: 2
  %
 }}}

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


More information about the macports-tickets mailing list