Skip to content

Commit 54ea926

Browse files
005a6b1 fix: format string in llmq/commitment - mismatched arguments (Konstantin Akimov) 4774e1e Merge bitcoin#19809: log: Prefix log messages with function name and source code location if -logsourcelocations is set (Wladimir J. van der Laan) 43a94f0 fix: adjust functional tests due to dash's support of thread name after v0.12 (Konstantin Akimov) 085120d Merge bitcoin#20993: test: store subversion (user agent) as string in msg_version (MarcoFalke) e866b43 Merge bitcoin#21542: ci: Bump macOS VM image to the latest version (fanquake) a370253 Merge bitcoin#21354: build, doc: Drop no longer required packages from macOS cross-compiling dependencies (fanquake) 6bcc86a Merge bitcoin#21221: [tools] Allow argument/parameter bin packing in clang-format (MarcoFalke) 318c726 Merge bitcoin#19522: build: fix building libconsensus with reduced exports for Darwin targets (Wladimir J. van der Laan) 88a45d4 Merge bitcoin#21138: ci: Re-run wine tests once if they fail (fanquake) 4abb768 Merge bitcoin#21126: ci: Properly bump to focal for win cross build (fanquake) f254f77 Merge bitcoin#21075: doc: Fix markdown formatting (MarcoFalke) Pull request description: ## Issue being fixed or feature implemented Regular backports from bitcoin v22 and related fixes ## What was done? Follow-up fixes for bitcoin#19809 Backports: - bitcoin#21075 - bitcoin#21126 - bitcoin#21138 - bitcoin#19522 - bitcoin#21221 - bitcoin#21354 - bitcoin#21542 - bitcoin#19809 - bitcoin#20993 ## How Has This Been Tested? Run unit/functional tests ## Breaking Changes N/A Notice, that function name is included now by default to logs with `-logfunctionnames` and many logs have function name twice now such as: ``` node0 2024-04-06T20:13:56.564123Z (mocktime: 2014-12-04T17:15:38Z) [httpworker.3] [masternode/sync.cpp:331] [NotifyHeaderTip] CMasternodeSync::NotifyHeaderTip -- pindexNew->nHeight: 5 fInitialDownload=0 ``` For further development need to take it in account and do not use more direct calls `__func__` from code as well as reduce usages in codebase. ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone ACKs for top commit: PastaPastaPasta: utACK 005a6b1 Tree-SHA512: f98949c4605dda7d6dfe790554e1d31a8c8178b57520578fcd58178c68fe7af33c0d66a79865683c1357de9a73fa4f484eb828b28e11ca110b8e1915c1fcf9b3
2 parents 938fd23 + 005a6b1 commit 54ea926

28 files changed

+227
-414
lines changed

.cirrus.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ task:
7171
QEMU_USER_CMD: "" # Disable qemu and run the test natively
7272

7373
task:
74-
name: 'Win64 [unit tests, no gui tests, no boost::process, no functional tests] [bionic]'
74+
name: 'Win64 [unit tests, no gui tests, no boost::process, no functional tests] [focal]'
7575
<< : *GLOBAL_TASK_TEMPLATE
7676
container:
7777
image: ubuntu:focal
@@ -157,13 +157,13 @@ task:
157157
FILE_ENV: "./ci/test/00_setup_env_mac.sh"
158158

159159
task:
160-
name: 'macOS 10.15 native [gui] [no depends]'
160+
name: 'macOS 11 native [gui] [no depends]'
161161
macos_brew_addon_script:
162162
- brew install boost libevent berkeley-db4 qt miniupnpc ccache zeromq qrencode sqlite libtool automake pkg-config gnu-getopt
163163
<< : *GLOBAL_TASK_TEMPLATE
164164
macos_instance:
165165
# Use latest image, but hardcode version to avoid silent upgrades (and breaks)
166-
image: catalina-xcode-12.1 # https://cirrus-ci.org/guide/macOS
166+
image: big-sur-xcode-12.4 # https://cirrus-ci.org/guide/macOS
167167
env:
168168
DANGER_RUN_CI_ON_HOST: "true"
169169
CI_USE_APT_INSTALL: "no"

build-aux/m4/ax_gcc_func_attribute.m4

Lines changed: 0 additions & 223 deletions
This file was deleted.

ci/test/00_setup_env_mac.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8
88

99
export CONTAINER_NAME=ci_macos_cross
1010
export HOST=x86_64-apple-darwin
11-
export PACKAGES="cmake libcap-dev libz-dev libbz2-dev libtinfo5 python3-setuptools"
11+
export PACKAGES="cmake libz-dev libtinfo5 python3-setuptools"
1212
export XCODE_VERSION=12.2
1313
export XCODE_BUILD_ID=12B45b
1414
export RUN_UNIT_TESTS=false

ci/test/00_setup_env_win64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export LC_ALL=C.UTF-8
88

99
export CONTAINER_NAME=ci_win64
1010
export HOST=x86_64-w64-mingw32
11-
export PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64 file"
1211
export DPKG_ADD_ARCH="i386"
12+
export PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64 wine32 file"
1313
export RUN_FUNCTIONAL_TESTS=false
1414
export RUN_SECURITY_TESTS="false"
1515
export GOAL="deploy"

ci/test/wrap-wine.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ for b_name in {"${BASE_OUTDIR}/bin"/*,src/secp256k1/*tests,src/univalue/{no_nul,
1313
echo "Wrap $b ..."
1414
mv "$b" "${b}_orig"
1515
echo '#!/usr/bin/env bash' > "$b"
16-
echo "wine64 \"${b}_orig\" \"\$@\"" >> "$b"
16+
echo "( wine \"${b}_orig\" \"\$@\" ) || ( sleep 1 && wine \"${b}_orig\" \"\$@\" )" >> "$b"
1717
chmod +x "$b"
1818
fi
1919
done

configure.ac

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -913,10 +913,6 @@ if test x$ac_cv_sys_large_files != x &&
913913
CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
914914
fi
915915

916-
AX_GCC_FUNC_ATTRIBUTE([visibility])
917-
AX_GCC_FUNC_ATTRIBUTE([dllexport])
918-
AX_GCC_FUNC_ATTRIBUTE([dllimport])
919-
920916
AC_SEARCH_LIBS([clock_gettime],[rt])
921917

922918
if test "x$enable_gprof" = xyes; then
@@ -1078,13 +1074,13 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
10781074
[ AC_MSG_RESULT(no)]
10791075
)
10801076

1081-
AC_MSG_CHECKING([for visibility attribute])
1082-
AC_LINK_IFELSE([AC_LANG_SOURCE([
1083-
int foo_def( void ) __attribute__((visibility("default")));
1077+
AC_MSG_CHECKING([for default visibility attribute])
1078+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
1079+
int foo(void) __attribute__((visibility("default")));
10841080
int main(){}
10851081
])],
10861082
[
1087-
AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE,1,[Define if the visibility attribute is supported.])
1083+
AC_DEFINE(HAVE_DEFAULT_VISIBILITY_ATTRIBUTE,1,[Define if the visibility attribute is supported.])
10881084
AC_MSG_RESULT(yes)
10891085
],
10901086
[
@@ -1095,6 +1091,18 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([
10951091
]
10961092
)
10971093

1094+
AC_MSG_CHECKING([for dllexport attribute])
1095+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
1096+
__declspec(dllexport) int foo(void);
1097+
int main(){}
1098+
])],
1099+
[
1100+
AC_DEFINE(HAVE_DLLEXPORT_ATTRIBUTE,1,[Define if the dllexport attribute is supported.])
1101+
AC_MSG_RESULT(yes)
1102+
],
1103+
[AC_MSG_RESULT(no)]
1104+
)
1105+
10981106
if test "x$use_thread_local" = xyes || test "x$use_thread_local" = xauto; then
10991107
TEMP_LDFLAGS="$LDFLAGS"
11001108
LDFLAGS="$TEMP_LDFLAGS $PTHREAD_CFLAGS"
@@ -1269,12 +1277,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
12691277
[ AC_MSG_RESULT(no); HAVE_STRONG_GETAUXVAL=0 ]
12701278
)
12711279

1272-
dnl Check for reduced exports
1273-
if test x$use_reduce_exports = xyes; then
1274-
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],[RE_CXXFLAGS="-fvisibility=hidden"],
1275-
[AC_MSG_ERROR([Cannot set default symbol visibility. Use --disable-reduce-exports.])])
1276-
fi
1277-
12781280
AC_MSG_CHECKING([for std::system])
12791281
AC_LINK_IFELSE(
12801282
[ AC_LANG_PROGRAM(
@@ -1486,9 +1488,11 @@ fi
14861488
BOOST_LIBS="$BOOST_LDFLAGS $BOOST_SYSTEM_LIB $BOOST_FILESYSTEM_LIB"
14871489
fi
14881490

1491+
dnl Check for reduced exports
14891492
if test x$use_reduce_exports = xyes; then
1490-
CXXFLAGS="$CXXFLAGS $RE_CXXFLAGS"
1491-
AX_CHECK_LINK_FLAG([[-Wl,--exclude-libs,ALL]], [RELDFLAGS="-Wl,--exclude-libs,ALL"],, [[$LDFLAG_WERROR]])
1493+
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],[CXXFLAGS="$CXXFLAGS -fvisibility=hidden"],
1494+
[AC_MSG_ERROR([Cannot set hidden symbol visibility. Use --disable-reduce-exports.])],[[$CXXFLAG_WERROR]])
1495+
AX_CHECK_LINK_FLAG([[-Wl,--exclude-libs,ALL]],[RELDFLAGS="-Wl,--exclude-libs,ALL"],,[[$LDFLAG_WERROR]])
14921496
fi
14931497

14941498
if test x$use_tests = xyes; then
@@ -1951,6 +1955,7 @@ echo
19511955
echo "Options used to compile and link:"
19521956
echo " boost process = $with_boost_process"
19531957
echo " multiprocess = $build_multiprocess"
1958+
echo " with libs = $build_bitcoin_libs"
19541959
echo " with wallet = $enable_wallet"
19551960
echo " with gui / qt = $bitcoin_enable_qt"
19561961
if test "x$enable_wallet" != "xno"; then

contrib/containers/ci/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ RUN apt-get update && apt-get install $APT_ARGS \
104104
g++-arm-linux-gnueabihf \
105105
g++-mingw-w64-x86-64 \
106106
jq \
107-
libcap-dev \
108107
libz-dev \
109-
libbz2-dev \
110108
libncurses5 \
111109
nsis \
112110
python3-zmq \

depends/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The paths are automatically configured and no other options are needed unless ta
4747

4848
#### For macOS cross compilation
4949

50-
sudo apt-get install curl bsdmainutils cmake libcap-dev libz-dev libbz2-dev python3-setuptools libtinfo5 xorriso
50+
sudo apt-get install curl bsdmainutils cmake libz-dev python3-setuptools libtinfo5 xorriso
5151

5252
Note: You must obtain the macOS SDK before proceeding with a cross-compile.
5353
Under the depends directory, create a subdirectory named `SDKs`.

0 commit comments

Comments
 (0)