From 86509d68e28c25fdcfbb8bae0857f08ce22dbd11 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 23 Oct 2018 15:25:51 +0200
Subject: [PATCH] [web] Added section about using default gcc versions on
 Ubuntu with Conan.

---
 .../docs/devguide/troubleshooting/conan.pandoc    | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/web/content/docs/devguide/troubleshooting/conan.pandoc b/web/content/docs/devguide/troubleshooting/conan.pandoc
index 3b7710c1993..f5adcccd08f 100644
--- a/web/content/docs/devguide/troubleshooting/conan.pandoc
+++ b/web/content/docs/devguide/troubleshooting/conan.pandoc
@@ -42,3 +42,18 @@ In `~/.conan/settings.yml` it is defined which compiler versions are supported b
 - when upgrading Conan it creates a file `~/.conan/settings.new.yml` or similar which you can just rename to `~/.conan/settings.yml`
 
 See also: http://docs.conan.io/en/latest/faq/troubleshooting.html#error-invalid-setting
+
+## Something went wrong during building
+
+On Ubuntu always use the system default gcc version! Otherwise if you use a newer compiler
+than the default you may end up using incompatible Conan packages. E.g. when you use gcc 6
+on Ubuntu 16.04 (where gcc 5 is the default) Conan uses packages which are built on Ubuntu
+17.10 (where gcc 6 is the default). Ubuntu 17.10 uses a newer glibc library (2.25) which
+is incompatible to the glibc library on Ubuntu 16.04 (2.23).
+
+In this case you would get linker errors with the Conan VTK library:
+
+```
+error: undefined reference to `getrandom'
+.../expat/vtkexpat/lib/xmlparse.c 694
+```
-- 
GitLab