Skip to content

Conversation

fanquake
Copy link
Member

@fanquake fanquake commented Jul 14, 2022

This improves support for LTO by using gcc wrappers for ar, nm, ranlib,
that correctly setup plugin arguments for LTO, when using GCC.

Other HOSTS are using clang.

Portion of #25391.

Guix Build (x86_64):

Guix Build (arm64):

@hebasto
Copy link
Member

hebasto commented Jul 14, 2022

Concept ACK.

@dongcarl
Copy link
Contributor

dongcarl commented Jul 14, 2022

Are NM and RANLIB set/used somewhere in our configure.ac?

@hebasto
Copy link
Member

hebasto commented Jul 14, 2022

Guix builds on x86_64:

$ find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
9ea693e54d6318f19ad4fed39a81e5b3d792d3e53c282b2219e3dc78819f7bd4  guix-build-f06088440c82/output/aarch64-linux-gnu/SHA256SUMS.part
2b40c25d5c50d0c30068a98c959df808d31c4d779af07276dd79a538b7bf543c  guix-build-f06088440c82/output/aarch64-linux-gnu/bitcoin-f06088440c82-aarch64-linux-gnu-debug.tar.gz
a17151682828bd6f0b359e480036e95387749cfb761fadeabefb96806ff4229d  guix-build-f06088440c82/output/aarch64-linux-gnu/bitcoin-f06088440c82-aarch64-linux-gnu.tar.gz
c3bb57987a3284aeed1165864f62b4817c158a89dee364b2def8172b3f78d589  guix-build-f06088440c82/output/arm-linux-gnueabihf/SHA256SUMS.part
e54f51135a241ffea20f89340090304d149f28d27c281a6fd39d487378ce1e50  guix-build-f06088440c82/output/arm-linux-gnueabihf/bitcoin-f06088440c82-arm-linux-gnueabihf-debug.tar.gz
5d6d348a10541217f58b41bfeeb4785ddecc791f730e541b802e153e88669d9b  guix-build-f06088440c82/output/arm-linux-gnueabihf/bitcoin-f06088440c82-arm-linux-gnueabihf.tar.gz
10ae8954eeaa83f55bf81d90d81961594d56e65e863465c120e5faa0f2a442bf  guix-build-f06088440c82/output/arm64-apple-darwin/SHA256SUMS.part
d268a5605d2c126950d505125e98c5cd5191e4a4548ae8232ec88fffac9e9c00  guix-build-f06088440c82/output/arm64-apple-darwin/bitcoin-f06088440c82-arm64-apple-darwin-unsigned.dmg
18f0104fa24f644198a1c2b3d6cf6926bb13192e3bd41635ebf9c3c6abe5f545  guix-build-f06088440c82/output/arm64-apple-darwin/bitcoin-f06088440c82-arm64-apple-darwin-unsigned.tar.gz
d58f21e77c5d4f2d8a7ca23bd9e5a1222362f18cf451a8f6805287033e248119  guix-build-f06088440c82/output/arm64-apple-darwin/bitcoin-f06088440c82-arm64-apple-darwin.tar.gz
588f7e44a1d1f084c351357bd08fe9c5324853dd18df897d8a04bbea94365d4f  guix-build-f06088440c82/output/dist-archive/bitcoin-f06088440c82.tar.gz
f549be6031fe3ff60effa8aaf3fbea3b9fcf76998b2da0104c8f93e933173d1c  guix-build-f06088440c82/output/powerpc64-linux-gnu/SHA256SUMS.part
589b0ead29fb2e11e75d90353a499395512d449a712d315b5cc3359fec28c532  guix-build-f06088440c82/output/powerpc64-linux-gnu/bitcoin-f06088440c82-powerpc64-linux-gnu-debug.tar.gz
b01d65e741e20864bdec747b10ae3210ce595c4a2380beb846d2bbee11245a12  guix-build-f06088440c82/output/powerpc64-linux-gnu/bitcoin-f06088440c82-powerpc64-linux-gnu.tar.gz
1f15e31fdf5cd985cfc6416752d676ffa777ebf97a8d0b61816e9593f49d49ba  guix-build-f06088440c82/output/powerpc64le-linux-gnu/SHA256SUMS.part
34ea84521a021e950cd44ef88ca81226e530978f0fe762b596553be245d2dcac  guix-build-f06088440c82/output/powerpc64le-linux-gnu/bitcoin-f06088440c82-powerpc64le-linux-gnu-debug.tar.gz
18a2cd5515ce87082bbb1905cb39407d58d684a338787f491cc93fa2fa7ede97  guix-build-f06088440c82/output/powerpc64le-linux-gnu/bitcoin-f06088440c82-powerpc64le-linux-gnu.tar.gz
c5aaaa3a7c6d6a74507f2f0a075c7d40510ef1d237de90ea43f03ce8ef7c6430  guix-build-f06088440c82/output/riscv64-linux-gnu/SHA256SUMS.part
ce5f67decd45f706bca08944f8244907ae9dd3b6d76965baf9ad073ff9625f71  guix-build-f06088440c82/output/riscv64-linux-gnu/bitcoin-f06088440c82-riscv64-linux-gnu-debug.tar.gz
d405ad97b2b688bc127f6fe698d746cb3a77e7a3166d3fc4d168cda46bde9df0  guix-build-f06088440c82/output/riscv64-linux-gnu/bitcoin-f06088440c82-riscv64-linux-gnu.tar.gz
d7874442d0a2b3b754cd1bd6b1ff2cfb60f41553d9b824ea4e0d705f397b9f75  guix-build-f06088440c82/output/x86_64-apple-darwin/SHA256SUMS.part
de50ee4695b1fbb5e165b60c0c25128cc5757d0428eced4562c30842ca66a50e  guix-build-f06088440c82/output/x86_64-apple-darwin/bitcoin-f06088440c82-x86_64-apple-darwin-unsigned.dmg
b75217c20c5e02ccb95896fce7682dc461d63b3f3b274d38574bc5fbc1807c76  guix-build-f06088440c82/output/x86_64-apple-darwin/bitcoin-f06088440c82-x86_64-apple-darwin-unsigned.tar.gz
71153f0d9836e2707ca4588d48b4984313703e5174ea7698b4caed4847c904cd  guix-build-f06088440c82/output/x86_64-apple-darwin/bitcoin-f06088440c82-x86_64-apple-darwin.tar.gz
b2138f515f8bf30fecb8f9e4da8b0f56aff0306517ea8bd342b2e6994f5d8055  guix-build-f06088440c82/output/x86_64-linux-gnu/SHA256SUMS.part
b01e0c81f9689088c25b345171e92c82da39cab260368c0f45ccea914f17fdd3  guix-build-f06088440c82/output/x86_64-linux-gnu/bitcoin-f06088440c82-x86_64-linux-gnu-debug.tar.gz
13963b94e7e5fbd2c36d6e63b97d85e92783d7667b315ce73c8c25c7a0083edf  guix-build-f06088440c82/output/x86_64-linux-gnu/bitcoin-f06088440c82-x86_64-linux-gnu.tar.gz
21b7b6d57f13c69909eef72b7f960b86e4ecb4bf76360eeb2a87bf79280e2584  guix-build-f06088440c82/output/x86_64-w64-mingw32/SHA256SUMS.part
e25e3ba04df936757685672912046f86387f7d4387ec6ad700ca683e85779b22  guix-build-f06088440c82/output/x86_64-w64-mingw32/bitcoin-f06088440c82-win64-debug.zip
68add53607071785d3dd6a33574811007ee23749c9d3a96b8892d41387cc124f  guix-build-f06088440c82/output/x86_64-w64-mingw32/bitcoin-f06088440c82-win64-setup-unsigned.exe
386897d952decf8f0392b65df536a11032b9733b527bed4eea5e0d6cc76f7f1d  guix-build-f06088440c82/output/x86_64-w64-mingw32/bitcoin-f06088440c82-win64-unsigned.tar.gz
2238799d50ee741a8d34d1e7779fff3330e63dd3fd70f27ee7161bcab5806834  guix-build-f06088440c82/output/x86_64-w64-mingw32/bitcoin-f06088440c82-win64.zip

@hebasto
Copy link
Member

hebasto commented Jul 15, 2022

Guix builds on arm64:

# find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum
796a65e8372cd8c596526f5415f482b8dd923d14e343d94bb3224875f5cbdd41  guix-build-f06088440c82/output/arm-linux-gnueabihf/SHA256SUMS.part
e54f51135a241ffea20f89340090304d149f28d27c281a6fd39d487378ce1e50  guix-build-f06088440c82/output/arm-linux-gnueabihf/bitcoin-f06088440c82-arm-linux-gnueabihf-debug.tar.gz
ea59dd7cd9e1a64f4b224349d9ff60ee193c0a2c7d60fc882b87778f09f27e87  guix-build-f06088440c82/output/arm-linux-gnueabihf/bitcoin-f06088440c82-arm-linux-gnueabihf.tar.gz
201a5547dd3f0edc00e233c28229d114adcf255d3cac7eccef575dd2e69232db  guix-build-f06088440c82/output/arm64-apple-darwin/SHA256SUMS.part
34813f2bca9133ba97287c0ded3175700c835d019b615731e869cf894f251e35  guix-build-f06088440c82/output/arm64-apple-darwin/bitcoin-f06088440c82-arm64-apple-darwin-unsigned.dmg
bd1b8d6611a703dcde75d46b228069404551f8b9442dfbbb3999ea7f55c838d6  guix-build-f06088440c82/output/arm64-apple-darwin/bitcoin-f06088440c82-arm64-apple-darwin-unsigned.tar.gz
9dea2ead51fac2d25e1df3c3adb47b88c10e2d9440d9da81f080e99f477a718f  guix-build-f06088440c82/output/arm64-apple-darwin/bitcoin-f06088440c82-arm64-apple-darwin.tar.gz
588f7e44a1d1f084c351357bd08fe9c5324853dd18df897d8a04bbea94365d4f  guix-build-f06088440c82/output/dist-archive/bitcoin-f06088440c82.tar.gz
f549be6031fe3ff60effa8aaf3fbea3b9fcf76998b2da0104c8f93e933173d1c  guix-build-f06088440c82/output/powerpc64-linux-gnu/SHA256SUMS.part
589b0ead29fb2e11e75d90353a499395512d449a712d315b5cc3359fec28c532  guix-build-f06088440c82/output/powerpc64-linux-gnu/bitcoin-f06088440c82-powerpc64-linux-gnu-debug.tar.gz
b01d65e741e20864bdec747b10ae3210ce595c4a2380beb846d2bbee11245a12  guix-build-f06088440c82/output/powerpc64-linux-gnu/bitcoin-f06088440c82-powerpc64-linux-gnu.tar.gz
1f15e31fdf5cd985cfc6416752d676ffa777ebf97a8d0b61816e9593f49d49ba  guix-build-f06088440c82/output/powerpc64le-linux-gnu/SHA256SUMS.part
34ea84521a021e950cd44ef88ca81226e530978f0fe762b596553be245d2dcac  guix-build-f06088440c82/output/powerpc64le-linux-gnu/bitcoin-f06088440c82-powerpc64le-linux-gnu-debug.tar.gz
18a2cd5515ce87082bbb1905cb39407d58d684a338787f491cc93fa2fa7ede97  guix-build-f06088440c82/output/powerpc64le-linux-gnu/bitcoin-f06088440c82-powerpc64le-linux-gnu.tar.gz
9cf2dc1c1137113de099a8ac1eb68bd11c9296c199a66f75bb59d4e35f99475a  guix-build-f06088440c82/output/riscv64-linux-gnu/SHA256SUMS.part
ce5f67decd45f706bca08944f8244907ae9dd3b6d76965baf9ad073ff9625f71  guix-build-f06088440c82/output/riscv64-linux-gnu/bitcoin-f06088440c82-riscv64-linux-gnu-debug.tar.gz
0646f856c0ffc5a688bd2d0d670114dd58202b375d4b9b7c3d7ca58cd962a91e  guix-build-f06088440c82/output/riscv64-linux-gnu/bitcoin-f06088440c82-riscv64-linux-gnu.tar.gz
d7874442d0a2b3b754cd1bd6b1ff2cfb60f41553d9b824ea4e0d705f397b9f75  guix-build-f06088440c82/output/x86_64-apple-darwin/SHA256SUMS.part
de50ee4695b1fbb5e165b60c0c25128cc5757d0428eced4562c30842ca66a50e  guix-build-f06088440c82/output/x86_64-apple-darwin/bitcoin-f06088440c82-x86_64-apple-darwin-unsigned.dmg
b75217c20c5e02ccb95896fce7682dc461d63b3f3b274d38574bc5fbc1807c76  guix-build-f06088440c82/output/x86_64-apple-darwin/bitcoin-f06088440c82-x86_64-apple-darwin-unsigned.tar.gz
71153f0d9836e2707ca4588d48b4984313703e5174ea7698b4caed4847c904cd  guix-build-f06088440c82/output/x86_64-apple-darwin/bitcoin-f06088440c82-x86_64-apple-darwin.tar.gz
b2138f515f8bf30fecb8f9e4da8b0f56aff0306517ea8bd342b2e6994f5d8055  guix-build-f06088440c82/output/x86_64-linux-gnu/SHA256SUMS.part
b01e0c81f9689088c25b345171e92c82da39cab260368c0f45ccea914f17fdd3  guix-build-f06088440c82/output/x86_64-linux-gnu/bitcoin-f06088440c82-x86_64-linux-gnu-debug.tar.gz
13963b94e7e5fbd2c36d6e63b97d85e92783d7667b315ce73c8c25c7a0083edf  guix-build-f06088440c82/output/x86_64-linux-gnu/bitcoin-f06088440c82-x86_64-linux-gnu.tar.gz
21b7b6d57f13c69909eef72b7f960b86e4ecb4bf76360eeb2a87bf79280e2584  guix-build-f06088440c82/output/x86_64-w64-mingw32/SHA256SUMS.part
e25e3ba04df936757685672912046f86387f7d4387ec6ad700ca683e85779b22  guix-build-f06088440c82/output/x86_64-w64-mingw32/bitcoin-f06088440c82-win64-debug.zip
68add53607071785d3dd6a33574811007ee23749c9d3a96b8892d41387cc124f  guix-build-f06088440c82/output/x86_64-w64-mingw32/bitcoin-f06088440c82-win64-setup-unsigned.exe
386897d952decf8f0392b65df536a11032b9733b527bed4eea5e0d6cc76f7f1d  guix-build-f06088440c82/output/x86_64-w64-mingw32/bitcoin-f06088440c82-win64-unsigned.tar.gz
2238799d50ee741a8d34d1e7779fff3330e63dd3fd70f27ee7161bcab5806834  guix-build-f06088440c82/output/x86_64-w64-mingw32/bitcoin-f06088440c82-win64.zip

@DrahtBot
Copy link
Contributor

Guix builds

File commit 85b601e
(master)
commit 39956da
(master and this pull)
SHA256SUMS.part 93887a5abb6bbc32... 8f60e0e2f4e3c340...
*-aarch64-linux-gnu-debug.tar.gz 4acb35805b72009f... dc08fe4a9d51501d...
*-aarch64-linux-gnu.tar.gz e1deddadf2865f56... 47973630ac7c0fa1...
*-arm-linux-gnueabihf-debug.tar.gz 0f031011d8b7aa20... 541c92f0628b159b...
*-arm-linux-gnueabihf.tar.gz 0a51fa4827d33a85... 3cd4d7a191588d10...
*-arm64-apple-darwin-unsigned.dmg b61174002fa466d5... c27f81886edbe21c...
*-arm64-apple-darwin-unsigned.tar.gz c07e9e4fc846e508... 28241096d077b924...
*-arm64-apple-darwin.tar.gz 5f874a9086ee57f2... e75da1e56960440b...
*-powerpc64-linux-gnu-debug.tar.gz 0802b59fe37c9638... 8fee34c9ed8602a8...
*-powerpc64-linux-gnu.tar.gz 2d987cbeff17e9d4... 53b475e543fae391...
*-powerpc64le-linux-gnu-debug.tar.gz 5208b2021f27795e... c227bb5af63155c3...
*-powerpc64le-linux-gnu.tar.gz 1e53113de8006e0a... e83120311d2f374e...
*-riscv64-linux-gnu-debug.tar.gz fee73b3dd9ca0e59... 39a299cf4a8e4586...
*-riscv64-linux-gnu.tar.gz 897fb26dce706eec... 0dd6b5f8642870dd...
*-win64-debug.zip e3d84334f035ce1d... 3aceb7710bc11129...
*-win64-setup-unsigned.exe dc3cc33229687f10... 94aa50a1e191f4ee...
*-win64-unsigned.tar.gz 6f14debbc35757fb... bdf193a06bdda7ce...
*-win64.zip 47ca14c60f8c8f54... 448003c6b0cd03c5...
*-x86_64-apple-darwin-unsigned.dmg 435936060876dbea... b9878f5f94dafa51...
*-x86_64-apple-darwin-unsigned.tar.gz 80052072a97f3120... f7aac7cdf82acc6d...
*-x86_64-apple-darwin.tar.gz 6418945ac1e4fdb4... 5fc42c6aac4b10c6...
*-x86_64-linux-gnu-debug.tar.gz 427ad2636532736f... b5af407737e31d35...
*-x86_64-linux-gnu.tar.gz 09d4cd0118884cb9... 6324ac4e3d379449...
*.tar.gz b322532738ddaa8a... 3961742d1344f0d2...
guix_build.log 0f2caef1b653a62d... 344be7411fc6db37...
guix_build.log.diff f3e10fc3e75fe2e0...

@jarolrod
Copy link
Member

jarolrod commented Jul 16, 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

30d85c0d1fc7753cc3c3c5494debbc4fc19b3e8c049b7377b1ef31a848989c6b  guix-build-658685af935e/output/aarch64-linux-gnu/SHA256SUMS.part
e1e2fe6dbbfa2e953d25bec1c691b10a2282d2dcaa1ecdb2a8e4bfff7431be04  guix-build-658685af935e/output/aarch64-linux-gnu/bitcoin-658685af935e-aarch64-linux-gnu-debug.tar.gz
6c8efd4a9123b25ac668dbd9345f063ea95d9505896c2084cc5330608b15f360  guix-build-658685af935e/output/aarch64-linux-gnu/bitcoin-658685af935e-aarch64-linux-gnu.tar.gz
6480cfbfe5498aaade9458678386a478d000ffcfd1a5cea911b7f22346c9f9f6  guix-build-658685af935e/output/arm-linux-gnueabihf/SHA256SUMS.part
751a9981ef9ea9af8a3c8eb188d342736d76c84ca1b724f288f8627c548295f4  guix-build-658685af935e/output/arm-linux-gnueabihf/bitcoin-658685af935e-arm-linux-gnueabihf-debug.tar.gz
fd2e2cbe4c8e0f3822680a5554031649d9c21014c719b58b98f041acf95975df  guix-build-658685af935e/output/arm-linux-gnueabihf/bitcoin-658685af935e-arm-linux-gnueabihf.tar.gz
0da780b0379920396c257ac464f714af8648f9c1e7a72c9b190b71405e0d29fd  guix-build-658685af935e/output/arm64-apple-darwin/SHA256SUMS.part
89f8b9a9a897c9cf2554b6fa5fcc1ef40662e722ac97f7cfc7a7d77e0785cc6d  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin-unsigned.dmg
e3f3e0bef31e8e7c457335a1bb1c62b6640f79e6fe6ca517957f18f66ef63def  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin-unsigned.tar.gz
a8c6cc701ab1db4b5006c8cdce027516da35914c60cfb0acfb7e632f586c2a24  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin.tar.gz
7cf98a87ad06d4b9b51d3f1245e8a4f7507ba8f6b1ebd54ff6a11427684222de  guix-build-658685af935e/output/dist-archive/bitcoin-658685af935e.tar.gz
4241dc594fc8e1adcd76c9bffd854aeb4272a4d59b3bbbe4bcb540a5f06f96a5  guix-build-658685af935e/output/powerpc64-linux-gnu/SHA256SUMS.part
8c8090e28a4732777321196ea548224c24a74b08e4f92c69865ca0d484887229  guix-build-658685af935e/output/powerpc64-linux-gnu/bitcoin-658685af935e-powerpc64-linux-gnu-debug.tar.gz
002c9a7d60d1e5c343d3326ae1390c9e472396fcae9ed431738acc88c8f87ab5  guix-build-658685af935e/output/powerpc64-linux-gnu/bitcoin-658685af935e-powerpc64-linux-gnu.tar.gz
f6ef03b8887ddd3b9f23a874fcf550bcfa1c899e885c8b431a15d37349596ca6  guix-build-658685af935e/output/powerpc64le-linux-gnu/SHA256SUMS.part
888dc1787de6406dd4352a365f025d96fc3dbc775425b583d5aff3c453870b00  guix-build-658685af935e/output/powerpc64le-linux-gnu/bitcoin-658685af935e-powerpc64le-linux-gnu-debug.tar.gz
a53b31fb025a23b352b8a55661f07e636152c1761471686bb3a0d99c3d452fdb  guix-build-658685af935e/output/powerpc64le-linux-gnu/bitcoin-658685af935e-powerpc64le-linux-gnu.tar.gz
d0264a9b8fe5fd0533a565ddd9ba55b090defd59dad8e41928cc735b1f722872  guix-build-658685af935e/output/riscv64-linux-gnu/SHA256SUMS.part
61ab8a3c1744953f2ac64995326835a3f717822bbeb75f2e596c3893776ad9e5  guix-build-658685af935e/output/riscv64-linux-gnu/bitcoin-658685af935e-riscv64-linux-gnu-debug.tar.gz
b107545ba53a95b4a73d5116ece35158e5cdb26662d5e09038a0afeda6df92a0  guix-build-658685af935e/output/riscv64-linux-gnu/bitcoin-658685af935e-riscv64-linux-gnu.tar.gz
3cf08fb3f4c93dbcb6a2a89bc04f4f3a91093ca7003fc8ddf80b60780f82dfcc  guix-build-658685af935e/output/x86_64-apple-darwin/SHA256SUMS.part
b1b932f63cb4cdb03da95adec9ba90394595d656be93af87c8a93905ffd3a66b  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin-unsigned.dmg
2de58610f02824b4039cc6aad2a1a5b2b95562b9d894d56f8ad5b43319f98cb6  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin-unsigned.tar.gz
2f16a479964b6bd46839a970ac47bd9e4513fa0eaf77c2cba62fb03ac91c1228  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin.tar.gz
fcbfec6b728c22fdeb0c222efd7fc3ac04bdce6836d4d8a057f69d05401127f1  guix-build-658685af935e/output/x86_64-linux-gnu/SHA256SUMS.part
230098a5d5832d053925ebf75a2b35c1a12bbc9a19f5972321ee9d87cf0770b0  guix-build-658685af935e/output/x86_64-linux-gnu/bitcoin-658685af935e-x86_64-linux-gnu-debug.tar.gz
c3885c22dcb4dadd7e48d4baf97410c8ae785ca4c982f25192e10c2a0b2d0634  guix-build-658685af935e/output/x86_64-linux-gnu/bitcoin-658685af935e-x86_64-linux-gnu.tar.gz
7bd8602ca8775327a50135cae6af1881df95d5f32fa3c2d225a5d8fa3bd9c155  guix-build-658685af935e/output/x86_64-w64-mingw32/SHA256SUMS.part
683741bab903321395150aff39d9091e88b6a9342623087748991b3b8637e05b  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-debug.zip
be01432d132cd947016476d5d80812fe31ba9ea7ec2bcbdede4320b77cc06fcb  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-setup-unsigned.exe
a3f49efa1612d46ed7f81f053ec51f2180c2164996d284530ae3c8688fcf12a4  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-unsigned.tar.gz
1c1a40fa6fc59d709f022cdaefde1d9e09093df81170c7bca10bdf319cc758bc  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64.zip

arm64:

$ env HOSTS='arm-linux-gnueabihf arm64-apple-darwin powerpc64-linux-gnu powerpc64le-linux-gnu riscv64-linux-gnu x86_64-apple-darwin x86_64-linux-gnu x86_64-w64-mingw32' ./contrib/guix/guix-build
$ find guix-build-$(git rev-parse --short=12 HEAD)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum

fb96ec069a2dea0320f39944342d62de0741d25c9d29409ee37f425b2b0b3e39  guix-build-658685af935e/output/arm-linux-gnueabihf/SHA256SUMS.part
751a9981ef9ea9af8a3c8eb188d342736d76c84ca1b724f288f8627c548295f4  guix-build-658685af935e/output/arm-linux-gnueabihf/bitcoin-658685af935e-arm-linux-gnueabihf-debug.tar.gz
97283c0844310643fd3c6346f036ec17fbd5c9728055e85a75f27dcbb5988511  guix-build-658685af935e/output/arm-linux-gnueabihf/bitcoin-658685af935e-arm-linux-gnueabihf.tar.gz
cac75549e6734a08f638df9b4c7ca22acee6579b79bb36c90d671a3f1f8028e9  guix-build-658685af935e/output/arm64-apple-darwin/SHA256SUMS.part
2bbe9e78112bc732ab78728240b7810ee80b2d47c15ab0319933f158ea63c01d  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin-unsigned.dmg
7d4309c6c41baf1fa5b61d9edeb5d16d067500e8f52ac12a1370a8aa0808aef0  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin-unsigned.tar.gz
80dc91abfecd78dfc4e8c93a1b83f64d82e7fdb156acfc0779ed327c0b30a1e6  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin.tar.gz
7cf98a87ad06d4b9b51d3f1245e8a4f7507ba8f6b1ebd54ff6a11427684222de  guix-build-658685af935e/output/dist-archive/bitcoin-658685af935e.tar.gz
4241dc594fc8e1adcd76c9bffd854aeb4272a4d59b3bbbe4bcb540a5f06f96a5  guix-build-658685af935e/output/powerpc64-linux-gnu/SHA256SUMS.part
8c8090e28a4732777321196ea548224c24a74b08e4f92c69865ca0d484887229  guix-build-658685af935e/output/powerpc64-linux-gnu/bitcoin-658685af935e-powerpc64-linux-gnu-debug.tar.gz
002c9a7d60d1e5c343d3326ae1390c9e472396fcae9ed431738acc88c8f87ab5  guix-build-658685af935e/output/powerpc64-linux-gnu/bitcoin-658685af935e-powerpc64-linux-gnu.tar.gz
f6ef03b8887ddd3b9f23a874fcf550bcfa1c899e885c8b431a15d37349596ca6  guix-build-658685af935e/output/powerpc64le-linux-gnu/SHA256SUMS.part
888dc1787de6406dd4352a365f025d96fc3dbc775425b583d5aff3c453870b00  guix-build-658685af935e/output/powerpc64le-linux-gnu/bitcoin-658685af935e-powerpc64le-linux-gnu-debug.tar.gz
a53b31fb025a23b352b8a55661f07e636152c1761471686bb3a0d99c3d452fdb  guix-build-658685af935e/output/powerpc64le-linux-gnu/bitcoin-658685af935e-powerpc64le-linux-gnu.tar.gz
d0264a9b8fe5fd0533a565ddd9ba55b090defd59dad8e41928cc735b1f722872  guix-build-658685af935e/output/riscv64-linux-gnu/SHA256SUMS.part
61ab8a3c1744953f2ac64995326835a3f717822bbeb75f2e596c3893776ad9e5  guix-build-658685af935e/output/riscv64-linux-gnu/bitcoin-658685af935e-riscv64-linux-gnu-debug.tar.gz
b107545ba53a95b4a73d5116ece35158e5cdb26662d5e09038a0afeda6df92a0  guix-build-658685af935e/output/riscv64-linux-gnu/bitcoin-658685af935e-riscv64-linux-gnu.tar.gz
3cf08fb3f4c93dbcb6a2a89bc04f4f3a91093ca7003fc8ddf80b60780f82dfcc  guix-build-658685af935e/output/x86_64-apple-darwin/SHA256SUMS.part
b1b932f63cb4cdb03da95adec9ba90394595d656be93af87c8a93905ffd3a66b  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin-unsigned.dmg
2de58610f02824b4039cc6aad2a1a5b2b95562b9d894d56f8ad5b43319f98cb6  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin-unsigned.tar.gz
2f16a479964b6bd46839a970ac47bd9e4513fa0eaf77c2cba62fb03ac91c1228  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin.tar.gz
fcbfec6b728c22fdeb0c222efd7fc3ac04bdce6836d4d8a057f69d05401127f1  guix-build-658685af935e/output/x86_64-linux-gnu/SHA256SUMS.part
230098a5d5832d053925ebf75a2b35c1a12bbc9a19f5972321ee9d87cf0770b0  guix-build-658685af935e/output/x86_64-linux-gnu/bitcoin-658685af935e-x86_64-linux-gnu-debug.tar.gz
c3885c22dcb4dadd7e48d4baf97410c8ae785ca4c982f25192e10c2a0b2d0634  guix-build-658685af935e/output/x86_64-linux-gnu/bitcoin-658685af935e-x86_64-linux-gnu.tar.gz
7bd8602ca8775327a50135cae6af1881df95d5f32fa3c2d225a5d8fa3bd9c155  guix-build-658685af935e/output/x86_64-w64-mingw32/SHA256SUMS.part
683741bab903321395150aff39d9091e88b6a9342623087748991b3b8637e05b  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-debug.zip
be01432d132cd947016476d5d80812fe31ba9ea7ec2bcbdede4320b77cc06fcb  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-setup-unsigned.exe
a3f49efa1612d46ed7f81f053ec51f2180c2164996d284530ae3c8688fcf12a4  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-unsigned.tar.gz
1c1a40fa6fc59d709f022cdaefde1d9e09093df81170c7bca10bdf319cc758bc  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64.zip

@fanquake fanquake changed the title build: default to using GCC tool wrappers for LTO depends: default to using GCC tool wrappers for LTO (with GCC) Jul 18, 2022
@fanquake
Copy link
Member Author

Rebased, and changed the approach here, so we are no-longer modifying defaults, or need to touch configure.

@hebasto
Copy link
Member

hebasto commented Jul 18, 2022

Rebased, and changed the approach here, so we are no-longer modifying defaults, or need to touch configure.

Wrt this new approach, why these 3 hosts only are modified? What about other hosts?

@fanquake
Copy link
Member Author

Wrt this new approach, why these 3 hosts only are modified? What about other hosts?

The other HOSTS are all using Clang.

@hebasto
Copy link
Member

hebasto commented Jul 18, 2022

Guix builds on arm64:

