Skip to content

wip fix torchvision build

Christian Heusel requested to merge fix-torchvision-build into main

The build fails in a spectacular way with errors like the following:

In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
[...]
/usr/include/glog/logging.h:1727:1: error: two or more data types in declaration of ‘InstallFailureSignalHandler’
 1727 | GLOG_EXPORT void InstallFailureSignalHandler();
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1730:1: error: two or more data types in declaration of ‘IsFailureSignalHandlerInstalled’
 1730 | GLOG_EXPORT bool IsFailureSignalHandlerInstalled();
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1736:1: error: two or more data types in declaration of ‘InstallFailureWriter’
 1736 | GLOG_EXPORT void InstallFailureWriter(void (*writer)(const char* data,
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1740:25: error: expected initializer before ‘GetStackTrace’
 1740 | GLOG_EXPORT std::string GetStackTrace();

There is:

I've tried to get it to work, so far with no success 🤔

(╯°□°)╯︵ ┻━┻

Merge request reports