From owner-freebsd-questions@FreeBSD.ORG Fri Jan 11 21:58:35 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id ED370B1F for ; Fri, 11 Jan 2013 21:58:35 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) by mx1.freebsd.org (Postfix) with ESMTP id C3500396 for ; Fri, 11 Jan 2013 21:58:35 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id k14so2918170iea.38 for ; Fri, 11 Jan 2013 13:58:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cwBSlEU18oT+RBo+GVd+jKftSJ/yzr3iJ1pxI+X8Vb0=; b=yaiT5yhGiw+tfp5WzGoc6lbaxMW2nFO8kbVmXc/8JRR7V5wd67nWR0SxXDyrc1+i66 i9V+doweqIdZicUKGOcuIXCFSAyyFV/+yVGO2p6nvIjdh/ZO78qSE6XuzIlCaf3BCISn c73y/PdA8Uq1b0T+qCeN7m/Ck9yd7gDNnStu1YtRwclC5sDgdulM6WB4KHEYM3l09pvG ly3ADyhm7mQjzVCWwnEGEaZ9L+phGMV5naYi6sSrZXZINTPuEnCna+SNPu6VdpNjoWPl vO1HLpeYwI4GUh6bye0gjKOLWy/jhXdRvy7NMUafYVKU19UlSL1o/s5De0bpZEZiPSqS Ug8w== MIME-Version: 1.0 Received: by 10.50.193.234 with SMTP id hr10mr600674igc.21.1357941509235; Fri, 11 Jan 2013 13:58:29 -0800 (PST) Received: by 10.64.5.70 with HTTP; Fri, 11 Jan 2013 13:58:29 -0800 (PST) In-Reply-To: References: <201301091750.14076.lumiwa@gmail.com> Date: Fri, 11 Jan 2013 16:58:29 -0500 Message-ID: Subject: Re: clang From: "illoai@gmail.com" To: ajtiM Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2013 21:58:36 -0000 On 11 January 2013 16:49, illoai@gmail.com wrote: > On 9 January 2013 18:50, ajtiM wrote: >> I had FreeBSD 9.0-RELEASE which was updated with freebsd-update upgrade to >> RC-3 and RC3 with freebsd-update to 9.1 release: >> >> FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012 >> root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >> >> Almost 90% of ports I built with clang and in etc/make.conf I have: >> >> CC=clang >> CXX=clang++ >> CPP=clang-cpp >> >> But when I ran clang --version I got: >> >> FreeBSD clang version 3.1 (branches/release_31 156863) 20120523 >> Target: i386-unknown-freebsd9.0 >> Thread model: posix >> >> Is it normal, please? With update of FreeBSD from 9.0 to RC3 and to Release I >> din't have any problem >> >> Thank you. >> > > Huh, weird. > > % clang --version > FreeBSD clang version 3.1 (branches/release_31 156863) 20120523 > Target: x86_64-unknown-freebsd9.0 > Thread model: posix > % uname -a > FreeBSD hostname 9.1-RELEASE FreeBSD 9.1-RELEASE #2 r243712: Fri Nov > 30 18:23:24 EST 2012 > root@hostname:/usr/obj/usr/src/sys/KERNEL9 amd64 After grepping the entire source tree: /usr/src/gnu/lib/libdialog/dlg_config.h:#define SYSTEM_NAME "freebsd9.0" /usr/src/gnu/usr.bin/binutils/as/config.h:/* #define TARGET_ALIAS "i386-unknown-freebsd9.0" */ /usr/src/gnu/usr.bin/binutils/as/config.h:/* #define TARGET_CANONICAL "i386-unknown-freebsd9.0" */ /usr/src/gnu/usr.bin/binutils/as/config.h:/* #define TARGET_OS "freebsd9.0" */ /usr/src/gnu/usr.bin/binutils/libbinutils/config.h:/* #define TARGET "i386-unknown-freebsd9.0" */ /usr/src/lib/clang/clang.build.mk:CFLAGS+=-DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_ARCH:C/amd64/x86_64/}-unknown-freebsd9.0\" As to whether that is intentional or not, is beyond me. -- --