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

Qt 5.15 builds fail with boost type error, starting 2024-04, with Xcode 15.3 #266

Closed
3 of 6 tasks
apjanke opened this issue Apr 7, 2024 · 15 comments
Closed
3 of 6 tasks
Assignees
Labels
bug Something isn't working Qt Related to Qt toolkit
Milestone

Comments

@apjanke
Copy link
Contributor

apjanke commented Apr 7, 2024

Starting in 2024-04, all my builds of Qt 5.15 started failing with compile errors, including the 5.15.12 that I'm pretty sure was previously working and used for the 8.4 alpha and beta builds. It's happening on core qt@5 too, not just the special octapp formulae. Both AS and Intel, latest macOS and Xcode.

bundle_octave_app run at Mon Apr  8 02:43:19 EDT 2024 on angharad.local
  Xcode 15.3, macOS 14.4.1, arch x86_64 (Intel)
  Apple clang version 15.0.0 (clang-1500.3.9.4)
  Target: x86_64-apple-darwin23.4.0

This is blocking any further 8.x builds and releases, since Octave 8.x doesn't support Qt 6 and needs Qt 5.

The error looks like a boost-related type error in some qt C++ code. I see the same error in every failed build where I managed to find the error in the logs (amongst all the parallel jobs output interleaving).

In file included from src/mbgl/annotation/annotation_manager.cpp:1:
In file included from src/mbgl/annotation/annotation_manager.hpp:4:
[...]
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/detail/int_float_mixture.hpp:19:
In file included from deps/boost/1.65.1/include/boost/mpl/integral_c.hpp:32:
deps/boost/1.65.1/include/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]
    typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior;
                              ^
deps/boost/1.65.1/include/boost/mpl/aux_/static_cast.hpp:24:47: note: expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
#   define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr)                                              ^

TODO

  • Create and test a Qt 5.15.11 formula.
  • Test 5.14, 5.13, and 5.12. (Both versioned vanilla qt_<ver> formulae and qt-octapp formulae.)
    • These are all broken builds, and the downloads have been yanked. Probably because these are non-LTS releases that are out of support. I'm going to ignore them and forget about that.
  • Try under older Xcodes: 15.2, 15.1, maybe even a 14.x. Maybe last macOS version, too.
  • Look at the Qt repo and dev forums/doco.
  • Is it possible to use the new Xcode, but an older macOS "API" version?
    • Qt 5.15.x is complaining that it's unsupported under this current API version anyway, because the API is too new.
  • Post bug report to Qt forums or bug tracker, if I think it's something upstream.

References

History

I first noticed this when I got back to doing the 8.4.0 prerelease builds 2024-04-06 after a month or two away. I tried upgrading the qt-octapp_5 formula from 5.15.12 to 5.15.13 (which core qt@5 is on), and it failed with this error. But then I reverted to 5.15.12, and that failed with the same error. And tried the core qt@5 formula, whaddya know, it failed with the same error.

I added a couple more version-specific qt 5.15.x formulae to the octave-app tap for debugging this. qt-octapp_5.15.12 is my old previously-working qt-octapp_5 formula from before I did the upgrade attempt, pulled from git history; qt-octapp_5.15.13 is my attempt at the upgrade, based on matching core qt@5.

I did change my formulae to use system libs instead of qt libs (e.g. -system-libpng instead of -qt-libpng), but that didn't seem to have any effect; it's failing the same way on both.

Symptom details

Example longer error from logs:


/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -DNDEBUG -DQT_IMAGE_DECODERS -DQT_BUILD_MAPBOXGL_LIB -DRAPIDJSON_HAS_STDSTRING=1 -DMBGL_USE_GLES2 -D__QT__ -O3 -ftemplate-depth=1024 -fvisibility-inlines-hidden -fvisibility=hidden -DMBGL_VERSION_REV=\"qt-v1.5.0\" -O2 -fPIC -std=c++1y  -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -mmacosx-version-min=10.13 -w -fvisibility=hidden -fvisibility-inlines-hidden -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DGL_SILENCE_DEPRECATION -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -Ideps/boost/1.65.1 -Ideps/boost/1.65.1/include -Ideps/earcut/0.12.4 -Ideps/earcut/0.12.4/include -Ideps/geojson/0.4.2 -Ideps/geojson/0.4.2/include -Ideps/geojsonvt/6.5.1 -Ideps/geojsonvt/6.5.1/include -Ideps/geometry/0.9.3 -Ideps/geometry/0.9.3/include -Ideps/kdbush/0.1.1-1 -Ideps/kdbush/0.1.1-1/include -Ideps/optional/f27e7908 -Ideps/optional/f27e7908/include -Ideps/polylabel/1.0.3 -Ideps/polylabel/1.0.3/include -Ideps/protozero/1.5.2 -Ideps/protozero/1.5.2/include -Ideps/rapidjson/1.1.0 -Ideps/rapidjson/1.1.0/include -Ideps/shelf-pack/2.1.1 -Ideps/shelf-pack/2.1.1/include -Ideps/supercluster/0.2.2 -Ideps/supercluster/0.2.2/include -Ideps/tao_tuple/28626e99 -Ideps/tao_tuple/28626e99/include -Ideps/unique_resource/cba309e -Ideps/unique_resource/cba309e/include -Ideps/variant/1.1.4 -Ideps/variant/1.1.4/include -Ideps/vector-tile/1.0.2 -Ideps/vector-tile/1.0.2/include -Ideps/wagyu/0.4.3 -Ideps/wagyu/0.4.3/include -Iinclude -Iplatform/default -Iplatform/qt -Iplatform/qt/include -Isrc -Ivendor/nunicode/include -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtNetwork/5.15.13 -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtNetwork/5.15.13/QtNetwork -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtGui/5.15.13 -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtGui/5.15.13/QtGui -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtSql/5.15.13 -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtSql/5.15.13/QtSql -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtCore/5.15.13 -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtCore/5.15.13/QtCore -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtNetwork -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtGui -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtSql -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/include/QtCore -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AGL.framework/Headers -I/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/mkspecs/macx-clang -F/private/tmp/qt-octapp_5-20240406-62693-xphjb1/qt-everywhere-src-5.15.13/qtbase/lib -o .obj/src/mbgl/annotation/annotation_manager.o src/mbgl/annotation/annotation_manager.cpp
In file included from src/mbgl/annotation/annotation_manager.cpp:1:
In file included from src/mbgl/annotation/annotation_manager.hpp:4:
In file included from src/mbgl/annotation/symbol_annotation_impl.hpp:24:
In file included from deps/boost/1.65.1/include/boost/geometry.hpp:17:
In file included from deps/boost/1.65.1/include/boost/geometry/geometry.hpp:43:
In file included from deps/boost/1.65.1/include/boost/geometry/core/radian_access.hpp:26:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/cast.hpp:33:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/converter.hpp:13:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/conversion_traits.hpp:13:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/detail/conversion_traits.hpp:18:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/detail/int_float_mixture.hpp:19:
In file included from deps/boost/1.65.1/include/boost/mpl/integral_c.hpp:32:
deps/boost/1.65.1/include/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]
    typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior;
                              ^
deps/boost/1.65.1/include/boost/mpl/aux_/static_cast.hpp:24:47: note: expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
#   define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr)
                                              ^
In file included from src/mbgl/annotation/annotation_manager.cpp:1:
In file included from src/mbgl/annotation/annotation_manager.hpp:4:
In file included from src/mbgl/annotation/symbol_annotation_impl.hpp:24:
In file included from deps/boost/1.65.1/include/boost/geometry.hpp:17:
In file included from deps/boost/1.65.1/include/boost/geometry/geometry.hpp:43:
In file included from deps/boost/1.65.1/include/boost/geometry/core/radian_access.hpp:26:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/cast.hpp:33:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/converter.hpp:13:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/conversion_traits.hpp:13:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/detail/conversion_traits.hpp:18:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/detail/int_float_mixture.hpp:19:
In file included from deps/boost/1.65.1/include/boost/mpl/integral_c.hpp:32:
deps/boost/1.65.1/include/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]
deps/boost/1.65.1/include/boost/mpl/aux_/static_cast.hpp:24:47: note: expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
#   define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr)
                                              ^
2 errors generated.
make[5]: *** [.obj/src/mbgl/annotation/annotation_manager.o] Error 1
make[4]: *** [sub-------3rdparty-mapbox-gl-native-make_first] Error 2
make[3]: *** [sub-geoservices-make_first] Error 2
make[2]: *** [sub-plugins-make_first] Error 2
make[1]: *** [sub-src-make_first] Error 2
make: *** [module-qtlocation-make_first] Error 2
@apjanke apjanke added the bug Something isn't working label Apr 7, 2024
@apjanke apjanke added this to the 8.4.0 milestone Apr 7, 2024
@apjanke apjanke self-assigned this Apr 7, 2024
@apjanke
Copy link
Contributor Author

apjanke commented Apr 7, 2024

This is probably going to be a big pain to diagnose and fix, between how this seems like a tricky error, qt is big and hard to figure out, and each build takes a long time to run so it's hard to test fixes. So I'm going to skip ahead and focus on getting a 9.1 prerelease out, since 9.x can use Qt 6, and that build is working.

Reference: #259

@apjanke
Copy link
Contributor Author

apjanke commented Apr 7, 2024

What the... now gcc builds are failing too? This is on eilonwy (AS MacBook running macOS 14.4.1) today, when I fired off an Octave.app 9.1 alpha1 build with wip_bundle_octave_app.

[...]
In file included from ../../gcc/cp/mapper-client.cc:31:
In file included from ../../gcc/system.h:227:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/map:2529:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/functional:526:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/vector:321:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_integral.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/locale:202:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:550:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
    _LIBCPP_INLINE_VISIBILITY
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__config:891:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY'
#  define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__config:870:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
          __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE))))
                         ^
In file included from ../../gcc/cp/mapper-client.cc:31:
In file included from ../../gcc/system.h:227:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/map:2529:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/functional:526:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/vector:321:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_integral.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/locale:202:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:551:37: error: expected ';' at end of declaration list
    char_type toupper(char_type __c) const
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:557:48: error: too many arguments provided to function-like macro invocation
    const char_type* toupper(char_type* __low, const char_type* __high) const
                                               ^
../../gcc/../include/safe-ctype.h:146:9: note: macro 'toupper' defined here
#define toupper(c) do_not_use_toupper_with_safe_ctype
        ^
In file included from ../../gcc/cp/mapper-client.cc:31:
In file included from ../../gcc/system.h:227:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/map:2529:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/functional:526:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/vector:321:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_integral.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/locale:202:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:569:48: error: too many arguments provided to function-like macro invocation
    const char_type* tolower(char_type* __low, const char_type* __high) const
                                               ^
../../gcc/../include/safe-ctype.h:148:9: note: macro 'tolower' defined here
#define tolower(c) do_not_use_tolower_with_safe_ctype
        ^
In file included from ../../gcc/cp/mapper-client.cc:31:
In file included from ../../gcc/system.h:227:
[...]

Error: gcc 13.2.0 did not build
Logs:
     /Users/janke/Library/Logs/Homebrew/gcc/00.options.out
     /Users/janke/Library/Logs/Homebrew/gcc/01.configure
     /Users/janke/Library/Logs/Homebrew/gcc/01.configure.cc
     /Users/janke/Library/Logs/Homebrew/gcc/02.make
     /Users/janke/Library/Logs/Homebrew/gcc/02.make.cc
     /Users/janke/Library/Logs/Homebrew/gcc/build
Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!

These open issues may also help:
gcc: error in catching C++ exceptions https://github.com/Homebrew/homebrew-core/issues/162714

Here's the build logs from a rerun of that: 2024-04-07_16-15 - octapp 9.1 gcc 13 fail - eilonwy AS.zip. In the gcc make log, I see several occurrences of the above errors; that's probably just copies from the various parallel make jobs hitting similar or identical issues.

The failure happened on both AS and Intel.

Here's logs from brew reinstall --build-from-source gcc on AS: 2024-04-07_16-32 - core gcc reinstall fail - eilonwy AS.zip

