Skip to content

[fmt] Updated to 6.1.2#9620

Closed
tagsemb wants to merge 3 commits intomicrosoft:masterfrom
tagsemb:fmt_update-to-6.1.2
Closed

[fmt] Updated to 6.1.2#9620
tagsemb wants to merge 3 commits intomicrosoft:masterfrom
tagsemb:fmt_update-to-6.1.2

Conversation

@tagsemb
Copy link
Contributor

@tagsemb tagsemb commented Jan 10, 2020

{fmt} lib updated to latest release, 6.1.2.

@msftclas
Copy link

msftclas commented Jan 10, 2020

CLA assistant check
All CLA requirements met.

@JackBoosY JackBoosY self-assigned this Jan 11, 2020
@JackBoosY JackBoosY self-requested a review January 11, 2020 05:30
@crackedmind
Copy link
Contributor

crackedmind commented Jan 11, 2020

Is this patch necessary? fmt 6.1.2 produces only C4275 and it was fixed in fmtlib/fmt@8ab1c5c (fourth commit after 6.1.2 release) and it's fixing latest spdlog build (spdlog compiles with /WX)
Maybe use this commit instead of 6.1.2 release?

Spdlog port needs update too.

@tagsemb
Copy link
Contributor Author

tagsemb commented Jan 11, 2020

@crackedmind This patch updates all the way from 6.0.0 to 6.1.2, and that includes a fair number of changes. 6.1.0 was at least a significant release.

@crackedmind
Copy link
Contributor

I'm talking about file fix-warning4189.patch

@tagsemb
Copy link
Contributor Author

tagsemb commented Jan 11, 2020

@crackedmind Oh sorry, I have no idea. I just left it there out of fear of messing up someone else's day.

I would personally prefer sticking to releases of libraries, and rather remove the warning patch upon the next fmt release perhaps?

@NancyLi1013
Copy link
Contributor

Have existed PR #9289.

@JackBoosY
Copy link
Contributor

/azp run

@JackBoosY
Copy link
Contributor

@tagsemb
Copy link
Contributor Author

tagsemb commented Jan 19, 2020

Sorry, I'm a little confused by the regressions, and I may need some guidance. The only thing resembling failures I could find in any of error logs are these ones in the "port build failure logs", config-x64-linux-[dbg/rel]-err.log:

CMake Warning:
  Manually-specified variables were not used by the project:

    VCPKG_PLATFORM_TOOLSET
    VCPKG_SET_CHARSET_FLAG

However, these are flags that are not mentioned anywhere in the diff for the PR, nor are they indeed set in the actual port files for fmt. Is this really a regression caused by this PR? If so, I'm afraid I don't understand how or how to fix it.

All the other error logs I could find that were non-zero simply contained lines that were obviously not errors, like:

Checking patch bench/CMakeLists.txt...
Applied patch bench/CMakeLists.txt cleanly.

It should also be mentioned that the OSX PR test seems to have more problems:

Missing log files for comparison baseline (c89f944). This may cause unrelated failures to show up in the test results. This is most likely the result of an infrastructure failure in the post checkin pipeline which creates the baseline logs. If this is the case, the fix is to manually queue a post checkin CI job (use default settings) and rerun this job when it completes.

Apologies if I'm being thick here, but I'm not sure how to proceed.

@JackBoosY
Copy link
Contributor

JackBoosY commented Jan 19, 2020

In install-x64-linux-dbg-out.log:

[1/8] /usr/bin/c++  -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include -isystem /ci/myagent/_work/3/s/installed/x64-linux/include -fPIC -g   -Wall -Wextra -Wconversion -pedantic -Wfatal-errors -std=c++11 -MD -MT CMakeFiles/spdlog.dir/src/fmt.cpp.o -MF CMakeFiles/spdlog.dir/src/fmt.cpp.o.d -o CMakeFiles/spdlog.dir/src/fmt.cpp.o -c /ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/src/fmt.cpp
[2/8] /usr/bin/c++  -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include -isystem /ci/myagent/_work/3/s/installed/x64-linux/include -fPIC -g   -Wall -Wextra -Wconversion -pedantic -Wfatal-errors -std=c++11 -MD -MT CMakeFiles/spdlog.dir/src/async.cpp.o -MF CMakeFiles/spdlog.dir/src/async.cpp.o.d -o CMakeFiles/spdlog.dir/src/async.cpp.o -c /ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/src/async.cpp
FAILED: CMakeFiles/spdlog.dir/src/async.cpp.o 
/usr/bin/c++  -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include -isystem /ci/myagent/_work/3/s/installed/x64-linux/include -fPIC -g   -Wall -Wextra -Wconversion -pedantic -Wfatal-errors -std=c++11 -MD -MT CMakeFiles/spdlog.dir/src/async.cpp.o -MF CMakeFiles/spdlog.dir/src/async.cpp.o.d -o CMakeFiles/spdlog.dir/src/async.cpp.o -c /ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/src/async.cpp
In file included from /ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/src/async.cpp:11:0:
/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include/spdlog/details/thread_pool-inl.h: In member function ‘bool spdlog::details::thread_pool::process_next_msg_()’:
/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include/spdlog/details/thread_pool-inl.h:119:9: error: ‘assert’ was not declared in this scope
         assert(false && "Unexpected async_msg_type");
         ^~~~~~
