-
-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v24.3: compilation error: expected unqualified-id #3905
Comments
What if you apply the following patch? diff --git a/src/core/modules/SolarSystem.cpp b/src/core/modules/SolarSystem.cpp
index 0e8a6f104b..83ccdd8178 100644
--- a/src/core/modules/SolarSystem.cpp
+++ b/src/core/modules/SolarSystem.cpp
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/
+#include <execution> // must be included before Qt because some versions of libtbb use "emit" identifier for their needs
+
#include "SolarSystem.hpp"
#include "StelTexture.hpp"
#include "EphemWrapper.hpp"
@@ -48,7 +50,6 @@
#include "StelObserver.hpp"
#include <algorithm>
-#include <execution>
#include <QTextStream>
#include <QSettings> |
The same error but now "In file included from ... src/core/modules/SolarSystem.cpp:22" |
Probably that's because of gcc command line option
which includes |
CC @krachyon |
@dimich-dmb please try configure building Stellarium without PCH - |
OK, and what if we alter the patch to also include the header into the PCH? diff --git a/src/core/modules/SolarSystem.cpp b/src/core/modules/SolarSystem.cpp
index 0e8a6f104b..83ccdd8178 100644
--- a/src/core/modules/SolarSystem.cpp
+++ b/src/core/modules/SolarSystem.cpp
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/
+#include <execution> // must be included before Qt because some versions of libtbb use "emit" identifier for their needs
+
#include "SolarSystem.hpp"
#include "StelTexture.hpp"
#include "EphemWrapper.hpp"
@@ -48,7 +50,6 @@
#include "StelObserver.hpp"
#include <algorithm>
-#include <execution>
#include <QTextStream>
#include <QSettings>
diff --git a/src/stelMain_pch.hpp b/src/stelMain_pch.hpp
index 9c35362285..c7677fd19c 100644
--- a/src/stelMain_pch.hpp
+++ b/src/stelMain_pch.hpp
@@ -28,6 +28,7 @@
// It seems that inclusion of some headers is actually bad for build time, these are commented away again. More teting or other compiler combinations may have slightly other results.
// Base time was 284s from first test without PCH
+#include <execution> // must be included before Qt because some versions of libtbb use "emit" identifier for their needs
#include "StelApp.hpp"
#include<QDebug>
#include "StelUtils.hpp" |
That does not change the error for me when building with https://aur.archlinux.org/packages/stellarium and TBB installed. I think it's just the conflict between QT's Not sure what the cleanest way to solve this would be in this context, but seems sensible to just include |
Another user reported the same error with onetbb, confirming above comment, looks like onetbb is an optional makedepedency for stellarium. |
Could someone test the build with TBB having applied my second patch? If the patch works, I'll just push it so that the next release will not have the problem at all. |
Probably this issue will be happen in macOS too - I'll check it tomorrow. |
With your patch, compilation works (on my machine ;) ) Btw, enabling PCH does not seem to make much of a difference wrt. to build time for me on a Ryzen 7 5700U if that's an interesting datapoint relating to the comment in |
With |
Hello @dimich-dmb! Please check the fresh version (development snapshot) of Stellarium: |
Hello @dimich-dmb! Please check the latest stable version of Stellarium: |
v24.3 compilation fails with error:
Steps to reproduce
System
Cmake configuration output:
Sources tagged v24.2 in the same environment are compiled successfully without errors.
The text was updated successfully, but these errors were encountered: