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

[email protected]_rc2_py312_qt6: scaffold out new formula #602

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ipatch
Copy link
Collaborator

@ipatch ipatch commented Oct 25, 2024

brew style freecad/freecad/[NAME_OF_FORMULA_FILE] 

output from running above command should output something similiar to the below

1 file inspected, no offenses detected
  • Have you ensured your commit passed audit checks, ie.
brew audit freecad/freecad/[NAME_OF_FORMULA_FILE] --online --new-formula

Not all PRs require passing these checks ie. adding [no ci] in the commit message will prevent the CI from running but PRs that change formula files generally should run through the CI checks that way new bottles are built and uploaded to the repository thus not having to build all formula from source but rather installing from a bottle (significantly faster 🐰 ... 🐢)

For more information about this template file learn more

@ipatch
Copy link
Collaborator Author

ipatch commented Oct 25, 2024

open PR to track new freecad v1.0.0rc2 formula using qt6 with python v3.12.x

@ipatch
Copy link
Collaborator Author

ipatch commented Oct 26, 2024

current build error with CI

2024-10-25T23:33:44.7735850Z -- Found Python: /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/bin/python3.13 (found suitable version "3.13.0", minimum required is "3") found components: Interpreter Development Development.Module Development.Embed
2024-10-25T23:33:44.7737320Z CMake Error at /opt/homebrew/opt/pyside6_py312/lib/cmake/Shiboken6/ShibokenHelpers.cmake:474 (message):
2024-10-25T23:33:44.7738030Z   The detected Python minor version is not compatible with the Python minor
2024-10-25T23:33:44.7738620Z   version which was used when Shiboken was built.  Consider building shiboken
2024-10-25T23:33:44.7739170Z   with FORCE_LIMITED_API set to '1', so that only the Python major version
2024-10-25T23:33:44.7739570Z   matters.
2024-10-25T23:33:44.7739720Z 
2024-10-25T23:33:44.7739880Z   Built with: '3.12' Detected: '3.13'
2024-10-25T23:33:44.7740140Z Call Stack (most recent call first):
2024-10-25T23:33:44.7740970Z   /opt/homebrew/opt/pyside6_py312/lib/cmake/Shiboken6/Shiboken6Config.cpython-312-darwin.cmake:45 (shiboken_check_if_built_and_target_python_are_compatible)
2024-10-25T23:33:44.7741890Z   /opt/homebrew/opt/pyside6_py312/lib/cmake/Shiboken6/Shiboken6Config.cmake:5 (include)
2024-10-25T23:33:44.7742410Z   cMake/FindShiboken6.cmake:6 (find_package)
2024-10-25T23:33:44.7742850Z   cMake/FreeCAD_Helpers/SetupShibokenAndPyside.cmake:25 (find_package)
2024-10-25T23:33:44.7743300Z   CMakeLists.txt:87 (SetupShibokenAndPyside)
2024-10-25T23:33:44.7743500Z 
2024-10-25T23:33:44.7743510Z 
2024-10-25T23:33:44.7743680Z -- Configuring incomplete, errors occurred!
2024-10-25T23:33:44.7744000Z -- Cache values

@ipatch
Copy link
Collaborator Author

ipatch commented Oct 26, 2024

it seems updating the formula with the below lines does not prevent cmake from picking up on [email protected] unfortunately. 🤦‍♂️

it's looking like i'll need to patch a cmake file or two to prevent [email protected] from being detected.

   ENV.remove "PATH", Formula["[email protected]"].opt_prefix/"bin"
    ENV.remove "PATH", Formula["[email protected]"].opt_prefix/"libexec/bin"
    ENV.remove "CMAKE_PREFIX_PATH", Formula["[email protected]"].opt_prefix/"bin"
    ENV.remove "PKG_CONFIG_PATH", "/Users/chris/homebrew/opt/[email protected]/lib/pkgconfig"

the below snippet does remove reference to [email protected] in the above environment variables but unfortunately it's still popping up somehow. 🤬

@ipatch
Copy link
Collaborator Author

ipatch commented Oct 26, 2024

setting the Python_Root_Dir seems to have fixed the above cmake configuration error, but now running into the below build error,

2024-10-26T02:20:51.7804800Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayalgorithms.h:98:15: error: functions that differ only in their return type cannot be overloaded
2024-10-26T02:20:51.7804890Z inline size_t qstrlen(const char *str)
2024-10-26T02:20:51.7804950Z        ~~~~~~ ^
2024-10-26T02:20:51.7805230Z /opt/homebrew/opt/qt@5/include/QtCore/qbytearray.h:73:13: note: previous definition is here
2024-10-26T02:20:51.7805320Z inline uint qstrlen(const char *str)
2024-10-26T02:20:51.7805380Z        ~~~~ ^
2024-10-26T02:20:51.7805790Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7806160Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7806400Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7806640Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:16:
2024-10-26T02:20:51.7806860Z In file included from /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:6:
2024-10-26T02:20:51.7807230Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayalgorithms.h:131:78: error: redefinition of default argument
2024-10-26T02:20:51.7807510Z Q_CORE_EXPORT int qstrnicmp(const char *, qsizetype, const char *, qsizetype = -1);
2024-10-26T02:20:51.7807630Z                                                                              ^ ~~
2024-10-26T02:20:51.7808020Z /opt/homebrew/opt/qt@5/include/QtCore/qbytearray.h:102:78: note: previous definition is here
2024-10-26T02:20:51.7808310Z Q_CORE_EXPORT int qstrnicmp(const char *, qsizetype, const char *, qsizetype = -1);
2024-10-26T02:20:51.7808430Z                                                                              ^ ~~
2024-10-26T02:20:51.7808830Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7809330Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7809570Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7809820Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:16:
2024-10-26T02:20:51.7810200Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:305:29: error: unknown type name 'Q_IMPLICIT'
2024-10-26T02:20:51.7810410Z     [[nodiscard]] constexpr Q_IMPLICIT operator std::string_view() const noexcept
2024-10-26T02:20:51.7810480Z                             ^
2024-10-26T02:20:51.7811120Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:209:57: error: cannot initialize a parameter of type 'int *' with an rvalue of type 'qsizetype *' (aka 'long long *')
2024-10-26T02:20:51.7811290Z         auto result = QContainerImplHelper::mid(size(), &pos, &n);
2024-10-26T02:20:51.7811390Z                                                         ^~~~
2024-10-26T02:20:51.7811780Z /opt/homebrew/opt/qt@5/include/QtCore/qarraydata.h:351:51: note: passing argument to parameter 'position' here
2024-10-26T02:20:51.7811980Z     static CutResult mid(int originalLength, int *position, int *length);
2024-10-26T02:20:51.7812060Z                                                   ^
2024-10-26T02:20:51.7812470Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7812850Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7813080Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7813400Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T02:20:51.7813640Z In file included from /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:12:
2024-10-26T02:20:51.7813950Z /opt/homebrew/opt/qt/include/QtCore/qtversionchecks.h:38:4: error: Qt major version not 6 or 7
2024-10-26T02:20:51.7814040Z #  error Qt major version not 6 or 7
2024-10-26T02:20:51.7814090Z    ^
2024-10-26T02:20:51.7814500Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7814870Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7815110Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7820070Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T02:20:51.7820820Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:147:14: error: too many arguments to function call, expected 2, have 3; did you mean 'boost_swap_impl::count'?
2024-10-26T02:20:51.7820930Z     { return QtPrivate::count(*this, str, cs); }
2024-10-26T02:20:51.7821000Z              ^~~~~~~~~
2024-10-26T02:20:51.7821580Z /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__algorithm/count.h:25:5: note: 'boost_swap_impl::count' declared here
2024-10-26T02:20:51.7821780Z     count(_InputIterator __first, _InputIterator __last, const _Tp& __value) {
2024-10-26T02:20:51.7821830Z     ^
2024-10-26T02:20:51.7822240Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7822620Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7823050Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7823300Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T02:20:51.7824010Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:149:14: error: too many arguments to function call, expected 2, have 3; did you mean 'boost_swap_impl::count'?
2024-10-26T02:20:51.7824130Z     { return QtPrivate::count(*this, str, cs); }
2024-10-26T02:20:51.7824250Z              ^~~~~~~~~
2024-10-26T02:20:51.7824840Z /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__algorithm/count.h:25:5: note: 'boost_swap_impl::count' declared here
2024-10-26T02:20:51.7825040Z     count(_InputIterator __first, _InputIterator __last, const _Tp& __value) {
2024-10-26T02:20:51.7825100Z     ^
2024-10-26T02:20:51.7825520Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7825900Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7826140Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7826380Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T02:20:51.7827040Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:151:14: error: too many arguments to function call, expected 2, have 3; did you mean 'boost_swap_impl::count'?
2024-10-26T02:20:51.7827150Z     { return QtPrivate::count(*this, ch, cs); }
2024-10-26T02:20:51.7827210Z              ^~~~~~~~~
2024-10-26T02:20:51.7827770Z /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__algorithm/count.h:25:5: note: 'boost_swap_impl::count' declared here
2024-10-26T02:20:51.7827970Z     count(_InputIterator __first, _InputIterator __last, const _Tp& __value) {
2024-10-26T02:20:51.7828030Z     ^
2024-10-26T02:20:51.7828430Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7828880Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7829120Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7829360Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T02:20:51.7830020Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:210:57: error: cannot initialize a parameter of type 'int *' with an rvalue of type 'qsizetype *' (aka 'long long *')
2024-10-26T02:20:51.7830190Z         auto result = QContainerImplHelper::mid(size(), &pos, &n);
2024-10-26T02:20:51.7830280Z                                                         ^~~~
2024-10-26T02:20:51.7830680Z /opt/homebrew/opt/qt@5/include/QtCore/qarraydata.h:351:51: note: passing argument to parameter 'position' here
2024-10-26T02:20:51.7830890Z     static CutResult mid(int originalLength, int *position, int *length);
2024-10-26T02:20:51.7830970Z                                                   ^
2024-10-26T02:20:51.7831370Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7831780Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7832020Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7832260Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T02:20:51.7832760Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:286:53: error: no member named 'equalStrings' in namespace 'QtPrivate'
2024-10-26T02:20:51.7832950Z     { return lhs.size() == rhs.size() && QtPrivate::equalStrings(lhs, rhs); }
2024-10-26T02:20:51.7833240Z                                          ~~~~~~~~~~~^
2024-10-26T02:20:51.7833740Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:294:53: error: no member named 'equalStrings' in namespace 'QtPrivate'
2024-10-26T02:20:51.7833930Z     { return lhs.size() == rhs.size() && QtPrivate::equalStrings(lhs, rhs); }
2024-10-26T02:20:51.7834020Z                                          ~~~~~~~~~~~^
2024-10-26T02:20:51.7834420Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7834820Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7835060Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7835310Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:22:
2024-10-26T02:20:51.7835520Z In file included from /opt/homebrew/opt/qt/include/QtCore/qanystringview.h:9:
2024-10-26T02:20:51.7835900Z /opt/homebrew/opt/qt/include/QtCore/qutf8stringview.h:278:19: error: unknown type name 'Q_IMPLICIT'
2024-10-26T02:20:51.7836140Z     [[nodiscard]] Q_IMPLICIT operator std::basic_string_view<storage_type>() const noexcept
2024-10-26T02:20:51.7836310Z                   ^
2024-10-26T02:20:51.7836770Z /opt/homebrew/opt/qt/include/QtCore/qutf8stringview.h:303:16: error: no matching function for call to 'compareStrings'
2024-10-26T02:20:51.7837030Z         return QtPrivate::compareStrings(QBasicUtf8StringView<false>(lhs.data(), lhs.size()),
2024-10-26T02:20:51.7837110Z                ^~~~~~~~~~~~~~~~~~~~~~~~~
2024-10-26T02:20:51.7837800Z /opt/homebrew/opt/qt@5/include/QtCore/qstringalgorithms.h:62:58: note: candidate function not viable: no known conversion from 'QBasicUtf8StringView<false>' to 'QStringView' for 1st argument
2024-10-26T02:20:51.7838300Z Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int compareStrings(QStringView   lhs, QStringView   rhs, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept;
2024-10-26T02:20:51.7838400Z                                                          ^
2024-10-26T02:20:51.7839250Z /opt/homebrew/opt/qt@5/include/QtCore/qstringalgorithms.h:63:58: note: candidate function not viable: no known conversion from 'QBasicUtf8StringView<false>' to 'QStringView' for 1st argument
2024-10-26T02:20:51.7839750Z Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int compareStrings(QStringView   lhs, QLatin1String rhs, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept;
2024-10-26T02:20:51.7839850Z                                                          ^
2024-10-26T02:20:51.7840560Z /opt/homebrew/opt/qt@5/include/QtCore/qstringalgorithms.h:64:58: note: candidate function not viable: no known conversion from 'QBasicUtf8StringView<false>' to 'QLatin1String' for 1st argument
2024-10-26T02:20:51.7841050Z Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int compareStrings(QLatin1String lhs, QStringView   rhs, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept;
2024-10-26T02:20:51.7841150Z                                                          ^
2024-10-26T02:20:51.7841860Z /opt/homebrew/opt/qt@5/include/QtCore/qstringalgorithms.h:65:58: note: candidate function not viable: no known conversion from 'QBasicUtf8StringView<false>' to 'QLatin1String' for 1st argument
2024-10-26T02:20:51.7842350Z Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int compareStrings(QLatin1String lhs, QLatin1String rhs, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept;
2024-10-26T02:20:51.7842450Z                                                          ^
2024-10-26T02:20:51.7842850Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7843230Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7843460Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7843860Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:22:
2024-10-26T02:20:51.7844070Z In file included from /opt/homebrew/opt/qt/include/QtCore/qanystringview.h:9:
2024-10-26T02:20:51.7844560Z /opt/homebrew/opt/qt/include/QtCore/qutf8stringview.h:310:30: error: no member named 'equalStrings' in namespace 'QtPrivate'
2024-10-26T02:20:51.7844800Z                && QtPrivate::equalStrings(QBasicUtf8StringView<false>(lhs.data(), lhs.size()),
2024-10-26T02:20:51.7844870Z                   ~~~~~~~~~~~^
2024-10-26T02:20:51.7845290Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7845670Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7845910Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7846150Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:22:
2024-10-26T02:20:51.7846960Z /opt/homebrew/opt/qt/include/QtCore/qanystringview.h:81:20: error: no template named 'IsContainerCompatibleWithQStringView' in namespace 'QtPrivate'; did you mean 'IsContainerCompatibleWithQUtf8StringView'?
2024-10-26T02:20:51.7847120Z         QtPrivate::IsContainerCompatibleWithQStringView<T>,
2024-10-26T02:20:51.7847180Z         ~~~~~~~~~~~^
2024-10-26T02:20:51.7847670Z /opt/homebrew/opt/qt/include/QtCore/qutf8stringview.h:45:8: note: 'IsContainerCompatibleWithQUtf8StringView' declared here
2024-10-26T02:20:51.7847880Z struct IsContainerCompatibleWithQUtf8StringView : std::false_type {};
2024-10-26T02:20:51.7847940Z        ^
2024-10-26T02:20:51.7848350Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T02:20:51.7848720Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20585-jzhb4a/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T02:20:51.7848950Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T02:20:51.7849200Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:22:
2024-10-26T02:20:51.7850060Z /opt/homebrew/opt/qt/include/QtCore/qanystringview.h:101:30: error: no template named 'IsContainerCompatibleWithQStringView' in namespace 'QtPrivate'; did you mean 'IsContainerCompatibleWithQUtf8StringView'?
2024-10-26T02:20:51.7850360Z     static_assert(QtPrivate::IsContainerCompatibleWithQStringView<QAnyStringView>::value == false);
2024-10-26T02:20:51.7850440Z                   ~~~~~~~~~~~^
2024-10-26T02:20:51.7850920Z /opt/homebrew/opt/qt/include/QtCore/qutf8stringview.h:45:8: note: 'IsContainerCompatibleWithQUtf8StringView' declared here
2024-10-26T02:20:51.7851140Z struct IsContainerCompatibleWithQUtf8StringView : std::false_type {};
2024-10-26T02:20:51.7851190Z        ^

@ipatch ipatch self-assigned this Oct 26, 2024
@ipatch
Copy link
Collaborator Author

ipatch commented Oct 26, 2024

a frew updates on the error messages when building using the CI, in no particular order. copy pasted from the raw logs.

2024-10-26T17:57:57.1044650Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.1045620Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.1046300Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.1046880Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:22:
2024-10-26T17:57:57.1047450Z In file included from /opt/homebrew/opt/qt/include/QtCore/qanystringview.h:9:
2024-10-26T17:57:57.1048270Z /opt/homebrew/opt/qt/include/QtCore/qutf8stringview.h:310:30: error: no member named 'equalStrings' in namespace 'QtPrivate'
2024-10-26T17:57:57.1049020Z                && QtPrivate::equalStrings(QBasicUtf8StringView<false>(lhs.data(), lhs.size()),
2024-10-26T17:57:57.1049410Z                   ~~~~~~~~~~~^
2024-10-26T17:57:57.1049960Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.1050780Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.1051430Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.1052010Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:22:
2024-10-26T17:57:57.1053270Z /opt/homebrew/opt/qt/include/QtCore/qanystringview.h:81:20: error: no template named 'IsContainerCompatibleWithQStringView' in namespace 'QtPrivate'; did you mean 'IsContainerCompatibleWithQUtf8StringView'?
2024-10-26T17:57:57.1054360Z         QtPrivate::IsContainerCompatibleWithQStringView<T>,
2024-10-26T17:57:57.1054740Z         ~~~~~~~~~~~^

2024-10-26T17:57:57.1069580Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.1070540Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.1071200Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.1071790Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:22:
2024-10-26T17:57:57.1073080Z /opt/homebrew/opt/qt/include/QtCore/qanystringview.h:101:30: error: no template named 'IsContainerCompatibleWithQStringView' in namespace 'QtPrivate'; did you mean 'IsContainerCompatibleWithQUtf8StringView'?
2024-10-26T17:57:57.1074220Z     static_assert(QtPrivate::IsContainerCompatibleWithQStringView<QAnyStringView>::value == false);
2024-10-26T17:57:57.1074670Z                   ~~~~~~~~~~~^
2024-10-26T17:57:57.1075320Z /opt/homebrew/opt/qt/include/QtCore/qutf8stringview.h:45:8: note: 'IsContainerCompatibleWithQUtf8StringView' declared here
2024-10-26T17:57:57.1076060Z struct IsContainerCompatibleWithQUtf8StringView : std::false_type {};
2024-10-26T17:57:57.1076680Z        ^
2024-10-26T17:57:57.1077430Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.1078280Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.1078940Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.1079520Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:22:
2024-10-26T17:57:57.1080280Z /opt/homebrew/opt/qt/include/QtCore/qanystringview.h:211:67: error: no member named 'fromUcs4' in 'QChar'
2024-10-26T17:57:57.1081010Z     template <typename Char, typename Container = decltype(QChar::fromUcs4(U'x')),
2024-10-26T17:57:57.1081430Z                                                            ~~~~~~~^
2024-10-26T17:57:57.1082360Z /opt/homebrew/opt/qt/include/QtCore/qanystringview.h:141:40: error: cannot initialize a parameter of type 'const ushort *' (aka 'const unsigned short *') with an rvalue of type 'const char16_t *'
2024-10-26T17:57:57.1083260Z             return QtPrivate::qustrlen(reinterpret_cast<const char16_t*>(str));
2024-10-26T17:57:57.1083650Z                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-10-26T17:57:57.1084250Z /opt/homebrew/opt/qt@5/include/QtCore/qstringalgorithms.h:59:87: note: passing argument to parameter 'str' here
2024-10-26T17:57:57.1085120Z Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype qustrlen(const ushort *str) noexcept;
2024-10-26T17:57:57.1085670Z                                                                                       ^
2024-10-26T17:57:57.1086310Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.1087120Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.1087900Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.1088500Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:22:
2024-10-26T17:57:57.1089510Z /opt/homebrew/opt/qt/include/QtCore/qanystringview.h:193:51: error: no member named 'lengthHelperContainer' in namespace 'QtPrivate'; did you mean 'lengthHelperPointer'?
2024-10-26T17:57:57.1090380Z         : QAnyStringView(std::data(c), QtPrivate::lengthHelperContainer(c)) {}
2024-10-26T17:57:57.1090770Z                                        ~~~~~~~~~~~^
2024-10-26T17:57:57.1091350Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:68:28: note: 'lengthHelperPointer' declared here
2024-10-26T17:57:57.1092000Z static constexpr qsizetype lengthHelperPointer(const Char *data) noexcept
2024-10-26T17:57:57.1092370Z                            ^
2024-10-26T17:57:57.1092720Z fatal error: too many errors emitted, stopping now [-ferror-limit=]
2024-10-26T17:57:57.1093070Z 20 errors generated.
2024-10-26T17:57:57.1093400Z make[2]: *** [src/Base/CMakeFiles/FreeCADBase.dir/Builder3D.cpp.o] Error 1
2024-10-26T17:57:57.1093850Z make[1]: *** [src/Base/CMakeFiles/FreeCADBase.dir/all] Error 2
2024-10-26T17:57:57.1094210Z make[1]: *** Waiting for unfinished jobs....

2024-10-26T17:57:57.0962840Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.0963790Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.0964450Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.0965080Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:16:
2024-10-26T17:57:57.0965710Z In file included from /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:6:
2024-10-26T17:57:57.0966530Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayalgorithms.h:98:15: error: functions that differ only in their return type cannot be overloaded
2024-10-26T17:57:57.0967200Z inline size_t qstrlen(const char *str)
2024-10-26T17:57:57.0967450Z        ~~~~~~ ^
2024-10-26T17:57:57.0967830Z /opt/homebrew/opt/qt@5/include/QtCore/qbytearray.h:73:13: note: previous definition is here
2024-10-26T17:57:57.0968300Z inline uint qstrlen(const char *str)
2024-10-26T17:57:57.0968540Z        ~~~~ ^
2024-10-26T17:57:57.0969050Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.0969870Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.0970530Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.0971110Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:16:
2024-10-26T17:57:57.0971660Z In file included from /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:6:
2024-10-26T17:57:57.0972350Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayalgorithms.h:131:78: error: redefinition of default argument
2024-10-26T17:57:57.0973240Z Q_CORE_EXPORT int qstrnicmp(const char *, qsizetype, const char *, qsizetype = -1);
2024-10-26T17:57:57.0973700Z                                                                              ^ ~~
2024-10-26T17:57:57.0974210Z /opt/homebrew/opt/qt@5/include/QtCore/qbytearray.h:102:78: note: previous definition is here
2024-10-26T17:57:57.0974860Z Q_CORE_EXPORT int qstrnicmp(const char *, qsizetype, const char *, qsizetype = -1);
2024-10-26T17:57:57.0975290Z                                                                              ^ ~~
2024-10-26T17:57:57.0975890Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.0976690Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.0977360Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.0977940Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:16:
2024-10-26T17:57:57.0978680Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:305:29: error: unknown type name 'Q_IMPLICIT'
2024-10-26T17:57:57.0979320Z     [[nodiscard]] constexpr Q_IMPLICIT operator std::string_view() const noexcept
2024-10-26T17:57:57.0979690Z                             ^
2024-10-26T17:57:57.0980500Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:209:57: error: cannot initialize a parameter of type 'int *' with an rvalue of type 'qsizetype *' (aka 'long long *')
2024-10-26T17:57:57.0981330Z         auto result = QContainerImplHelper::mid(size(), &pos, &n);
2024-10-26T17:57:57.0981690Z                                                         ^~~~
2024-10-26T17:57:57.0982310Z /opt/homebrew/opt/qt@5/include/QtCore/qarraydata.h:351:51: note: passing argument to parameter 'position' here
2024-10-26T17:57:57.0982950Z     static CutResult mid(int originalLength, int *position, int *length);
2024-10-26T17:57:57.0983330Z                                                   ^
2024-10-26T17:57:57.0983930Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.0984850Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.0985530Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.0986090Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T17:57:57.0986660Z In file included from /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:12:
2024-10-26T17:57:57.0987390Z /opt/homebrew/opt/qt/include/QtCore/qtversionchecks.h:38:4: error: Qt major version not 6 or 7
2024-10-26T17:57:57.0987880Z #  error Qt major version not 6 or 7
2024-10-26T17:57:57.0988100Z    ^
2024-10-26T17:57:57.0988600Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.0989420Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.0990070Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.0990660Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T17:57:57.0991710Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:147:14: error: too many arguments to function call, expected 2, have 3; did you mean 'boost_swap_impl::count'?
2024-10-26T17:57:57.0992470Z     { return QtPrivate::count(*this, str, cs); }
2024-10-26T17:57:57.0992740Z              ^~~~~~~~~
2024-10-26T17:57:57.0993440Z /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__algorithm/count.h:25:5: note: 'boost_swap_impl::count' declared here
2024-10-26T17:57:57.0994210Z     count(_InputIterator __first, _InputIterator __last, const _Tp& __value) {
2024-10-26T17:57:57.0994570Z     ^
2024-10-26T17:57:57.0995120Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.0995950Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.0996600Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.0997180Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T17:57:57.0998200Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:149:14: error: too many arguments to function call, expected 2, have 3; did you mean 'boost_swap_impl::count'?
2024-10-26T17:57:57.0998950Z     { return QtPrivate::count(*this, str, cs); }
2024-10-26T17:57:57.0999210Z              ^~~~~~~~~
2024-10-26T17:57:57.0999870Z /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__algorithm/count.h:25:5: note: 'boost_swap_impl::count' declared here
2024-10-26T17:57:57.1000610Z     count(_InputIterator __first, _InputIterator __last, const _Tp& __value) {
2024-10-26T17:57:57.1000950Z     ^
2024-10-26T17:57:57.1001420Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.1002210Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.1002860Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.1003430Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T17:57:57.1004440Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:151:14: error: too many arguments to function call, expected 2, have 3; did you mean 'boost_swap_impl::count'?
2024-10-26T17:57:57.1005210Z     { return QtPrivate::count(*this, ch, cs); }
2024-10-26T17:57:57.1005470Z              ^~~~~~~~~
2024-10-26T17:57:57.1006160Z /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__algorithm/count.h:25:5: note: 'boost_swap_impl::count' declared here
2024-10-26T17:57:57.1007000Z     count(_InputIterator __first, _InputIterator __last, const _Tp& __value) {
2024-10-26T17:57:57.1007380Z     ^
2024-10-26T17:57:57.1007870Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.1008690Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.1009340Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.1009950Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T17:57:57.1010960Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:210:57: error: cannot initialize a parameter of type 'int *' with an rvalue of type 'qsizetype *' (aka 'long long *')
2024-10-26T17:57:57.1011810Z         auto result = QContainerImplHelper::mid(size(), &pos, &n);
2024-10-26T17:57:57.1012170Z                                                         ^~~~
2024-10-26T17:57:57.1012780Z /opt/homebrew/opt/qt@5/include/QtCore/qarraydata.h:351:51: note: passing argument to parameter 'position' here
2024-10-26T17:57:57.1013480Z     static CutResult mid(int originalLength, int *position, int *length);
2024-10-26T17:57:57.1013870Z                                                   ^
2024-10-26T17:57:57.1014460Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.1015280Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.1015940Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.1016520Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T17:57:57.1017410Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:286:53: error: no member named 'equalStrings' in namespace 'QtPrivate'
2024-10-26T17:57:57.1018150Z     { return lhs.size() == rhs.size() && QtPrivate::equalStrings(lhs, rhs); }
2024-10-26T17:57:57.1018530Z                                          ~~~~~~~~~~~^
2024-10-26T17:57:57.1019220Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:294:53: error: no member named 'equalStrings' in namespace 'QtPrivate'
2024-10-26T17:57:57.1019930Z     { return lhs.size() == rhs.size() && QtPrivate::equalStrings(lhs, rhs); }
2024-10-26T17:57:57.1020310Z                                          ~~~~~~~~~~~^
2024-10-26T17:57:57.1020910Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T17:57:57.1021720Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20715-9ugv47/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T17:57:57.1022410Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T17:57:57.1029020Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:22:
2024-10-26T17:57:57.1029590Z In file included from /opt/homebrew/opt/qt/include/QtCore/qanystringview.h:9:
2024-10-26T17:57:57.1030300Z /opt/homebrew/opt/qt/include/QtCore/qutf8stringview.h:278:19: error: unknown type name 'Q_IMPLICIT'
2024-10-26T17:57:57.1030950Z     [[nodiscard]] Q_IMPLICIT operator std::basic_string_view<storage_type>() const noexcept
2024-10-26T17:57:57.1031330Z                   ^
2024-10-26T17:57:57.1031880Z /opt/homebrew/opt/qt/include/QtCore/qutf8stringview.h:303:16: error: no matching function for call to 'compareStrings'
2024-10-26T17:57:57.1032610Z         return QtPrivate::compareStrings(QBasicUtf8StringView<false>(lhs.data(), lhs.size()),
2024-10-26T17:57:57.1033020Z                ^~~~~~~~~~~~~~~~~~~~~~~~~

@ipatch
Copy link
Collaborator Author

ipatch commented Oct 26, 2024

2024-10-26T18:27:06.7199720Z cd /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/build/src/3rdParty/OndselSolver/OndselSolver && /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DBOOST_PP_VARIADICS=1 -DGL_SILENCE_DEPRECATION -DHAVE_CONFIG_H -DOndselSolver_EXPORTS -DPYCXX_6_2_COMPATIBILITY -DQT_NO_KEYWORDS -DTEST_DATA_PATH=\"/tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/3rdParty/OndselSolver/testapp\" -D_OCC64 -I/tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/build/src/3rdParty/OndselSolver/OndselSolver/OndselSolver_autogen/include -I/tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/build -I/tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/build/src -I/tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src -Wall -Wextra -Wpedantic -Wno-write-strings  -Wno-undefined-var-template -O2 -g -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Applications/Xcode_15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=14.7 -fPIC -MD -MT src/3rdParty/OndselSolver/OndselSolver/CMakeFiles/OndselSolver.dir/ASMTCylSphJoint.cpp.o -MF CMakeFiles/OndselSolver.dir/ASMTCylSphJoint.cpp.o.d -o CMakeFiles/OndselSolver.dir/ASMTCylSphJoint.cpp.o -c /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/3rdParty/OndselSolver/OndselSolver/ASMTCylSphJoint.cpp
2024-10-26T18:27:06.7200190Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T18:27:06.7200560Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T18:27:06.7200790Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T18:27:06.7201170Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:16:
2024-10-26T18:27:06.7201400Z In file included from /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:6:
2024-10-26T18:27:06.7202630Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayalgorithms.h:98:15: error: functions that differ only in their return type cannot be overloaded
2024-10-26T18:27:06.7202770Z inline size_t qstrlen(const char *str)
2024-10-26T18:27:06.7202850Z        ~~~~~~ ^
2024-10-26T18:27:06.7203140Z /opt/homebrew/opt/qt@5/include/QtCore/qbytearray.h:73:13: note: previous definition is here
2024-10-26T18:27:06.7203220Z inline uint qstrlen(const char *str)
2024-10-26T18:27:06.7203280Z        ~~~~ ^
2024-10-26T18:27:06.7203790Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T18:27:06.7204170Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T18:27:06.7204410Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T18:27:06.7204660Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:16:
2024-10-26T18:27:06.7204880Z In file included from /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:6:
2024-10-26T18:27:06.7205260Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayalgorithms.h:131:78: error: redefinition of default argument
2024-10-26T18:27:06.7205730Z Q_CORE_EXPORT int qstrnicmp(const char *, qsizetype, const char *, qsizetype = -1);
2024-10-26T18:27:06.7205850Z                                                                              ^ ~~
2024-10-26T18:27:06.7206130Z /opt/homebrew/opt/qt@5/include/QtCore/qbytearray.h:102:78: note: previous definition is here
2024-10-26T18:27:06.7206390Z Q_CORE_EXPORT int qstrnicmp(const char *, qsizetype, const char *, qsizetype = -1);
2024-10-26T18:27:06.7206500Z                                                                              ^ ~~
2024-10-26T18:27:06.7206890Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T18:27:06.7207330Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T18:27:06.7207560Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T18:27:06.7207850Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:16:
2024-10-26T18:27:06.7208220Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:305:29: error: unknown type name 'Q_IMPLICIT'
2024-10-26T18:27:06.7208460Z     [[nodiscard]] constexpr Q_IMPLICIT operator std::string_view() const noexcept
2024-10-26T18:27:06.7208530Z                             ^
2024-10-26T18:27:06.7209160Z /opt/homebrew/opt/qt/include/QtCore/qbytearrayview.h:209:57: error: cannot initialize a parameter of type 'int *' with an rvalue of type 'qsizetype *' (aka 'long long *')
2024-10-26T18:27:06.7209320Z         auto result = QContainerImplHelper::mid(size(), &pos, &n);
2024-10-26T18:27:06.7209510Z                                                         ^~~~
2024-10-26T18:27:06.7209910Z /opt/homebrew/opt/qt@5/include/QtCore/qarraydata.h:351:51: note: passing argument to parameter 'position' here
2024-10-26T18:27:06.7210100Z     static CutResult mid(int originalLength, int *position, int *length);
2024-10-26T18:27:06.7210190Z                                                   ^
2024-10-26T18:27:06.7210580Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T18:27:06.7210940Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T18:27:06.7211170Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T18:27:06.7211400Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T18:27:06.7211630Z In file included from /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:12:
2024-10-26T18:27:06.7211930Z /opt/homebrew/opt/qt/include/QtCore/qtversionchecks.h:38:4: error: Qt major version not 6 or 7
2024-10-26T18:27:06.7212020Z #  error Qt major version not 6 or 7
2024-10-26T18:27:06.7212070Z    ^
2024-10-26T18:27:06.7212470Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
2024-10-26T18:27:06.7212830Z In file included from /tmp/freecadA1.0.0_rc2_py312_qt6-20241026-20762-2ha1wh/FreeCAD-1.0rc2/src/Base/Tools.h:37:
2024-10-26T18:27:06.7213050Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/QString:1:
2024-10-26T18:27:06.7213290Z In file included from /opt/homebrew/opt/qt/lib/QtCore.framework/Headers/qstring.h:18:
2024-10-26T18:27:06.7214170Z /opt/homebrew/opt/qt/include/QtCore/qlatin1stringview.h:147:14: error: too many arguments to function call, expected 2, have 3; did you mean 'boost_swap_impl::count'?
2024-10-26T18:27:06.7214280Z     { return QtPrivate::count(*this, str, cs); }
2024-10-26T18:27:06.7214350Z              ^~~~~~~~~

@ipatch
Copy link
Collaborator Author

ipatch commented Oct 27, 2024

building locally on macos sequoia i get the below build error,

/Users/chris/homebrew/opt/qt/include/QtCore/qbytearrayalgorithms.h:98:15: error: functions that differ only in their return type cannot be overloaded
   98 | inline size_t qstrlen(const char *str)
      |        ~~~~~~ ^
/Users/chris/homebrew/opt/qt@5/include/QtCore/qbytearray.h:73:13: note: previous definition is here
   73 | inline uint qstrlen(const char *str)
      |        ~~~~ ^
In file included from /Users/chris/tmp/homebrew/freecadA1.0.0_rc2_py312_qt6-20241026-37878-667sbi/FreeCAD-1.0rc2/src/Base/Builder3D.cpp:45:
In file included from /Users/chris/tmp/homebrew/freecadA1.0.0_rc2_py312_qt6-20241026-37878-667sbi/FreeCAD-1.0rc2/src/Base/Tools.h:37:

@ipatch
Copy link
Collaborator Author

ipatch commented Oct 29, 2024

building locally with mac-mini-fpa box the freecad exe fail to load unless the below env var is set seen in the below command output,

export QT_PLUGIN_PATH=/opt/homebrew/opt/qt/plugins
╰─λ ~/apps/freecads/1.0rc2_qt6/MacOS/FreeCAD                                                                            0 (1.516s)
FreeCAD 1.0.0, Libs: 1.0.0RC2R38806 (Git)
(C) 2001-2024 FreeCAD contributors
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.

(qt.qpa.plugin) Could not find the Qt platform plugin "cocoa" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

fish: Job 1, '~/apps/freecads/1.0rc2_qt6/MacO…' terminated by signal SIGABRT (Abort)

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

Successfully merging this pull request may close these issues.

1 participant