Bug#748777: clang-3.4: scan-build --use-cc broken

Sylvestre Ledru sylvestre at debian.org
Tue May 20 18:46:14 UTC 2014


OK. Thanks.  I will have a look. Don t hesitate if you can provide a patch

On 20 mai 2014 18:58:53 CEST, Aurelien Jacobs <aurel at gnuage.org> wrote:
>Package: clang-3.4
>Version: 1:3.4.1-3
>
>Dear Maintainer,
>
>scan-build stopped working for me since you added the following patch
>in
>version 1:3.4.1-1:
>  scan-build-fix-clang-detection.diff
>
>I use scan-build in a cross-compilation environement so I call it
>with --use-cc:
>  scan-build --use-cc=arm-none-eabi-gcc -o out make -e
>
>It used to work great, but it now spits errors such as:
>  error: bad value (arm7tdmi) for -mtune= switch
>(this comes from my cross-compilation related CFLAGS)
>
>I traced the problem to the following test which was added in
>ccc-analyzer:
>  if (..... || ! -x $Compiler)
>Problem is that -x does not lookup into $PATH and thus it fails to find
>my arm-none-eabi-gcc executable and silently defaults back to native
>gcc. If I give the full path with
>--use-cc=/opt/x-tools/bin/arm-none-eabi-gcc
>then scan-build works again. If I remove the -x $Compiler check it also
>works.
>
>I suggest that ccc-analyzer should do a full $PATH search on $Compiler
>instead of a simple -x check.
>
>Regards.
>
>Aurélien Jacobs
>
>_______________________________________________
>Pkg-llvm-team mailing list
>Pkg-llvm-team at lists.alioth.debian.org
>http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-llvm-team

-- 
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20140520/2d91582c/attachment.html>


More information about the Pkg-llvm-team mailing list