Compile error
- Dominant language
- Haskell
- Stars
- 79
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
Hey, Alexander
I am trying to build the project with stack, and it fails with this:
```
...
[18 of 18] Compiling Graphics.QML ( src/Graphics/QML.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Graphics/QML.o )
/tmp/stack12936/hsqml-0.3.4.0/In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/type_traits:35:0:
0,
from /usr/include/qt5/QtCore/qglobal.h:45,
from /usr/include/qt5/QtCore/qnamespace.h:43,
from /usr/include/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/qt5/QtCore/qobject.h:46,
from /usr/include/qt5/QtCore/QObject:1,
from .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/cbits/../../../../../../cbits/Canvas.h:4,
from .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/cbits/moc_Canvas.cpp:9:
/usr/lib64/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/c++0x_warning.h:32:2:
error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
/tmp/stack12936/hsqml-0.3.4.0/In file included from /usr/include/qt5/QtCore/qglobal.h:98:0:
0,
from /usr/include/qt5/QtCore/qnamespace.h:43,
from /usr/include/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/qt5/QtCore/qobject.h:46,
from /usr/include/qt5/QtCore/QObject:1,
from .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/cbits/../../../../../../cbits/Canvas.h:4,
from .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/cbits/moc_Canvas.cpp:9:
/usr/include/qt5/QtCore/qcompilerdetection.h:567:6:
error: #error Qt requires a C++11 compiler and yours does not seem to be that.
# error Qt requires a C++11 compiler and yours does not seem to be that.
^
/tmp/stack12936/hsqml-0.3.4.0/In file included from /usr/include/qt5/QtCore/qatomic.h:46:0:
0,
from /usr/include/qt5/QtCore/qglobal.h:1158,
from /usr/include/qt5/QtCore/qnamespace.h:43,
from /usr/include/qt5/QtCore/qobjectdefs.h:48,
from /usr/include/qt5/QtCore/qobject.h:46,
from /usr/include/qt5/QtCore/QObject:1,
from .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/cbits/../../../../../../cbits/Canvas.h:4,
from .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/cbits/moc_Canvas.cpp:9:
...
```
(and many more similar)
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the Stack build and start with src/Graphics/QML.hs, cbits/Canvas.h, and the generated moc_Canvas.cpp referenced in the error. Trace how the Qt compilation options are configured and confirm the project builds past Graphics.QML with the required C++11 support.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, haskell
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100