b3feb21fcd3260ab4f8cff8899b33a709f2899cc7adf916b22320077de2756e6  guix-build-2bb4c3be6bd8/output/arm-linux-gnueabihf/SHA256SUMS.part
5684cab83ec3acc2d6b02afa31890def15d0f2959e26f9509a7150fb92d0649d  guix-build-2bb4c3be6bd8/output/arm-linux-gnueabihf/bitcoin-2bb4c3be6bd8-arm-linux-gnueabihf-debug.tar.gz
db0d8377a44b0847a908ef39e1e01b8a50e584cf339e42e630858de76935b786  guix-build-2bb4c3be6bd8/output/arm-linux-gnueabihf/bitcoin-2bb4c3be6bd8-arm-linux-gnueabihf.tar.gz
d03e034e8372d2c648545615e7104afe65b58aeef994556833592cccfaac2ade  guix-build-2bb4c3be6bd8/output/arm64-apple-darwin/SHA256SUMS.part
786c029d43750875eac4c03f62ae410e6ac863af0ca1499c5d49ee9612317860  guix-build-2bb4c3be6bd8/output/arm64-apple-darwin/bitcoin-2bb4c3be6bd8-arm64-apple-darwin-unsigned.dmg
91b78a19a5f452cd0e675ac29f365fa77f0a86e27ee692581b605332e1fd5b04  guix-build-2bb4c3be6bd8/output/arm64-apple-darwin/bitcoin-2bb4c3be6bd8-arm64-apple-darwin-unsigned.tar.gz
509207684eaa91aadb956ea16c94b981756261b9bc05fddf523d63d06facaafc  guix-build-2bb4c3be6bd8/output/arm64-apple-darwin/bitcoin-2bb4c3be6bd8-arm64-apple-darwin.tar.gz
458435b75903541ca9ad33783934a7c041b9dcc7ea243ccc673dffd31c7bf02e  guix-build-2bb4c3be6bd8/output/dist-archive/bitcoin-2bb4c3be6bd8.tar.gz
01adccc6e6087457eb0fce47e1e6442f95814de100f66d5b8d6d7e19c96d5ac2  guix-build-2bb4c3be6bd8/output/powerpc64-linux-gnu/SHA256SUMS.part
302bc645daa77cb4389fbf9dbbf539b4739e5dcac566b1fb2a5c6f0948441482  guix-build-2bb4c3be6bd8/output/powerpc64-linux-gnu/bitcoin-2bb4c3be6bd8-powerpc64-linux-gnu-debug.tar.gz
4fab066f239b0bea3b4a5d28e8b7a3bad02b34499364037c25ab20f45bb94912  guix-build-2bb4c3be6bd8/output/powerpc64-linux-gnu/bitcoin-2bb4c3be6bd8-powerpc64-linux-gnu.tar.gz
dc1ea3370f65f21c6d65f1a8b38ffa854b67965635eefb07a3a19ca05b3c9333  guix-build-2bb4c3be6bd8/output/powerpc64le-linux-gnu/SHA256SUMS.part
9e95957ca1ca023dcff1cf4ba77c904abf1075408e0e87aa5e4ab6cae0d44b29  guix-build-2bb4c3be6bd8/output/powerpc64le-linux-gnu/bitcoin-2bb4c3be6bd8-powerpc64le-linux-gnu-debug.tar.gz
6465d39c14b669a8e5aef71abf260cdac4ddb1c939c3640f271971825343ac55  guix-build-2bb4c3be6bd8/output/powerpc64le-linux-gnu/bitcoin-2bb4c3be6bd8-powerpc64le-linux-gnu.tar.gz
bbe40aa17ff955db92d43a5e79637d54d60a8d778df1c35d5d5448869fc31fc9  guix-build-2bb4c3be6bd8/output/riscv64-linux-gnu/SHA256SUMS.part
1753dc59c15db3b009ad0cebc350b4898260f23a50835f5aaa5dadbd31c679e9  guix-build-2bb4c3be6bd8/output/riscv64-linux-gnu/bitcoin-2bb4c3be6bd8-riscv64-linux-gnu-debug.tar.gz
5bc3505b843fa65e7cfbe216febf369574fc27f2f658c8e0fce8997448c47ee3  guix-build-2bb4c3be6bd8/output/riscv64-linux-gnu/bitcoin-2bb4c3be6bd8-riscv64-linux-gnu.tar.gz
2d361f4f4a673aca83244bff55b4ac9af6c40fc2703e0a431d221c79a10b4d5f  guix-build-2bb4c3be6bd8/output/x86_64-apple-darwin/SHA256SUMS.part
b40a8677d02896f208dfbd28e432763a123e457b9d323ce7aee8387b36067675  guix-build-2bb4c3be6bd8/output/x86_64-apple-darwin/bitcoin-2bb4c3be6bd8-x86_64-apple-darwin-unsigned.dmg
94b3ec023e06e9b6a6cb042f2e200f50046d9f1a8a354b39fc1ab212bc78b269  guix-build-2bb4c3be6bd8/output/x86_64-apple-darwin/bitcoin-2bb4c3be6bd8-x86_64-apple-darwin-unsigned.tar.gz
52f8f7b8037c7b0c2de287892b5fdaa334a63adeb9c25fdf98012ca01e16e509  guix-build-2bb4c3be6bd8/output/x86_64-apple-darwin/bitcoin-2bb4c3be6bd8-x86_64-apple-darwin.tar.gz
11796a0a7b5abff07e4936d5d17c720fd813543c96cddd6d710f6109dc59cff2  guix-build-2bb4c3be6bd8/output/x86_64-linux-gnu/SHA256SUMS.part
ad952603a7b6fe2c7a9ec50175b35bfa2a954ec704e153f4915a6b16fb7edb43  guix-build-2bb4c3be6bd8/output/x86_64-linux-gnu/bitcoin-2bb4c3be6bd8-x86_64-linux-gnu-debug.tar.gz
511a1398d806454b570d67298df18af25303678a4758b84b3e428fbe0aa01e58  guix-build-2bb4c3be6bd8/output/x86_64-linux-gnu/bitcoin-2bb4c3be6bd8-x86_64-linux-gnu.tar.gz
34c097c10110de90bb3d2085ad559f31b44817d8a256241fed996a33f0dd5f7f  guix-build-2bb4c3be6bd8/output/x86_64-w64-mingw32/SHA256SUMS.part
d12cc588a19796a8c2e08c92d88a16cde9e4b8bce001a7757cf01c7ecd1da36d  guix-build-2bb4c3be6bd8/output/x86_64-w64-mingw32/bitcoin-2bb4c3be6bd8-win64-debug.zip
2efc45f62a4db50477f09b7e3fa99705c42090dd1cca276900f3dc06ac07a854  guix-build-2bb4c3be6bd8/output/x86_64-w64-mingw32/bitcoin-2bb4c3be6bd8-win64-setup-unsigned.exe
12f0869616c8d6a58b7309a43132d41497014cc08ff4ad89f2da7ab17f834650  guix-build-2bb4c3be6bd8/output/x86_64-w64-mingw32/bitcoin-2bb4c3be6bd8-win64-unsigned.tar.gz
4d6ff7b4e32d15ef5a10743b2823c3df211f832a7d28687bbee6ae2c1f263263  guix-build-2bb4c3be6bd8/output/x86_64-w64-mingw32/bitcoin-2bb4c3be6bd8-win64.zip

@hebasto
Copy link
Member

hebasto commented Jul 18, 2022

Guix builds on x86_64:

