Quellcode durchsuchen

Add solutions to an Arch Linux Clang and LLD error

Co-authored-by: dathide <[email protected]>
Max Hilbrunner vor 2 Jahren
Ursprung
Commit
8c9523a6ca
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. 10 0
      contributing/development/compiling/compiling_for_linuxbsd.rst

+ 10 - 0
contributing/development/compiling/compiling_for_linuxbsd.rst

@@ -379,6 +379,16 @@ created in the ``bin/`` folder.
 It's still recommended to use GCC for production builds as they can be compiled using
 It's still recommended to use GCC for production builds as they can be compiled using
 link-time optimization, making the resulting binaries smaller and faster.
 link-time optimization, making the resulting binaries smaller and faster.
 
 
+If this error occurs::
+
+    /usr/bin/ld: cannot find -l:libatomic.a: No such file or directory
+
+There are two solutions:
+
+- In your SCons command, add the parameter ``use_static_cpp=no``.
+- Follow `these instructions <https://github.com/ivmai/libatomic_ops#installation-and-usage>`__ to configure, build, and
+  install ``libatomic_ops``. Then, copy ``/usr/lib/libatomic_ops.a`` to ``/usr/lib/libatomic.a``.
+
 Using mold for faster development
 Using mold for faster development
 ---------------------------------
 ---------------------------------