Here's single-thread logs from HOMEBREW_MAKE_JOBS=1 brew reinstall --build-from-source gcc on AS: 2024-04-07_16-45 - core gcc failure single-thread - eilonwy AS.zip

@mmuetzel
Copy link

mmuetzel commented Apr 8, 2024

Regarding the first error: That looks like an warning that is escalated to an error where it might just compile as is with defined behavior.
Does it work if you add -Wno-enum-constexpr-conversion to CXXFLAGS?

@manuelpagliuca
Copy link

@mmuetzel I'm having the same issue but I'm not using Qt, I tried using that compiler flag but no positive results.

@apjanke
Copy link
Contributor Author

apjanke commented Apr 8, 2024

Ah, that seems like a promising lead.

I tried setting up a test build using -Wno-enum-constexpr-conversion in CXXFLAGS. I reverted my qt-5.15 formula to 5.15.13 and matched it up to the core Homebrew qt@5 formula (here) so it was a clean base for testing, and then added -Wno-enum-constexpr-conversion to CXXFLAGS using brew's env var setting mechanism.

image

Added an "octapp_helper" tool (here) to make it easier to grab and share the build logs.

Ran a test build of that on my Intel Mac "angharad".

bundle_octave_app run at Mon Apr  8 [...time...] EDT 2024 on angharad.local
  Xcode 15.3, macOS 14.4.1, arch x86_64 (Intel)
  bundle_octave_app from git commit bf7d2ec

Here's the build logs:

Doesn't seem to have made a difference. The build is still failing, and per the tail of the single-job build log, it looks like that -Wenum-constexpr-conversion thing was the cause, since that's the last error shown before the build job terminates. I don't know if that's because the -Wno-... didn't actually make this not be an error, or if my attempt to set CXXFLAGS in the formula didn't work correctly, or what.

Maybe there's something related to -Werror here too, and I need to do the inverse of that? Or maybe clang++ takes its -Woptions in a different manner?

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -DNDEBUG -DQT_IMAGE_DECODERS -DQT_BUILD_MAPBOXGL_LIB -DRAPIDJSON_HAS_STDSTRING=1 -DMBGL_USE_GLES2 -D__QT__ -O3 -ftemplate-depth=1024 -fvisibility-inlines-hidden -fvisibility=hidden -DMBGL_VERSION_REV=\"qt-v1.5.0\" -O2 -fPIC -std=c++1y  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -mmacosx-version-min=10.13 -w -fvisibility=hidden -fvisibility-inlines-hidden -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DGL_SILENCE_DEPRECATION -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -Ideps/boost/1.65.1 -Ideps/boost/1.65.1/include -Ideps/earcut/0.12.4 -Ideps/earcut/0.12.4/include -Ideps/geojson/0.4.2 -Ideps/geojson/0.4.2/include -Ideps/geojsonvt/6.5.1 -Ideps/geojsonvt/6.5.1/include -Ideps/geometry/0.9.3 -Ideps/geometry/0.9.3/include -Ideps/kdbush/0.1.1-1 -Ideps/kdbush/0.1.1-1/include -Ideps/optional/f27e7908 -Ideps/optional/f27e7908/include -Ideps/polylabel/1.0.3 -Ideps/polylabel/1.0.3/include -Ideps/protozero/1.5.2 -Ideps/protozero/1.5.2/include -Ideps/rapidjson/1.1.0 -Ideps/rapidjson/1.1.0/include -Ideps/shelf-pack/2.1.1 -Ideps/shelf-pack/2.1.1/include -Ideps/supercluster/0.2.2 -Ideps/supercluster/0.2.2/include -Ideps/tao_tuple/28626e99 -Ideps/tao_tuple/28626e99/include -Ideps/unique_resource/cba309e -Ideps/unique_resource/cba309e/include -Ideps/variant/1.1.4 -Ideps/variant/1.1.4/include -Ideps/vector-tile/1.0.2 -Ideps/vector-tile/1.0.2/include -Ideps/wagyu/0.4.3 -Ideps/wagyu/0.4.3/include -Iinclude -Iplatform/default -Iplatform/qt -Iplatform/qt/include -Isrc -Ivendor/nunicode/include -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtNetwork/5.15.13 -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtNetwork/5.15.13/QtNetwork -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtGui/5.15.13 -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtGui/5.15.13/QtGui -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtSql/5.15.13 -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtSql/5.15.13/QtSql -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtCore/5.15.13 -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtCore/5.15.13/QtCore -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtNetwork -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtGui -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtSql -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/include/QtCore -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AGL.framework/Headers -I/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/mkspecs/macx-clang -F/private/tmp/qt_5.15-20240408-96436-7m3blc/qt-everywhere-src-5.15.13/qtbase/lib -o .obj/src/mbgl/annotation/annotation_manager.o src/mbgl/annotation/annotation_manager.cpp
In file included from src/mbgl/annotation/annotation_manager.cpp:1:
In file included from src/mbgl/annotation/annotation_manager.hpp:4:
In file included from src/mbgl/annotation/symbol_annotation_impl.hpp:24:
In file included from deps/boost/1.65.1/include/boost/geometry.hpp:17:
In file included from deps/boost/1.65.1/include/boost/geometry/geometry.hpp:43:
In file included from deps/boost/1.65.1/include/boost/geometry/core/radian_access.hpp:26:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/cast.hpp:33:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/converter.hpp:13:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/conversion_traits.hpp:13:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/detail/conversion_traits.hpp:18:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/detail/int_float_mixture.hpp:19:
In file included from deps/boost/1.65.1/include/boost/mpl/integral_c.hpp:32:
deps/boost/1.65.1/include/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]
    typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior;
                              ^
deps/boost/1.65.1/include/boost/mpl/aux_/static_cast.hpp:24:47: note: expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
#   define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr)
                                              ^
In file included from src/mbgl/annotation/annotation_manager.cpp:1:
In file included from src/mbgl/annotation/annotation_manager.hpp:4:
In file included from src/mbgl/annotation/symbol_annotation_impl.hpp:24:
In file included from deps/boost/1.65.1/include/boost/geometry.hpp:17:
In file included from deps/boost/1.65.1/include/boost/geometry/geometry.hpp:43:
In file included from deps/boost/1.65.1/include/boost/geometry/core/radian_access.hpp:26:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/cast.hpp:33:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/converter.hpp:13:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/conversion_traits.hpp:13:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/detail/conversion_traits.hpp:18:
In file included from deps/boost/1.65.1/include/boost/numeric/conversion/detail/int_float_mixture.hpp:19:
In file included from deps/boost/1.65.1/include/boost/mpl/integral_c.hpp:32:
deps/boost/1.65.1/include/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion]
deps/boost/1.65.1/include/boost/mpl/aux_/static_cast.hpp:24:47: note: expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
#   define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr)
                                              ^
2 errors generated.
make[5]: *** [.obj/src/mbgl/annotation/annotation_manager.o] Error 1
make[4]: *** [sub-------3rdparty-mapbox-gl-native-make_first] Error 2
make[3]: *** [sub-geoservices-make_first] Error 2
make[2]: *** [sub-plugins-make_first] Error 2
make[1]: *** [sub-src-make_first] Error 2
make: *** [module-qtlocation-make_first] Error 2

BTW, have I ever mentioned how I think C/C++ build logs and tools are a bit suboptimal? The regular build log for Qt here is 50,000 lines long, with ~12,000 warnings and errors to sort through, if I'm reading this right.

[qt_5.15] $ pwd
/Users/janke/repos/octave-app-bundler/build/logs/brew-capture/2024-04-08_05-30-56 - qt Wno-enum-constexpr try 1 - angharad x86_64/qt_5.15
[qt_5.15] $ file="02.make"; echo ''; echo "File: $file"; echo "File size in lines:"; cat "$file" | wc -l; echo ''; echo "Lines with patterns:"; for pat in warning error 'warning\|error'; do echo  "pattern: '${pat}': "; grep -i "$pat" "$file" | wc -l; done; echo ''

File: 02.make
File size in lines:
   49563

Lines with patterns:
pattern: 'warning':
   11002
pattern: 'error':
    6631
pattern: 'warning\|error':
   12365

[qt_5.15] $

@mmuetzel
Copy link

mmuetzel commented Apr 8, 2024

It doesn't look like that flag got included in that build command.

I misread earlier and thought you'd seen that error while building Octave. If I understand correctly, you are seeing it while building Qt?

I don't know how to read these .rb files. Nor do I know Qt5's build system. But they probably have some way to insert compile flags somehow...

@mmuetzel
Copy link

mmuetzel commented Apr 8, 2024

Scrolling through their configure script, you might need to add QMAKE_CXXFLAGS and QMAKE_CFLAGS to get past their multi-stage build process...
But I'm not sure I understand what they are doing...

@apjanke
Copy link
Contributor Author

apjanke commented Apr 8, 2024

If I understand correctly, you are seeing it while building Qt?

That's correct. This error happens when I'm building Qt, which is a prerequisite/dependency of Octave, so it is part of the Octave.app ("octapp") build process, which builds not only Octave itself, but also many of its dependencies, because they are all installed into the Octave.app Mac app bundle alongside Octave itself so the whole thing is a self-contained "drag and drop" installable application with no dependencies on external packages that aren't supplied by macOS itself and would need to be installed via Homebrew or MacPorts or build-it-yourself procedures.

All told, an Octave.app build has about 120 packages, with Octave itself being only one of them.

image

I don't know how to read these .rb files. Nor do I know Qt5's build system. But they probably have some way to insert compile flags somehow...

Yeah, this is all Mac Homebrew stuff. The .rb files are Homebrew "formulae", which are the Homebrew-specific build scripts for these packages.

I'll try to figure it out; I have experience with Homebrew. It's just a little fiddly sometimes.

@mmuetzel
Copy link

mmuetzel commented Apr 8, 2024

That sounds similar to what MXE Octave is doing to package Octave for Windows. Build rules and packages are here:
https://hg.octave.org/mxe-octave/file/tip/src

Maybe some of them are helpful? (But Windows probably has a different set of idiosyncrasies from macOS).

Can you build single packages (from the command line)? I find that this is sometimes easier while figuring out which switches are needed, and then translate it to the build scripts when ready. That's especially helpful if the packaging system doesn't support incremental builds of single packages (like what is the case for MXE Octave). (I don't know how Homebrew handles that...)

I'll try to figure it out; I have experience with Homebrew. It's just a little fiddly sometimes.

QMAKE_CFLAGS and QMAKE_CXXFLAGS are probably hot candidates.

@apjanke
Copy link
Contributor Author

apjanke commented Apr 8, 2024

Can you build single packages (from the command line)?

Yes. The qt_5.15 "formula" (build script) I've got there will build just Qt, without all those other Octave.app dependencies. (I just mentioned those to clarify that it's Qt and not Octave whose build is failing here, and to explain why I was doing a Qt build here in the first place.) The problem is that Qt itself is a big ol' gnarly build, and I'd have trouble getting that going through interactive command line use; I need brew's help to build it in the first place. Getting to the point where I could just call ./configure "$CFG_ARGS[@]"; make to build Qt would be a bit of an endeavor. :)

@apjanke
Copy link
Contributor Author

apjanke commented Apr 9, 2024

I think this is at least partly an Xcode 15.3 compatibility problem, and rolling back to Xcode 15.2 or earlier might be a workaround. I tried building with Xcode 15.2 and qt worked, without formula changes. GCC still failed under 15.2; looking in to that.

Xcode 15.3 was released released a few weeks ago, March 5 2024 (according to the Developer Downloads page, between the last time I was working on doing the 8.4.0 Octave.app builds (which were working, including qt and gcc builds of these same versions), and a couple days ago when the failures started happening. I have Xcode installed via the App Store, and I just upgrade it whenever a new one comes out, so I picked up 15.3 right when released, without me (or probably the Homebrew people) testing it much beforehand.

To switch to Xcode 15.2 or earlier versions, I downloaded non-App-Store versions from Apple's Developer Downloads page, unzipped them, added a "-15.x" suffix to their file names (like "Xcode-15.2.app") so they could be installed side by side with the plain Xcode.app, and dropped them in to /Applications. Then I switched my Apple build toolchain to use Xcode 15.2 or 15.1 with sudo xcode-select -s /Applications/Xcode-15.1.app/Contents/Developer. Then re-ran the build with brew as normal, like brew install qt_5.15 or brew reinstall --build-from-source gcc.

Results:

  • qt-5.15, Xcode 15.1, Intel (angharad): ok
  • qt-5.15, Xcode 15.2, As (eilonwy): ok
  • gcc, Xcode 15.2, As (buildasaur, eilonwy): fail
  • gcc, Xcode 15.2, Intel (angharad): fail (build logs)
  • gcc, Xcode 15.1, As (eilonwy): fail
  • gcc, Xcode 15.1, Intel (angharad): fail (build logs)
  • gcc, Xcode 15.0.1, Intel (angharad): fail (build logs)

Note: Xcode 15.0.1 is old and unsupported, from Homebrew's viewpoint.

Warning: Your Xcode (15.0.1) is outdated.
Please update to Xcode 15.1 (or delete it).

Homebrew's commit history for gcc says it was updated for Xcode 15.2 on 2023-12-09 so I'd think that would work against 15.2; maybe I'm having a different issue with gcc there.

GCC breakage

gcc failed on Xcode 15.1, with these as the some of the last errors:

[...]
clang++ -std=c++11  -fPIE -c  -DIN_GCC_FRONTEND -g -DIN_GCC   -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -fPIE -I. -Icp -I../../gcc -I../../gcc/cp -I../../gcc/../include  -I../../gcc/../libcpp/include -I../../gcc/../libcody -I/usr/local/opt/gmp/include -I/usr/local/opt/mpfr/include -I/usr/local/opt/libmpc/include  -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -I/usr/local/opt/isl/include  -o cp/parser.o -MT cp/parser.o -MMD -MP -MF cp/.deps/parser.TPo ../../gcc/cp/parser.cc
In file included from ../../gcc/cp/mapper-client.cc:31:
In file included from ../../gcc/system.h:227:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/map:2529:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/functional:526:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/vector:321:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_integral.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/locale:202:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:550:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
    _LIBCPP_INLINE_VISIBILITY
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__config:891:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY'
#  define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__config:870:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
          __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE))))
                         ^
In file included from ../../gcc/cp/mapper-client.cc:31:
In file included from ../../gcc/system.h:227:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/map:2529:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/functional:526:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/vector:321:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_integral.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/locale:202:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:551:37: error: expected ';' at end of declaration list
    char_type toupper(char_type __c) const
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:557:48: error: too many arguments provided to function-like macro invocation
    const char_type* toupper(char_type* __low, const char_type* __high) const
                                               ^
../../gcc/../include/safe-ctype.h:146:9: note: macro 'toupper' defined here
#define toupper(c) do_not_use_toupper_with_safe_ctype
        ^
[...]
In file included from ../../gcc/cp/module.cc:212:
In file included from ../../gcc/system.h:233:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/vector:321:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_integral.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/locale:202:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:805:5: error: expected expression
    return std::use_facet<ctype<_CharT> >(__loc).is(ctype_base::print, __c);
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:806:2: error: expected ';' at end of declaration
}
 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:811:21: error: too many arguments provided to function-like macro invocation
iscntrl(_CharT __c, const locale& __loc)
                    ^
../../gcc/../include/safe-ctype.h:128:9: note: macro 'iscntrl' defined here
#define iscntrl(c) do_not_use_iscntrl_with_safe_ctype
        ^
