]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - fuzz/README.md
Fix typo in CONTRIBUTING.md
[thirdparty/openssl.git] / fuzz / README.md
index 6cc7811ad003eac90743b39453e974c8159b54e2..795606fec2c439ac09504d37e4adbb1d2cc0f800 100644 (file)
@@ -32,6 +32,34 @@ to the `libFuzzer` library file while configuring; this is represented as
             enable-ssl3 enable-ssl3-method enable-nextprotoneg \
             --debug
 
+Clang uses the gcc libstdc++ library so this must also be installed. You can
+check which version of gcc clang is using like this:
+
+    $ clang --verbose
+    Ubuntu clang version 14.0.0-1ubuntu1.1
+    Target: x86_64-pc-linux-gnu
+    Thread model: posix
+    InstalledDir: /usr/bin
+    Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/12
+    Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/10
+    Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
+    Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
+    Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
+    Candidate multilib: .;@m64
+    Selected multilib: .;@m64
+
+So, in the above example clang is using gcc version 12. Ensure that the selected
+gcc version has the relevant libstdc++ files installed:
+
+    $ ls /usr/lib/gcc/x86_64-linux-gnu/12 | grep stdc++
+    libstdc++.a
+    libstdc++fs.a
+    libstdc++.so
+
+On Ubuntu for gcc-12 this requires the libstdc++-12-dev package installed.
+
+    $ sudo apt-get install libstdc++-12-dev
+
 Compile:
 
     sudo apt-get install make