[libcamera-devel] Build failure after recent commits

Jacopo Mondi jacopo at jmondi.org
Mon Sep 26 09:15:32 CEST 2022


Hi Rafael,
  it would be useful to know the compiler version, even if I suspect
it's gcc8, which is known to be broken
https://buildbot.libcamera.org/#/builders/6

Can you confirm it ?


On Sun, Sep 25, 2022 at 12:33:53PM +0300, Rafael Diniz via libcamera-devel wrote:
> Hi all,
>
> I'm working on packaging libcamera for Maemo (Debian 10), and recently build
> broke:
>
>
> [201/266] ccache c++ -Isrc/ipa/rkisp1/ipa_rkisp1.so.p -Isrc/ipa/rkisp1
> -I../src/ipa/rkisp1 -Iinclude -I../include -Isrc/ipa -I../src/ipa
> -Iinclude/libcamera/ipa -Iinclude/libcamera -fdiagnostics-color=always -pipe
> -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra
> -Werror -std=c++17 -Wl,--start-group -lstdc++fs -Wl,--end-group -Wshadow
> -include
> /mnt/root/libcamera-packages/libcamera-0.1/obj-aarch64-linux-gnu/config.h -g
> -O2 -fdebug-prefix-map=/mnt/root/libcamera-packages/libcamera-0.1=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wno-error
> -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBCAMERA_BASE_PRIVATE -MD -MQ
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_dpf.cpp.o -MF
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_dpf.cpp.o.d -o
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_dpf.cpp.o -c
> ../src/ipa/rkisp1/algorithms/dpf.cpp
> FAILED: src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_dpf.cpp.o
> ccache c++ -Isrc/ipa/rkisp1/ipa_rkisp1.so.p -Isrc/ipa/rkisp1
> -I../src/ipa/rkisp1 -Iinclude -I../include -Isrc/ipa -I../src/ipa
> -Iinclude/libcamera/ipa -Iinclude/libcamera -fdiagnostics-color=always -pipe
> -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra
> -Werror -std=c++17 -Wl,--start-group -lstdc++fs -Wl,--end-group -Wshadow
> -include
> /mnt/root/libcamera-packages/libcamera-0.1/obj-aarch64-linux-gnu/config.h -g
> -O2 -fdebug-prefix-map=/mnt/root/libcamera-packages/libcamera-0.1=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wno-error
> -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBCAMERA_BASE_PRIVATE -MD -MQ
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_dpf.cpp.o -MF
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_dpf.cpp.o.d -o
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_dpf.cpp.o -c
> ../src/ipa/rkisp1/algorithms/dpf.cpp
> In file included from ../include/libcamera/controls.h:11,
>                  from ../src/ipa/libipa/algorithm.h:12,
>                  from ../src/ipa/rkisp1/algorithms/algorithm.h:10,
>                  from ../src/ipa/rkisp1/algorithms/dpf.h:12,
>                  from ../src/ipa/rkisp1/algorithms/dpf.cpp:8:
> /usr/include/c++/8/optional: In instantiation of ‘_Tp
> std::optional<_Tp>::value_or(_Up&&) && [with _Up = const
> libcamera::utils::details::defopt_t&; _Tp = std::vector<unsigned char>]’:
> ../src/ipa/rkisp1/algorithms/dpf.cpp:73:66:   required from here
> /usr/include/c++/8/optional:1267:8: error: call of overloaded ‘vector(const
> libcamera::utils::details::defopt_t&)’ is ambiguous
>       : static_cast<_Tp>(std::forward<_Up>(__u));
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/c++/8/vector:64,
>                  from ../include/libcamera/controls.h:16,
>                  from ../src/ipa/libipa/algorithm.h:12,
>                  from ../src/ipa/rkisp1/algorithms/algorithm.h:10,
>                  from ../src/ipa/rkisp1/algorithms/dpf.h:12,
>                  from ../src/ipa/rkisp1/algorithms/dpf.cpp:8:
> /usr/include/c++/8/bits/stl_vector.h:515:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const
> allocator_type&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned
> char>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<unsigned
> char>]’
>        vector(initializer_list<value_type> __l,
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:476:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp =
> unsigned char; _Alloc = std::allocator<unsigned char>]’
>        vector(vector&& __x) noexcept
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:458:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp
> = unsigned char; _Alloc = std::allocator<unsigned char>]’
>        vector(const vector& __x)
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:415:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const
> allocator_type&) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned
> char>; std::vector<_Tp, _Alloc>::size_type = long unsigned int;
> std::vector<_Tp, _Alloc>::allocator_type = std::allocator<unsigned char>]’
>        vector(size_type __n, const allocator_type& __a = allocator_type())
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:402:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp =
> unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp,
> _Alloc>::allocator_type = std::allocator<unsigned char>]’
>        vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
>        ^~~~~~
> In file included from ../include/libcamera/controls.h:11,
>                  from ../src/ipa/libipa/algorithm.h:12,
>                  from ../src/ipa/rkisp1/algorithms/algorithm.h:10,
>                  from ../src/ipa/rkisp1/algorithms/dpf.h:12,
>                  from ../src/ipa/rkisp1/algorithms/dpf.cpp:8:
> /usr/include/c++/8/optional: In instantiation of ‘_Tp
> std::optional<_Tp>::value_or(_Up&&) && [with _Up = const
> libcamera::utils::details::defopt_t&; _Tp = std::vector<short unsigned
> int>]’:
> ../src/ipa/rkisp1/algorithms/dpf.cpp:138:74:   required from here
> /usr/include/c++/8/optional:1267:8: error: call of overloaded ‘vector(const
> libcamera::utils::details::defopt_t&)’ is ambiguous
>       : static_cast<_Tp>(std::forward<_Up>(__u));
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/c++/8/vector:64,
>                  from ../include/libcamera/controls.h:16,
>                  from ../src/ipa/libipa/algorithm.h:12,
>                  from ../src/ipa/rkisp1/algorithms/algorithm.h:10,
>                  from ../src/ipa/rkisp1/algorithms/dpf.h:12,
>                  from ../src/ipa/rkisp1/algorithms/dpf.cpp:8:
> /usr/include/c++/8/bits/stl_vector.h:515:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const
> allocator_type&) [with _Tp = short unsigned int; _Alloc =
> std::allocator<short unsigned int>; std::vector<_Tp, _Alloc>::allocator_type
> = std::allocator<short unsigned int>]’
>        vector(initializer_list<value_type> __l,
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:476:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp =
> short unsigned int; _Alloc = std::allocator<short unsigned int>]’
>        vector(vector&& __x) noexcept
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:458:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp
> = short unsigned int; _Alloc = std::allocator<short unsigned int>]’
>        vector(const vector& __x)
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:415:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const
> allocator_type&) [with _Tp = short unsigned int; _Alloc =
> std::allocator<short unsigned int>; std::vector<_Tp, _Alloc>::size_type =
> long unsigned int; std::vector<_Tp, _Alloc>::allocator_type =
> std::allocator<short unsigned int>]’
>        vector(size_type __n, const allocator_type& __a = allocator_type())
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:402:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = short
> unsigned int; _Alloc = std::allocator<short unsigned int>; std::vector<_Tp,
> _Alloc>::allocator_type = std::allocator<short unsigned int>]’
>        vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
>        ^~~~~~
> [202/266] ccache c++ -Isrc/ipa/rkisp1/ipa_rkisp1.so.p -Isrc/ipa/rkisp1
> -I../src/ipa/rkisp1 -Iinclude -I../include -Isrc/ipa -I../src/ipa
> -Iinclude/libcamera/ipa -Iinclude/libcamera -fdiagnostics-color=always -pipe
> -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra
> -Werror -std=c++17 -Wl,--start-group -lstdc++fs -Wl,--end-group -Wshadow
> -include
> /mnt/root/libcamera-packages/libcamera-0.1/obj-aarch64-linux-gnu/config.h -g
> -O2 -fdebug-prefix-map=/mnt/root/libcamera-packages/libcamera-0.1=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wno-error
> -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBCAMERA_BASE_PRIVATE -MD -MQ
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_dpcc.cpp.o -MF
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_dpcc.cpp.o.d -o
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_dpcc.cpp.o -c
> ../src/ipa/rkisp1/algorithms/dpcc.cpp
> [203/266] ccache c++ -Isrc/ipa/rkisp1/ipa_rkisp1.so.p -Isrc/ipa/rkisp1
> -I../src/ipa/rkisp1 -Iinclude -I../include -Isrc/ipa -I../src/ipa
> -Iinclude/libcamera/ipa -Iinclude/libcamera -fdiagnostics-color=always -pipe
> -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra
> -Werror -std=c++17 -Wl,--start-group -lstdc++fs -Wl,--end-group -Wshadow
> -include
> /mnt/root/libcamera-packages/libcamera-0.1/obj-aarch64-linux-gnu/config.h -g
> -O2 -fdebug-prefix-map=/mnt/root/libcamera-packages/libcamera-0.1=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wno-error
> -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBCAMERA_BASE_PRIVATE -MD -MQ
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_gsl.cpp.o -MF
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_gsl.cpp.o.d -o
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_gsl.cpp.o -c
> ../src/ipa/rkisp1/algorithms/gsl.cpp
> FAILED: src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_gsl.cpp.o
> ccache c++ -Isrc/ipa/rkisp1/ipa_rkisp1.so.p -Isrc/ipa/rkisp1
> -I../src/ipa/rkisp1 -Iinclude -I../include -Isrc/ipa -I../src/ipa
> -Iinclude/libcamera/ipa -Iinclude/libcamera -fdiagnostics-color=always -pipe
> -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra
> -Werror -std=c++17 -Wl,--start-group -lstdc++fs -Wl,--end-group -Wshadow
> -include
> /mnt/root/libcamera-packages/libcamera-0.1/obj-aarch64-linux-gnu/config.h -g
> -O2 -fdebug-prefix-map=/mnt/root/libcamera-packages/libcamera-0.1=.
> -fstack-protector-strong -Wformat -Werror=format-security -Wno-error
> -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBCAMERA_BASE_PRIVATE -MD -MQ
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_gsl.cpp.o -MF
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_gsl.cpp.o.d -o
> src/ipa/rkisp1/ipa_rkisp1.so.p/algorithms_gsl.cpp.o -c
> ../src/ipa/rkisp1/algorithms/gsl.cpp
> In file included from ../include/libcamera/controls.h:11,
>                  from ../src/ipa/libipa/algorithm.h:12,
>                  from ../src/ipa/rkisp1/algorithms/algorithm.h:10,
>                  from ../src/ipa/rkisp1/algorithms/gsl.h:10,
>                  from ../src/ipa/rkisp1/algorithms/gsl.cpp:8:
> /usr/include/c++/8/optional: In instantiation of ‘_Tp
> std::optional<_Tp>::value_or(_Up&&) && [with _Up = const
> libcamera::utils::details::defopt_t&; _Tp = std::vector<short unsigned
> int>]’:
> ../src/ipa/rkisp1/algorithms/gsl.cpp:63:71:   required from here
> /usr/include/c++/8/optional:1267:8: error: call of overloaded ‘vector(const
> libcamera::utils::details::defopt_t&)’ is ambiguous
>       : static_cast<_Tp>(std::forward<_Up>(__u));
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/c++/8/vector:64,
>                  from ../include/libcamera/controls.h:16,
>                  from ../src/ipa/libipa/algorithm.h:12,
>                  from ../src/ipa/rkisp1/algorithms/algorithm.h:10,
>                  from ../src/ipa/rkisp1/algorithms/gsl.h:10,
>                  from ../src/ipa/rkisp1/algorithms/gsl.cpp:8:
> /usr/include/c++/8/bits/stl_vector.h:515:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const
> allocator_type&) [with _Tp = short unsigned int; _Alloc =
> std::allocator<short unsigned int>; std::vector<_Tp, _Alloc>::allocator_type
> = std::allocator<short unsigned int>]’
>        vector(initializer_list<value_type> __l,
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:476:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp =
> short unsigned int; _Alloc = std::allocator<short unsigned int>]’
>        vector(vector&& __x) noexcept
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:458:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp
> = short unsigned int; _Alloc = std::allocator<short unsigned int>]’
>        vector(const vector& __x)
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:415:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const
> allocator_type&) [with _Tp = short unsigned int; _Alloc =
> std::allocator<short unsigned int>; std::vector<_Tp, _Alloc>::size_type =
> long unsigned int; std::vector<_Tp, _Alloc>::allocator_type =
> std::allocator<short unsigned int>]’
>        vector(size_type __n, const allocator_type& __a = allocator_type())
>        ^~~~~~
> /usr/include/c++/8/bits/stl_vector.h:402:7: note: candidate:
> ‘std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = short
> unsigned int; _Alloc = std::allocator<short unsigned int>; std::vector<_Tp,
> _Alloc>::allocator_type = std::allocator<short unsigned int>]’
>        vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
>        ^~~~~~
>
> Best regards,
> Rafael




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20220926/7fe126d6/attachment.sig>


More information about the libcamera-devel mailing list