compilation terminated due to -Wfatal-errors.
[3/8] /usr/bin/c++  -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include -isystem /ci/myagent/_work/3/s/installed/x64-linux/include -fPIC -g   -Wall -Wextra -Wconversion -pedantic -Wfatal-errors -std=c++11 -MD -MT CMakeFiles/spdlog.dir/src/spdlog.cpp.o -MF CMakeFiles/spdlog.dir/src/spdlog.cpp.o.d -o CMakeFiles/spdlog.dir/src/spdlog.cpp.o -c /ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/src/spdlog.cpp
FAILED: CMakeFiles/spdlog.dir/src/spdlog.cpp.o 
/usr/bin/c++  -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include -isystem /ci/myagent/_work/3/s/installed/x64-linux/include -fPIC -g   -Wall -Wextra -Wconversion -pedantic -Wfatal-errors -std=c++11 -MD -MT CMakeFiles/spdlog.dir/src/spdlog.cpp.o -MF CMakeFiles/spdlog.dir/src/spdlog.cpp.o.d -o CMakeFiles/spdlog.dir/src/spdlog.cpp.o -c /ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/src/spdlog.cpp
In file included from /ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/src/spdlog.cpp:13:0:
/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include/spdlog/details/pattern_formatter-inl.h: In member function ‘void spdlog::details::scoped_padder::pad_it(size_t)’:
/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include/spdlog/details/pattern_formatter-inl.h:76:9: error: ‘assert’ was not declared in this scope
         assert(count <= spaces_.size());
         ^~~~~~
compilation terminated due to -Wfatal-errors.
[4/8] /usr/bin/c++  -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include -isystem /ci/myagent/_work/3/s/installed/x64-linux/include -fPIC -g   -Wall -Wextra -Wconversion -pedantic -Wfatal-errors -std=c++11 -MD -MT CMakeFiles/spdlog.dir/src/stdout_sinks.cpp.o -MF CMakeFiles/spdlog.dir/src/stdout_sinks.cpp.o.d -o CMakeFiles/spdlog.dir/src/stdout_sinks.cpp.o -c /ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/src/stdout_sinks.cpp
[5/8] /usr/bin/c++  -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include -isystem /ci/myagent/_work/3/s/installed/x64-linux/include -fPIC -g   -Wall -Wextra -Wconversion -pedantic -Wfatal-errors -std=c++11 -MD -MT CMakeFiles/spdlog.dir/src/file_sinks.cpp.o -MF CMakeFiles/spdlog.dir/src/file_sinks.cpp.o.d -o CMakeFiles/spdlog.dir/src/file_sinks.cpp.o -c /ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/src/file_sinks.cpp
[6/8] /usr/bin/c++  -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I/ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/include -isystem /ci/myagent/_work/3/s/installed/x64-linux/include -fPIC -g   -Wall -Wextra -Wconversion -pedantic -Wfatal-errors -std=c++11 -MD -MT CMakeFiles/spdlog.dir/src/color_sinks.cpp.o -MF CMakeFiles/spdlog.dir/src/color_sinks.cpp.o.d -o CMakeFiles/spdlog.dir/src/color_sinks.cpp.o -c /ci/myagent/_work/3/s/buildtrees/spdlog/src/34724392a0-c671dd4aa9/src/color_sinks.cpp
ninja: build stopped: subcommand failed.

I will restart pipeline test.
vcpkg-osx-PR is deprecated, please ignore this.

@JackBoosY
Copy link
Contributor

/azp run

@tagsemb
Copy link
Contributor Author

tagsemb commented Jan 19, 2020

So spdlog, which relies on fmt, had issues with fmt 6.1.2 in the current version. I added a commit that updates spdlog from 1.4.2 to 1.5.0 as well, addressing the issues. I'm not sure if I should've made a new PR for this?

@JackBoosY
Copy link
Contributor

@tagsemb Yes, you can open a new PR to update spdlog.
And I found #9289 is doing the same job.

@xeropresence
Copy link
Contributor

What work needs to be done to update fmt and spdlog still?

@JackBoosY
Copy link
Contributor

@xeropresence Needs to wait for #10051 merge.

@JackBoosY
Copy link
Contributor

/azp run

@JackBoosY
Copy link
Contributor

Please resolve windows build failures.

Thanks.

@kevinlul
Copy link
Contributor

kevinlul commented Mar 7, 2020

Unneeded since #10080 got merged?

@tagsemb
Copy link
Contributor Author

tagsemb commented Mar 7, 2020

Unneeded, duplicate of #10080.

@tagsemb tagsemb closed this Mar 7, 2020
@tagsemb tagsemb deleted the fmt_update-to-6.1.2 branch March 7, 2020 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants