<html><head></head><body>OK. Thanks. I will have a look. Don t hesitate if you can provide a patch<br><br><div class="gmail_quote">On 20 mai 2014 18:58:53 CEST, Aurelien Jacobs <aurel@gnuage.org> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Package: clang-3.4<br />Version: 1:3.4.1-3<br /><br />Dear Maintainer,<br /><br />scan-build stopped working for me since you added the following patch in<br />version 1:3.4.1-1:<br /> scan-build-fix-clang-detection.diff<br /><br />I use scan-build in a cross-compilation environement so I call it<br />with --use-cc:<br /> scan-build --use-cc=arm-none-eabi-gcc -o out make -e<br /><br />It used to work great, but it now spits errors such as:<br /> error: bad value (arm7tdmi) for -mtune= switch<br />(this comes from my cross-compilation related CFLAGS)<br /><br />I traced the problem to the following test which was added in ccc-analyzer:<br /> if (..... || ! -x $Compiler)<br />Problem is that -x does not lookup into $PATH and thus it fails to find<br />my arm-none-eabi-gcc executable and silently defaults back to native<br />gcc. If I give the full path with --use-cc=/opt/x-tools/bin/arm-none-eabi-gcc<br />then scan-build works again. If I remove the -x
$Compiler check it also<br />works.<br /><br />I suggest that ccc-analyzer should do a full $PATH search on $Compiler<br />instead of a simple -x check.<br /><br />Regards.<br /><br />Aurélien Jacobs<br /><br /><hr /><br />Pkg-llvm-team mailing list<br />Pkg-llvm-team@lists.alioth.debian.org<br /><a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-llvm-team">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-llvm-team</a><br /></pre></blockquote></div><br>
-- <br>
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.</body></html>