[MacPorts] #58695: nodejs12 @12.6.0: ld: library not found for -latomic

MacPorts noreply at macports.org
Wed Sep 7 06:00:38 UTC 2022


#58695: nodejs12 @12.6.0: ld: library not found for -latomic
-------------------------+--------------------
  Reporter:  dubiousjim  |      Owner:  ci42
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:  fixed       |   Keywords:
      Port:  nodejs12    |
-------------------------+--------------------

Comment (by barracuda156):

 Replying to [comment:6 dubiousjim]:
 > When I do `find /lib /usr/lib /usr/local/lib /opt/local/lib -name
 'libatomic*'` I see that libatomic files are in /opt/local/lib/gcc*.
 They're provided by ports like gcc8, and so on.
 >
 > I tried upgrading with options like `configure.compiler=macports-gcc-8`
 or `configure.cxx=/opt/local/bin/gcc-mp-8` but these fail with the
 message:
 >
 >
 > > gcc-mp-8: error: unrecognized command line option '-stdlib=libc++'
 >
 > So it looks like the makefiles are set up to use clang.

 It is in `common.gypi`. I did this to initiate building for PPC (where
 Clang is broken):
 {{{
 diff --git a/common.gypi b/common.gypi
 index 2bfae462d0..4917ffe04c 100644
 --- a/common.gypi
 +++ b/common.gypi
 @@ -132,7 +132,7 @@
        }, {
          'openssl_product':
 '<(STATIC_LIB_PREFIX)openssl<(STATIC_LIB_SUFFIX)',
        }],
 -      ['OS=="mac"', {
 +      ['OS=="mac" and target_arch!="ppc" and target_arch!="ppc64"', {
          'clang%': 1,
        }],
        ['target_arch in "ppc64 s390x"', {
 }}}

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


More information about the macports-tickets mailing list