From owner-freebsd-stable@FreeBSD.ORG Mon Aug 26 20:12:40 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 463AE699 for ; Mon, 26 Aug 2013 20:12:40 +0000 (UTC) (envelope-from dave@jetcafe.org) Received: from nahkohe.jetcafe.org (nahkohe.jetcafe.org [205.147.26.32]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 283142CF8 for ; Mon, 26 Aug 2013 20:12:39 +0000 (UTC) X-Envelope-To: Received: from [205.147.26.5] (hokkshideh4.jetcafe.org [205.147.26.5]) by nahkohe.jetcafe.org (8.14.2/8.14.2) with ESMTP id r7QK16ZO075620 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 26 Aug 2013 13:01:07 -0700 (PDT) Message-ID: <521BB402.4000605@jetcafe.org> Date: Mon, 26 Aug 2013 13:01:06 -0700 From: Dave Hayes User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121121 Thunderbird/16.0.2 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: 9-STABLE, clang, and virtualbox Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Aug 2013 20:12:40 -0000 I've been trying to get emulators/virtualbox-ose-kmod to compile from ports on a clang built 9-STABLE: # uname -v FreeBSD 9.1-STABLE #0 r251391M: Tue Jun 4 09:47:42 PDT 2013 root@fb9build.jetcafe.org:/usr/obj/usr/src.amd64/sys/GENERIC amd64 # cc -v FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 Target: x86_64-unknown-freebsd9.1 Thread model: posix After some work I can get it to compile, but then I get this: # kldload /boot/modules/vboxdrv.ko kldload: can't load /boot/modules/vboxdrv.ko: Exec format error # dmesg | tail -2 KLD vboxdrv.ko: depends on kernel - not available or version mismatch linker_load_file: Unsupported file type # kldxref -d /boot/modules/vboxdrv.ko ... /boot/modules/vboxdrv.ko depends on kernel.901505 (901505,999999) module vboxdrv interface vboxdrv.1 # kldxref -d /boot/kernel | grep -C 3 /boot/kernel/kernel depends on kernel.901504 (901504,999999) module ppi_ppbus depends on ppbus.1 (1,1) /boot/kernel/kernel depends on kernel.901504 (901504,999999) module xpt depends on cam.1 (1,1) What's going on here and how can I debug this one? It seems that the module vboxdrv.ko has the correct versions. Thanks in advance for any assistance anyone can provide. :) -- Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org >>>> *The opinions expressed above are entirely my own* <<<< Imagination is not a talent of some men, but it is the health of every man.