39ed59a5614642986f5c6cf941a947fa24d24c1513df1ed76ea42bcb5a8cf37b  guix-build-2bb4c3be6bd8/output/aarch64-linux-gnu/SHA256SUMS.part
d955ececaae2c5337eb5792a507b53b401f1c4eb0b600eef7480900baf366707  guix-build-2bb4c3be6bd8/output/aarch64-linux-gnu/bitcoin-2bb4c3be6bd8-aarch64-linux-gnu-debug.tar.gz
79fcf66b9f616ec5a59fb066afacbbb35bf2388d848775173997c6502191d58a  guix-build-2bb4c3be6bd8/output/aarch64-linux-gnu/bitcoin-2bb4c3be6bd8-aarch64-linux-gnu.tar.gz
a7d94cf33c46ae2a3c62892f1420c50db579ea59e0195e9d5cb55346a3ad4274  guix-build-2bb4c3be6bd8/output/arm-linux-gnueabihf/SHA256SUMS.part
5684cab83ec3acc2d6b02afa31890def15d0f2959e26f9509a7150fb92d0649d  guix-build-2bb4c3be6bd8/output/arm-linux-gnueabihf/bitcoin-2bb4c3be6bd8-arm-linux-gnueabihf-debug.tar.gz
82458f0e1d22c9f15ce06bf166d601a17f8e57b563b864be7819d25eb3e0655e  guix-build-2bb4c3be6bd8/output/arm-linux-gnueabihf/bitcoin-2bb4c3be6bd8-arm-linux-gnueabihf.tar.gz
f4312c75691600abcc7fa7ac28cc1d4ef2cec34ad49273f35b3388cab2327013  guix-build-2bb4c3be6bd8/output/arm64-apple-darwin/SHA256SUMS.part
dec7307030aa4da2faf6f424f4a87248eda0444a05da8f31eced2946ee7f38af  guix-build-2bb4c3be6bd8/output/arm64-apple-darwin/bitcoin-2bb4c3be6bd8-arm64-apple-darwin-unsigned.dmg
1824079d4d42732f166da057fa147860fee91ea214c820082253b583bb63e1bc  guix-build-2bb4c3be6bd8/output/arm64-apple-darwin/bitcoin-2bb4c3be6bd8-arm64-apple-darwin-unsigned.tar.gz
a9d9ec53b84203eb91d99acb92c273bc46dea23b740471060120c1b5cd9b9206  guix-build-2bb4c3be6bd8/output/arm64-apple-darwin/bitcoin-2bb4c3be6bd8-arm64-apple-darwin.tar.gz
458435b75903541ca9ad33783934a7c041b9dcc7ea243ccc673dffd31c7bf02e  guix-build-2bb4c3be6bd8/output/dist-archive/bitcoin-2bb4c3be6bd8.tar.gz
01adccc6e6087457eb0fce47e1e6442f95814de100f66d5b8d6d7e19c96d5ac2  guix-build-2bb4c3be6bd8/output/powerpc64-linux-gnu/SHA256SUMS.part
302bc645daa77cb4389fbf9dbbf539b4739e5dcac566b1fb2a5c6f0948441482  guix-build-2bb4c3be6bd8/output/powerpc64-linux-gnu/bitcoin-2bb4c3be6bd8-powerpc64-linux-gnu-debug.tar.gz
4fab066f239b0bea3b4a5d28e8b7a3bad02b34499364037c25ab20f45bb94912  guix-build-2bb4c3be6bd8/output/powerpc64-linux-gnu/bitcoin-2bb4c3be6bd8-powerpc64-linux-gnu.tar.gz
dc1ea3370f65f21c6d65f1a8b38ffa854b67965635eefb07a3a19ca05b3c9333  guix-build-2bb4c3be6bd8/output/powerpc64le-linux-gnu/SHA256SUMS.part
9e95957ca1ca023dcff1cf4ba77c904abf1075408e0e87aa5e4ab6cae0d44b29  guix-build-2bb4c3be6bd8/output/powerpc64le-linux-gnu/bitcoin-2bb4c3be6bd8-powerpc64le-linux-gnu-debug.tar.gz
6465d39c14b669a8e5aef71abf260cdac4ddb1c939c3640f271971825343ac55  guix-build-2bb4c3be6bd8/output/powerpc64le-linux-gnu/bitcoin-2bb4c3be6bd8-powerpc64le-linux-gnu.tar.gz
53aa09a3be7bb5fd8723d3d45affe4f9969b2d1eb3f9aa9d8efb50294bc6f1e2  guix-build-2bb4c3be6bd8/output/riscv64-linux-gnu/SHA256SUMS.part
1753dc59c15db3b009ad0cebc350b4898260f23a50835f5aaa5dadbd31c679e9  guix-build-2bb4c3be6bd8/output/riscv64-linux-gnu/bitcoin-2bb4c3be6bd8-riscv64-linux-gnu-debug.tar.gz
ee5e29839eb8711d4c47ecc2c07f21196ebbe353038a1072793e9b49f31225f4  guix-build-2bb4c3be6bd8/output/riscv64-linux-gnu/bitcoin-2bb4c3be6bd8-riscv64-linux-gnu.tar.gz
2d361f4f4a673aca83244bff55b4ac9af6c40fc2703e0a431d221c79a10b4d5f  guix-build-2bb4c3be6bd8/output/x86_64-apple-darwin/SHA256SUMS.part
b40a8677d02896f208dfbd28e432763a123e457b9d323ce7aee8387b36067675  guix-build-2bb4c3be6bd8/output/x86_64-apple-darwin/bitcoin-2bb4c3be6bd8-x86_64-apple-darwin-unsigned.dmg
94b3ec023e06e9b6a6cb042f2e200f50046d9f1a8a354b39fc1ab212bc78b269  guix-build-2bb4c3be6bd8/output/x86_64-apple-darwin/bitcoin-2bb4c3be6bd8-x86_64-apple-darwin-unsigned.tar.gz
52f8f7b8037c7b0c2de287892b5fdaa334a63adeb9c25fdf98012ca01e16e509  guix-build-2bb4c3be6bd8/output/x86_64-apple-darwin/bitcoin-2bb4c3be6bd8-x86_64-apple-darwin.tar.gz
11796a0a7b5abff07e4936d5d17c720fd813543c96cddd6d710f6109dc59cff2  guix-build-2bb4c3be6bd8/output/x86_64-linux-gnu/SHA256SUMS.part
ad952603a7b6fe2c7a9ec50175b35bfa2a954ec704e153f4915a6b16fb7edb43  guix-build-2bb4c3be6bd8/output/x86_64-linux-gnu/bitcoin-2bb4c3be6bd8-x86_64-linux-gnu-debug.tar.gz
511a1398d806454b570d67298df18af25303678a4758b84b3e428fbe0aa01e58  guix-build-2bb4c3be6bd8/output/x86_64-linux-gnu/bitcoin-2bb4c3be6bd8-x86_64-linux-gnu.tar.gz
34c097c10110de90bb3d2085ad559f31b44817d8a256241fed996a33f0dd5f7f  guix-build-2bb4c3be6bd8/output/x86_64-w64-mingw32/SHA256SUMS.part
d12cc588a19796a8c2e08c92d88a16cde9e4b8bce001a7757cf01c7ecd1da36d  guix-build-2bb4c3be6bd8/output/x86_64-w64-mingw32/bitcoin-2bb4c3be6bd8-win64-debug.zip
2efc45f62a4db50477f09b7e3fa99705c42090dd1cca276900f3dc06ac07a854  guix-build-2bb4c3be6bd8/output/x86_64-w64-mingw32/bitcoin-2bb4c3be6bd8-win64-setup-unsigned.exe
12f0869616c8d6a58b7309a43132d41497014cc08ff4ad89f2da7ab17f834650  guix-build-2bb4c3be6bd8/output/x86_64-w64-mingw32/bitcoin-2bb4c3be6bd8-win64-unsigned.tar.gz
4d6ff7b4e32d15ef5a10743b2823c3df211f832a7d28687bbee6ae2c1f263263  guix-build-2bb4c3be6bd8/output/x86_64-w64-mingw32/bitcoin-2bb4c3be6bd8-win64.zip

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the following diff:

--- a/configure.ac
+++ b/configure.ac
@@ -2049,5 +2049,6 @@ echo "  CPPFLAGS        = $DEBUG_CPPFLAGS $HARDENED_CPPFLAGS $CORE_CPPFLAGS $CPP
 echo "  CXX             = $CXX"
 echo "  CXXFLAGS        = $LTO_CXXFLAGS $DEBUG_CXXFLAGS $HARDENED_CXXFLAGS $WARN_CXXFLAGS $NOWARN_CXXFLAGS $ERROR_CXXFLAGS $GPROF_CXXFLAGS $CORE_CXXFLAGS $CXXFLAGS"
 echo "  LDFLAGS         = $LTO_LDFLAGS $PTHREAD_LIBS $HARDENED_LDFLAGS $GPROF_LDFLAGS $CORE_LDFLAGS $LDFLAGS"
+echo "  AR              = $AR"
 echo "  ARFLAGS         = $ARFLAGS"
 echo

it is easy to see the wrong AR variable value:

...
  LTO             = yes

  target os       = mingw32
  build os        = linux-gnu

  CC              = /usr/bin/ccache x86_64-w64-mingw32-gcc
  CFLAGS          = -pthread -pipe -std=c11 -flto -O2 
  CPPFLAGS        =  -fmacro-prefix-map=$(abs_top_srcdir)=.  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2  -DHAVE_BUILD_INFO -D_MT -DWIN32 -D_WINDOWS -D_WIN32_WINNT=0x0601 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_FILE_OFFSET_BITS=64 -DPROVIDE_FUZZ_MAIN_FUNCTION -I/home/hebasto/git/bitcoin/depends/x86_64-w64-mingw32/include/ 
  CXX             = /usr/bin/ccache x86_64-w64-mingw32-g++-posix -std=c++17
  CXXFLAGS        =  -flto  -fdebug-prefix-map=$(abs_top_srcdir)=.  -fstack-reuse=none -Wstack-protector -fstack-protector-all -fcf-protection=full      -fno-extended-identifiers -pipe -std=c++17 -flto -O2 
  LDFLAGS         =  -flto -lpthread  -Wl,--enable-reloc-section -Wl,--dynamicbase -Wl,--nxcompat -Wl,--high-entropy-va -pie   -Wl,--major-subsystem-version -Wl,6 -Wl,--minor-subsystem-version -Wl,1 -flto -L/home/hebasto/git/bitcoin/depends/x86_64-w64-mingw32/lib 
  AR              = /usr/bin/x86_64-w64-mingw32-ar
  ARFLAGS         = cr

Suggesting to rebase this branch on top of the https://github.com/hebasto/bitcoin/commits/220718-pathtool.

hebasto and others added 2 commits July 18, 2022 17:13
See the `AC_PATH_TOOL` macro implementation.
This improves support for LTO by using gcc wrappers for ar, nm, ranlib,
that correctly setup plugin arguments for LTO.

Other HOSTS are using clang.
@dongcarl
Copy link
Contributor

Code Review ACK 658685a

@hebasto
Copy link
Member

hebasto commented Jul 18, 2022

Guix builds on arm64:

fb96ec069a2dea0320f39944342d62de0741d25c9d29409ee37f425b2b0b3e39  guix-build-658685af935e/output/arm-linux-gnueabihf/SHA256SUMS.part
751a9981ef9ea9af8a3c8eb188d342736d76c84ca1b724f288f8627c548295f4  guix-build-658685af935e/output/arm-linux-gnueabihf/bitcoin-658685af935e-arm-linux-gnueabihf-debug.tar.gz
97283c0844310643fd3c6346f036ec17fbd5c9728055e85a75f27dcbb5988511  guix-build-658685af935e/output/arm-linux-gnueabihf/bitcoin-658685af935e-arm-linux-gnueabihf.tar.gz
cac75549e6734a08f638df9b4c7ca22acee6579b79bb36c90d671a3f1f8028e9  guix-build-658685af935e/output/arm64-apple-darwin/SHA256SUMS.part
2bbe9e78112bc732ab78728240b7810ee80b2d47c15ab0319933f158ea63c01d  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin-unsigned.dmg
7d4309c6c41baf1fa5b61d9edeb5d16d067500e8f52ac12a1370a8aa0808aef0  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin-unsigned.tar.gz
80dc91abfecd78dfc4e8c93a1b83f64d82e7fdb156acfc0779ed327c0b30a1e6  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin.tar.gz
7cf98a87ad06d4b9b51d3f1245e8a4f7507ba8f6b1ebd54ff6a11427684222de  guix-build-658685af935e/output/dist-archive/bitcoin-658685af935e.tar.gz
4241dc594fc8e1adcd76c9bffd854aeb4272a4d59b3bbbe4bcb540a5f06f96a5  guix-build-658685af935e/output/powerpc64-linux-gnu/SHA256SUMS.part
8c8090e28a4732777321196ea548224c24a74b08e4f92c69865ca0d484887229  guix-build-658685af935e/output/powerpc64-linux-gnu/bitcoin-658685af935e-powerpc64-linux-gnu-debug.tar.gz
002c9a7d60d1e5c343d3326ae1390c9e472396fcae9ed431738acc88c8f87ab5  guix-build-658685af935e/output/powerpc64-linux-gnu/bitcoin-658685af935e-powerpc64-linux-gnu.tar.gz
f6ef03b8887ddd3b9f23a874fcf550bcfa1c899e885c8b431a15d37349596ca6  guix-build-658685af935e/output/powerpc64le-linux-gnu/SHA256SUMS.part
888dc1787de6406dd4352a365f025d96fc3dbc775425b583d5aff3c453870b00  guix-build-658685af935e/output/powerpc64le-linux-gnu/bitcoin-658685af935e-powerpc64le-linux-gnu-debug.tar.gz
a53b31fb025a23b352b8a55661f07e636152c1761471686bb3a0d99c3d452fdb  guix-build-658685af935e/output/powerpc64le-linux-gnu/bitcoin-658685af935e-powerpc64le-linux-gnu.tar.gz
d0264a9b8fe5fd0533a565ddd9ba55b090defd59dad8e41928cc735b1f722872  guix-build-658685af935e/output/riscv64-linux-gnu/SHA256SUMS.part
61ab8a3c1744953f2ac64995326835a3f717822bbeb75f2e596c3893776ad9e5  guix-build-658685af935e/output/riscv64-linux-gnu/bitcoin-658685af935e-riscv64-linux-gnu-debug.tar.gz
b107545ba53a95b4a73d5116ece35158e5cdb26662d5e09038a0afeda6df92a0  guix-build-658685af935e/output/riscv64-linux-gnu/bitcoin-658685af935e-riscv64-linux-gnu.tar.gz
3cf08fb3f4c93dbcb6a2a89bc04f4f3a91093ca7003fc8ddf80b60780f82dfcc  guix-build-658685af935e/output/x86_64-apple-darwin/SHA256SUMS.part
b1b932f63cb4cdb03da95adec9ba90394595d656be93af87c8a93905ffd3a66b  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin-unsigned.dmg
2de58610f02824b4039cc6aad2a1a5b2b95562b9d894d56f8ad5b43319f98cb6  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin-unsigned.tar.gz
2f16a479964b6bd46839a970ac47bd9e4513fa0eaf77c2cba62fb03ac91c1228  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin.tar.gz
fcbfec6b728c22fdeb0c222efd7fc3ac04bdce6836d4d8a057f69d05401127f1  guix-build-658685af935e/output/x86_64-linux-gnu/SHA256SUMS.part
230098a5d5832d053925ebf75a2b35c1a12bbc9a19f5972321ee9d87cf0770b0  guix-build-658685af935e/output/x86_64-linux-gnu/bitcoin-658685af935e-x86_64-linux-gnu-debug.tar.gz
c3885c22dcb4dadd7e48d4baf97410c8ae785ca4c982f25192e10c2a0b2d0634  guix-build-658685af935e/output/x86_64-linux-gnu/bitcoin-658685af935e-x86_64-linux-gnu.tar.gz
7bd8602ca8775327a50135cae6af1881df95d5f32fa3c2d225a5d8fa3bd9c155  guix-build-658685af935e/output/x86_64-w64-mingw32/SHA256SUMS.part
683741bab903321395150aff39d9091e88b6a9342623087748991b3b8637e05b  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-debug.zip
be01432d132cd947016476d5d80812fe31ba9ea7ec2bcbdede4320b77cc06fcb  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-setup-unsigned.exe
a3f49efa1612d46ed7f81f053ec51f2180c2164996d284530ae3c8688fcf12a4  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-unsigned.tar.gz
1c1a40fa6fc59d709f022cdaefde1d9e09093df81170c7bca10bdf319cc758bc  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64.zip

@hebasto
Copy link
Member

hebasto commented Jul 18, 2022

Guix builds on x86_64:

30d85c0d1fc7753cc3c3c5494debbc4fc19b3e8c049b7377b1ef31a848989c6b  guix-build-658685af935e/output/aarch64-linux-gnu/SHA256SUMS.part
e1e2fe6dbbfa2e953d25bec1c691b10a2282d2dcaa1ecdb2a8e4bfff7431be04  guix-build-658685af935e/output/aarch64-linux-gnu/bitcoin-658685af935e-aarch64-linux-gnu-debug.tar.gz
6c8efd4a9123b25ac668dbd9345f063ea95d9505896c2084cc5330608b15f360  guix-build-658685af935e/output/aarch64-linux-gnu/bitcoin-658685af935e-aarch64-linux-gnu.tar.gz
6480cfbfe5498aaade9458678386a478d000ffcfd1a5cea911b7f22346c9f9f6  guix-build-658685af935e/output/arm-linux-gnueabihf/SHA256SUMS.part
751a9981ef9ea9af8a3c8eb188d342736d76c84ca1b724f288f8627c548295f4  guix-build-658685af935e/output/arm-linux-gnueabihf/bitcoin-658685af935e-arm-linux-gnueabihf-debug.tar.gz
fd2e2cbe4c8e0f3822680a5554031649d9c21014c719b58b98f041acf95975df  guix-build-658685af935e/output/arm-linux-gnueabihf/bitcoin-658685af935e-arm-linux-gnueabihf.tar.gz
0da780b0379920396c257ac464f714af8648f9c1e7a72c9b190b71405e0d29fd  guix-build-658685af935e/output/arm64-apple-darwin/SHA256SUMS.part
89f8b9a9a897c9cf2554b6fa5fcc1ef40662e722ac97f7cfc7a7d77e0785cc6d  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin-unsigned.dmg
e3f3e0bef31e8e7c457335a1bb1c62b6640f79e6fe6ca517957f18f66ef63def  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin-unsigned.tar.gz
a8c6cc701ab1db4b5006c8cdce027516da35914c60cfb0acfb7e632f586c2a24  guix-build-658685af935e/output/arm64-apple-darwin/bitcoin-658685af935e-arm64-apple-darwin.tar.gz
7cf98a87ad06d4b9b51d3f1245e8a4f7507ba8f6b1ebd54ff6a11427684222de  guix-build-658685af935e/output/dist-archive/bitcoin-658685af935e.tar.gz
4241dc594fc8e1adcd76c9bffd854aeb4272a4d59b3bbbe4bcb540a5f06f96a5  guix-build-658685af935e/output/powerpc64-linux-gnu/SHA256SUMS.part
8c8090e28a4732777321196ea548224c24a74b08e4f92c69865ca0d484887229  guix-build-658685af935e/output/powerpc64-linux-gnu/bitcoin-658685af935e-powerpc64-linux-gnu-debug.tar.gz
002c9a7d60d1e5c343d3326ae1390c9e472396fcae9ed431738acc88c8f87ab5  guix-build-658685af935e/output/powerpc64-linux-gnu/bitcoin-658685af935e-powerpc64-linux-gnu.tar.gz
f6ef03b8887ddd3b9f23a874fcf550bcfa1c899e885c8b431a15d37349596ca6  guix-build-658685af935e/output/powerpc64le-linux-gnu/SHA256SUMS.part
888dc1787de6406dd4352a365f025d96fc3dbc775425b583d5aff3c453870b00  guix-build-658685af935e/output/powerpc64le-linux-gnu/bitcoin-658685af935e-powerpc64le-linux-gnu-debug.tar.gz
a53b31fb025a23b352b8a55661f07e636152c1761471686bb3a0d99c3d452fdb  guix-build-658685af935e/output/powerpc64le-linux-gnu/bitcoin-658685af935e-powerpc64le-linux-gnu.tar.gz
d0264a9b8fe5fd0533a565ddd9ba55b090defd59dad8e41928cc735b1f722872  guix-build-658685af935e/output/riscv64-linux-gnu/SHA256SUMS.part
61ab8a3c1744953f2ac64995326835a3f717822bbeb75f2e596c3893776ad9e5  guix-build-658685af935e/output/riscv64-linux-gnu/bitcoin-658685af935e-riscv64-linux-gnu-debug.tar.gz
b107545ba53a95b4a73d5116ece35158e5cdb26662d5e09038a0afeda6df92a0  guix-build-658685af935e/output/riscv64-linux-gnu/bitcoin-658685af935e-riscv64-linux-gnu.tar.gz
3cf08fb3f4c93dbcb6a2a89bc04f4f3a91093ca7003fc8ddf80b60780f82dfcc  guix-build-658685af935e/output/x86_64-apple-darwin/SHA256SUMS.part
b1b932f63cb4cdb03da95adec9ba90394595d656be93af87c8a93905ffd3a66b  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin-unsigned.dmg
2de58610f02824b4039cc6aad2a1a5b2b95562b9d894d56f8ad5b43319f98cb6  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin-unsigned.tar.gz
2f16a479964b6bd46839a970ac47bd9e4513fa0eaf77c2cba62fb03ac91c1228  guix-build-658685af935e/output/x86_64-apple-darwin/bitcoin-658685af935e-x86_64-apple-darwin.tar.gz
fcbfec6b728c22fdeb0c222efd7fc3ac04bdce6836d4d8a057f69d05401127f1  guix-build-658685af935e/output/x86_64-linux-gnu/SHA256SUMS.part
230098a5d5832d053925ebf75a2b35c1a12bbc9a19f5972321ee9d87cf0770b0  guix-build-658685af935e/output/x86_64-linux-gnu/bitcoin-658685af935e-x86_64-linux-gnu-debug.tar.gz
c3885c22dcb4dadd7e48d4baf97410c8ae785ca4c982f25192e10c2a0b2d0634  guix-build-658685af935e/output/x86_64-linux-gnu/bitcoin-658685af935e-x86_64-linux-gnu.tar.gz
7bd8602ca8775327a50135cae6af1881df95d5f32fa3c2d225a5d8fa3bd9c155  guix-build-658685af935e/output/x86_64-w64-mingw32/SHA256SUMS.part
683741bab903321395150aff39d9091e88b6a9342623087748991b3b8637e05b  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-debug.zip
be01432d132cd947016476d5d80812fe31ba9ea7ec2bcbdede4320b77cc06fcb  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-setup-unsigned.exe
a3f49efa1612d46ed7f81f053ec51f2180c2164996d284530ae3c8688fcf12a4  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64-unsigned.tar.gz
1c1a40fa6fc59d709f022cdaefde1d9e09093df81170c7bca10bdf319cc758bc  guix-build-658685af935e/output/x86_64-w64-mingw32/bitcoin-658685af935e-win64.zip

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 658685a

@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #25573 ([POC] guix: produce a fully -static-pie x86_64 bitcoind using GCC and glibc by fanquake)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

Copy link
Member

@jarolrod jarolrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 658685a

my hashes match hebasto's

@fanquake fanquake merged commit 8c9ea8a into bitcoin:master Jul 19, 2022
@fanquake fanquake deleted the lto_improvements branch July 19, 2022 07:40
@DrahtBot
Copy link
Contributor

Guix builds

File commit d806407
(master)
commit 87d951e
(master and this pull)
SHA256SUMS.part 05d4fdc976bb6a82... b28c55724251b3da...
*-aarch64-linux-gnu-debug.tar.gz 6f72efb2b0a455f1... 226ea186bdd04c98...
*-aarch64-linux-gnu.tar.gz 85676305525c8f8d... b402ddf723a4e8ec...
*-arm-linux-gnueabihf-debug.tar.gz 1e2d56ae224547c5... 391a66409a02fdcf...
*-arm-linux-gnueabihf.tar.gz 5751436dc040e5c3... b92be38c96545f96...
*-arm64-apple-darwin-unsigned.dmg a88b71aa6559ff4d... fb50b1d69f840bad...
*-arm64-apple-darwin-unsigned.tar.gz 830eb8641b58142c... 0f27b33bb37368c5...
*-arm64-apple-darwin.tar.gz 95b49d0a46068a13... 6b34b83041f47eea...
*-powerpc64-linux-gnu-debug.tar.gz 496d4f06c79a1fb2... e2dec5609e98718a...
*-powerpc64-linux-gnu.tar.gz bc8f14d4e507f8f1... ecd9385d50b36584...
*-powerpc64le-linux-gnu-debug.tar.gz 9fc73e9f1a0aebb6... 78bb9543c16db870...
*-powerpc64le-linux-gnu.tar.gz d5245851b8b59936... e729f89bbbf8ff99...
*-riscv64-linux-gnu-debug.tar.gz 9cad53bdb5e27790... e185fffc95ff150e...
*-riscv64-linux-gnu.tar.gz facc393686b52f86... 1b2bf1fc5b89f075...
*-win64-debug.zip 7dc5de8f35b430a9... 9b458def612294e3...
*-win64-setup-unsigned.exe 2296b6a1b0a925e9... b1a75bfe2b777d0a...
*-win64-unsigned.tar.gz a11d2017f780762d... f43f49b2622dc763...
*-win64.zip 8472133685ac4235... b9cb9091e9185c3f...
*-x86_64-apple-darwin-unsigned.dmg ced1025957e7270c... 5c6dfc7dc3d7ebe8...
*-x86_64-apple-darwin-unsigned.tar.gz 463b4b5d50494ec9... 428a95366b99fbab...
*-x86_64-apple-darwin.tar.gz ac9e3713069dc104... 6cad38e91f79e290...
*-x86_64-linux-gnu-debug.tar.gz c3545558316f9274... 4588945becc0f5b7...
*-x86_64-linux-gnu.tar.gz 044d27f4f36999b3... 8876bea3be19844f...
*.tar.gz ab3f86cb6a26e740... 4a055a43092bb189...
guix_build.log eae6655060988381... d53e91e9228d963a...
guix_build.log.diff fcda70832e5f5bdb...

sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jul 19, 2022
…LTO (with GCC)

658685a depends: default to using GCC tool wrappers (with GCC) (fanquake)
6fdc13c build: Fix autoconf variable names for tools found by `AC_PATH_TOOL` (Hennadii Stepanov)

Pull request description:

  This improves support for LTO by using gcc wrappers for `ar`, `nm`, `ranlib`,
  that correctly setup plugin arguments for LTO, when using GCC.

  Other HOSTS are using clang.

  Portion of bitcoin#25391.

  Guix Build (x86_64):
  ```bash
  ```

  Guix Build (arm64):
  ```bash
  ```

ACKs for top commit:
  dongcarl:
    Code Review ACK 658685a
  hebasto:
    ACK 658685a
  jarolrod:
    ACK 658685a

Tree-SHA512: 28d6127c118f74336c97e2523117f8a0d11b32cd565124cd4052baeb7cc53e71909d3037cb080d996ae4e3ce600326fced37ee36adcc53d839ba7dd7974ebcd2
@bitcoin bitcoin locked and limited conversation to collaborators Jul 19, 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.

6 participants