<div dir="ltr"><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><div style="font-size:12.8px"><div style="font-size:small"><font color="#000000" face="arial, helvetica, sans-serif">Looks like this pops up every so often, and the solution is to remove "-stdlib=libc++":</font></div><div style="font-size:small"><br class="gmail-Apple-interchange-newline"><a href="https://github.com/conan-io/conan/issues/7339">https://github.com/conan-io/conan/issues/7339</a><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div style="font-size:small"><a href="https://marc.info/?l=llvm-bugs&m=140601983212810&w=4">https://marc.info/?l=llvm-bugs&m=140601983212810&w=4</a><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div style="font-size:small"><a href="https://bugs.llvm.org/show_bug.cgi?id=20395">https://bugs.llvm.org/show_bug.cgi?id=20395</a></div><div style="font-size:small"><br></div><div style="font-size:small">However, I've addressed this error here by explicitly specifying "-werror=false" in the Android build and will be dropping this commit, in line with the preferences I've seen expressed here.</div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 24, 2022 at 6:46 PM Laurent Pinchart <<a href="mailto:laurent.pinchart@ideasonboard.com" target="_blank">laurent.pinchart@ideasonboard.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Nicholas,<br>
<br>
Thank you for the patch.<br>
<br>
On Mon, Oct 24, 2022 at 12:55:40AM -0500, Nicholas Roth via libcamera-devel wrote:<br>
> From: Nicholas Roth <<a href="mailto:nicholas@rothemail.net" target="_blank">nicholas@rothemail.net</a>><br>
> <br>
> This breaks during cross-compilation when this is not true for the<br>
> meson-cross cross-compiler target.<br>
> <br>
> Error:<br>
> clang++: error: argument unused during compilation: '-stdlib=libc++' [-Werror,-Wunused-command-line-argument]<br>
<br>
I'm surprised, does the Android version of clang not support that<br>
argument ?<br>
<br>
> ---<br>
>  meson.build | 8 --------<br>
>  1 file changed, 8 deletions(-)<br>
> <br>
> diff --git a/meson.build b/meson.build<br>
> index 56910698..7d0588d2 100644<br>
> --- a/meson.build<br>
> +++ b/meson.build<br>
> @@ -95,14 +95,6 @@ if cc.get_id() == 'clang'<br>
>          ]<br>
>      endif<br>
>  <br>
> -    # Use libc++ by default if available instead of libstdc++ when compiling<br>
> -    # with clang.<br>
> -    if cc.find_library('libc++', required: false).found()<br>
> -        cpp_arguments += [<br>
> -            '-stdlib=libc++',<br>
> -        ]<br>
> -    endif<br>
> -<br>
<br>
This changes the behaviour for everybody else, which is not nice. I'd<br>
like to find a better way.<br>
<br>
>      cpp_arguments += [<br>
>          '-Wextra-semi',<br>
>          '-Wthread-safety',<br>
<br>
-- <br>
Regards,<br>
<br>
Laurent Pinchart<br>
</blockquote></div>