View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001572 | bareos-core | director | public | 2023-11-26 12:34 | 2024-02-20 10:19 |
Reporter | mschiff | Assigned To | bruno-at-bareos | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | any | OS Version | 3 |
Product Version | 22.1.1 | ||||
Summary | 0001572: llvm version 17.0.5: fails zu build (cannot convert std::vector<std::_cxx11::basic_string<char> >::iterator to const char) | ||||
Description | bareos 21 fails to build with llvm/clang 17: /.../sql_get.cc: error: cannot convert std::vector<std::_cxx11::basic_string<char> >::iterator to const char [34/510] /usr/bin/x86_64-pc-linux-gnu-g++ -D_BDB_PRIV_INTERFACE_ -D_FILE_OFFSET_BITS=64 -Dbareossql_EXPORTS -I/usr/include/tirpc -I/var/tmp/portage/app-backup/bareos-22.1.0-r1/work/bareos-Release-22.1.0/core/src -I/usr/include/postgresql -O3 -pipe -march=native -fno-diagnostics-color -Wsuggest-over [35/510] /usr/bin/x86_64-pc-linux-gnu-g++ -D_BDB_PRIV_INTERFACE_ -D_FILE_OFFSET_BITS=64 -Dbareossql_EXPORTS -I/usr/include/tirpc -I/var/tmp/portage/app-backup/bareos-22.1.0-r1/work/bareos-Release-22.1.0/core/src -I/usr/include/postgresql -O3 -pipe -march=native -fno-diagnostics-color -Wsuggest-over [36/510] /usr/bin/x86_64-pc-linux-gnu-g++ -D_BDB_PRIV_INTERFACE_ -D_FILE_OFFSET_BITS=64 -Dbareossql_EXPORTS -I/usr/include/tirpc -I/var/tmp/portage/app-backup/bareos-22.1.0-r1/work/bareos-Release-22.1.0/core/src -I/usr/include/postgresql -O3 -pipe -march=native -fno-diagnostics-color -Wsuggest-over FAILED: core/src/cats/CMakeFiles/bareossql.dir/sql_get.cc.o /usr/bin/x86_64-pc-linux-gnu-g++ -D_BDB_PRIV_INTERFACE_ -D_FILE_OFFSET_BITS=64 -Dbareossql_EXPORTS -I/usr/include/tirpc -I/var/tmp/portage/app-backup/bareos-22.1.0-r1/work/bareos-Release-22.1.0/core/src -I/usr/include/postgresql -O3 -pipe -march=native -fno-diagnostics-color -Wsuggest-override -Wfo /var/tmp/portage/app-backup/bareos-22.1.0-r1/work/bareos-Release-22.1.0/core/src/cats/sql_get.cc: In member function db_list_ctx BareosDb::FilterZeroFileJobs(db_list_ctx&): /var/tmp/portage/app-backup/bareos-22.1.0-r1/work/bareos-Release-22.1.0/core/src/cats/sql_get.cc:1309:42: error: cannot convert std::vector<std::__cxx11::basic_string<char> >::iterator to const char* 1309 | jobids.erase(std::remove(jobids.begin(), jobids.end(), remove_jobid), | ~~~~~~~~~~~~^~ | ||||
Additional Information | For more details see: https://bugs.gentoo.org/917761 | ||||
Tags | build | ||||
fails with gcc 14, see details of linked bug | |
You mean it fails with GCC 14 and CLang 17? | |
Just gcc-14, sorry. | |
bareos fails to build with clang-17 as well, please see https://bugs.gentoo.org/919303 | |
Given a quick try today, with llvm-17.0.6 (master code) the reported error is ``` In file included from /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.cc:43: /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:110:5: error: mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Werror,-Wc99-designator] 110 | .tp_name = "restore_object", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:109:5: note: first non-designated initializer is here 109 | PyVarObject_HEAD_INIT(NULL, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/object.h:84:5: note: expanded from macro 'PyVarObject_HEAD_INIT' 84 | { PyObject_HEAD_INIT(type) size }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.cc:43: /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:182:5: error: mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Werror,-Wc99-designator] 182 | .tp_name = "stat_pkt", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:181:5: note: first non-designated initializer is here 181 | PyVarObject_HEAD_INIT(NULL, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/object.h:84:5: note: expanded from macro 'PyVarObject_HEAD_INIT' 84 | { PyObject_HEAD_INIT(type) size }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.cc:43: /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:261:5: error: mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Werror,-Wc99-designator] 261 | .tp_name = "save_pkt", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:260:5: note: first non-designated initializer is here 260 | PyVarObject_HEAD_INIT(NULL, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/object.h:84:5: note: expanded from macro 'PyVarObject_HEAD_INIT' 84 | { PyObject_HEAD_INIT(type) size }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.cc:43: /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:341:5: error: mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Werror,-Wc99-designator] 341 | .tp_name = "restore_pkt", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:340:5: note: first non-designated initializer is here 340 | PyVarObject_HEAD_INIT(NULL, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/object.h:84:5: note: expanded from macro 'PyVarObject_HEAD_INIT' 84 | { PyObject_HEAD_INIT(type) size }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.cc:43: /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:414:5: error: mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Werror,-Wc99-designator] 414 | .tp_name = "io_pkt", | ^~~~~~~~~~~~~~~~~~~~~~~~ /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:413:5: note: first non-designated initializer is here 413 | PyVarObject_HEAD_INIT(NULL, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/object.h:84:5: note: expanded from macro 'PyVarObject_HEAD_INIT' 84 | { PyObject_HEAD_INIT(type) size }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.cc:43: /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:454:5: error: mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Werror,-Wc99-designator] 454 | .tp_name = "acl_pkt", | ^~~~~~~~~~~~~~~~~~~~~~~~~ /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:453:5: note: first non-designated initializer is here 453 | PyVarObject_HEAD_INIT(NULL, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/object.h:84:5: note: expanded from macro 'PyVarObject_HEAD_INIT' 84 | { PyObject_HEAD_INIT(type) size }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.cc:43: /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:499:5: error: mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Werror,-Wc99-designator] 499 | .tp_name = "xattr_pkt", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /bareos/git/b-at-bareos/core/src/plugins/filed/python/module/bareosfd.h:498:5: note: first non-designated initializer is here 498 | PyVarObject_HEAD_INIT(NULL, 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/python3.11/object.h:84:5: note: expanded from macro 'PyVarObject_HEAD_INIT' 84 | { PyObject_HEAD_INIT(type) size }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 errors generated. make[2]: *** [core/src/plugins/filed/python/CMakeFiles/bareosfd-python3-module.dir/build.make:76: core/src/plugins/filed/python/CMakeFiles/bareosfd-python3-module.dir/module/bareosfd.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:6183: core/src/plugins/filed/python/CMakeFiles/bareosfd-python3-module.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 43%] Building CXX object core/src/filed/CMakeFiles/fd_objects.dir/crypto.cc.o ``` |
|
Today after update of clang 7.0.6 on openSUSE Tumbleweed libclang-cpp17-17.0.6-2.3.x86_64 libclang13-17.0.6-2.3.x86_64 clang17-17.0.6-2.3.x86_64 clang-17-1.2.x86_64 cmake + make of master work Entering /bareos/git/b-at-bareos -- Found Git: /usr/bin/git (found version "2.43.0") -- Using version information from Git BAREOS_NUMERIC_VERSION is 24.0.0 BAREOS_FULL_VERSION is 24.0.0~pre252.6853fc171 -- The C compiler identification is Clang 17.0.6 -- The CXX compiler identification is Clang 17.0.6 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done |
|
Fixes for gcc are in PR1693 https://github.com/bareos/bareos/pull/1693 | |
PR1693 has been merged. Please reopen if the problem still exist on bareos-23 branch or master |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2023-11-26 12:34 | mschiff | New Issue | |
2023-11-26 12:34 | mschiff | Tag Attached: build | |
2023-11-26 12:39 | mschiff | Note Added: 0005529 | |
2023-11-27 10:16 | arogge | Note Added: 0005530 | |
2023-11-27 11:10 | mschiff | Note Added: 0005533 | |
2023-12-05 22:22 | mschiff | Note Added: 0005574 | |
2024-01-18 10:42 | bruno-at-bareos | Note Added: 0005701 | |
2024-02-06 15:09 | bruno-at-bareos | Note Added: 0005737 | |
2024-02-06 15:10 | bruno-at-bareos | Note Added: 0005738 | |
2024-02-20 10:19 | bruno-at-bareos | Assigned To | => bruno-at-bareos |
2024-02-20 10:19 | bruno-at-bareos | Status | new => closed |
2024-02-20 10:19 | bruno-at-bareos | Resolution | open => fixed |
2024-02-20 10:19 | bruno-at-bareos | Note Added: 0005785 |