From owner-freebsd-questions@FreeBSD.ORG Mon Jul 11 12:12:21 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FAB8106566C for ; Mon, 11 Jul 2011 12:12:21 +0000 (UTC) (envelope-from timp87@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 515A68FC0C for ; Mon, 11 Jul 2011 12:12:21 +0000 (UTC) Received: by iyb11 with SMTP id 11so4634033iyb.13 for ; Mon, 11 Jul 2011 05:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=CHunCh1sBhaA7f9dlsw5MVPLYduCgqfGzfEhN6eE8Nc=; b=Fp4Lscgs7bVnMaMUZo2nU0G87GuP/CgUMISmuJHLlcmSQaq/NEgy58a4DJA+JjSJ9b 3XQSpDFzp2fLYqbuvgUOQqHaqM05gnYy1dTYAZe6dSnbQk/Fyv59xhx7PHkzLjPgICFK dodcDSm2VP4UtL2eTis/ZNr+/0rjKdnOFS4tw= MIME-Version: 1.0 Received: by 10.231.121.30 with SMTP id f30mr1291675ibr.109.1310386340664; Mon, 11 Jul 2011 05:12:20 -0700 (PDT) Received: by 10.231.36.10 with HTTP; Mon, 11 Jul 2011 05:12:20 -0700 (PDT) Date: Mon, 11 Jul 2011 16:12:20 +0400 Message-ID: From: Pavel Timofeev To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: freebsd kernel and clang X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2011 12:12:21 -0000 Hello! I can't use freebsd CURRENT kernel that was compiled by clang. It prints "Unknown error: -512" Use of world compiled by clang is possible and causes no problem. But if I install kernel by clang it says "Unknow error: -512" in unexpected places: - while booting - while portsnap fetch update Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found. Fetching snapshot tag from portsnap1.FreeBSD.org... done. Fetching snapshot metadata... done. Updating from Mon Jul 11 11:16:53 MSK 2011 to Mon Jul 11 15:31:18 MSK 2011. Fetching 3 metadata patches.. done. Applying metadata patches... done. Fetching 0 metadata files... done. /usr/sbin/portsnap: cannot create patchlist: Unknown error: -512 Fetching 0 patches. done. Applying patches... done. Fetching 5 new ports or files... done. Removing old files and directories... done. Extracting new files: /usr/ports/UPDATING files/c20b7b19d8d0b7ba779814a807cd4a54ad3d44c70e5974e589fc4b9a6912468b.gz not found -- snapshot corrupt. - while something else. This problem occurs only with kernel by clang. All is ok If I install kernel compiled by gcc. Maybe I do something wrong? P.S. Latest sources # cat /etc/make.conf # # CLANG .if !defined(CC) || ${CC} == "cc" CC=clang .endif .if !defined(CXX) || ${CXX} == "c++" CXX=clang++ .endif # Don't die on warnings NO_WERROR= WERROR= # Don't forget this when using Jails! NO_FSCHG=