In file included from ../../gcc/cp/module.cc:212:
In file included from ../../gcc/system.h:233:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/vector:321:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_integral.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/locale:202:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:811:1: error: declaration conflicts with target of using declaration already in scope
iscntrl(_CharT __c, const locale& __loc)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_ctype.h:230:1: note: target of using declaration
iscntrl(int _c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/cctype:115:9: note: using declaration
using ::iscntrl _LIBCPP_USING_IF_EXISTS;
        ^
In file included from ../../gcc/cp/module.cc:212:
In file included from ../../gcc/system.h:233:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/vector:321:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__format/formatter_integral.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/locale:202:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:813:5: error: expected expression
    return std::use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Kinda looks like a duplicate header include w/o an include guard issue? Or maybe that first error or two ("attribute only applies..." and "error: expected ';' at end of declaration list") were like syntax problems, and they messed up the rest of the file, causing the subsequent dupe-definition problems or something. Build logs for the failed gcc on Xcode 15.1:

2024-04-08_20-32-23 - gcc fail w Xcode 15.1 - angharad x86_64.zip

Plans

Think I'll just roll back to Xcode 15.2 or 15.1 for building Octave.app, and wait until the core Homebrew maintainers sort stuff out for Xcode 15.3. If I can get all these building against an older Xcode, anyway. Trying Xcode 15.0.1 next.

Core Homebrew will maybe get to fixing these before too long, maybe: whenever any dependency of a formula is updated, the dependent formulas need to be rebuilt, so we won't have to wait for a new version of Qt or GCC themselves.

Homebrew doesn't like getting bug reports about build-from-source problems or non-default-prefix installations, but since this is going to affect their own builds too I think, they might appreciate hearing about it in advance. I might try testing this by rebuilding all the packages used by Octave.app with Xcode 15.3 (in my regular Homebrew in the default prefix location, which will allow rebuilding one formula at a time against installed-from-bottle dependencies, so I can test all of them) and drop an "FYI" bug report listing the ones that fail.

@apjanke apjanke changed the title Qt 5.15 builds fail with boost type error starting 2024-04 Qt 5.15 builds fail with boost type error, starting 2024-04, with Xcode 15.3 Apr 9, 2024
@apjanke
Copy link
Contributor Author

apjanke commented Apr 9, 2024

I split the GCC failure out to a separate ticket, since its cause may be different because rolling back to Xcode 15.2 didn't fix that build for me:

@apjanke
Copy link
Contributor Author

apjanke commented Apr 9, 2024

I added a qt-octapp_5.15.11 formula for testing the older Qt 5.15.11.

Test results: With Xcode 15.3 Intel: fail; 15.3 As: fail; 15.2 Intel: ok; 15.1 As: ok. That's the same pattern as with the newer Qt 5.15s: broken on Xcode 15.3, ok on earlier versions. That's consistent with the theory that it's incompatible with Xcode 15.3, and my Xcode upgrade is what caused these failures.

@apjanke
Copy link
Contributor Author

apjanke commented Apr 9, 2024

Testing earlier versions:

  • qt_5.14

Note: HTTP 404 for qt 5.14.2; it fell back to 5.14.1. Problem in my formula?

brew install qt_5.14
==> Fetching octave-app/octave-app/qt_5.14
==> Downloading https://download.qt.io/official_releases/qt/5.14/5.14.2/single/qt-everywhere-src-5.14.2.tar.xz
curl: (22) The requested URL returned error: 404

Trying a mirror...
==> Downloading https://qt.mirror.constant.com/archive/qt/5.14/5.14.2/single/qt-everywhere-src-5.14.2.tar.xz
curl: (22) The requested URL returned error: 404

Trying a mirror...
==> Downloading https://ftp.osuosl.org/pub/blfs/conglomeration/qt5/qt-everywhere-src-5.14.1.tar.xz
==> Downloading from https://ftp2.osuosl.org/pub/blfs/conglomeration/qt5/qt-everywhere-src-5.14.1.tar.xz
####                                                                                                                                                   ####                                                                                                                                                   ####

Looks like these older Qt releases - 5.14, 5.13, and 5.12 - are out of support, and Qt has even yanked the downloads from their site. I can't get any of them to build.

I'm going to just forget about these and ignore the old versions. And even delete them from our tap repo.

@apjanke
Copy link
Contributor Author

apjanke commented Apr 15, 2024

Looks like the downgrade worked. With Xcode 15.2 and Xcode CLT 15.1, I got a successful build on both Intel and AS. I posted that as 8.4.0 beta3.

Considering this closed. Will just continue to use the older Xcode until The core Homebrew builds are fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Qt Related to Qt toolkit
Projects
Archived in project
Development

No branches or pull requests

3 participants