Error building C++ backend
Open
Nobody has claimed this yet.
module: c++ frontend
needs reproduction
topic: build
- Dominant language
- Python
- Stars
- 17.9k
- Forks
- 7.3k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 13
Description
Trying version 0.5.0 (but same with 0.4.2), first I get:
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9/x86_64-pc-linux-gnu/bits/c++config.h:273:27: error: #if with no expression
273 | #if _GLIBCXX_USE_CXX11_ABI
| ^
if I fix it by manually changing makefile and replacing -D_GLIBCXX_USE_CXX11_ABI= with _GLIBCXX_USE_CXX11_ABI=1 I get another errors:
/usr/include/ATen/core/dispatch/Dispatcher.h:211:80: error: redeclaration of ‘at::Tensor& args#0’
211 | return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
|
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Makefile setting that produces the empty -D_GLIBCXX_USE_CXX11_ABI= definition and reproduce the reported build using versions 0.5.0 and 0.4.2. Investigate whether the ABI setting explains the subsequent ATen Dispatcher.h error; done means the C++ backend builds without either compiler error on the affected environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, pytorch
- Domain
- backend, build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100