Repository navigation
depends: move FreeBSD SDK handling to CI - #35649
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35649. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, this pull request conflicts with the following ones:
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. |
72d0b04 to
c264cfc
Compare
As pointed out by Hebasto, the approach used in bitcoin#35397 and bitcoin#35412 is better, rather than hardcoding flags and putting the SDK handling into depends.
If we don't suffix with -${APT_LLVM_V}, then lld-21 will be installed.
c264cfc to
22ac4ad
Compare
willcl-ark
left a comment
There was a problem hiding this comment.
ACK 22ac4ad
Keeping the CI-managed SDK, LLVM version and linker setup in CI files (rather than depends) make better sense to me. If depends users need a sysroot they can provide one manually.
…05fc7ab 81405fc7ab Merge bitcoin/bitcoin#35689: test: Inline incorrect check in `util_tests` cd2a4bc510 test: Redeclare variable as signed in `util_tests` 6f1c56f03a Merge bitcoin/bitcoin#35670: net: optimize compact block extra tx iteration e94fda8a40 Merge bitcoin/bitcoin#35685: doc: Archive 30.3 release notes 5223cf1795 Merge bitcoin/bitcoin#35616: refactor: Use u64 over size_t for all cache sizes to fix a 32-bit overflow c0e91efdb3 Merge bitcoin/bitcoin#35295: validation: fetch block input prevouts in parallel during ConnectBlock f0da26cfc8 Merge bitcoin/bitcoin#34997: p2p: Don't participate in addr relay with feelers 443179a9eb doc: Archive 30.3 release notes fabafd91f1 refactor: Use u64 over size_t for all cache sizes to fix a 32-bit overflow 32941e1314 Merge bitcoin/bitcoin#35649: depends: move FreeBSD SDK handling to CI f379d716b1 Merge bitcoin/bitcoin#35669: doc: archive release notes for v31.1 881bb7b355 Merge bitcoin/bitcoin#35673: refactor: Move LoadGenesisBlock to ChainstateManager 3f3e644beb Merge bitcoin/bitcoin#35678: private broadcast: define and use new RPC_LIMIT_EXCEEDED error code ( + other follow-ups) e3b026bf56 Merge bitcoin/bitcoin#34020: mining: add getTransactions(ByWitnessID) IPC methods 62f9089343 Merge bitcoin/bitcoin#35386: doc: add an AI contribution policy fa615bd163 refactor: Move LoadGenesisBlock to ChainstateManager 8ac222484c private broadcast: remove no-op [[nodiscard]] 191bdcba26 test: align test better with described scenario 7ad311be18 test: use BOOST_CHECK_EQUAL for PrivateBroadcast::AddResult 82a02a2a22 rpc: define and use new RPC_LIMIT_EXCEEDED error code a64df338e6 Merge bitcoin/bitcoin#35651: doc: Improve offline-signing-tutorial after 32489 4498fa5d5b Merge bitcoin/bitcoin#35406: private broadcast: limit outstanding txs to count of 10,000 ec5edcd72b Merge bitcoin/bitcoin#35661: Update libmultiprocess subtree to add `ThreadMap.makePool` method ea67fea062 Merge bitcoin/bitcoin#35464: kernel: Add function for creating chainparams with a signet challenge a7b5f23bb8 Merge bitcoin/bitcoin#35667: refactor: Use `NetworkErrorString` for macOS code in `netif.cpp` 69fc991791 Merge bitcoin/bitcoin#32606: p2p: Drop unsolicited CMPCTBLOCK from non-HB peer and when blocksonly 1a3cbf1bd2 net: optimize compact block extra tx iteration bc33509ae2 Merge bitcoin/bitcoin#35650: doc: Add release notes for 32489 (exportwatchonlywallet RPC) 2b6e767d96 doc: archive release notes for v31.1 b0735336ee p2p: Don't participate in addr relay with feeler connections 302733fd96 Merge bitcoin/bitcoin#35652: init: fix reindex deadlock by waking cv after interrupt c1313b199f init: wake genesis wait after ImportBlocks() returns eccb04a321 refactor: Use `NetworkErrorString` for macOS code in `netif.cpp` f79ecfd9c7 Merge bitcoin/bitcoin#35658: refactor: Drop unneeded `<sys/types.h>` include before `<ifaddrs.h>` 22ac4ad949 ci: ensure we use correct lld version in OpenBSD job 495f43f7b3 ci: FreeBSD 15.1 244739db9d depends: move FreeBSD SDK handling to CI bab0120053 Merge bitcoin/bitcoin#35621: validation: Ignore eventual error message from flushing in AcceptBlock 02afa66169 Merge commit '6b0a907302364649dcaffeb0340b985f14141b4e' into pr/subtree-11 6b0a907302 Squashed 'src/ipc/libmultiprocess/' changes from 3edbe8f67c1..16bf05dea02 22c328d388 refactor: Drop unneeded `<sys/types.h>` include before `<ifaddrs.h>` 2063f02bd5 Merge bitcoin/bitcoin#35510: test: SOCKS5 proxy: expect that connection may be reset during SOCKS5 handshake or data forwarding 1360001f43 Merge bitcoin/bitcoin#34959: wallet: Enforce BDB btree levels and overflow item sizes 10ffef4b3b Merge bitcoin/bitcoin#35604: log: expose `-logratelimit` in normal help b393985aa0 Merge bitcoin/bitcoin#35634: txospenderindex: use zero-byte entry values 1835f2fcbf Merge bitcoin/bitcoin#35653: fuzz: Remove `ConsumeUniValue` 9f3e427228 fuzz: Remove ConsumeUniValue 68cb7840d2 doc: improve offline-signing-tutorial after 32489 32ddfc92d9 Merge bitcoin/bitcoin#35599: doc: Add release notes for #33671 (getbalances nonmempool field) f56804bcf5 Merge bitcoin/bitcoin#35640: ci: use a 8x instance over 16x for riscv job 239d6c5260 Merge bitcoin/bitcoin#35614: HTTPServer: Prevent race condition between worker thread and I/O thread cddbad325d doc: Add release notes for 32489 (exportwatchonlywallet RPC) 0a1bbec688 Merge bitcoin/bitcoin#32489: wallet: Add `exportwatchonlywallet` RPC to export a watchonly version of a wallet 4a007126fb Merge bitcoin/bitcoin#35147: depends: Boost 1.91.0-1 31abaa264c doc: add an AI contribution policy a15bdc0598 doc: update offline-signing-tutorial to use exportwatchonlywallet rpc a388076401 test: Test for exportwatchonlywallet d053e3e5c8 wallet, rpc: Add exportwatchonlywallet RPC 444878efef wallet: Add CWallet::ExportWatchOnly f9273f01db wallet: Move listdescriptors retrieving from RPC to CWallet a1c83789a7 wallet: Write new descriptor's cache in AddWalletDescriptor 1e996640e6 wallet: Use Descriptor::CanSelfExpand() in CanGetAddresses() d2ee9227da descriptor: Add CanSelfExpand() 2990bd7735 Merge bitcoin/bitcoin#35118: fuzz: add ipc round-trip fuzz target fb1d152c24 depends: Boost 1.91.0-1 ba48852f9e Merge bitcoin/bitcoin#35438: test: introduce NodeSigner, run feature_taproot.py without wallet compiled 47bbed052e ci: use true|false over "true|false" 9a25bc3989 ci: use a 8x instance over 16x 9871dc7ab4 Merge bitcoin/bitcoin#31425: CI: Add Riscv bare metal job 113402286e doc: add txospenderindex release note ce06878288 index: shrink txospenderindex value markers a99148d576 test kernel: Don't log on warnings change 5b4fd284f4 kernel: Generate a signet with a challenge 037ad77071 fuzz: add IPC round-trip target a8823c0996 Merge bitcoin/bitcoin#35607: nanobench: fix performance counter buffer initialization f26c15bdd2 Merge bitcoin/bitcoin#35397: ci: add OpenBSD Clang cross job 91586f701e test: introduce NodeSigner, run feature_taproot.py without wallet compiled 771200ca43 test: return full keypair from `getnewdestination` helper 4e29de719e private broadcast: add release note for limited cap cbf8c107c1 Release cs_main between individual private tx re-attempts 5aea3d0373 private broadcast: limit outstanding txs to count of 10,000 dc282ff31d Merge bitcoin/bitcoin#35597: logging: More fully remove libevent log category ec98037f7a Merge bitcoin/bitcoin#35615: fuzz: restore CreateSock in PCP targets 43d89bb6e1 Merge bitcoin/bitcoin#35610: bitcoin-util: Add netmagic command e35c805489 Merge bitcoin/bitcoin#35129: test: add fuzz test for private broadcast dc1c17c085 doc: add release notes 0e10937184 fuzz: add coins_view_stacked fuzz harness to test concurrent leveldb reads ce610a6ff4 fuzz: update harnesses to cover CoinsViewOverlay::StartFetching 760fb22dc3 test: add unit tests for CoinsViewOverlay::StartFetching d69a3b20de doc: update CoinsViewOverlay docstring to describe parallel fetching ab2a379237 coins: fetch inputs in parallel fdf283036a coins: add ready flag to InputToFetch ede11b8314 validation: collect block inputs in CoinsViewOverlay before ConnectBlock f82043af50 coins: introduce thread pool in CoinsViewOverlay 5bf1c32008 validation: add -prevoutfetchthreads configuration option a318f43254 bitcoin-util: Add netmagic command 256482ab56 validation: In AcceptBlock, ignore flush result 3c76bd4356 Merge bitcoin/bitcoin#35603: build: QRencode cleanups f595daf1dd test: ensure HTTPServer race condition is fixed b98b10c072 test: introduce a worker thread in http socket error test 922b08d375 test: socket error handling in HTTPServer using ErrorSock mock socket 73da2a8a52 http: prevent race condition between worker thread and I/O thread 57b3bf8496 Merge bitcoin/bitcoin#35609: ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE d64ea15824 ci: add openBSD cross CI job 5404b62074 depends: add openbsd_LDFLAGS 2a9e35d293 Merge bitcoin/bitcoin#35588: scripted-diff: Rename `Sock::{RECV,SEND,ERR}` a0e5e30010 fuzz: restore CreateSock in PCP targets 41ceea400e scripted-diff: Rename `StatusLevel::{INFO,WARN,ERR}` f395acdeee scripted-diff: Rename `Sock::{RECV,SEND,ERR}` 7a74f65293 Merge bitcoin/bitcoin#35536: fuzz: share a single mocked steady clock across FuzzedSock instances e1290ce7f7 Merge bitcoin/bitcoin#35543: test: introduce ExtendedPrivateKey and ExtendedPublicKey classes 7ac25c9177 util, refactor: Rename local `ERR` in `Sock::Accept` bbbbab86a8 ci: Bump tsan config to ubuntu:26.04 with -U_FORTIFY_SOURCE 095596ddf7 log: expose -logratelimit option ea9afb61a1 Merge bitcoin/bitcoin#35602: doc: Clarify build docs about `pkgconf` / `pkg-config` requirements 672eedc46b Merge bitcoin/bitcoin#35220: fuzz: connman: strengthen assertions and extend coverage 0e5c718d8a Merge bitcoin/bitcoin#35506: test: ensure group data cluster pointers are live b6b1d0653a nanobench: fix perf counter buffer init 93012d7ff9 Merge bitcoin/bitcoin#35601: wallet: remove experimental warning from send and sendall 829255c8be cmake: Remove `SelectLibraryConfigurations` from `FindQRencode` module 5c55606da9 depends: Remove unused `lib/pkgconfig` in `qrencode` package 402ba10b20 cmake: Drop optional `PkgConfig` use in `FindQRencode` module 8ebfff0f88 doc: add send RPC release note fb8a103886 doc: Clarify build docs about `pkgconf` / `pkg-config` requirements 5884f5a4fa wallet: remove experimental warning from send RPCs 7b84e5106c Merge bitcoin/bitcoin#35595: ci: remove some packages from Chimera job 58560c281d ci: remove some packages from Chimera job 295ce6f45c Merge bitcoin/bitcoin#35576: test: raise `feature_reindex` RPC timeout b36730a3ef Add CI job for riscv bare metal bfdbf513f6 Add CI job for producing a static bare metal binary a9a1d92a1d build: Add option for building for bare metal envs 9b2ef81757 doc: add release notes for #33671 (getbalances nonmempool field) 633044f143 Merge bitcoin/bitcoin#35266: rpc, wallet: add an option to not load the wallet after migrating d6269e2a90 Merge bitcoin/bitcoin#35594: fuzz: cover async chainstate compaction 3765b428d1 logging: More fully remove libevent log category 703a671fbc fuzz: compact coins view db during fuzzing 0868c85fd5 refactor: rename async coin compaction 6fa4132298 fuzz: share a single mocked steady clock across FuzzedSock instances 8791c4764c test: use ExtendedPrivateKey in wallet_taproot.py 89ceafafb9 test: use ExtendedPrivateKey in wallet_listdescriptors.py bbfffcab58 test: use ExtendedPrivateKey in wallet_send.py 2ab6e590f7 test: use ExtendedPrivateKey in wallet_keypool.py 9e20118720 test: use ExtendedPrivateKey in wallet_fundrawtransaction.py 06af0cddbb test: use ExtendedPrivateKey in wallet_descriptor.py 4100fac20e test: use ExtendedPrivateKey in wallet_createwallet.py ff3f6def9a test: use ExtendedPrivateKey in wallet_bumpfee.py 003f2a01f6 test: use ExtendedPrivateKey in feature_notifications.py f988e6d6e6 test: use ExtendedPrivateKey in wallet_importdescriptors.py 0cdd817a82 add release note 517d37ce3e test: tests wallet migration with load_wallet disabled b98dd63da7 rpc: Add load_wallet argument to migratewallet RPC 4acd063ba6 wallet: make loading the wallet after migrating optional 1a3cfdf1b7 fuzz: connman: cover AddLocalServices/RemoveLocalServices c507fb3063 fuzz: connman: add outbound-bytes invariants 4a6fce43ea fuzz: connman: add AddNode/RemoveAddedNode invariants 9e6546c517 test: raise reindex mining RPC timeout d2a03d50ac test: add extendedkey.py unit tests by using BIP32 test vectors afdb378082 test: introduce ExtendedPrivateKey and ExtendedPublicKey classes 55e3a57f22 qa: Avoid UTXO reuse between test functions 9c5dd2926a p2p: Ignore CMPCTBLOCK from peer that hasn't sent SENDCMPCT bf9884f4e5 p2p: make blocksonly nodes ignore CMPCTBLOCK messages 92cea63c71 test: (Un)solicited invalid cb -> get disconnected. e845e26344 test: p2p: Nodes ignore unsolicited CMPCTBLOCK's 8313591715 p2p: Drop unsolicited CMPCTBLOCK from non-HB peer 44f377a71f refactor: test: Static assert_highbandwidth_states 25457a3272 test: Tighten getblocktxn checks in parallel cb reconstruction test. 2ee4fafa3f test: add fuzz test for private broadcast 08b7c61fc7 private broadcast: enforce sending to unique node ids 9a8ef9b0a3 test: SOCKS5 proxy: expect that connection may be reset during handshake eb3208364a test: SOCKS5 proxy: expect that connection may be reset when forwarding 4dbaa7cc65 test: generalise byte_to_base58 utility function to allow more version types df9eb72b12 test: ensure group data cluster pointers are live a5859edef4 fuzz: connman: set m_local_services/m_use_addrman_outgoing/m_max_automatic_connections 4b84c9125a fuzz: connman: add network activity invariants 9784818442 mining: add getTransactionsByWitnessID() IPC method d282ae6883 mining: add getTransactionsByTxID() IPC method 0d5e4d4712 test: restart node after IPC option override test f16b3613cd ipc: Serialize null CTransactionRef as empty Data 0f466e1094 mempool: add lookup by witness hash 51dd90fb50 refactor: Merge announce_cmpct_block() defs into one 97d08d62ba refactor: store wallet names to MigrationResult 8a739a5510 build: allow ipc fuzz builds b2de59d486 wallet, bdbro: Validate btree page levels dc3a2b9c3b wallet, bdbro: Enforce overflow data lengths git-subtree-dir: libbitcoinkernel-sys/bitcoin git-subtree-split: 81405fc7abbd1889f3978b8924e7acbe12b3403b
| export DEP_OPTS="build_CC=clang build_CXX=clang++ \ | ||
| CC='clang --target=${HOST} ${SYSROOT}' \ | ||
| CXX='clang++ --target=${HOST} ${SYSROOT} -stdlib=libc++' \ | ||
| LDFLAGS='-Wc,-fuse-ld=lld -fuse-ld=lld' \ |
There was a problem hiding this comment.
What's the purpose of the -Wc,-fuse-ld=lld Libtool's option here? All the depends packages that use Libtool seem to build fine without it.
There was a problem hiding this comment.
Fontconfig doesn't build without it, because it's bundled libtool filters -fuse-ld=lld, and the build uses ld:
2 warnings generated.
CCLD fcarch
1 warning generated.
CCLD libfontconfig.la
/usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62)
/usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62)
/usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62)
/usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62)
/usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: error adding symbols: file in wrong format
clang: error: linker command failed with exit code 1 (use -v to see invocation)All the depends packages that use Libtool seem to build fine without it.
How are you testing the build?
There was a problem hiding this comment.
Fontconfig doesn't build without it, because it's bundled libtool filters
-fuse-ld=lld, and the build usesld:2 warnings generated. CCLD fcarch 1 warning generated. CCLD libfontconfig.la /usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62) /usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62) /usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62) /usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62) /usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: error adding symbols: file in wrong format clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is this something that has been fixed in the modern Libtool versions?
All the depends packages that use Libtool seem to build fine without it.
How are you testing the build?
There was a problem hiding this comment.
Is this something that has been fixed in the modern Libtool versions?
I haven't looked.
There was a problem hiding this comment.
I just checked the verbose build logs for for fontconfig. Notice how adding -Wc,-fuse-ld=lld to LDFLAGS silently drops -pthread:
-libtool: link: clang --target=x86_64-unknown-freebsd --sysroot=/home/hebasto/SDKs/freebsd-x86_64-unknown-freebsd-15.0 -shared -fPIC -DPIC .libs/fcatomic.o .libs/fcblanks.o .libs/fccache.o .libs/fccfg.o .libs/fccharset.o .libs/fccompat.o .libs/fcdbg.o .libs/fcdefault.o .libs/fcdir.o .libs/fcformat.o .libs/fcfreetype.o .libs/fcfs.o .libs/fcinit.o .libs/fclang.o .libs/fclist.o .libs/fcmatch.o .libs/fcmatrix.o .libs/fcname.o .libs/fcobjs.o .libs/fcpat.o .libs/fcrange.o .libs/fcserialize.o .libs/fcstat.o .libs/fcstr.o .libs/fcweight.o .libs/fcxml.o .libs/ftglue.o -L/home/hebasto/dev/bitcoin/depends/x86_64-unknown-freebsd/lib -lfreetype -lexpat --sysroot=/home/hebasto/SDKs/freebsd-x86_64-unknown-freebsd-15.0 -O2 -pthread -pthread -Wl,-soname -Wl,libfontconfig.so.1 -o .libs/libfontconfig.so.1.10.1
+libtool: link: clang --target=x86_64-unknown-freebsd --sysroot=/home/hebasto/SDKs/freebsd-x86_64-unknown-freebsd-15.0 -shared -fPIC -DPIC .libs/fcatomic.o .libs/fcblanks.o .libs/fccache.o .libs/fccfg.o .libs/fccharset.o .libs/fccompat.o .libs/fcdbg.o .libs/fcdefault.o .libs/fcdir.o .libs/fcformat.o .libs/fcfreetype.o .libs/fcfs.o .libs/fcinit.o .libs/fclang.o .libs/fclist.o .libs/fcmatch.o .libs/fcmatrix.o .libs/fcname.o .libs/fcobjs.o .libs/fcpat.o .libs/fcrange.o .libs/fcserialize.o .libs/fcstat.o .libs/fcstr.o .libs/fcweight.o .libs/fcxml.o .libs/ftglue.o -L/home/hebasto/dev/bitcoin/depends/x86_64-unknown-freebsd/lib -lfreetype -lexpat --sysroot=/home/hebasto/SDKs/freebsd-x86_64-unknown-freebsd-15.0 -O2 -fuse-ld=lld -Wl,-soname -Wl,libfontconfig.so.1 -o .libs/libfontconfig.so.1.10.1Given this, shouldn't we adjust LDFLAGS as follows:
| LDFLAGS='-Wc,-fuse-ld=lld -fuse-ld=lld' \ | |
| LDFLAGS='-Wc,-pthread -Wc,-fuse-ld=lld -fuse-ld=lld' \ |
and document this Libtool hack in a comment?
There was a problem hiding this comment.
Fontconfig doesn't build without it, because it's bundled libtool filters
-fuse-ld=lld, and the build usesld:2 warnings generated. CCLD fcarch 1 warning generated. CCLD libfontconfig.la /usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62) /usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62) /usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62) /usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: Relocations in generic ELF (EM: 62) /usr/bin/aarch64-linux-gnu-ld.bfd: /ci_container_base/depends/SDKs/freebsd-x86_64-unknown-freebsd-15.1/usr/lib/crti.o: error adding symbols: file in wrong format clang: error: linker command failed with exit code 1 (use -v to see invocation)
We should switch the OS image to the arm64 architecture to catch similar issues in the future: https://github.com/hebasto/bitcoin/actions/runs/29087392625/job/86344255907.
There was a problem hiding this comment.
Given this, shouldn't we adjust LDFLAGS as follows:
and document this Libtool hack in a comment?
I don't mind. The point of adding this CI was to have a sanity check that bitcoin code actually compiles, when targeting FreeBSD. This seems to be getting well into the weeds, trying to document and workaround a problem in a sub dependency (where the issue is likely fixed in newer versions), of an optional dependency, which doesn't seem to have any effect on compilation, and only manifests on 1 architecture.
| export GOAL="install" | ||
| export BITCOIN_CONFIG="\ | ||
| --preset=dev-mode \ | ||
| -DCMAKE_LINKER_TYPE=LLD \ |
There was a problem hiding this comment.
This CMake option seems redundant, as -fuse-ld=lld is already passed via the toolchain file, no?
cee91c4 ci: ensure we use correct lld version in OpenBSD job (fanquake) 4e286c3 ci: FreeBSD 15.1 (fanquake) 9966c58 depends: move FreeBSD SDK handling to CI (fanquake) Pull request description: Followup to bitcoin/bitcoin#35397 (comment), which partially reverts changes from #34491. Also, make sure we install the correct version of `lld` in OpenBSD job. ACKs for top commit: willcl-ark: ACK cee91c4 Tree-SHA512: 0ce4bdebbeaf5a0c65f2fa4ae177853be246e69a8cab3943cad610a32e990b1d199ae3795d99b889a1d47dbc9c27e0311b026e26ce9f23312581056183dd0a1f
22ac4ad9496697f5881cb9a990fd0b50849e437e ci: ensure we use correct lld version in OpenBSD job (fanquake) 495f43f7b320a9f0e617756b821f0395a878d529 ci: FreeBSD 15.1 (fanquake) 244739db9d732ae6647b2f9c975f5af2c17e3f4d depends: move FreeBSD SDK handling to CI (fanquake) Pull request description: Followup to bitcoin/bitcoin#35397 (comment), which partially reverts changes from #34491. Also, make sure we install the correct version of `lld` in OpenBSD job. ACKs for top commit: willcl-ark: ACK 22ac4ad9496697f5881cb9a990fd0b50849e437e Tree-SHA512: 0ce4bdebbeaf5a0c65f2fa4ae177853be246e69a8cab3943cad610a32e990b1d199ae3795d99b889a1d47dbc9c27e0311b026e26ce9f23312581056183dd0a1f
As pointed out by Hebasto, the approach used in bitcoin/bitcoin#35397 and bitcoin/bitcoin#35412 is better, rather than hardcoding flags and putting the SDK handling into depends. Backport of bitcoin/bitcoin#35649. Apply only the depends host changes; SV2 has no FreeBSD CI job.
bdaa887 doc: clarify Windows support status (Sjors Provoost) 08ee427 refactor: Drop unneeded `<sys/types.h>` include before `<ifaddrs.h>` (Hennadii Stepanov) 46d7ef3 doc: Update Windows build docs to reflect migration from MSVCRT to UCRT (Hennadii Stepanov) 3d9bbce doc: Add `x86_64-w64-mingw32ucrt` triplet to `depends/README.md` (Hennadii Stepanov) d15469e doc: Update Guix install for Debian/Ubuntu (MarcoFalke) cd71a71 guix: documented shasum gathering command (janb84) c64aa41 doc: document depends compiler configuration (will) 1413c3c guix: stop passing depends sources to codesigning (fanquake) e1cd122 build: Remove outdated comment about -ffile-prefix-map (MarcoFalke) 1cfc6a2 build: add -Wleading-whitespace=spaces (fanquake) 753f238 build: add -Wtrailing-whitespace=any (fanquake) d2e7b49 scripted-diff: remove whitespace in sha256_sse4.cpp (fanquake) 1d2d0f3 refactor: Avoid -W*-whitespace in git archive (MarcoFalke) 99138ae subprocess: replace tab with space (fanquake) dd76d72 build: Bump macOS SDK version to 15.0 (Hennadii Stepanov) 50da349 guix: Build for macOS using LLVM toolchain only (Hennadii Stepanov) 4e26098 cmake: Drop support for the MSVC compiler (cl.exe) (Hennadii Stepanov) 6ff0f3a cmake: Adjust diagnostic flags for clang-cl (Hennadii Stepanov) 7abf01d cmake: Unconditionally add .rc files to sources (Daniel Pfeifer) 3c4978b build: Use the existing sv2-tp Windows resource (Sjors Provoost) 73c8295 cmake: Use builtin support for .manifest files (Daniel Pfeifer) 39c8447 cmake: Link to clang-cl builtins library on Windows (Hennadii Stepanov) 7579702 cmake: Skip using git when building from source tarball or as subproject (Hennadii Stepanov) 9d0baf8 cmake: Remove unnecessary `BITCOIN_GENBUILD_NO_GIT` environment variable (Hennadii Stepanov) 12cbce1 cmake, refactor: Move `find_package(Git)` to `src/CMakeLists.txt` (Hennadii Stepanov) 14553fd cmake: Remove NetBSD-specific workaround from `add_boost_if_needed` (Hennadii Stepanov) 6626b90 cmake: Fix NetBSD-specific workaround for Boost (Hennadii Stepanov) ad1b6c1 cmake: Detect and log MinGW-w64 version when cross-compiling for Windows (Hennadii Stepanov) d11d18b build: drop use of OBJC_OLD_DISPATCH_PROTOTYPES (fanquake) bfc17dc build: Drop obsolete libmultiprocess warning fallback (Sjors Provoost) 01ed7c4 refactor: Drop unused libc++-16 workarounds (MarcoFalke) fc8fe63 refactor: Remove unused include for clang-cl on Windows (MarcoFalke) 3b4700a build: Bump clang minimum supported version to 19 (MarcoFalke) 761a983 build: Bump Xcode CLT minimum supported version to 26.3 (MarcoFalke) e2dd548 doc: Document minimum versions for Xcode CLT and MSVC (MarcoFalke) 0ef4602 test: Remove gccbug_90348 test case (MarcoFalke) caa1d9b build: Bump g++ minimum supported version to 12 (MarcoFalke) d3eb2bd build: Bump clang minimum supported version to 17 (MarcoFalke) cc27305 build: define CMAKE_COMPILE_WARNING_AS_ERROR as a cache option (will) 280c1cb build: replace WERROR with CMAKE_COMPILE_WARNING_AS_ERROR (fanquake) 2b80e41 doc: Remove outdated -fdebug-prefix-map section in dev notes (MarcoFalke) fc13be0 build: Temporarily remove confusing and brittle -fdebug-prefix-map (MarcoFalke) e184a48 build: Add CTAD feature check (Pol Espinasa) 76c5a38 ci: use Debian Trixie for macOS cross job (fanquake) 00145fb build: Add path to doc recommended versions for CLANG, GCC and MSVC (Pol Espinasa) 54cf540 build: swap -Wunreachable-code for aggressive variant (fanquake) a9aedef refactor: fix -Wunreachable-code-aggressive warnings (fanquake) c751495 build: enable -Wunused-macros & -Wunused-template (fanquake) 94d3ec7 build: enable -Wunused-exception-parameter (fanquake) d5d2f81 util: remove unused exception parameter in Popen::execute_process (fanquake) dfeb56a build: add -Wunused-const-variable (fanquake) 22f4f97 scripted-diff: Use inline constexpr over (static) const (MarcoFalke) 79be3ad scripted-diff: Use inline constexpr over static constexpr (MarcoFalke) 1a49b75 refactor: Remove static from constexpr functions in headers (MarcoFalke) 1d99921 build: Enable -Wcovered-switch-default (MarcoFalke) b1f578a refactor: Enable -Wswitch in exhaustive switch (MarcoFalke) 0a88e50 build: avoid exporting secp256k1 symbols (Cory Fields) de1c800 build: set CMAKE_VISIBILITY_INLINES_HIDDEN in REDUCE_EXPORTS (fanquake) ba50bb1 cmake: Provide `install_name_tool` stub instead of disabling it (Hennadii Stepanov) 7b55f99 cmake: Apply workaround for `install_name_tool` conditionally (Hennadii Stepanov) 931faed cmake, crypto: Use `-msse4.1` instead of `-msse4` for x86 SHA-NI (Hennadii Stepanov) 09e595c cmake: Treat warnings as errors in `CheckSourceCompilesWithFlags` (Hennadii Stepanov) b154db8 cmake: Make sanitizer and fuzzer checks warning-free (Hennadii Stepanov) 6e93719 cmake: Initialize variables in ARMv8 SHA-NI check (Hennadii Stepanov) 29e1914 cmake: Add `[[maybe_unused]]` annotation to atomic library check (Hennadii Stepanov) a01c017 build: avoid pipe2 on Darwin (for now) (fanquake) 38aff6b build: Remove CMAKE_SKIP_BUILD_RPATH and SKIP_BUILD_RPATH settings (Henry Romp) c3fd81f build: Move CMAKE_SKIP_INSTALL_RPATH from CMake to Guix script (Henry Romp) bb45583 build: Set AUTHOR_WARNING on warnings (MarcoFalke) 5c794df guix: configure with -Werror=dev (fanquake) b744343 guix: pass --disable-libstdcxx-filesystem-ts to libstdc++ (fanquake) fcdc82e guix: pass --enable-clocale=generic to (non-GUI) libstdc++ (fanquake) 2b17bdb guix: pass --with-libstdcxx-zoneinfo=no to (non-GUI) libstdc++ (fanquake) 67d8b49 guix: pass --disable-wchar_t to (non-GUI) libstdc++ (fanquake) b6672c5 depends: patch around Boost Test std::wcrtomb usage (fanquake) 808984d guix: use --load-path for local modules (fanquake) 34eb3fa guix: reduce allowed exported symbols (fanquake) 3728653 guix: Make guix-clean less destructive (Hodlinator) 8c61659 guix: add --no-same-owner to codesign.sh TAR_OPTIONS (marcofleon) a1fb636 guix: update certvalidator for Python 3.12 (will) 6aaeba9 guix: declare python-setuptools (will) 8ec4378 contrib: update macOS SDK to Xcode-26.1.1-17B100 (fanquake) 7f298fb contrib: rename gen-sdk to gen-sdk.py (fanquake) d99c335 macdeploy: disable compression in macOS gen-sdk script (fanquake) e743315 contrib: more selectively pick files for macOS SDK (fanquake) d3e789e depends: move FreeBSD SDK handling to CI (fanquake) a393aca depends: remove workaround for Make older than 4.2.90 (fanquake) 86c5bcd depends: FreeBSD cross with Clang (fanquake) 47c10c9 depends: Update `boost` package to 1.92.0 (Hennadii Stepanov) 950b699 depends: Boost 1.91.0-1 (fanquake) 22bd7aa depends: fix non-atomic reads in capnp debug assertions (xyzconstant) cea3da6 depends: add netbsd_LDFLAGS (fanquake) 62319e8 depends: Make tarball creation from local directory reproducible (Hennadii Stepanov) ef5d237 depends: Hash included makefiles in package checksums (Hennadii Stepanov) 8c9c833 depends: latest config.guess & config.sub (fanquake) 5422a48 depends: latest config.sub (fanquake) be35495 depends: latest config.guess (fanquake) 408323c depends: Drop trailing slash from `CMAKE_INSTALL_LIBDIR` (Hennadii Stepanov) 382aa3c depends: Unset `SOURCE_DATE_EPOCH` in `gen_id` script (Hennadii Stepanov) 273a631 depends: Remove no longer necessary `dsymutil` (Hennadii Stepanov) 8135d98 depends: delete Boost extra files (fanquake) 03086bc depends: add openbsd_LDFLAGS (fanquake) f2f75be depends: use -Xclang -fno-cxx-modules in macOS cross build (fanquake) 89f9a30 depends: Do not consider `CC` environment variable when detecting system (Hennadii Stepanov) ec3af10 depends: disable builtin variables (fanquake) 9b30375 depends: disable builtin rules and suffixes. (Dmitry Goncharov) Pull request description: Various build system, depends and guix backports from Bitcoin Core. Most are trivial cherry-picks but the following have more adaptations, as noted in their commit messages: Commit | Adjustment -- | -- 808984d — Guix module loading | Adapted --load-path to our single SV2 build and manifest selection. b154db8 — Sanitizer/fuzzer checks | Preserved our special coverage-build handling when updating the checks. b1f578a — Exhaustive switches | Added handling for our retained WALLET_DEBUG_TEST category, alongside upstream’s cleanup. 280c1cb — Replace WERROR | Adapted our CI configurations, including explicit `-Werror` for the Ubuntu 22.04 job’s older CMake, and migrated both VS Code configure tasks. bfc17dc — libmultiprocess warning fallback (local) | Removed the obsolete fallback from our libmultiprocess-specific override, retaining its warning-visible-but-nonfatal behavior. This is a local follow-up to the Clang 19 minimum. 7abf01d — Windows resources | Applied unconditional resource handling to `sv2-tp`. The preceding local fix 3c4978b reuses the existing `sv2-tp.rc` and removes the obsolete `bitcoind-res.rc`. 6ff0f3a — clang-cl diagnostics | Preserved our codecvt warning override for clang-cl. 4e26098 — Drop cl.exe support | Preserved our GCC-specific warning guards and codecvt override, kept Windows presets/CI removed, and rewrote the stale native-build guide. 50da349 — LLVM-only Guix macOS build | Integrated the native LLVM toolchain into our common `build.sh`, including compiler/linker tools and platform-specific manifest packages. 46d7ef3 — Windows UCRT documentation | Adapted instructions to this repository, including removing obsolete installer/native-build claims. Subsequently corrected further by bdaa887. 38aff6b, c3fd81f — Guix RPATH and binary checks | Moved release-specific RPATH settings into the common build script and check installed SV2 executables, including `libexec` binaries when present. 5c794df — Guix developer warnings | Added `-Werror=dev` to the common SV2 configure invocation. d2e7b49 — Scripted whitespace verification | Uses Python instead of `sponge`, so verification does not require moreutils; the resulting source diff is unchanged. d3e789e — FreeBSD SDK handling | Imported the depends host changes from bitcoin/bitcoin#35649. FreeBSD remains unsupported; this removes hardcoded SDK/compiler settings from depends. Guix hashes for bdaa887, built as `dev` on the x86_64 Ubuntu host. All seven supported release targets completed. ```sh source contrib/shell/git-utils.bash && uname -m && find guix-build-$(git_head_version)/output/ -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum ``` ```text x86_64 c583c2fc3d0dec4c9accecc616b9e29774b6518b877a250da0365aaf408f61e8 guix-build-bdaa887ec3f4/output/aarch64-linux-gnu/SHA256SUMS.part 10305ce8e00eda715f8c49f5cae99ce908e03266c94456f342e980080c915d45 guix-build-bdaa887ec3f4/output/aarch64-linux-gnu/sv2-tp-bdaa887ec3f4-aarch64-linux-gnu-debug.tar.gz 406db5b80714d8780049ddc935f2992830872ac1584e22ce557e1a4a7e439b4c guix-build-bdaa887ec3f4/output/aarch64-linux-gnu/sv2-tp-bdaa887ec3f4-aarch64-linux-gnu.tar.gz 72a0e920f8dc91016c936d58a9c821ec8d146cfb0d34f1fcb80e5baab13e34b9 guix-build-bdaa887ec3f4/output/arm-linux-gnueabihf/SHA256SUMS.part d5fe2be5e82fa0ce4e63990a2f5b6cf6f441435c11729b8705aa59de924fbad7 guix-build-bdaa887ec3f4/output/arm-linux-gnueabihf/sv2-tp-bdaa887ec3f4-arm-linux-gnueabihf-debug.tar.gz 87182c58f3c0d003cc3f3f8a08fb6a9a628bea9f64adb517b13ef5b94f38da09 guix-build-bdaa887ec3f4/output/arm-linux-gnueabihf/sv2-tp-bdaa887ec3f4-arm-linux-gnueabihf.tar.gz cb319d40c60f2465e7afe2a75dda2a82e5ce53143ec27954ee965625184a7b7c guix-build-bdaa887ec3f4/output/arm64-apple-darwin/SHA256SUMS.part a483d5d038f762116090908552456d52245c156121bd1b899537667ba9d53b4a guix-build-bdaa887ec3f4/output/arm64-apple-darwin/sv2-tp-bdaa887ec3f4-arm64-apple-darwin-codesigning.tar.gz b9bf334733c353802f49666a152f9cc24e67ed03b17a85cc56dd851523504827 guix-build-bdaa887ec3f4/output/arm64-apple-darwin/sv2-tp-bdaa887ec3f4-arm64-apple-darwin-unsigned.tar.gz 126b46e4553d6d4b668763be15ebbedb1ba4d6cee1f97fcba5ca3db0a7256c9f guix-build-bdaa887ec3f4/output/dist-archive/sv2-tp-bdaa887ec3f4.tar.gz d22b05b2a9ac6f2574df1abd1afd097fbb304d9febd17357811e8794b9ebdadd guix-build-bdaa887ec3f4/output/powerpc64-linux-gnu/SHA256SUMS.part 56c02030a87b25dbb84632af90eba59747de39d55b61fa55cdfb51cac2208a80 guix-build-bdaa887ec3f4/output/powerpc64-linux-gnu/sv2-tp-bdaa887ec3f4-powerpc64-linux-gnu-debug.tar.gz c5d25266606489e4b4941f6aea79814cf71570448946835cdc48c05d113c811d guix-build-bdaa887ec3f4/output/powerpc64-linux-gnu/sv2-tp-bdaa887ec3f4-powerpc64-linux-gnu.tar.gz 133d1e99b972f1e5784479ab1d11e6f39af6899bcc4e3e690c47d334a18736a3 guix-build-bdaa887ec3f4/output/riscv64-linux-gnu/SHA256SUMS.part bdd279c7f3b53b411066cbdc1c5d9a11f48b905e8592a08f09a7f6e604f14956 guix-build-bdaa887ec3f4/output/riscv64-linux-gnu/sv2-tp-bdaa887ec3f4-riscv64-linux-gnu-debug.tar.gz e2a18ec5df23a6b263f5fb4e2f2746eab62aef3fa4093f99d819afa5b46d5dcb guix-build-bdaa887ec3f4/output/riscv64-linux-gnu/sv2-tp-bdaa887ec3f4-riscv64-linux-gnu.tar.gz 616d30ab0dbf41aa4c077a6aa7fb3a280c88c45ed90754e760286f89356498b6 guix-build-bdaa887ec3f4/output/x86_64-apple-darwin/SHA256SUMS.part d7491c6c431f58c6af4cfc0484935d31ea824e08e45a0b2c07732c2f23c7bd34 guix-build-bdaa887ec3f4/output/x86_64-apple-darwin/sv2-tp-bdaa887ec3f4-x86_64-apple-darwin-codesigning.tar.gz 3929f87e329be907406b8e79c1d75aa34986f0e7268345afe54da3be9c0dac90 guix-build-bdaa887ec3f4/output/x86_64-apple-darwin/sv2-tp-bdaa887ec3f4-x86_64-apple-darwin-unsigned.tar.gz 43e6519c11f25ff39c3f27153916139e88d7c04f27f64571a67362cae87dbca6 guix-build-bdaa887ec3f4/output/x86_64-linux-gnu/SHA256SUMS.part c5fa35209e1f002a26ad86b9d19620a7f6e1302aa6a07bea69baba898998712a guix-build-bdaa887ec3f4/output/x86_64-linux-gnu/sv2-tp-bdaa887ec3f4-x86_64-linux-gnu-debug.tar.gz cfa4917f083b14d852388a99b8babc6804d006f0e631b48e7700ec95178d43fb guix-build-bdaa887ec3f4/output/x86_64-linux-gnu/sv2-tp-bdaa887ec3f4-x86_64-linux-gnu.tar.gz ``` Top commit has no ACKs. Tree-SHA512: a93a6245a861c2fd3fc49b084d5bb58d31cd4032e97b55d8fd9ea8e7995408f7cf9697a44b47c1ba20b36f711bd7a42fbb7a0f22d920e1605e2e0a06bd85c120
Followup to #35397 (comment), which partially reverts changes from #34491.
Also, make sure we install the correct version of
lldin OpenBSD job.