Changeset View
Changeset View
Standalone View
Standalone View
contrib/teamcity/build-configurations.sh
Show First 20 Lines • Show All 350 Lines • ▼ Show 20 Lines | CMAKE_FLAGS=( | ||||
"-DCMAKE_CROSSCOMPILING_EMULATOR=$(command -v qemu-arm-static)" | "-DCMAKE_CROSSCOMPILING_EMULATOR=$(command -v qemu-arm-static)" | ||||
# The ZMQ functional test will fail with qemu (due to a qemu limitation), | # The ZMQ functional test will fail with qemu (due to a qemu limitation), | ||||
# so disable it to avoid the failure. | # so disable it to avoid the failure. | ||||
# Extracted from stderr: | # Extracted from stderr: | ||||
# Unknown host QEMU_IFLA type: 50 | # Unknown host QEMU_IFLA type: 50 | ||||
# Unknown host QEMU_IFLA type: 51 | # Unknown host QEMU_IFLA type: 51 | ||||
# Unknown QEMU_IFLA_BRPORT type 33 | # Unknown QEMU_IFLA_BRPORT type 33 | ||||
"-DBUILD_BITCOIN_ZMQ=OFF" | "-DBUILD_BITCOIN_ZMQ=OFF" | ||||
# This is an horrible hack to workaround a qemu bug: | |||||
# https://bugs.launchpad.net/qemu/+bug/1748612 | |||||
# Qemu emits a message for unsupported features called by the guest. | |||||
# Because the output filtering is not working at all, it causes the | |||||
# qemu stderr to end up in the node stderr and fail the functional | |||||
# tests. | |||||
# Disabling the unsupported feature (here bypassing the config | |||||
# detection) fixes the issue. | |||||
# FIXME: get rid of the hack, either by using a better qemu version | |||||
# or by filtering stderr at the framework level. | |||||
"-DHAVE_DECL_GETIFADDRS=OFF" | |||||
) | ) | ||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_cmake.sh | CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_cmake.sh | ||||
# Let qemu know where to find the system libraries | # Let qemu know where to find the system libraries | ||||
export QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf | export QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf | ||||
# Unit tests | # Unit tests | ||||
ninja check | ninja check | ||||
Show All 11 Lines | CMAKE_FLAGS=( | ||||
"-DCMAKE_CROSSCOMPILING_EMULATOR=$(command -v qemu-aarch64-static)" | "-DCMAKE_CROSSCOMPILING_EMULATOR=$(command -v qemu-aarch64-static)" | ||||
# The ZMQ functional test will fail with qemu (due to a qemu limitation), | # The ZMQ functional test will fail with qemu (due to a qemu limitation), | ||||
# so disable it to avoid the failure. | # so disable it to avoid the failure. | ||||
# Extracted from stderr: | # Extracted from stderr: | ||||
# Unknown host QEMU_IFLA type: 50 | # Unknown host QEMU_IFLA type: 50 | ||||
# Unknown host QEMU_IFLA type: 51 | # Unknown host QEMU_IFLA type: 51 | ||||
# Unknown QEMU_IFLA_BRPORT type 33 | # Unknown QEMU_IFLA_BRPORT type 33 | ||||
"-DBUILD_BITCOIN_ZMQ=OFF" | "-DBUILD_BITCOIN_ZMQ=OFF" | ||||
# This is an horrible hack to workaround a qemu bug: | |||||
# https://bugs.launchpad.net/qemu/+bug/1748612 | |||||
# Qemu emits a message for unsupported features called by the guest. | |||||
# Because the output filtering is not working at all, it causes the | |||||
# qemu stderr to end up in the node stderr and fail the functional | |||||
# tests. | |||||
# Disabling the unsupported feature (here bypassing the config | |||||
# detection) fixes the issue. | |||||
# FIXME: get rid of the hack, either by using a better qemu version | |||||
# or by filtering stderr at the framework level. | |||||
"-DHAVE_DECL_GETIFADDRS=OFF" | |||||
) | ) | ||||
CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_cmake.sh | CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_cmake.sh | ||||
# Let qemu know where to find the system libraries | # Let qemu know where to find the system libraries | ||||
export QEMU_LD_PREFIX=/usr/aarch64-linux-gnu | export QEMU_LD_PREFIX=/usr/aarch64-linux-gnu | ||||
# Unit tests | # Unit tests | ||||
ninja check | ninja check | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |