← All tasks
cpppytorch/pytorch #5229Not a task: not reproduced

Compilation errors, when compiling pytorch on Ubuntu 17.10 or newer with GCC 5

envgap__pytorch__pytorch-5229

01 / FAILURE SIGNATURE

As reported upstream

It will be good if we shows a meaningful error when GCC 5 is used on Ubuntu 17.10 or newer.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
a4d0a74ceefa9e18810f8caf0fdf66fea473008b
Manifest
aten/CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

pytorch/pytorch #5229 · read the original issue
This issue is related to Issue #5136 which describes problems with both GCC 6 and 5. Creating it separately as the problems are different and to be tracked separately.



The issue comes from a bug in `libstdc++-5-dev` package in Ubuntu 17.10 and newer. Macro `_GLIBCXX_USE_C99` is not defined in `/usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h` which leads to errors related to missing members of **std** name space, such as `std::to_string`, `std::isnan`, `std::isinf` (and more). The bug is tracked under https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1725848 and won't be fixed as GCC 5 is considered outdated and not supported by Ubuntu any more.



It will be good if we shows a meaningful error when GCC 5 is used on Ubuntu 17.10 or newer.



**Note:** Cuda 8.0 support GCC 5 or older only. In case Cuda 8.0 is needed, current workaround is to use GCC 4.8 which has been confirmed to work.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]