Skip to content

Conversation

@fanquake
Copy link
Member

@fanquake fanquake commented Aug 11, 2022

Could be enough to close #22184.

make -C depends qt CC=gcc-12 CXX=g++-12 -j9 DEBUG=1
...
# qmake build
gmake[1]: Entering directory '/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake'
g++-12 -c -o main.o   -std=c++11 -ffunction-sections -fdata-sections -O2 -g  -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake/library -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake/generators -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/src/3rdparty/tinycbor/src -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake/generators/unix -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake/generators/win32 -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake/generators/mac -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/include -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/include/QtCore -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/include/QtCore/5.15.5 -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/include/QtCore/5.15.5/QtCore -I../src/corelib/global -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/mkspecs/linux-g++ -DQT_VERSION_STR=\"5.15.5\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=15 -DQT_VERSION_PATCH=5 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH /home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake/main.cpp
...
# qt configure checks
> g++-12 -c -m64 -pipe -pipe -std=c++17 -O1 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_LIBCPP_DEBUG=1 -I/home/ubuntu/bitcoin/depends/x86_64-pc-linux-gnu/include -maes -O2 -std=gnu++11 -w -fPIC -DNO_ATTRIBUTE -DQT_COMPILER_SUPPORTS_AESNI -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/config.tests/x86_simd -I. -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/mkspecs/linux-g++-64 -o main.o /home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/config.tests/x86_simd/main.cpp
# qt configuration
Building on: linux-g++ (x86_64, CPU features: mmx sse sse2)
Building for: linux-g++-64 (x86_64, CPU features: mmx sse sse2)
Target compiler: unknown (gcc-12)
Configuration: cross_compile sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl enable_new_dtags f16c largefile optimize_debug precompile_header rdrnd rdseed shani x86SimdAlways debug c++11 c++14 c++17 c++1z dbus reduce_exports release_tools static stl
......
# qt build
make[4]: Entering directory '/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-e9a047354b8/qtbase/src/corelib'
g++-12 -c -o qlibraryinfo_final.o   -std=c++11 -ffunction-sections -fdata-sections -O2 -g  -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake/library -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake/generators -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/src/3rdparty/tinycbor/src -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake/generators/unix -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake/generators/win32 -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/qmake/generators/mac -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/include -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/include/QtCore -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/include/QtCore/5.15.5 -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/include/QtCore/5.15.5/QtCore -I../src/corelib/global -I/home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/mkspecs/linux-g++ -DQT_VERSION_STR=\"5.15.5\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=15 -DQT_VERSION_PATCH=5 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH /home/ubuntu/bitcoin/depends/work/build/x86_64-pc-linux-gnu/qt/5.15.5-59cf8e423fe/qtbase/src/corelib/global/qlibraryinfo.cpp

Guix Build (x86_64):

Guix Build (arm64):

@jarolrod
Copy link
Contributor

jarolrod commented Aug 11, 2022

GUIX hashes

x86:

find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum

6762af74e4b25a5dbefd9e8d2c4b1cd3a9cedeb7db8fb4577d6cdd19e823fc36  guix-build-b9008b1834e6/output/aarch64-linux-gnu/SHA256SUMS.part
4838f6dc229e46869eeddf785145dd2241f64bd5469f011f3960cd710321a97c  guix-build-b9008b1834e6/output/aarch64-linux-gnu/bitcoin-b9008b1834e6-aarch64-linux-gnu-debug.tar.gz
adb68487dd38da6d8bd4e51c3ca4d06e8c725be04e3bf8c10363120494b6d0b9  guix-build-b9008b1834e6/output/aarch64-linux-gnu/bitcoin-b9008b1834e6-aarch64-linux-gnu.tar.gz
daeca143f20312ddf2785dda38ee67bca60f29593d8382cd7ce7deaac9d8b0dc  guix-build-b9008b1834e6/output/arm-linux-gnueabihf/SHA256SUMS.part
ae0296d959d8b4a9b077cd9ab9077a8acf49fe461ffdc5f6269bc6acd6a377c5  guix-build-b9008b1834e6/output/arm-linux-gnueabihf/bitcoin-b9008b1834e6-arm-linux-gnueabihf-debug.tar.gz
fdac3eaf571f5cfdcd8be7a835bddae4fb037544956061b165190075f3d95145  guix-build-b9008b1834e6/output/arm-linux-gnueabihf/bitcoin-b9008b1834e6-arm-linux-gnueabihf.tar.gz
a1f0dd76a98d8e549da281acc3215f9ea5469a1c2217939faa212acc086dd45e  guix-build-b9008b1834e6/output/arm64-apple-darwin/SHA256SUMS.part
485e812c47dd07a7a645708aa5e88e9f15976d68e3219f66160cb8a07bf69517  guix-build-b9008b1834e6/output/arm64-apple-darwin/bitcoin-b9008b1834e6-arm64-apple-darwin-unsigned.dmg
7b48061fb57073f10305b677f5cdccd61be067bff5727a4f9ff985ab35cc43af  guix-build-b9008b1834e6/output/arm64-apple-darwin/bitcoin-b9008b1834e6-arm64-apple-darwin-unsigned.tar.gz
650e0e4bce9a69f05966a6ad6b473d94cdcb41e8e422c2577c75399025ecf0a4  guix-build-b9008b1834e6/output/arm64-apple-darwin/bitcoin-b9008b1834e6-arm64-apple-darwin.tar.gz
752d61ffc2e2c5f6f9a633de6e27b63349d45306c5958ace8bd5962e556187a3  guix-build-b9008b1834e6/output/dist-archive/bitcoin-b9008b1834e6.tar.gz
ba95887083b937530809239a5fcea6218cf6ce3432dd8793a8c6400ebeb37c5f  guix-build-b9008b1834e6/output/powerpc64-linux-gnu/SHA256SUMS.part
cffe7deb1831dcaccfbf84392514b9cf7ca9a1aa103229d38e7129cdd7bec8e2  guix-build-b9008b1834e6/output/powerpc64-linux-gnu/bitcoin-b9008b1834e6-powerpc64-linux-gnu-debug.tar.gz
72dca7d1a2ed04d60aae20a897f200363c5e99b241126f21c1947a96142c7b78  guix-build-b9008b1834e6/output/powerpc64-linux-gnu/bitcoin-b9008b1834e6-powerpc64-linux-gnu.tar.gz
677e90f240eac5ad1d0f2c8fc587ad2023bee5b68732835dac59e818c0686f6d  guix-build-b9008b1834e6/output/powerpc64le-linux-gnu/SHA256SUMS.part
3c083cb8963ef6fda9109fc615c5bddf04942eaff538de48c858b805d5e9eea7  guix-build-b9008b1834e6/output/powerpc64le-linux-gnu/bitcoin-b9008b1834e6-powerpc64le-linux-gnu-debug.tar.gz
9668d4a8491bea5cabe4fb12e19e930d4392ea52da66e9e939eb99da730005e6  guix-build-b9008b1834e6/output/powerpc64le-linux-gnu/bitcoin-b9008b1834e6-powerpc64le-linux-gnu.tar.gz
aa7c025805817c5df29a5904e3facf86e5a76fbe2135c9361c767e0f5632c6cf  guix-build-b9008b1834e6/output/riscv64-linux-gnu/SHA256SUMS.part
465475e5c95f45bc2230c1c3202ffe9d8385886b11072a8649f814d32f9507f0  guix-build-b9008b1834e6/output/riscv64-linux-gnu/bitcoin-b9008b1834e6-riscv64-linux-gnu-debug.tar.gz
a833854f65957f35eaa5e177aef82563b0684046ee62972984c27aa08d02d5c1  guix-build-b9008b1834e6/output/riscv64-linux-gnu/bitcoin-b9008b1834e6-riscv64-linux-gnu.tar.gz
206a9595ae3e11e1196c36aa1c25926555f4c57f7b8224f76425207ddb619bbe  guix-build-b9008b1834e6/output/x86_64-apple-darwin/SHA256SUMS.part
45f79518c59a57131ec382d3473fcfc06d0ef7f0456958900b20c7f20cbb6bbc  guix-build-b9008b1834e6/output/x86_64-apple-darwin/bitcoin-b9008b1834e6-x86_64-apple-darwin-unsigned.dmg
31cafdd104ad48407850f8e79774a645cb09fc12443fb0af11837824caf22dde  guix-build-b9008b1834e6/output/x86_64-apple-darwin/bitcoin-b9008b1834e6-x86_64-apple-darwin-unsigned.tar.gz
438df7e2be5461667a590d8bcb7b737bdf0d902716aa6cd61ccc17cd4f9387ef  guix-build-b9008b1834e6/output/x86_64-apple-darwin/bitcoin-b9008b1834e6-x86_64-apple-darwin.tar.gz
2183a29868a295ad69aaad98dadabaa60f380143ac638ab550b79c5685787774  guix-build-b9008b1834e6/output/x86_64-linux-gnu/SHA256SUMS.part
12219c4b5f2332f45815d4f4177f40e784164de244752ae5da5010cf7c62d48d  guix-build-b9008b1834e6/output/x86_64-linux-gnu/bitcoin-b9008b1834e6-x86_64-linux-gnu-debug.tar.gz
421f8b478a8fdb89d8a904937008c19bc183f4ac41cebdfa09aff92153ca6293  guix-build-b9008b1834e6/output/x86_64-linux-gnu/bitcoin-b9008b1834e6-x86_64-linux-gnu.tar.gz
f06d07c8e3f3b18e9602f4ffd6ca46133f94682ef4836c92cdaa2ab951dc8980  guix-build-b9008b1834e6/output/x86_64-w64-mingw32/SHA256SUMS.part
23ad139c570b5279185d86928f95edaaa6a9f1290bba81b3ded4528c5bdaf23f  guix-build-b9008b1834e6/output/x86_64-w64-mingw32/bitcoin-b9008b1834e6-win64-debug.zip
54ada785cdf0a4b58e3c1f5ac2a1f869a7238c1bc3523b51dbee5d5c0ae20748  guix-build-b9008b1834e6/output/x86_64-w64-mingw32/bitcoin-b9008b1834e6-win64-setup-unsigned.exe
83dc62b8081872d897a93e26d78af51945fad9db70cc80f00da64175cdb2a323  guix-build-b9008b1834e6/output/x86_64-w64-mingw32/bitcoin-b9008b1834e6-win64-unsigned.tar.gz
fb8f0ea315f8cec301e74ead47b20a74641bd003c1e450cb802bf8ed566e9dc7  guix-build-b9008b1834e6/output/x86_64-w64-mingw32/bitcoin-b9008b1834e6-win64.zip

