Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.14.0, 5.15.5
-
$ uname -a
Linux asus1 5.4.6-arch1-1 #1 SMP PREEMPT Sat, 21 Dec 2019 16:34:41 +0000 x86_64 GNU/Linux
$ cat /etc/*release
LSB_VERSION=1.4
DISTRIB_ID=Arch
DISTRIB_RELEASE=rolling
DISTRIB_DESCRIPTION="Arch Linux"
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux
$ uname -a Linux asus1 5.4.6-arch1-1 #1 SMP PREEMPT Sat, 21 Dec 2019 16:34:41 +0000 x86_64 GNU/Linux $ cat /etc/*release LSB_VERSION=1.4 DISTRIB_ID=Arch DISTRIB_RELEASE=rolling DISTRIB_DESCRIPTION="Arch Linux" NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="0;36" HOME_URL=" https://www.archlinux.org/ " DOCUMENTATION_URL=" https://wiki.archlinux.org/ " SUPPORT_URL=" https://bbs.archlinux.org/ " BUG_REPORT_URL=" https://bugs.archlinux.org/ " LOGO=archlinux
Description
The Meta object compiler (moc) issues parse error when Intel <tbb/tbb.h> is included in header hierarchy .
The moc output message is :
usr/include/tbb/tbb_profiling.:28: Parse error at "{"
The minimal code example to reproduce is attached.
The example uses the 'WITH_TBB' macro to include/exclude the <tbb.h>
#if WITH_TBB
#include <tbb/tbb.h>
#endif
To build the example with and without of TBB dependency use the -DWITH_TBB=ON/OFF cmake parameter
$ mkdir build && cd build && cmake -DWITH_TBB=ON ..
The TBB versioon is 2020.0-1
$ pacman -Qi intel-tbb
Name : intel-tbb
Version : 2020.0-1
Description : High level abstract threading library
Architecture : x86_64
URL : https://www.threadingbuildingblocks.org/
Licenses : GPL
Groups : None
Provides : None
Depends On : gcc-libs
Optional Deps : None
Required By : opencv suitesparse
Optional For : intel-mkl-slim
Conflicts With : None
Replaces : None
Installed Size : 2.13 MiB
Packager : Antonio Rojas <arojas@archlinux.org>
Build Date : Wed 18 Dec 2019 09:30:42 PM EET
Install Date : Thu 19 Dec 2019 03:07:35 AM EET
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
Attachments
Issue Links
- relates to
-
QTBUG-80578 moc failure when includes inside of enums in namespaces
- Closed