Repository navigation
Open
Description
This is not a bug in KLayout but an environmental problem.
I first found this problem on (Intel) macOS Monterey while building a recent commit, but it is not macOS specific.
Under certain conditions, the problem reproduces on Linux as well.
I hope this doesn't happen on the many Linuxes for which the binaries are provided!
1. The first problem on Monterey with Homebrew Qt5.15.12.
:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -std=c++11 -fvisibility=hidden -O2 -std=gnu++11 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=10.13 -Wall -Wextra -pedantic -Woverloaded-virtual -Wsynth -Wno-deprecated -Wno-long-long -Wno-strict-aliasing -Wno-deprecated-declarations -fPIC -DHAVE_QTBINDINGS -DHAVE_PYTHON -DHAVE_GIT2 -DHAVE_RUBY -DHAVE_RUBY_VERSION_CODE=30300 -DHAVE_QT -DHAVE_QT_UITOOLS -DHAVE_QT_NETWORK -DHAVE_QT_SQL -DHAVE_QT_SVG -DHAVE_QT_PRINTSUPPORT -DHAVE_QT_MULTIMEDIA -DHAVE_QT_DESIGNER -DHAVE_QT_XML -DKLAYOUT_VERSION=0.28.15 -DKLAYOUT_VERSION_REV=a67a28c8f -DKLAYOUT_VERSION_DATE=2024-01-22 -DKLAYOUT_MAJOR_VERSION=0 -DKLAYOUT_MINOR_VERSION=28 -DKLAYOUT_TINY_VERSION=15 -DMAKE_GSI_QTNETWORK_LIBRARY -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_DESIGNER_LIB -DQT_UIPLUGIN_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I../../../../src/gsiqt/qt5/QtNetwork -I/Users/sekigawa/GitWork/klayout/qt5Brew.build.macos-Monterey-release-Rhb33Phb311/gsiqt/qt5/QtNetwork -I../../../../src/tl/tl -I../../../../src/gsi/gsi -I../../../../src/gsiqt/qtbasic -I/usr/local/Cellar/qt@5/5.15.12/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/lib/QtDesigner.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/lib/QtUiPlugin.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/lib/QtMultimediaWidgets.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/lib/QtSvg.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/include -I/usr/local/Cellar/qt@5/5.15.12/include/QtUiTools -I/usr/local/Cellar/qt@5/5.15.12/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/lib/QtMultimedia.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/lib/QtXml.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/lib/QtXmlPatterns.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/lib/QtSql.framework/Headers -I/usr/local/Cellar/qt@5/5.15.12/lib/QtCore.framework/Headers -I/Users/sekigawa/GitWork/klayout/qt5Brew.build.macos-Monterey-release-Rhb33Phb311/gsiqt/qt5/QtNetwork -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/AGL.framework/Headers -I/usr/local/include -I/usr/local/Cellar/qt@5/5.15.12/mkspecs/macx-clang -F/usr/local/Cellar/qt@5/5.15.12/lib -o gsiDeclQDtls.o ../../../../src/gsiqt/qt5/QtNetwork/gsiDeclQDtls.cc
In file included from ../../../../src/gsiqt/qt5/QtNetwork/gsiDeclQDtls.cc:30:
In file included from /usr/local/Cellar/qt@5/5.15.12/lib/QtNetwork.framework/Headers/QDtls:1:
/usr/local/Cellar/qt@5/5.15.12/lib/QtNetwork.framework/Headers/qdtls.h:52:1: error: static_assert failed due to requirement 'bool(-1 == 1)' "Required feature dtls for file /usr/local/Cellar/qt@5/5.15.12/lib/QtNetwork.framework/Headers/qdtls.h not available."
QT_REQUIRE_CONFIG(dtls);
^~~~~~~~~~~~~~~~~~~~~~~
:
ChatGPT says:
This error message indicates that the required feature (dtls) is not available in the Qt build configuration.
When Qt is compiled, certain features, including dtls, need to be enabled.
If dtls support is disabled, attempting to compile files that depend on it, such as qdtls.h, will result in this error.
Unfortunately, the binary distribution does not provide detailed information about what features were enabled when it was built.
In particular, the config.summary file is usually not included in the binary distribution.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Kazzz-S commentedon Jan 24, 2024
2. Test on Linux with
Qt5.15.7 built from its sourceThe problem is reproduced as shown below.
The image below clearly shows that the DTLS feature is not enabled.

Kazzz-S commentedon Jan 24, 2024
3. Tests on Monterey with
MacPorts Qt5.15.12andAnaconda3 Qt5.15.2I was able to successfully build the commit in question in both of these environments.
So let's look at the corresponding symbols in the three binary libraries.
(1) Homebrew Qt=5.15.12
(2) MacPorts Qt=5.15.12
(3) Anaconda3 Qt=5.15.2
Kazzz-S commentedon Jan 24, 2024
4. Tests on Linux Mint 20.3 with
Qt5.12.8distributed binaryI was also able to build the commit in question in this environment successfully.
I cannot see the symbols in the library because they are stripped.
To be continued...
klayoutmatthias commentedon Jan 24, 2024
Hi @Kazzz-S,
many thanks for this report. This pull request is a very big one and is supposed to form the basis of the 0.29 branch. It includes goodies such as keyword arguments for Python, Delaunay decomposition and other things.
I am currently debugging issues on Window too which where not detected in the CI runs. So far, this branch is not fully stable. The stable branch is 0.28 and I will create another minor release from it (0.28.16), so the stability is not compromised.
Matthias
Kazzz-S commentedon Jan 24, 2024
5. Rebuild of
Qt5.15.7for Linux from the source codeFollowing the suggestions by
ChatGPT, I rebuiltQt5.15.7with the following parameters.Kazzz-S commentedon Jan 25, 2024
6. Rebuild of the commit in question for Linux with the above
Qt5.15.7I could successfully build the commit on Linux Mint 20.3 using...
Kazzz-S commentedon Jan 25, 2024
7. Conclusions and Actions
I have submitted the above ticket.
Let's wait for the response.
One of the possibilities has disappeared. :-(
Kazzz-S commentedon Jan 25, 2024
8. Using
Homebrew Qt6.6.1Bo98 commented in the future request ticket above:
So, I tried to build another commit in question with
Homebrew Qt6.6.1, and found it successful.But I cannot quit the KLayout GUI application normally. I need to kill the process.