From owner-freebsd-current@FreeBSD.ORG Thu Apr 22 19:26:13 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 963821065691; Thu, 22 Apr 2010 19:26:13 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-relay1.uni-muenster.de (ZIVM-RELAY1.UNI-MUENSTER.DE [128.176.192.12]) by mx1.freebsd.org (Postfix) with ESMTP id EC5F18FC19; Thu, 22 Apr 2010 19:26:12 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.52,258,1270418400"; d="scan'208";a="303019054" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER03.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay1.uni-muenster.de with ESMTP; 22 Apr 2010 21:26:12 +0200 Received: by ZIVMAILUSER03.UNI-MUENSTER.DE (Postfix, from userid 149459) id 0685E1B0758; Thu, 22 Apr 2010 21:26:11 +0200 (CEST) Date: Thu, 22 Apr 2010 21:26:11 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Ulrich =?iso-8859-1?Q?Sp=F6rlein?= Message-ID: In-Reply-To: <20100422141709.GV92627@acme.spoerlein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 19:26:13 -0000 Ulrich Sp=F6rlein schrieb am 2010-04-22: > 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=3Dgcc > > > > 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=3Dclang && touch > > ../../../dev/sound/pcm/buffer.c && make CC=3Dgcc && 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. thanks for the hint. i'll try and see if i can pinpoint the exact function = in buffer.c causing the problem. > Hang in there, the hard part is almost done! > Uli --=20 Alexander Best