From owner-freebsd-arm@FreeBSD.ORG Tue Feb 17 18:46:55 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3ABD7261 for ; Tue, 17 Feb 2015 18:46:55 +0000 (UTC) Received: from wa3yre.wynn.com (wa3yre.wynn.com [199.89.147.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CB89EF6B for ; Tue, 17 Feb 2015 18:46:54 +0000 (UTC) Received: from ivory.wynn.com (mail.wynn.com [199.89.147.3]) (authenticated bits=0) by wa3yre.wynn.com (8.14.3/8.12.6) with ESMTP id t1HIkkm7098477 for ; Tue, 17 Feb 2015 13:46:46 -0500 (EST) (envelope-from freebsd-arm@wynn.com) Date: Tue, 17 Feb 2015 13:46:46 -0500 From: Brett Wynkoop To: freebsd-arm@freebsd.org Subject: Native Kernel Build Fails BeagleBone Message-ID: <20150217134646.495798df@ivory.wynn.com> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.25; x86_64-apple-darwin10.8.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2015 18:46:55 -0000 Greeting- It seems that the same kernel source tree that builds as a cross compile on my x86 box does not build on the BB. ln -sf /usr/src/sys/arm/compile/BEAGLEBONE/opt_compat.h opt_compat.h ln -sf /usr/src/sys/arm/compile/BEAGLEBONE/opt_kstack_pages.h opt_kstack_pages.h ln -sf /usr/src/sys/arm/compile/BEAGLEBONE/opt_nfs.h opt_nfs.h ln -sf /usr/src/sys/arm/compile/BEAGLEBONE/opt_hwpmc_hooks.h opt_hwpmc_hooks.h cc -c -O -pipe -mcpu=arm1176jzf-s -mfloat-abi=softfp -DDIS_MEM -DSMP -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/usr/src/sys/arm/compile/BEAGLEBONE/../../../cddl/compat/opensolaris -I/usr/src/sys/arm/compile/BEAGLEBONE/../../../cddl/dev/dtrace -I/usr/src/sys/arm/compile/BEAGLEBONE/../../../cddl/dev/dtrace/arm -I/usr/src/sys/arm/compile/BEAGLEBONE/../../../cddl/contrib/opensolaris/uts/common -I/usr/src/sys/arm/compile/BEAGLEBONE/../../../cddl/contrib/opensolaris/common/util -I/usr/src/sys/arm/compile/BEAGLEBONE/../../.. -DHAVE_KERNEL_OPTION_HEADERS -include /usr/src/sys/arm/compile/BEAGLEBONE/opt_global.h -I. -I/usr/src/sys/arm/compile/BEAGLEBONE/../../.. -I/usr/src/sys/arm/compile/BEAGLEBONE/../../../contrib/altq -g -I/usr/src/sys/arm/compile/BEAGLEBONE -march=armv7a -ffreestanding -fwrapv -gdwarf-2 -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-parentheses -Wno-uninitialized -Wno-cast-qual -Wno-unused -mllvm -arm-use-movt=0 -mfpu=none -std=iso9899:1999 -include /usr/src/sys/arm/compile/BEAGLEBONE/../../../cddl/compat/opensolaris/sys/debug_compat.h /usr/src/sys/arm/compile/BEAGLEBONE/../../../arm/arm/genassym.c cc: error: argument unused during compilation: '-march=armv7a' [-Werror,-Wunused-command-line-argument] *** Error code 1 Stop. make[3]: stopped in /usr/src/sys/modules/dtrace/dtrace *** Error code 1 Stop. make[2]: stopped in /usr/src/sys/modules/dtrace *** Error code 1 Stop. make[1]: stopped in /usr/src/sys/modules *** Error code 1 Stop. make: stopped in /usr/src/sys/arm/compile/BEAGLEBONE root@beaglebone:/usr/src/sys/arm/compile/BEAGLEBONE # FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r278741: Sat Feb 14 06:04:22 EST 2015 wynkoop@prd2.wynn.com:/proj/wynkoop/crochet/crochet-freebsd-master/work/obj/arm.armv6/proj/wynkoop/armsrc/sys/BEAGLEBONE arm Ideas? -Brett -- wynkoop@wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6925 929-272-0000 "If ever a time should come, when vain and aspiring men shall possess the highest seats in Government, our country will stand in need of its experienced patriots to prevent its ruin." -- Samuel Adams, letter to James Warren (24 October 1780)