Build issue
Hi, I'm having some problems when trying to build btrfs-assistant. Do you know anything about it? I tried a make clean, a new cmake generation but I still have the same issue.
Thanks!
➜ build git:(main) make
[ 5%] Automatic MOC and UIC for target btrfs-assistant-bin
[ 5%] Built target btrfs-assistant-bin_autogen
[ 10%] Building CXX object src/CMakeFiles/btrfs-assistant-bin.dir/util/Snapper.cpp.o
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp: In static member function ‘static SnapperSnapshot Snapper::readSnapperMeta(const QString&)’:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:325:36: error: conversion from ‘const char [4]’ to ‘QChar’ is ambiguous
325 | if (xml.name().compare("num") == 0) {
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qstring.h:14,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/qdatetime.h:8,
from /usr/include/x86_64-linux-gnu/qt6/QtCore/QDateTime:1,
from /home/dev_user/repos/btrfs-assistant/src/util/Snapper.h:4,
from /home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:1:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:90:45: note: candidate: ‘constexpr QChar::QChar(char)’ (near match)
90 | QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:90:45: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:325:36: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
325 | if (xml.name().compare("num") == 0) {
| ^~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:83:26: note: candidate: ‘constexpr QChar::QChar(char16_t)’ (near match)
83 | constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:83:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:325:36: error: invalid conversion from ‘const char*’ to ‘char16_t’ [-fpermissive]
325 | if (xml.name().compare("num") == 0) {
| ^~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:78:26: note: candidate: ‘constexpr QChar::QChar(short int)’ (near match)
78 | constexpr Q_IMPLICIT QChar(short rc) noexcept : ucs(char16_t(rc)) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:78:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:325:36: error: invalid conversion from ‘const char*’ to ‘short int’ [-fpermissive]
325 | if (xml.name().compare("num") == 0) {
| ^~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:76:26: note: candidate: ‘constexpr QChar::QChar(ushort)’ (near match)
76 | constexpr Q_IMPLICIT QChar(ushort rc) noexcept : ucs(rc) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:76:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:325:36: error: invalid conversion from ‘const char*’ to ‘ushort’ {aka ‘short unsigned int’} [-fpermissive]
325 | if (xml.name().compare("num") == 0) {
| ^~~~~
| |
| const char*
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:651:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qstringview.h:257:47: note: initializing argument 1 of ‘constexpr int QStringView::compare(QChar) const’
257 | [[nodiscard]] constexpr int compare(QChar c) const noexcept
| ~~~~~~^
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:327:43: error: conversion from ‘const char [5]’ to ‘QChar’ is ambiguous
327 | } else if (xml.name().compare("date") == 0) {
| ^~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:90:45: note: candidate: ‘constexpr QChar::QChar(char)’ (near match)
90 | QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:90:45: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:327:43: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
327 | } else if (xml.name().compare("date") == 0) {
| ^~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:83:26: note: candidate: ‘constexpr QChar::QChar(char16_t)’ (near match)
83 | constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:83:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:327:43: error: invalid conversion from ‘const char*’ to ‘char16_t’ [-fpermissive]
327 | } else if (xml.name().compare("date") == 0) {
| ^~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:78:26: note: candidate: ‘constexpr QChar::QChar(short int)’ (near match)
78 | constexpr Q_IMPLICIT QChar(short rc) noexcept : ucs(char16_t(rc)) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:78:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:327:43: error: invalid conversion from ‘const char*’ to ‘short int’ [-fpermissive]
327 | } else if (xml.name().compare("date") == 0) {
| ^~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:76:26: note: candidate: ‘constexpr QChar::QChar(ushort)’ (near match)
76 | constexpr Q_IMPLICIT QChar(ushort rc) noexcept : ucs(rc) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:76:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:327:43: error: invalid conversion from ‘const char*’ to ‘ushort’ {aka ‘short unsigned int’} [-fpermissive]
327 | } else if (xml.name().compare("date") == 0) {
| ^~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qstringview.h:257:47: note: initializing argument 1 of ‘constexpr int QStringView::compare(QChar) const’
257 | [[nodiscard]] constexpr int compare(QChar c) const noexcept
| ~~~~~~^
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:330:43: error: conversion from ‘const char [12]’ to ‘QChar’ is ambiguous
330 | } else if (xml.name().compare("description") == 0) {
| ^~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:90:45: note: candidate: ‘constexpr QChar::QChar(char)’ (near match)
90 | QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:90:45: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:330:43: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
330 | } else if (xml.name().compare("description") == 0) {
| ^~~~~~~~~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:83:26: note: candidate: ‘constexpr QChar::QChar(char16_t)’ (near match)
83 | constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:83:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:330:43: error: invalid conversion from ‘const char*’ to ‘char16_t’ [-fpermissive]
330 | } else if (xml.name().compare("description") == 0) {
| ^~~~~~~~~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:78:26: note: candidate: ‘constexpr QChar::QChar(short int)’ (near match)
78 | constexpr Q_IMPLICIT QChar(short rc) noexcept : ucs(char16_t(rc)) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:78:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:330:43: error: invalid conversion from ‘const char*’ to ‘short int’ [-fpermissive]
330 | } else if (xml.name().compare("description") == 0) {
| ^~~~~~~~~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:76:26: note: candidate: ‘constexpr QChar::QChar(ushort)’ (near match)
76 | constexpr Q_IMPLICIT QChar(ushort rc) noexcept : ucs(rc) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:76:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:330:43: error: invalid conversion from ‘const char*’ to ‘ushort’ {aka ‘short unsigned int’} [-fpermissive]
330 | } else if (xml.name().compare("description") == 0) {
| ^~~~~~~~~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qstringview.h:257:47: note: initializing argument 1 of ‘constexpr int QStringView::compare(QChar) const’
257 | [[nodiscard]] constexpr int compare(QChar c) const noexcept
| ~~~~~~^
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:332:43: error: conversion from ‘const char [5]’ to ‘QChar’ is ambiguous
332 | } else if (xml.name().compare("type") == 0) {
| ^~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:90:45: note: candidate: ‘constexpr QChar::QChar(char)’ (near match)
90 | QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:90:45: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:332:43: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
332 | } else if (xml.name().compare("type") == 0) {
| ^~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:83:26: note: candidate: ‘constexpr QChar::QChar(char16_t)’ (near match)
83 | constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:83:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:332:43: error: invalid conversion from ‘const char*’ to ‘char16_t’ [-fpermissive]
332 | } else if (xml.name().compare("type") == 0) {
| ^~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:78:26: note: candidate: ‘constexpr QChar::QChar(short int)’ (near match)
78 | constexpr Q_IMPLICIT QChar(short rc) noexcept : ucs(char16_t(rc)) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:78:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:332:43: error: invalid conversion from ‘const char*’ to ‘short int’ [-fpermissive]
332 | } else if (xml.name().compare("type") == 0) {
| ^~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:76:26: note: candidate: ‘constexpr QChar::QChar(ushort)’ (near match)
76 | constexpr Q_IMPLICIT QChar(ushort rc) noexcept : ucs(rc) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:76:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:332:43: error: invalid conversion from ‘const char*’ to ‘ushort’ {aka ‘short unsigned int’} [-fpermissive]
332 | } else if (xml.name().compare("type") == 0) {
| ^~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qstringview.h:257:47: note: initializing argument 1 of ‘constexpr int QStringView::compare(QChar) const’
257 | [[nodiscard]] constexpr int compare(QChar c) const noexcept
| ~~~~~~^
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:334:43: error: conversion from ‘const char [8]’ to ‘QChar’ is ambiguous
334 | } else if (xml.name().compare("cleanup") == 0) {
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:90:45: note: candidate: ‘constexpr QChar::QChar(char)’ (near match)
90 | QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:90:45: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:334:43: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
334 | } else if (xml.name().compare("cleanup") == 0) {
| ^~~~~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:83:26: note: candidate: ‘constexpr QChar::QChar(char16_t)’ (near match)
83 | constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:83:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:334:43: error: invalid conversion from ‘const char*’ to ‘char16_t’ [-fpermissive]
334 | } else if (xml.name().compare("cleanup") == 0) {
| ^~~~~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:78:26: note: candidate: ‘constexpr QChar::QChar(short int)’ (near match)
78 | constexpr Q_IMPLICIT QChar(short rc) noexcept : ucs(char16_t(rc)) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:78:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:334:43: error: invalid conversion from ‘const char*’ to ‘short int’ [-fpermissive]
334 | } else if (xml.name().compare("cleanup") == 0) {
| ^~~~~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:76:26: note: candidate: ‘constexpr QChar::QChar(ushort)’ (near match)
76 | constexpr Q_IMPLICIT QChar(ushort rc) noexcept : ucs(rc) {}
| ^~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qchar.h:76:26: note: conversion of argument 1 would be ill-formed:
/home/dev_user/repos/btrfs-assistant/src/util/Snapper.cpp:334:43: error: invalid conversion from ‘const char*’ to ‘ushort’ {aka ‘short unsigned int’} [-fpermissive]
334 | } else if (xml.name().compare("cleanup") == 0) {
| ^~~~~~~~~
| |
| const char*
/usr/include/x86_64-linux-gnu/qt6/QtCore/qstringview.h:257:47: note: initializing argument 1 of ‘constexpr int QStringView::compare(QChar) const’
257 | [[nodiscard]] constexpr int compare(QChar c) const noexcept
| ~~~~~~^
make[2]: *** [src/CMakeFiles/btrfs-assistant-bin.dir/build.make:261 : src/CMakeFiles/btrfs-assistant-bin.dir/util/Snapper.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:117 : src/CMakeFiles/btrfs-assistant-bin.dir/all] Erreur 2
make: *** [Makefile:136 : all] Erreur 2