I'm building gpgme git master with --enable-maintainer-mode --enable-languages=cpp,qt6
(on top of a Qt 6.5.3 I built myself), and I'm getting the error "checking whether a simple Qt program can be built... no"
config.log says:
configure:21152: checking whether a simple Qt program can be built configure:21163: g++ -o conftest -g -O2 -I/d/qt/6/inst/include/QtCore -I/d/qt/6/inst/include -DQT_CORE_LIB -I/d/qt/6/inst/mkspecs/linux-g++ conftest.cpp -L/d/qt/6/inst/lib -lQt6Core >&5 In file included from /d/qt/6/inst/include/QtCore/qglobal.h:34, from /d/qt/6/inst/include/QtCore/qcoreapplication.h:7, from /d/qt/6/inst/include/QtCore/QCoreApplication:1, from conftest.cpp:47: /d/qt/6/inst/include/QtCore/qcompilerdetection.h:1249:4: error: #error "You must build your code with position independent code if Qt was configured with -reduce-relocations. " "Compile your code with -fPIC (and not with -fPIE)." 1249 | # error "You must build your code with position independent code if Qt was configured with -reduce-relocations. "\
Exact build procedure:
./autogen.sh && mkdir build && cd build && ../configure --enable-maintainer-mode --enable-languages=cpp,qt6 && make
If I git revert 3e6485620816c9097f98cbe4fdb82a4683918a63, it all builds fine again.
Ingo suggested I create a bug report here.