From owner-freebsd-current@FreeBSD.ORG Thu Apr 22 14:17:10 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 806B71065673; Thu, 22 Apr 2010 14:17:10 +0000 (UTC) (envelope-from uqs@spoerlein.net) Received: from acme.spoerlein.net (acme.spoerlein.net [IPv6:2001:470:9a47::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3DAFB8FC17; Thu, 22 Apr 2010 14:17:10 +0000 (UTC) Received: from acme.spoerlein.net (localhost.spoerlein.net [IPv6:::1]) by acme.spoerlein.net (Postfix) with ESMTPS id 805B15C89; Thu, 22 Apr 2010 16:17:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spoerlein.net; s=dkim200908; t=1271945829; bh=LnscrZjsJuslTN3uaZBX68F0QAhc3pWw/VCtsqDyIbE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=AYfxA6ds7ObiEnYtRKIwIbnqEIDfR9iR45AKZu59P9nGldM7KWvAXqo5ElOGfDbCn m7a+9FQ6RdE+Zwn5656OrgmzqNmGBJ86/LKwAXx2/F21CEO1Zsu2bAmAvSZ/0QDjPx 1SUMpZOBK+5tyktytL5H6Ue+yxZ5ye1adD9gw7P8= Received: (from uqs@localhost) by acme.spoerlein.net (8.14.4/8.14.4/Submit) id o3MEH9Ya040607; Thu, 22 Apr 2010 16:17:09 +0200 (CEST) (envelope-from uqs@spoerlein.net) Date: Thu, 22 Apr 2010 16:17:09 +0200 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: Alexander Best Message-ID: <20100422141709.GV92627@acme.spoerlein.net> Mail-Followup-To: Alexander Best , Roman Divacky , freebsd-current@FreeBSD.org References: <20100421201556.GA14044@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Roman Divacky , freebsd-current@FreeBSD.org Subject: Re: [CFT]: ClangBSD is selfhosting, we need testers now X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 22 Apr 2010 14:17:10 -0000 On Wed, 21.04.2010 at 23:30:15 +0200, Alexander Best wrote: > Roman Divacky schrieb am 2010-04-21: > > On Wed, Apr 21, 2010 at 09:44:45PM +0200, Alexander Best wrote: > > > Roman Divacky schrieb am 2010-04-21: > > > > [snip] > > > > > 1) cd modules/sound/sound && make CC=gcc > > > > after this step these are the sizes of sound.ko* in > > > modules/sound/sound: > > > > -rw-r--r-- 1 root wheel 449120 Apr 21 21:36 sound.ko > > > -rw-r--r-- 1 root wheel 2284757 Apr 21 21:36 sound.ko.debug > > > -rw-r--r-- 1 root wheel 2055512 Apr 21 21:36 sound.ko.symbols > > > > > 2) make -V SRCS | tr " " "\n" | grep -v \.h | sort | grep > > > > "^[a-m].*" > > > > | xargs touch > > > this line is wrong.. it creates empty files which are used instead > > of touching the existing ones... it needs to be adjusted so it > > touches the files (thus forcing them to be rebuilt with the second > > make invocation) > > i'm now 100% sure that buffer.c is causing the problem. what i did to verify > this was: > > cd sys/modules/sound/sound && make CC=clang && touch > ../../../dev/sound/pcm/buffer.c && make CC=gcc && make install > > this gives me working sound! Great stuff to have narrowed it down so much. Next logical step would be to do the bisect on function-level scope. Copy one half of buffer.c to buffer-clang.c, the other half to buffer-gcc.c, adjust the Makefile to use buffer-{gcc,clang}.c instead of buffer.c and compile them accordingly. Redo your tests till we know the single function(s) where clang produces bad code. Hang in there, the hard part is almost done! Uli