From owner-freebsd-current@freebsd.org Tue Mar 29 18:16:34 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D3DD4AE2992 for ; Tue, 29 Mar 2016 18:16:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9889515B3 for ; Tue, 29 Mar 2016 18:16:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::4513:c3a7:b0b8:ff47] (unknown [IPv6:2001:7b8:3a7:0:4513:c3a7:b0b8:ff47]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B4CF569C5; Tue, 29 Mar 2016 20:16:25 +0200 (CEST) Subject: Re: Need some help with ports and rebuilding the world Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_224C84BD-97A6-40F0-99B3-81B58AA994AE"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <20160329165318.2af443c4@fujitsu> Date: Tue, 29 Mar 2016 20:16:16 +0200 Cc: Gary Jennejohn , Michael Gmelin , freebsd-current@freebsd.org Message-Id: References: <20160327234202.178df9a4@fujitsu> <20160327225612.713eaa2a@bsd64.grem.de> <20160328084735.29eff991@fujitsu> <20160328094742.68bc9046@ernst.home> <20160328170031.023f0adb@fujitsu> <20160329123821.120d8de8@fujitsu> <72586F27-113D-4225-B7AB-A890C9522CD5@FreeBSD.org> <20160329165318.2af443c4@fujitsu> To: Aleksander Alekseev X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2016 18:16:34 -0000 --Apple-Mail=_224C84BD-97A6-40F0-99B3-81B58AA994AE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 29 Mar 2016, at 15:53, Aleksander Alekseev wrote: >=20 >> For some reason, your build does not pick up the __alloc_size defines >> from sys/cdefs.h. You will have to figure out which cdefs.h your >> build is including, and check whether that is in sync with the rest >> of your source tree. >=20 > I removed CC, CXX and CPP lines from /etc/make.conf and it solved a > problem. Still it's weird since cc (used now) and clang (explicitly > specified before) supposed to be the same compiler: >=20 > $ clang --version > FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) = 20140512 > Target: x86_64-unknown-freebsd10.2 > Thread model: posix >=20 > $ cc --version > FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) = 20140512 > Target: x86_64-unknown-freebsd10.2 > Thread model: posix >=20 > In fact cc and clang look like a hardlink to the same file. Any ideas > why one is capable of building the world and second is not? It should not make any difference, at least on my systems it does not. =46rom what I saw from in other post, you specified the full path to = clang in CC, which you should not do for a regular buildworld. The first stages of buildworld build a copy of clang under /usr/obj, and the later stages use that, but specifying a full path the compiler defeats this mechanism. Note that Bryan Drewery is working on making this better, but for now, just don't use full paths for CC, CXX and CPP in make.conf. -Dimitry --Apple-Mail=_224C84BD-97A6-40F0-99B3-81B58AA994AE Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.29 iEYEARECAAYFAlb6xnkACgkQsF6jCi4glqOZ0gCfRezIJPKrSZirg1vHPty8qyIz SAMAoLQ174Gu1uUmJoZ829tdGEj9Ch6G =6fRT -----END PGP SIGNATURE----- --Apple-Mail=_224C84BD-97A6-40F0-99B3-81B58AA994AE--