From owner-freebsd-toolchain@FreeBSD.ORG Wed Feb 11 21:17:07 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A074A4EC; Wed, 11 Feb 2015 21:17:07 +0000 (UTC) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BFD2E9F; Wed, 11 Feb 2015 21:17:07 +0000 (UTC) Received: by labhz20 with SMTP id hz20so6066818lab.0; Wed, 11 Feb 2015 13:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=yUpFR5WUla835/Fm8Ed6khbNk5JO+fDw3+/EGxt1vE0=; b=Wad17CY3HdtiNLF4cYKV+CUJjSyc18/6BtuP8CNo/4TY6YsqyKvreD69JDa006omjQ Tsj6a6VcTl4XKzZSHj6pGsBWEjfi+FEBDtKfzuaCJDU5bbUHJn5imlTEdCytLxwkPfS7 HOT/di93jca0JfXxWbj1I0ySY4uJV6p3ZsEgYH6Up2jK2Ci7hLHBHtRT/TaGwP64790V Sv2/c5Jl4aqohYLI5V5bl3acduUKZNMqs57b4n9OvL/avlWFoam6e4N7rOAkWZ6N+AKU hu5JsuF9rfOn85JwGvzVDRllfDkWyfN84z08I8VwENbNqaIxMS0Jsa1mEC64xlCKXDcw LC7A== MIME-Version: 1.0 X-Received: by 10.112.126.98 with SMTP id mx2mr522112lbb.84.1423689425042; Wed, 11 Feb 2015 13:17:05 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.112.28.40 with HTTP; Wed, 11 Feb 2015 13:17:04 -0800 (PST) Date: Wed, 11 Feb 2015 13:17:04 -0800 X-Google-Sender-Auth: dqDFKjiRmqrK8NDUgeBWdhn9PcI Message-ID: Subject: clang and scanbuild From: Craig Rodrigues To: "freebsd-testing@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2015 21:17:07 -0000 Hi, We currently have a Jenkins job which checks out llvm trunk and builds it like this: svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm cd llvm ./configure --enable-optimized --disable-assertions --disable-docs --enable-targets=host \ --with-c-include-dirs=${WORKDIR}/obj${WORKDIR}/src/tmp/usr/include \ --with-cxx-include-root=${WORKDIR}/obj${WORKDIR}/src/tmp/usr/include gmake -j4 cp -p ./tools/clang/tools/scan-build/scan-build \ ./tools/clang/tools/scan-build/scanview.css \ ./tools/clang/tools/scan-build/sorttable.js \ Release/bin cp -p ./tools/clang/tools/scan-build/ccc-analyzer \ ./tools/clang/tools/scan-build/c++-analyzer \ Release/bin We then do this to invoke scan-build over the FreeBSD tree: /usr/bin/time -l \ env CCC_ANALYZER_CHECKER_DEADCODE=0 \ ${SCAN_BUILD} \ --use-cc ${OBJ}${SRCDIR}/tmp/usr/bin/cc \ --use-c++ ${OBJ}${SRCDIR}/tmp/usr/bin/c++ \ -k -o $output make ${JFLAG} $MYFLAGS \ CROSS_COMPILER_PREFIX=${OBJ}${SRCDIR}/tmp/usr/bin/ "$@" We can continue to do this, but I was wondering if: (1) is there a FreeBSD port which has this stuff? (2) is there enough llvm source in FreeBSD that we can build this in FreeBSD instead of checking out llvm source? -- Craig