From 19d1c373ac9b529f44a0112f1ae6f4ec367a9a83 Mon Sep 17 00:00:00 2001 From: Gurkirat Singh Date: Sun, 13 Mar 2022 05:11:42 +0530 Subject: [PATCH] fix (docs): add troubleshooting for pre-commit error #1696 --- docs/troubleshooting.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/troubleshooting.rst b/docs/troubleshooting.rst index 7be765c10f..c77d445231 100644 --- a/docs/troubleshooting.rst +++ b/docs/troubleshooting.rst @@ -6,7 +6,8 @@ Troubleshooting Guide Table of Contents ----------------- -* `I'm stuck in the LightDM login screen after setting up bash-it. <#id1>`_ +* `I'm stuck in the LightDM login screen after setting up bash-it. <#id1>`_ +* `Pre-commit installation is failed with "unrecognized option --gdwarf-5" error. <#id3>`_ I'm stuck in the LightDM login screen after setting up bash-it ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -14,3 +15,10 @@ I'm stuck in the LightDM login screen after setting up bash-it **Possible issue**\ : `#672 `_ **Solution**\ : Check `this comment `_ for detailed information about the cause and solution for this issue. + +Pre-commit installation is failed with "unrecognized option --gdwarf-5" error +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +**Possible issue**\ : You might have an incompatible version of GCC is installed. Supported versions are below ``gcc-10`` + +**Solution** Export the different gcc version using ``export CC=gcc-8``. For more information, check `this comment `__.