From owner-freebsd-current@FreeBSD.ORG Wed Apr 21 17:58:30 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 577331065674 for ; Wed, 21 Apr 2010 17:58:30 +0000 (UTC) (envelope-from rpaulo@lavabit.com) Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by mx1.freebsd.org (Postfix) with ESMTP id 217DD8FC18 for ; Wed, 21 Apr 2010 17:58:29 +0000 (UTC) Received: from e.earth.lavabit.com (e.earth.lavabit.com [192.168.111.14]) by karen.lavabit.com (Postfix) with ESMTP id 88AA311F705; Wed, 21 Apr 2010 12:58:29 -0500 (CDT) Received: from 10.0.10.3 (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by lavabit.com with ESMTP id X1TZXEARXYG9; Wed, 21 Apr 2010 12:58:29 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=BPmhb3u5matTzB+bghcuNtCWobNo+m5I5teTSGQCht/V+JIBOZs60eUrWparOAIlEjJZdJKW3cGAbXXqOVX+COKCad7EpW0o11viAwL0EhZckocHE0DxhZDAIXo2jorL/ylQ+Y77fJKb25WWvrT4WJbXH/5GYOBGKy+7KBu90TQ=; h=Subject:Mime-Version:Content-Type:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: Date: Wed, 21 Apr 2010 18:58:26 +0100 Content-Transfer-Encoding: 7bit Message-Id: <034542FD-3BAD-4ACA-B085-17F575409DAF@lavabit.com> References: To: Alexander Best X-Mailer: Apple Mail (2.1078) X-Mailman-Approved-At: Wed, 21 Apr 2010 18:06:25 +0000 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: Wed, 21 Apr 2010 17:58:30 -0000 On 21 Apr 2010, at 18:22, Alexander Best wrote: > Roman Divacky schrieb am 2010-04-21: >> On Wed, Apr 21, 2010 at 05:20:57PM +0200, Alexander Best wrote: >>> i might have stumbled upon a problem with clang. i've compiled a >>> kernel from >>> the clang branch using `make kernel INSTKERNNAME=clang` and booted >>> from it. >>> i'm now experiencing audio problems with mp3s and certain video >>> files. >>> playback is awfully slow and the audio output gets distorted >>> massively. `top` >>> however reports no high cpu load and `vmstat -i` doesn't report >>> anything >>> unusual either. > >>> this problem doesn't occur with a regular gcc-kernel. > >>> both kernels are running under a regular (gcc) world. > >>> i thought it might be a problem with acpi, but disabling acpi >>> (hint.acpi.0.disabled=1) gives me a system freeze. > >> I've heard about this problem but did not manage to reproduce that. > >> can you try to bisect what file is being miscompiled? ie. compile >> half of the kernel with gcc and half with clang and bisect this >> way to a single file. > >> we can work from there... > > i've identified the problem to be somewhere in sys/dev/sound. i've removed > "device sound" and "device hda_snd" from my kernel config and > rebuild/reinstalled both kernels (gcc and clang). i then booted the clang > kernel and loaded various sound.ko and snd_hda.ko combination. here're the > results: > > sound.ko (clang) snd_hda.ko (clang) => BROKEN > sound.ko (clang) snd_hda.ko (gcc) => BROKEN > sound.ko (gcc) snd_hda.ko (gcc) => OK > sound.ko (gcc) snd_hda.ko (clang) => OK > > i've attached a log documenting all clang warnings that get issued when > building sys/modules/sound. > > in addition to those warnings i get a lot of these, but i guess they aren't > harmful: > > clang: warning: argument unused during compilation: '-funroll-loops' > clang: warning: argument unused during compilation: '-finline-limit=8000' > clang: warning: argument unused during compilation: '--param > inline-unit-growth=100' > clang: warning: argument unused during compilation: '--param > large-function-growth=1000' > clang: warning: argument unused during compilation: '-mfpmath=387' > clang: warning: argument unused during compilation: '-fformat-extensions' > clang: warning: argument unused during compilation: '-funroll-loops' > clang: warning: argument unused during compilation: '-finline-limit=8000' > clang: warning: argument unused during compilation: '--param > inline-unit-growth=100' > clang: warning: argument unused during compilation: '--param > large-function-growth=1000' > clang: warning: argument unused during compilation: '-mfpmath=387' There's some assembly in feeder_rate.c. Can you check if it's being used? Regards, -- Rui Paulo