New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MINIFICPP-1121 - Upgrade spdlog to version 1.8.0 #837
MINIFICPP-1121 - Upgrade spdlog to version 1.8.0 #837
Conversation
d89f489
to
4e6909c
Compare
b467ba8
to
8116851
Compare
1d5ab27
to
aa02d18
Compare
aa02d18
to
1003bc5
Compare
58ab0ea
to
88f4425
Compare
Could you rebase to main? Two reasons: 1. there are conflicts, 2. there are more CI failures than the usual flickers, but they don't seem to be related, so I would like to see another run. |
4eb3541
to
2fe7f0a
Compare
The slow speed on the builds are probably not only due to cache misses. Local builds (on a MacBook Pro 16", 2019) show similar clean build speeds when not using ccache: cd .. && rm -rf build && mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFORCE_COLORED_OUTPUT=ON -DENABLE_LIBRDKAFKA=ON -DENABLE_PYTHON=ON -DENABLE_COAP=ON -DSKIP_TESTS= -DUSE_SHARED_LIBS=ON -DPORTABLE=ON -DBUILD_ROCKSDB=ON -DBUILD_IDENTIFIER= ../src && export CCACHE_DISABLE=1 && time ninja -j4
Please review for potential loss of build speeds. Is it worth the effort of upgrading? |
Thanks, that is a great addition, I cherry picked the latter to this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is ready for merge but let's wait for one approval besides mine because of the latest changes. @fgerlits @arpadboda
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, but the PR comment still says this is a draft PR.
RUN echo "deb http://deb.debian.org/debian stretch-backports main" | tee -a /etc/apt/sources.list \ | ||
&& echo "deb http://deb.debian.org/debian stretch-backports-sloppy main" | tee -a /etc/apt/sources.list \ | ||
&& apt-get update && apt-get install -y openjdk-8-jdk libpython3.5-dev openjdk-8-source sudo git maven \ | ||
&& apt-get -t stretch-backports-sloppy install -y libarchive13\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need the system libarchive? We bundle that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a dependency of cmake. The maintainer incorrectly uploaded cmake 3.16 (instead of 3.13) to the amd64 stretch-backports, which depends on libarchive >=3.3.3. The version in the stretch repos is 3.2 and there is no libarchive in stretch-backports, so this is a workaround.
See this bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954852
and see the inconsistent version near the bottom of this page: https://packages.debian.org/stretch-backports/cmake
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") | ||
set(BYPRODUCT "lib/spdlogd.lib") | ||
else() | ||
set(BYPRODUCT "lib/spdlog.lib") | ||
endif() | ||
else() | ||
include(GNUInstallDirs) | ||
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") | ||
set(BYPRODUCT "${CMAKE_INSTALL_LIBDIR}/libspdlogd.a") | ||
else() | ||
set(BYPRODUCT "${CMAKE_INSTALL_LIBDIR}/libspdlog.a") | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened here? I think I remember a commit which changed these to generator expressions, but now the generator expressions are not there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some compilation errors caused by the last change |
c223df9
to
ec40383
Compare
@szaszm rebased and updated again... |
This is the issue: https://github.com/apache/nifi-minifi-cpp/pull/837/checks?check_run_id=1522646567#step:5:14323 |
f89a896
to
0dd5c9f
Compare
0dd5c9f
to
d2b1388
Compare
…eplace incompatible interface Dependency directory is yet to be renamed in this commit.
…pgrade its license
…c_string_view<char>
…uto, change return types in LoggerConfiguration sink creation
chmod a+x debian using stretch-backports
…g compile times Co-authored-by: adamdebreceni <64783590+adamdebreceni@users.noreply.github.com>
d2b1388
to
71e3ce1
Compare
This is a draft PR used for running CI jobs on different platforms.
Thank you for submitting a contribution to Apache NiFi - MiNiFi C++.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with MINIFICPP-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.