Repository navigation
Commit ea48edb
ci: build with openssl@3 on macOS and for a baseline cpu
Two things broke the builds on the new runner images and on a cache restored
from another machine.
macOS: the macos-15-arm64 image of 28 October (20261028.0489) ships openssl@4
4.1.0, brew --prefix openssl points to it, and boost 1.85 does not build with
OpenSSL 4 (asio's rfc2818_verification.ipp reads ASN1_IA5STRING members, which
are opaque now), so "Build monero" failed in epee/abstract_http_client.cpp.
GitHub rolls the images out gradually: the run of the release pull request
landed on the previous one (openssl@3 3.6.4) and passed, the next ones did not.
Install openssl@3, export its prefix in OPENSSL_ROOT_DIR and pass it with -D to
the cmake of monero-project and monero-cpp, which overwrite it with
brew --prefix openssl and ignore the environment. The module finds it in the
environment. openssl@4 is also linked into /opt/homebrew, and the
-I/opt/homebrew/include of boost and zeromq comes before the one of openssl@3,
so its headers were still found first in monero-cpp: unlink it, the keg stays
where it is for the formulae that depend on it.
Linux: monero-project builds with -march=native unless ARCH is set, and ccache
does not know the cpu. The Linux build of a pull request hit 207 of 207 objects
from the cache that main saved on another runner, and pytest died with an
illegal instruction (exit 132) as soon as it loaded the module. The same
objects end up in the deb packages and in the macOS Intel wheels, which then
need the instructions of the cpu that built them. Pass ARCH explicitly, as the
Windows job and monero-cpp already do: x86-64 on x86_64, armv8-a on arm64, the
old default elsewhere (armhf). The flags change, so the objects in the existing
caches are not used any more.
Applies to Tests, Build MacOS and docker/build.sh.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>1 parent e46cc00 commit ea48edb
3 files changed
Lines changed: 41 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
73 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
74 | 85 | | |
75 | 86 | | |
76 | 87 | | |
| |||
79 | 90 | | |
80 | 91 | | |
81 | 92 | | |
82 | | - | |
| 93 | + | |
83 | 94 | | |
84 | 95 | | |
85 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
420 | 423 | | |
421 | 424 | | |
422 | 425 | | |
423 | | - | |
| 426 | + | |
424 | 427 | | |
425 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
426 | 436 | | |
427 | 437 | | |
428 | 438 | | |
| |||
445 | 455 | | |
446 | 456 | | |
447 | 457 | | |
448 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
449 | 463 | | |
450 | 464 | | |
451 | 465 | | |
| |||
454 | 468 | | |
455 | 469 | | |
456 | 470 | | |
457 | | - | |
| 471 | + | |
458 | 472 | | |
459 | 473 | | |
460 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
49 | 56 | | |
50 | 57 | | |
51 | | - | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
0 commit comments