title: TLS definition in libc.so.6 section .tbss mismatches non-TLS definition
body: <p>I am getting below error while building my project, I am using ghs math libraries.</p>
  
  <pre><code>errno: TLS definition in /lib/x86_64-linux-gnu/libc.so.6 section .tbss mismatches non-TLS
  definition in ../../../../dc_tools/libs/ghs_math_lib/libghs_math.so section .bss
  /lib/x86_64-linux-gnu/libc.so.6: error adding symbols: Bad value
  </code></pre>
  
  <p>I have tried including <code>errno.h</code> header file as suggested by some answers to similar problem but that didn't work.</p>
  
  <p>Here are flags</p>
  
  <pre><code>C_FLAGS =  -fPIC -O3 -DNDEBUG -fPIC   -Wno-error=deprecated-declarations -Werror
  
  C_DEFINES = -DCRASH_ON_ASSERTION -DDC_ASSERT_LOG=\"/home/d65ef124-f0a8-4f0f-85b5-7c0f7ec4b49a/pj-dc_int/assertions.log\" -DLINUX -DTARGET_GCCx86 -DTARGET_SELENA -DVFC_USER_CONFIG=\"/home/d65ef124-f0a8-4f0f-85b5-7c0f7ec4b49a/pj-dc_int/dc_tools/vfc_config/dc_vfc_user_cfg_ghs.hpp\" -D_Bool=bool -D__linux -Dghs_math_EXPORTS
  
  C_INCLUDES = -I/home/d65ef124-f0a8-4f0f-85b5-7c0f7ec4b49a/pj-dc_int/dc_tools/selena/inc/common -I/home/d65ef124-f0a8-4f0f-85b5-7c0f7ec4b49a/pj-dc_int/dc_tools/libs/ghs_math_lib/inc -I/home/d65ef124-f0a8-4f0f-85b5-7c0f7ec4b49a/pj-dc_int/dc_tools/libs/ghs_math_lib/src 
  </code></pre>