arm64:

find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum

daeca143f20312ddf2785dda38ee67bca60f29593d8382cd7ce7deaac9d8b0dc  guix-build-b9008b1834e6/output/arm-linux-gnueabihf/SHA256SUMS.part
ae0296d959d8b4a9b077cd9ab9077a8acf49fe461ffdc5f6269bc6acd6a377c5  guix-build-b9008b1834e6/output/arm-linux-gnueabihf/bitcoin-b9008b1834e6-arm-linux-gnueabihf-debug.tar.gz
fdac3eaf571f5cfdcd8be7a835bddae4fb037544956061b165190075f3d95145  guix-build-b9008b1834e6/output/arm-linux-gnueabihf/bitcoin-b9008b1834e6-arm-linux-gnueabihf.tar.gz
3d40d28e7b3e762adc5aec5e4794f770c89eaafa18b7beed51b30f0b3866b803  guix-build-b9008b1834e6/output/arm64-apple-darwin/SHA256SUMS.part
a5bb1494b96762a1c60dc8d8314fef25b63906000f914e777d6974c5072d9444  guix-build-b9008b1834e6/output/arm64-apple-darwin/bitcoin-b9008b1834e6-arm64-apple-darwin-unsigned.dmg
837b476c36df76aefb6ceaf7fe0e9a662fa01648270c5994b98d6ba2f55b7dfa  guix-build-b9008b1834e6/output/arm64-apple-darwin/bitcoin-b9008b1834e6-arm64-apple-darwin-unsigned.tar.gz
4e85e11a3e682f32d94e34b875fb773feececaaa030e978c8cd6de633ae9d8e6  guix-build-b9008b1834e6/output/arm64-apple-darwin/bitcoin-b9008b1834e6-arm64-apple-darwin.tar.gz
752d61ffc2e2c5f6f9a633de6e27b63349d45306c5958ace8bd5962e556187a3  guix-build-b9008b1834e6/output/dist-archive/bitcoin-b9008b1834e6.tar.gz
ba95887083b937530809239a5fcea6218cf6ce3432dd8793a8c6400ebeb37c5f  guix-build-b9008b1834e6/output/powerpc64-linux-gnu/SHA256SUMS.part
cffe7deb1831dcaccfbf84392514b9cf7ca9a1aa103229d38e7129cdd7bec8e2  guix-build-b9008b1834e6/output/powerpc64-linux-gnu/bitcoin-b9008b1834e6-powerpc64-linux-gnu-debug.tar.gz
72dca7d1a2ed04d60aae20a897f200363c5e99b241126f21c1947a96142c7b78  guix-build-b9008b1834e6/output/powerpc64-linux-gnu/bitcoin-b9008b1834e6-powerpc64-linux-gnu.tar.gz
677e90f240eac5ad1d0f2c8fc587ad2023bee5b68732835dac59e818c0686f6d  guix-build-b9008b1834e6/output/powerpc64le-linux-gnu/SHA256SUMS.part
3c083cb8963ef6fda9109fc615c5bddf04942eaff538de48c858b805d5e9eea7  guix-build-b9008b1834e6/output/powerpc64le-linux-gnu/bitcoin-b9008b1834e6-powerpc64le-linux-gnu-debug.tar.gz
9668d4a8491bea5cabe4fb12e19e930d4392ea52da66e9e939eb99da730005e6  guix-build-b9008b1834e6/output/powerpc64le-linux-gnu/bitcoin-b9008b1834e6-powerpc64le-linux-gnu.tar.gz
aa7c025805817c5df29a5904e3facf86e5a76fbe2135c9361c767e0f5632c6cf  guix-build-b9008b1834e6/output/riscv64-linux-gnu/SHA256SUMS.part
465475e5c95f45bc2230c1c3202ffe9d8385886b11072a8649f814d32f9507f0  guix-build-b9008b1834e6/output/riscv64-linux-gnu/bitcoin-b9008b1834e6-riscv64-linux-gnu-debug.tar.gz
a833854f65957f35eaa5e177aef82563b0684046ee62972984c27aa08d02d5c1  guix-build-b9008b1834e6/output/riscv64-linux-gnu/bitcoin-b9008b1834e6-riscv64-linux-gnu.tar.gz
206a9595ae3e11e1196c36aa1c25926555f4c57f7b8224f76425207ddb619bbe  guix-build-b9008b1834e6/output/x86_64-apple-darwin/SHA256SUMS.part
45f79518c59a57131ec382d3473fcfc06d0ef7f0456958900b20c7f20cbb6bbc  guix-build-b9008b1834e6/output/x86_64-apple-darwin/bitcoin-b9008b1834e6-x86_64-apple-darwin-unsigned.dmg
31cafdd104ad48407850f8e79774a645cb09fc12443fb0af11837824caf22dde  guix-build-b9008b1834e6/output/x86_64-apple-darwin/bitcoin-b9008b1834e6-x86_64-apple-darwin-unsigned.tar.gz
438df7e2be5461667a590d8bcb7b737bdf0d902716aa6cd61ccc17cd4f9387ef  guix-build-b9008b1834e6/output/x86_64-apple-darwin/bitcoin-b9008b1834e6-x86_64-apple-darwin.tar.gz
2183a29868a295ad69aaad98dadabaa60f380143ac638ab550b79c5685787774  guix-build-b9008b1834e6/output/x86_64-linux-gnu/SHA256SUMS.part
12219c4b5f2332f45815d4f4177f40e784164de244752ae5da5010cf7c62d48d  guix-build-b9008b1834e6/output/x86_64-linux-gnu/bitcoin-b9008b1834e6-x86_64-linux-gnu-debug.tar.gz
421f8b478a8fdb89d8a904937008c19bc183f4ac41cebdfa09aff92153ca6293  guix-build-b9008b1834e6/output/x86_64-linux-gnu/bitcoin-b9008b1834e6-x86_64-linux-gnu.tar.gz
f06d07c8e3f3b18e9602f4ffd6ca46133f94682ef4836c92cdaa2ab951dc8980  guix-build-b9008b1834e6/output/x86_64-w64-mingw32/SHA256SUMS.part
23ad139c570b5279185d86928f95edaaa6a9f1290bba81b3ded4528c5bdaf23f  guix-build-b9008b1834e6/output/x86_64-w64-mingw32/bitcoin-b9008b1834e6-win64-debug.zip
54ada785cdf0a4b58e3c1f5ac2a1f869a7238c1bc3523b51dbee5d5c0ae20748  guix-build-b9008b1834e6/output/x86_64-w64-mingw32/bitcoin-b9008b1834e6-win64-setup-unsigned.exe
83dc62b8081872d897a93e26d78af51945fad9db70cc80f00da64175cdb2a323  guix-build-b9008b1834e6/output/x86_64-w64-mingw32/bitcoin-b9008b1834e6-win64-unsigned.tar.gz
fb8f0ea315f8cec301e74ead47b20a74641bd003c1e450cb802bf8ed566e9dc7  guix-build-b9008b1834e6/output/x86_64-w64-mingw32/bitcoin-b9008b1834e6-win64.zip

@hebasto
Copy link
Member

hebasto commented Aug 12, 2022

Qt will claim it's using the wrong compiler in it's configure output, but the correct one is being used.

Qt does use the wrong compiler during the configuration phase. It could cause mis-configuration.

I believe the correct solution should be similar to

sed -i.old "s|QMAKE_CC = \$$$$\$$$${CROSS_COMPILE}clang|QMAKE_CC = $($(package)_cc)|" qtbase/mkspecs/common/clang.conf && \
sed -i.old "s|QMAKE_CXX = \$$$$\$$$${CROSS_COMPILE}clang++|QMAKE_CXX = $($(package)_cxx)|" qtbase/mkspecs/common/clang.conf

@fanquake
Copy link
Member Author

I believe the correct solution should be similar to

I did something like this initially, but that didn't seem to work properly. We might end up needing both changes.

@fanquake
Copy link
Member Author

I've pushed up a new change, that seems to work "better", in that the correct compiler is used in more places, and shown in the configure output, but compiling now fails due to something in platform detection:

thread/qatomic.cpp:1747:4: error: #error "Q_ATOMIC_INT64_IS_SUPPORTED must be defined on a 64-bit platform"
 1747 | #  error "Q_ATOMIC_INT64_IS_SUPPORTED must be defined on a 64-bit platform"
      |    ^~~~~
In file included from global/qt_pch.h:56:
In file included from global/qt_pch.h:56:
../../include/QtCore/../../src/corelib/thread/qbasicatomic.h: In instantiation of ‘class QBasicAtomicInteger<long long unsigned int>’:
thread/qsemaphore.h:70:39:   required from here
global/qglobal.h:121:63: error: static assertion failed: template parameter is an integral of a size not supported on this platform
  121 | #  define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
      |                                                               ^~~~~~~~~~~~~~~
../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:97:5: note: in expansion of macro ‘Q_STATIC_ASSERT_X’
   97 |     Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform");
      |     ^~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:21004: .obj/qsemaphore.o] Error 1

@hebasto
Copy link
Member

hebasto commented Aug 13, 2022

Modifying of mkspecs/common/g++-base.conf should be enough (#25822 (comment), #22184 (comment), QTBUG-66404).

Feel free to pick up my branch with some additional minor improvements.

@hebasto
Copy link
Member

hebasto commented Aug 13, 2022

While the branch from my previous comment (mostly) works, I do believe that approach in #25838 is more correct and elegant.

@fanquake
Copy link
Member Author

I'm not planning on investigating this any further, so we can follow up in #25838.

@fanquake fanquake closed this Aug 13, 2022
@fanquake fanquake deleted the test_22184 branch August 13, 2022 13:43
fanquake added a commit to bitcoin-core/gui that referenced this pull request Aug 15, 2022
…+` for all Linux hosts

59f2cc2 build, qt: Use `mkspecs/bitcoin-linux-g++` for all Linux hosts (Hennadii Stepanov)
d61f667 build: Add objcopy host tool (Hennadii Stepanov)
a2e733b doc: Remove no longer needed comments (Hennadii Stepanov)
968ea66 build: Adjust `qt/guix_cross_lib_path.patch` (Hennadii Stepanov)

Pull request description:

  This PR is an alternative to bitcoin/bitcoin#25822.

  Fixes bitcoin/bitcoin#22184.

  Also added some minor patch and comment improvements.

  Guix build on `x86_64`:
  ```
  e5d3e7963339085fce3074c610613f9b6f2daf4f94ca86585c2ef276ac451c2f  guix-build-59f2cc23e0d3/output/aarch64-linux-gnu/SHA256SUMS.part
  43bc602bf372996069ba18dfbd6a5615b60c259a26639f59cb86b25457578b2b  guix-build-59f2cc23e0d3/output/aarch64-linux-gnu/bitcoin-59f2cc23e0d3-aarch64-linux-gnu-debug.tar.gz
  ec894ba0c4036e09e93fbbbf2473992154b73de6f3a2beb22c69ae9dc48337bb  guix-build-59f2cc23e0d3/output/aarch64-linux-gnu/bitcoin-59f2cc23e0d3-aarch64-linux-gnu.tar.gz
  0b2edbb8465da7bec04b7ee9856a43bf6b06714dedabe24df0e63b56d6cb6f30  guix-build-59f2cc23e0d3/output/arm-linux-gnueabihf/SHA256SUMS.part
  7131d53947ea70a900727342e34a53d6dd6c32cff032e2e68d783ce1ed25bc97  guix-build-59f2cc23e0d3/output/arm-linux-gnueabihf/bitcoin-59f2cc23e0d3-arm-linux-gnueabihf-debug.tar.gz
  0c22e7459c26edf3c503a7cb3de6e727aa98b2950c93f6558f0befcc42391d13  guix-build-59f2cc23e0d3/output/arm-linux-gnueabihf/bitcoin-59f2cc23e0d3-arm-linux-gnueabihf.tar.gz
  4b95d4a4f159aae8fbe0c842280872908da399f95ea9d3abb8c8889015e56c18  guix-build-59f2cc23e0d3/output/arm64-apple-darwin/SHA256SUMS.part
  d1e343dbb089d4747fdbed278b4234974861bd35a7a7d74c03b6fe9267e280a2  guix-build-59f2cc23e0d3/output/arm64-apple-darwin/bitcoin-59f2cc23e0d3-arm64-apple-darwin-unsigned.dmg
  dc8851cad1e5d8e5538f93c42184fc11cac3320ef423425aa37567f6911527f8  guix-build-59f2cc23e0d3/output/arm64-apple-darwin/bitcoin-59f2cc23e0d3-arm64-apple-darwin-unsigned.tar.gz
  5fbeb911e207467a96ac0559c5f62bead6d1d382a8808bfd170c2475ebfe78e2  guix-build-59f2cc23e0d3/output/arm64-apple-darwin/bitcoin-59f2cc23e0d3-arm64-apple-darwin.tar.gz
  b96183a15be11717dc5b250e1c9921c118d26c613de2e5bee1bf3f70f2d1d3fe  guix-build-59f2cc23e0d3/output/dist-archive/bitcoin-59f2cc23e0d3.tar.gz
  90ee33b1013e30d3679f96c2496767b47493125329b5ff93c91bcf94e5e6ffcd  guix-build-59f2cc23e0d3/output/powerpc64-linux-gnu/SHA256SUMS.part
  7e52a6a8f4f739a7ab276c50bb42f7803856c8a15b5fdde47ed2d076492102f8  guix-build-59f2cc23e0d3/output/powerpc64-linux-gnu/bitcoin-59f2cc23e0d3-powerpc64-linux-gnu-debug.tar.gz
  21d59e074f9a89c6bbb6f6eb58084eddd1c1e24fe338b25c6d58080efd17d0bb  guix-build-59f2cc23e0d3/output/powerpc64-linux-gnu/bitcoin-59f2cc23e0d3-powerpc64-linux-gnu.tar.gz
  64375860ca1ca30951f3b4b68e5fc56421437486caccd6d18a6c63c104a1dc04  guix-build-59f2cc23e0d3/output/powerpc64le-linux-gnu/SHA256SUMS.part
  0f568e92a14f849c5cd36b09628ba79537c2421227b43979ed743bbd543d1e82  guix-build-59f2cc23e0d3/output/powerpc64le-linux-gnu/bitcoin-59f2cc23e0d3-powerpc64le-linux-gnu-debug.tar.gz
  8dbe29a4620fc07c70e2748927adfe32604900977d5fe9689930024dfae5350b  guix-build-59f2cc23e0d3/output/powerpc64le-linux-gnu/bitcoin-59f2cc23e0d3-powerpc64le-linux-gnu.tar.gz
  022644aabcd458f3c24931dab4c34db5bdf96209585eb82739c4b88536a09e58  guix-build-59f2cc23e0d3/output/riscv64-linux-gnu/SHA256SUMS.part
  5a0d54f8837a3132b42926f4c8bb45127fd2ef3d49cd238cd1889ca1255c79b1  guix-build-59f2cc23e0d3/output/riscv64-linux-gnu/bitcoin-59f2cc23e0d3-riscv64-linux-gnu-debug.tar.gz
  da3d43ec2cb1624503fc3bae2c4099b608fdd6d9a47cd3dd3c0c7e35b6031cff  guix-build-59f2cc23e0d3/output/riscv64-linux-gnu/bitcoin-59f2cc23e0d3-riscv64-linux-gnu.tar.gz
  bde0bc14ac320d91b7868dbe44ebb57cf8d74d35d21456d3ae71aced42d17922  guix-build-59f2cc23e0d3/output/x86_64-apple-darwin/SHA256SUMS.part
  95322c099de80d660350b383a10ca8a074fe80656b6917085e942c31696226ff  guix-build-59f2cc23e0d3/output/x86_64-apple-darwin/bitcoin-59f2cc23e0d3-x86_64-apple-darwin-unsigned.dmg
  78ad02298ccba816d03a929ad42570d2ed5af0942e1dd26d69e8f9b96112269f  guix-build-59f2cc23e0d3/output/x86_64-apple-darwin/bitcoin-59f2cc23e0d3-x86_64-apple-darwin-unsigned.tar.gz
  3fec9daf0bb52aba9218d3e62ef3970329757889a316a10708275e67d7930c8c  guix-build-59f2cc23e0d3/output/x86_64-apple-darwin/bitcoin-59f2cc23e0d3-x86_64-apple-darwin.tar.gz
  7790af2005756f737986da24da349e406e765af4300ee7e391660e4d1fe6025e  guix-build-59f2cc23e0d3/output/x86_64-linux-gnu/SHA256SUMS.part
  8b97e9f9a974beacfb6b9661b6fe562a850047d40589f4fa9d069eb1692548c3  guix-build-59f2cc23e0d3/output/x86_64-linux-gnu/bitcoin-59f2cc23e0d3-x86_64-linux-gnu-debug.tar.gz
  77bb105155a72f2cfa6160bdb8c02e0621381005db0569dc8df6045b65dac0f8  guix-build-59f2cc23e0d3/output/x86_64-linux-gnu/bitcoin-59f2cc23e0d3-x86_64-linux-gnu.tar.gz
  15fbbbe58a2632dabadfa145e4e55103589102e67ec483187275c522d98298bd  guix-build-59f2cc23e0d3/output/x86_64-w64-mingw32/SHA256SUMS.part
  d50afc0061812aadca68ac530e301937e69893881d184ba4c38b37e4ff1a74ba  guix-build-59f2cc23e0d3/output/x86_64-w64-mingw32/bitcoin-59f2cc23e0d3-win64-debug.zip
  a86a5cf85036bb45d2233b0d83bf21f5cd26f463a7a794077995622a47589940  guix-build-59f2cc23e0d3/output/x86_64-w64-mingw32/bitcoin-59f2cc23e0d3-win64-setup-unsigned.exe
  ca06c5ba64f0a0961c11c1573c04f142fdf369da29f4e8e54f89f3b98f6964ec  guix-build-59f2cc23e0d3/output/x86_64-w64-mingw32/bitcoin-59f2cc23e0d3-win64-unsigned.tar.gz
  b120fdcde18f330c462d6f7100abeb8cc6e26d9034f50c0957fa40067be3dea9  guix-build-59f2cc23e0d3/output/x86_64-w64-mingw32/bitcoin-59f2cc23e0d3-win64.zip
  ```

ACKs for top commit:
  fanquake:
    ACK 59f2cc2 - Making this more generic also fixes other Qt builds [that were previously failing](bitcoin/bitcoin#25838 (comment)).

Tree-SHA512: 465f506964293429e55222b40a3927261aa5abd84ecb7bc1257e1b25a8d944967c4aa6e6d7d4afc25ea401d19e5c2d3eb093e073fc29478a8b1626d62cd53275
@bitcoin bitcoin locked and limited conversation to collaborators Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In depends the qt package ignores CC,CXX variables

3 participants