Skip to content
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

Error while compiling klayout 0.28 #46

Closed
dsus4wang opened this issue Dec 26, 2022 · 10 comments
Closed

Error while compiling klayout 0.28 #46

dsus4wang opened this issue Dec 26, 2022 · 10 comments
Labels

Comments

@dsus4wang
Copy link

Dear Kazzz-S,
I just tried to compile klayout using parameter python3 build4mac.py -q Qt6Brew -r Sys -p HBAuto
but there was an error
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -std=c++17 -fvisibility=hidden -O2 -std=gnu++1z -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -mmacosx-version-min=13.0 -Wall -Wextra -pedantic -Woverloaded-virtual -Wsynth -Wno-deprecated -Wno-long-long -Wno-strict-aliasing -Wno-deprecated-declarations -fPIC -DHAVE_QTBINDINGS -DHAVE_PYTHON -DHAVE_RUBY -DHAVE_RUBY_VERSION_CODE=20610 -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.2 -DKLAYOUT_VERSION_REV=LatestSourcePackage -DKLAYOUT_VERSION_DATE=2022-12-26 -DKLAYOUT_MAJOR_VERSION=0 -DKLAYOUT_MINOR_VERSION=28 -DKLAYOUT_TINY_VERSION=2 -DMAKE_GSI_QTCORE_LIBRARY -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_DESIGNER_LIB -DQT_UIPLUGIN_LIB -DQT_UITOOLS_LIB -DQT_OPENGLWIDGETS_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_OPENGL_LIB -DQT_MULTIMEDIA_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE5COMPAT_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I../../../../src/gsiqt/qt6/QtCore -I/Users/lycore01/Downloads/klayout-0.28.2-mac1/qt6Brew.build.macos-Ventura-release-RsysPhbauto/gsiqt/qt6/QtCore -I../../../../src/tl/tl -I../../../../src/gsi/gsi -I../../../../src/db/db -I../../../../src/gsiqt/qtbasic -I/opt/homebrew/lib/QtPrintSupport.framework/Headers -I/opt/homebrew/lib/QtDesigner.framework/Headers -I/opt/homebrew/include -I/opt/homebrew/include/QtUiPlugin -I/opt/homebrew/lib/QtUiTools.framework/Headers -I/opt/homebrew/lib/QtOpenGLWidgets.framework/Headers -I/opt/homebrew/lib/QtMultimediaWidgets.framework/Headers -I/opt/homebrew/lib/QtWidgets.framework/Headers -I/opt/homebrew/lib/QtOpenGL.framework/Headers -I/opt/homebrew/lib/QtMultimedia.framework/Headers -I/opt/homebrew/lib/QtSvg.framework/Headers -I/opt/homebrew/lib/QtGui.framework/Headers -I/opt/homebrew/lib/QtXml.framework/Headers -I/opt/homebrew/lib/QtNetwork.framework/Headers -I/opt/homebrew/lib/QtCore5Compat.framework/Headers -I/opt/homebrew/lib/QtSql.framework/Headers -I/opt/homebrew/lib/QtCore.framework/Headers -I/Users/lycore01/Downloads/klayout-0.28.2-mac1/qt6Brew.build.macos-Ventura-release-RsysPhbauto/gsiqt/qt6/QtCore -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/share/qt/mkspecs/macx-clang -F/opt/homebrew/lib -o gsiDeclQJsonDocument.o ../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonDocument.cc ../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonArray_Const_iterator.cc:145:36: error: no matching conversion for C-style cast from 'const QJsonValueConstRef' to 'const QJsonValueRef' ret.write<const QJsonValueRef > ((const QJsonValueRef)((QJsonArray::const_iterator *)cls)->operator* ()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:221:5: note: candidate constructor not viable: no known conversion from 'const QJsonValueConstRef' to 'const QJsonValueRef' for 1st argument QJsonValueRef(const QJsonValueRef &) = default; ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:229:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonArray *array, qsizetype idx) ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:231:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonObject *object, qsizetype idx) ^ ../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonArray_Const_iterator.cc:456:30: error: no matching conversion for C-style cast from 'QJsonValueConstRef' to 'QJsonValueRef' ret.write<QJsonValueRef > ((QJsonValueRef)((QJsonArray::const_iterator *)cls)->operator[] (arg1)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:221:5: note: candidate constructor not viable: no known conversion from 'QJsonValueConstRef' to 'const QJsonValueRef' for 1st argument QJsonValueRef(const QJsonValueRef &) = default; ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:229:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonArray *array, qsizetype idx) ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:231:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonObject *object, qsizetype idx) ^ 2 errors generated. make[3]: *** [gsiDeclQJsonArray_Const_iterator.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [sub-QtCore-make_first] Error 2 make[1]: *** [sub-qt6-make_first] Error 2 make: *** [sub-gsiqt-make_first] Error 2
Could you help me solve this problem?thank you

@dsus4wang
Copy link
Author

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -std=c++17 -fvisibility=hidden -O2 -std=gnu++1z  -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -mmacosx-version-min=13.0 -Wall -Wextra -pedantic -Woverloaded-virtual -Wsynth -Wno-deprecated -Wno-long-long -Wno-strict-aliasing -Wno-deprecated-declarations -fPIC -DHAVE_QTBINDINGS -DHAVE_PYTHON -DHAVE_RUBY -DHAVE_RUBY_VERSION_CODE=20610 -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.2 -DKLAYOUT_VERSION_REV=LatestSourcePackage -DKLAYOUT_VERSION_DATE=2022-12-26 -DKLAYOUT_MAJOR_VERSION=0 -DKLAYOUT_MINOR_VERSION=28 -DKLAYOUT_TINY_VERSION=2 -DMAKE_GSI_QTCORE_LIBRARY -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_DESIGNER_LIB -DQT_UIPLUGIN_LIB -DQT_UITOOLS_LIB -DQT_OPENGLWIDGETS_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_OPENGL_LIB -DQT_MULTIMEDIA_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE5COMPAT_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I../../../../src/gsiqt/qt6/QtCore -I/Users/lycore01/Downloads/klayout-0.28.2-mac1/qt6Brew.build.macos-Ventura-release-RsysPhbauto/gsiqt/qt6/QtCore -I../../../../src/tl/tl -I../../../../src/gsi/gsi -I../../../../src/db/db -I../../../../src/gsiqt/qtbasic -I/opt/homebrew/lib/QtPrintSupport.framework/Headers -I/opt/homebrew/lib/QtDesigner.framework/Headers -I/opt/homebrew/include -I/opt/homebrew/include/QtUiPlugin -I/opt/homebrew/lib/QtUiTools.framework/Headers -I/opt/homebrew/lib/QtOpenGLWidgets.framework/Headers -I/opt/homebrew/lib/QtMultimediaWidgets.framework/Headers -I/opt/homebrew/lib/QtWidgets.framework/Headers -I/opt/homebrew/lib/QtOpenGL.framework/Headers -I/opt/homebrew/lib/QtMultimedia.framework/Headers -I/opt/homebrew/lib/QtSvg.framework/Headers -I/opt/homebrew/lib/QtGui.framework/Headers -I/opt/homebrew/lib/QtXml.framework/Headers -I/opt/homebrew/lib/QtNetwork.framework/Headers -I/opt/homebrew/lib/QtCore5Compat.framework/Headers -I/opt/homebrew/lib/QtSql.framework/Headers -I/opt/homebrew/lib/QtCore.framework/Headers -I/Users/lycore01/Downloads/klayout-0.28.2-mac1/qt6Brew.build.macos-Ventura-release-RsysPhbauto/gsiqt/qt6/QtCore -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/share/qt/mkspecs/macx-clang -F/opt/homebrew/lib -o gsiDeclQJsonDocument.o ../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonDocument.cc
../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonArray_Const_iterator.cc:145:36: error: no matching conversion for C-style cast from 'const QJsonValueConstRef' to 'const QJsonValueRef'
  ret.write<const QJsonValueRef > ((const QJsonValueRef)((QJsonArray::const_iterator *)cls)->operator* ());
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:221:5: note: candidate constructor not viable: no known conversion from 'const QJsonValueConstRef' to 'const QJsonValueRef' for 1st argument
    QJsonValueRef(const QJsonValueRef &) = default;
    ^
/opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:229:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
    QJsonValueRef(QJsonArray *array, qsizetype idx)
    ^
/opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:231:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
    QJsonValueRef(QJsonObject *object, qsizetype idx)
    ^
../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonArray_Const_iterator.cc:456:30: error: no matching conversion for C-style cast from 'QJsonValueConstRef' to 'QJsonValueRef'
  ret.write<QJsonValueRef > ((QJsonValueRef)((QJsonArray::const_iterator *)cls)->operator[] (arg1));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:221:5: note: candidate constructor not viable: no known conversion from 'QJsonValueConstRef' to 'const QJsonValueRef' for 1st argument
    QJsonValueRef(const QJsonValueRef &) = default;
    ^
/opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:229:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
    QJsonValueRef(QJsonArray *array, qsizetype idx)
    ^
/opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:231:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
    QJsonValueRef(QJsonObject *object, qsizetype idx)
    ^
2 errors generated.
make[3]: *** [gsiDeclQJsonArray_Const_iterator.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [sub-QtCore-make_first] Error 2
make[1]: *** [sub-qt6-make_first] Error 2
make: *** [sub-gsiqt-make_first] Error 2

@Kazzz-S
Copy link
Owner

Kazzz-S commented Dec 26, 2022

Hi @dsus4wang,

Thanks for this report.

I keep track of Qt6 migration-related issues in #45, and occasionally send reports to Matthias.
So I have made a cross-link between #45 and #46.

It looks like you are using an M1 Mac, which I do not have.
I have added Qt6 plus Apple Silicon features to the macOS build system as requested by another person.
Therefore, I cannot reproduce the problem on my side so far.
For future reference, could you kindly provide the following information?

  1. Output of uname -a command
  2. Output of brew info qt@6 command
  3. Python 3 version you intend by -p HBAuto option; Python 3.11?

Meanwhile, I'll build the latest commit '0.28.2-mac1 branch' on my Intel Mac, and share the build results in this ticket.

(base) MacBookPro2{kazzz-s} temp (1)% uname -a
Darwin MacBookPro2.local 21.6.0 Darwin Kernel Version 21.6.0: Sun Nov  6 23:31:16 PST 2022; root:xnu-8020.240.14~1/RELEASE_X86_64 x86_64

(base) MacBookPro2{kazzz-s} temp (2)% brew info qt@6
==> qt: stable 6.4.1 (bottled), HEAD
Cross-platform application and UI framework
https://www.qt.io/
/usr/local/Cellar/qt/6.4.1_1 (13,354 files, 576.9MB) *
  Poured from bottle on 2022-12-23 at 07:30:03
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/qt.rb
License: BSD-3-Clause and GFDL-1.3-no-invariants-only and GPL-2.0-only and (GPL-3.0-only with Qt-GPL-exception-1.0) and LGPL-3.0-only
==> Dependencies
Build: cmake ✘, ninja ✘, node ✘, pkg-config ✔, [email protected] ✘, six ✘, vulkan-headers ✘, molten-vk ✘
Required: assimp ✔, brotli ✔, dbus ✔, double-conversion ✔, freetype ✔, glib ✔, harfbuzz ✔, hunspell ✔, icu4c ✔, jasper ✔, jpeg-turbo ✔, libb2 ✔, libmng ✔, libpng ✔, libtiff ✔, md4c ✔, [email protected] ✔, pcre2 ✔, sqlite ✔, webp ✔, zstd ✔
==> Requirements
Build: Xcode ✔
==> Options
--HEAD
	Install HEAD version
==> Analytics
install: 65,785 (30 days), 186,924 (90 days), 650,146 (365 days)
install-on-request: 44,286 (30 days), 131,313 (90 days), 396,002 (365 days)
build-error: 30 (30 days)

(base) MacBookPro2{kazzz-s} opt (3)% pwd
/usr/local/opt

(base) MacBookPro2{kazzz-s} opt (4)% ll | grep python
lrwxr-xr-x   1 kazzz-s admin   27 12 10 08:07 python@3 -> ../Cellar/[email protected]/3.9.16
lrwxr-xr-x   1 kazzz-s admin   27 12  7 18:10 [email protected] -> ../Cellar/[email protected]/3.8.16
lrwxr-xr-x   1 kazzz-s admin   27 12 10 08:07 [email protected] -> ../Cellar/[email protected]/3.9.16  <=== `HBAuto` will point this version: 3.9

Warm regards,
Kazzz-S

@Kazzz-S
Copy link
Owner

Kazzz-S commented Dec 26, 2022

Meanwhile, I'll build the latest commit '0.28.2-mac1 branch' on my Intel Mac, and share the build results in this ticket.

I got similar errors on my Intel Mac, too. ===> #45 (comment)

@Kazzz-S
Copy link
Owner

Kazzz-S commented Dec 26, 2022

I'm planning to try Qt6 from MacPorts.
While updating the binary packages, I got the errors below.
As you see, Qt6 itself has yet to be very stable.

### [2] Upgrading Outdated Mac Ports
--->  Computing dependencies for qt6-qtsvg
--->  Fetching archive for qt6-qtsvg
--->  Attempting to fetch qt6-qtsvg-6.2.4_1.darwin_21.x86_64.tbz2 from https://packages.macports.org/qt6-qtsvg
--->  Attempting to fetch qt6-qtsvg-6.2.4_1.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/qt6-qtsvg
--->  Installing qt6-qtsvg @6.2.4_1
--->  Cleaning qt6-qtsvg
--->  Computing dependencies for qt6-qtsvg
--->  Deactivating qt6-qtsvg @6.2.4_0
--->  Cleaning qt6-qtsvg
--->  Activating qt6-qtsvg @6.2.4_1
--->  Cleaning qt6-qtsvg
--->  Computing dependencies for qt6-qtimageformats
--->  Fetching archive for qt6-qtimageformats
--->  Attempting to fetch qt6-qtimageformats-6.2.4_1.darwin_21.x86_64.tbz2 from https://packages.macports.org/qt6-qtimageformats
--->  Attempting to fetch qt6-qtimageformats-6.2.4_1.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/qt6-qtimageformats
--->  Installing qt6-qtimageformats @6.2.4_1
--->  Cleaning qt6-qtimageformats
--->  Computing dependencies for qt6-qtimageformats
--->  Deactivating qt6-qtimageformats @6.2.4_0
--->  Cleaning qt6-qtimageformats
--->  Activating qt6-qtimageformats @6.2.4_1
--->  Cleaning qt6-qtimageformats
--->  Computing dependencies for qt6-qtshadertools
--->  Fetching archive for qt6-qtshadertools
--->  Attempting to fetch qt6-qtshadertools-6.2.4_1.darwin_21.x86_64.tbz2 from https://packages.macports.org/qt6-qtshadertools
--->  Attempting to fetch qt6-qtshadertools-6.2.4_1.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/qt6-qtshadertools
--->  Installing qt6-qtshadertools @6.2.4_1
--->  Cleaning qt6-qtshadertools
--->  Computing dependencies for qt6-qtshadertools
--->  Deactivating qt6-qtshadertools @6.2.4_0
--->  Cleaning qt6-qtshadertools
--->  Activating qt6-qtshadertools @6.2.4_1
--->  Cleaning qt6-qtshadertools
--->  Computing dependencies for qt6-qtdeclarative
--->  Fetching archive for qt6-qtdeclarative
--->  Attempting to fetch qt6-qtdeclarative-6.2.4_1.darwin_21.x86_64.tbz2 from https://packages.macports.org/qt6-qtdeclarative
--->  Attempting to fetch qt6-qtdeclarative-6.2.4_1.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/qt6-qtdeclarative
--->  Installing qt6-qtdeclarative @6.2.4_1
--->  Cleaning qt6-qtdeclarative
--->  Computing dependencies for qt6-qtdeclarative
--->  Deactivating qt6-qtdeclarative @6.2.4_0
--->  Cleaning qt6-qtdeclarative
--->  Activating qt6-qtdeclarative @6.2.4_1
--->  Cleaning qt6-qtdeclarative
Warning: The Xcode Command Line Tools package appears to be installed, but its receipt appears to be missing.
Warning: The Command Line Tools may be outdated, which can cause problems.
Warning: Please see: <https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt>
--->  Computing dependencies for qt6-qtmultimedia
--->  Fetching archive for qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://packages.macports.org/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://kmq.jp.packages.macports.org/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from http://mirror.fcix.net/macports/packages/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://ema.uk.packages.macports.org/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://nue.de.packages.macports.org/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://cph.dk.packages.macports.org/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://mse.uk.packages.macports.org/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://fra.de.packages.macports.org/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from http://fco.it.packages.macports.org/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://jnb.za.packages.macports.org/packages/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from http://atl.us.packages.macports.org/qt6-qtmultimedia
Error: Failed to archivefetch qt6-qtmultimedia: version @6.2.4_1: The requested URL returned error: 404
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt6/qt6-qtmultimedia/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
### [2] Done


### [3] To clean up, issue the commands below:
        $ sudo port -u uninstall
        $ sudo port clean --dist <package name>
    OR, to clean up all unused packages in one shot...
        $ pup -c

(base) MacBookPro2{kazzz-s} ~ (1633)% sudo port upgrade outdated
Warning: The Xcode Command Line Tools package appears to be installed, but its receipt appears to be missing.
Warning: The Command Line Tools may be outdated, which can cause problems.
Warning: Please see: <https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt>
--->  Computing dependencies for qt6-qtmultimedia
--->  Fetching archive for qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://packages.macports.org/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://kmq.jp.packages.macports.org/qt6-qtmultimedia
--->  Attempting to fetch qt6-qtmultimedia-6.2.4_1.darwin_21.x86_64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/qt6-qtmultimedia
--->  Fetching distfiles for qt6-qtmultimedia
--->  Attempting to fetch qtmultimedia-everywhere-src-6.2.4.tar.xz from https://kmq.jp.distfiles.macports.org/qt6
--->  Verifying checksums for qt6-qtmultimedia
--->  Extracting qt6-qtmultimedia
--->  Configuring qt6-qtmultimedia
Error: Failed to configure qt6-qtmultimedia: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt6/qt6-qtmultimedia/work/build/CMakeFiles/CMakeError.log
Error: Failed to configure qt6-qtmultimedia: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt6/qt6-qtmultimedia/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

@Kazzz-S
Copy link
Owner

Kazzz-S commented Dec 27, 2022

Improvement and progress! ==> #45 (comment)

@dsus4wang
Copy link
Author

Dear Kazzz-S,
Thank you for your generous help , but I met another error..Now I have two mac minis. One has MacOS 12.4(ruby sys,homebrew qt@6,homebrew python3.10),the another has MacOS 12.5(ruby sys .homebrew qt@5,homebrew python3.10),When I tried to complie klayout 0.27.13,They both succeed with no error,but when I tried to compile 0.28.2, The two mac have the same error.Here is the error information:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names  -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.13 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,@executable_path/../Frameworks -single_module -dynamiclib -compatibility_version	0.28 -current_version	0.28.2 -install_name	libklayout_QtMultimedia.0.dylib -o libklayout_QtMultimedia.0.28.2.dylib gsiQtMultimediaMain.o gsiDeclQAbstractAudioDeviceInfo.o gsiDeclQAbstractAudioInput.o gsiDeclQAbstractAudioOutput.o gsiDeclQAbstractVideoBuffer.o gsiDeclQAbstractVideoFilter.o gsiDeclQAbstractVideoSurface.o gsiDeclQAudio.o gsiDeclQAudioBuffer.o gsiDeclQAudioDecoder.o gsiDeclQAudioDecoderControl.o gsiDeclQAudioDeviceInfo.o gsiDeclQAudioEncoderSettings.o gsiDeclQAudioEncoderSettingsControl.o gsiDeclQAudioFormat.o gsiDeclQAudioInput.o gsiDeclQAudioInputSelectorControl.o gsiDeclQAudioOutput.o gsiDeclQAudioOutputSelectorControl.o gsiDeclQAudioProbe.o gsiDeclQAudioRecorder.o gsiDeclQAudioSystemFactoryInterface.o gsiDeclQAudioSystemPlugin.o gsiDeclQCamera.o gsiDeclQCamera_FrameRateRange.o gsiDeclQCameraCaptureBufferFormatControl.o gsiDeclQCameraCaptureDestinationControl.o gsiDeclQCameraControl.o gsiDeclQCameraExposure.o gsiDeclQCameraExposureControl.o gsiDeclQCameraFeedbackControl.o gsiDeclQCameraFlashControl.o gsiDeclQCameraFocus.o gsiDeclQCameraFocusControl.o gsiDeclQCameraFocusZone.o gsiDeclQCameraImageCapture.o gsiDeclQCameraImageCaptureControl.o gsiDeclQCameraImageProcessing.o gsiDeclQCameraImageProcessingControl.o gsiDeclQCameraInfo.o gsiDeclQCameraInfoControl.o gsiDeclQCameraLocksControl.o gsiDeclQCameraViewfinderSettings.o gsiDeclQCameraViewfinderSettingsControl.o gsiDeclQCameraViewfinderSettingsControl2.o gsiDeclQCameraZoomControl.o gsiDeclQGraphicsVideoItem.o gsiDeclQImageEncoderControl.o gsiDeclQImageEncoderSettings.o gsiDeclQMediaAudioProbeControl.o gsiDeclQMediaAvailabilityControl.o gsiDeclQMediaBindableInterface.o gsiDeclQMediaContainerControl.o gsiDeclQMediaContent.o gsiDeclQMediaControl.o gsiDeclQMediaGaplessPlaybackControl.o gsiDeclQMediaMetaData.o gsiDeclQMediaNetworkAccessControl.o gsiDeclQMediaObject.o gsiDeclQMediaPlayer.o gsiDeclQMediaPlayerControl.o gsiDeclQMediaPlaylist.o gsiDeclQMediaRecorder.o gsiDeclQMediaRecorderControl.o gsiDeclQMediaResource.o gsiDeclQMediaService.o gsiDeclQMediaServiceCameraInfoInterface.o gsiDeclQMediaServiceDefaultDeviceInterface.o gsiDeclQMediaServiceFeaturesInterface.o gsiDeclQMediaServiceProviderFactoryInterface.o gsiDeclQMediaServiceProviderHint.o gsiDeclQMediaServiceProviderPlugin.o gsiDeclQMediaServiceSupportedDevicesInterface.o gsiDeclQMediaServiceSupportedFormatsInterface.o gsiDeclQMediaStreamsControl.o gsiDeclQMediaTimeInterval.o gsiDeclQMediaTimeRange.o gsiDeclQMediaVideoProbeControl.o gsiDeclQMetaDataReaderControl.o gsiDeclQMetaDataWriterControl.o gsiDeclQMultimedia.o gsiDeclQRadioData.o gsiDeclQRadioDataControl.o gsiDeclQRadioTuner.o gsiDeclQRadioTunerControl.o gsiDeclQSound.o gsiDeclQSoundEffect.o gsiDeclQVideoDeviceSelectorControl.o gsiDeclQVideoEncoderSettings.o gsiDeclQVideoEncoderSettingsControl.o gsiDeclQVideoFilterRunnable.o gsiDeclQVideoFrame.o gsiDeclQVideoProbe.o gsiDeclQVideoRendererControl.o gsiDeclQVideoSurfaceFormat.o gsiDeclQVideoWidget.o gsiDeclQVideoWindowControl.o  -F/opt/homebrew/Cellar/qt@5/5.15.7_1/lib -lz -L/Users/lycore02/Downloads/klayout-0.28.2/qt5Brew.build.macos-Monterey-debug-RsysPhbauto/gsiqt/qt5/QtMultimedia/../../.. -lklayout_tl -lklayout_gsi -lklayout_qtbasic -lklayout_QtCore -lklayout_QtWidgets -framework QtPrintSupport -framework QtDesigner -framework QtMultimediaWidgets -framework QtSvg /opt/homebrew/Cellar/qt@5/5.15.7_1/lib/libQt5UiTools.a -framework QtWidgets -framework QtMultimedia -framework QtGui -framework AppKit -framework Metal -framework QtXml -framework QtXmlPatterns -framework QtNetwork -framework QtSql -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL    
ln -s libklayout_QtMultimedia.0.28.2.dylib libklayout_QtMultimedia.dylib
ln -s libklayout_QtMultimedia.0.28.2.dylib libklayout_QtMultimedia.0.dylib
ln -s libklayout_QtMultimedia.0.28.2.dylib libklayout_QtMultimedia.0.28.dylib
rm -f ../../../../qt5Brew.build.macos-Monterey-debug-RsysPhbauto/libklayout_QtMultimedia.0.28.2.dylib
mv -f libklayout_QtMultimedia.0.28.2.dylib ../../../../qt5Brew.build.macos-Monterey-debug-RsysPhbauto/libklayout_QtMultimedia.0.28.2.dylib
rm -f ../../../../qt5Brew.build.macos-Monterey-debug-RsysPhbauto/libklayout_QtMultimedia.dylib
rm -f ../../../../qt5Brew.build.macos-Monterey-debug-RsysPhbauto/libklayout_QtMultimedia.0.dylib
rm -f ../../../../qt5Brew.build.macos-Monterey-debug-RsysPhbauto/libklayout_QtMultimedia.0.28.dylib
mv -f libklayout_QtMultimedia.dylib ../../../../qt5Brew.build.macos-Monterey-debug-RsysPhbauto/libklayout_QtMultimedia.dylib
mv -f libklayout_QtMultimedia.0.dylib ../../../../qt5Brew.build.macos-Monterey-debug-RsysPhbauto/libklayout_QtMultimedia.0.dylib
mv -f libklayout_QtMultimedia.0.28.dylib ../../../../qt5Brew.build.macos-Monterey-debug-RsysPhbauto/libklayout_QtMultimedia.0.28.dylib

these are the last a few line of log,could you please help me ?thanks!

@Kazzz-S
Copy link
Owner

Kazzz-S commented Jan 3, 2023

Hi @dsus4wang,

The last few lines of the log you attached above do not contain any "error" messages or strings.
Because the parallelized build was performed (with make -j4 or a similar option), the actual errors happened much earlier.
Please ZIP the entire log file (like qt5Brew.build.macos-Ventura-release-RsysPhb39.log) and attach it.

Kazzz-S

@dsus4wang
Copy link
Author

qt5Brew.build.macos-Monterey-debug-RsysPhbauto.log
Here is the log file,thanks for your help

@Kazzz-S
Copy link
Owner

Kazzz-S commented Jan 4, 2023

Hi @dsus4wang,

Thanks for sharing the log file.
I got exactly the same errors while building 0.28.x.
Ruby 2.6 seems not compliant with the C++11 standard.
ruby-1
ruby-2


As noted here, you need to modify two System Ruby header files.
Also, refer to brianmario/charlock_holmes#146 (comment)

ruby-3
ruby-4

config.h

:
: 
#if defined __x86_64__ &&! defined RUBY_PLATFORM_CPU
#define RUBY_PLATFORM_CPU "x86_64"
#endif /* defined __x86_64__ &&! defined RUBY_PLATFORM_CPU */
#define RUBY_PLATFORM_OS "darwin22"
// #define RUBY_ARCH "universal-"RUBY_PLATFORM_OS
// #define RUBY_PLATFORM "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS
// Ref. https://github.com/brianmario/charlock_holmes/issues/146#issuecomment-884448326
#define RUBY_ARCH "universal-" RUBY_PLATFORM_OS
#define RUBY_PLATFORM "universal." RUBY_PLATFORM_CPU "-" RUBY_PLATFORM_OS
#endif /* INCLUDE_RUBY_CONFIG_H */

intern.h

: 
: 
/* array.c */
//void rb_mem_clear(register VALUE*, register long);
void rb_mem_clear(VALUE*, long);
VALUE rb_assoc_new(VALUE, VALUE);
VALUE rb_check_array_type(VALUE);
: 
: 

Kazzz-S

@dsus4wang
Copy link
Author

Thanks for your help,I've successfully compiled klayout 0.28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants