Bug#757961: Does not work with GCC 4.9, default GCC in Jessie

Graham Inggs graham at nerve.org.za
Thu Aug 14 10:01:07 UTC 2014


Hi Thomas

I tried editing /usr/include/host_config.h as below to bypass the GCC 
version check.
After this change, I was able to build all of the CUDA 5.5 SDK samples 
without error.

Let me know if this works for you too and I will prepare a patch.

Regards
Graham


--- /usr/include/host_config.h.orig    2014-08-14 11:44:17.760255774 +0200
+++ /usr/include/host_config.h    2014-08-14 11:34:42.820275680 +0200
@@ -77,7 +77,7 @@

  #if defined(__GNUC__)

-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 8)
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 9)

  #error -- unsupported GNU version! gcc 4.9 and up are not supported!



More information about the pkg-nvidia-devel mailing list