From owner-freebsd-arm@FreeBSD.ORG Fri Apr 25 07:43:05 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85E15786; Fri, 25 Apr 2014 07:43:05 +0000 (UTC) Received: from forward8l.mail.yandex.net (forward8l.mail.yandex.net [IPv6:2a02:6b8:0:1819::8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19A0A1A1B; Fri, 25 Apr 2014 07:43:05 +0000 (UTC) Received: from smtp4h.mail.yandex.net (smtp4h.mail.yandex.net [84.201.186.21]) by forward8l.mail.yandex.net (Yandex) with ESMTP id 7B1D71A40E61; Fri, 25 Apr 2014 11:43:00 +0400 (MSK) Received: from smtp4h.mail.yandex.net (localhost [127.0.0.1]) by smtp4h.mail.yandex.net (Yandex) with ESMTP id 13D1E2C3824; Fri, 25 Apr 2014 11:42:59 +0400 (MSK) Received: from 78.108.203.86.tel.ru (78.108.203.86.tel.ru [78.108.203.86]) by smtp4h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id KI0JzBbGm5-gxp06Rgp; Fri, 25 Apr 2014 11:42:59 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 3dccd8b2-8b94-4087-a69d-c0c6ebc6e605 Message-ID: <535A1203.90105@passap.ru> Date: Fri, 25 Apr 2014 11:42:59 +0400 From: Boris Samorodov Organization: =?UTF-8?B?0JfQkNCeICLQktCQ0KDQoiI=?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Ian Lepore Subject: Re: buildkernel: #error "On SMP systems we should have proper atomic operations." References: <5358AF80.4010403@passap.ru> <1398371698.61646.96.camel@revolution.hippie.lan> <20140424203801.GH49791@glenbarber.us> <1398372248.61646.98.camel@revolution.hippie.lan> In-Reply-To: <1398372248.61646.98.camel@revolution.hippie.lan> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2014 07:43:05 -0000 25.04.2014 00:44, Ian Lepore пишет: > On Thu, 2014-04-24 at 16:38 -0400, Glen Barber wrote: >> On Thu, Apr 24, 2014 at 02:34:58PM -0600, Ian Lepore wrote: >>> On Thu, 2014-04-24 at 10:30 +0400, Boris Samorodov wrote: >>>> Hi All, >>>> >>>> I try to compile a kernel at WANDBOARD-QUAD and get the error: >>>> ----- >>>> ===> fuse (depend) >>>> [...] >>>> CC='cc ' mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE >>>> -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq >>>> -I/usr/obj/arm.arm/usr/src/sys/IMX6 -std=iso9899:1999 /usr/src/sys/mod >>>> ules/fuse/../../fs/fuse/fuse_node.c >>>> /usr/src/sys/modules/fuse/../../fs/fuse/fuse_io.c >>>> /usr/src/sys/modules/fuse/../../fs/fuse/fuse_device.c >>>> /usr/src/sys/modules/fuse/../../fs/fuse/fuse_ipc.c >>>> /usr/src/sys/modules/fuse/../../fs/fuse/fuse_file.c >>>> /usr/src/sys/modules/fuse/../../fs/fuse/fuse_vfsops.c >>>> /usr/src/sys/modules/fuse/../../fs/fuse/fuse_vnops.c >>>> /usr/src/sys/modules/fuse/../. >>>> ./fs/fuse/fuse_internal.c >>>> /usr/src/sys/modules/fuse/../../fs/fuse/fuse_main.c >>>> --- .depend --- >>>> /usr/src/sys/arm/arm/stdatomic.c:120:2: error: "On SMP systems we should >>>> have proper atomic operations." >>>> #error "On SMP systems we should have proper atomic operations." >>>> ^ >>>> 1 error generated. >>>> ----- >>>> >>>> The system: >>>> ----- >>>> % uname -a >>>> FreeBSD wandboard 11.0-CURRENT FreeBSD 11.0-CURRENT #3 r264681: Sun Apr >>>> 20 02:39:12 SAMT 2014 >>>> root@bb052.bsnet:/home/bsam/crochet-freebsd-master/work/obj/arm.armv6/usr/src/sys/IMX6 >>>> arm >>>> >>>> % svnlite info /usr/src >>>> Path: /usr/src >>>> Working Copy Root Path: /usr/src >>>> URL: https://svn0.us-west.freebsd.org/base/head >>>> Relative URL: ^/head >>>> Repository Root: https://svn0.us-west.freebsd.org/base >>>> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f >>>> Revision: 264824 >>>> Node Kind: directory >>>> Schedule: normal >>>> Last Changed Author: ed >>>> Last Changed Rev: 264823 >>>> Last Changed Date: 2014-04-23 18:05:28 +0400 (ср, 23 апр 2014) >>>> ----- >>>> >>>> -- >>>> WBR, Boris Samorodov (bsam) >>>> FreeBSD Committer, http://www.FreeBSD.org The Power To Serve >>> >>> Hmmm, for a wandboard you shouldn't get to line 120, it's for armv5. Oh >>> wait, you must have typo'd the TARGET= as arm instead of armv6, because: >>> >>> -I/usr/obj/arm.arm/usr/src/sys/IMX6 -std=iso9899:1999 /usr/src/sys/mod >>> >>> that should be obj/arm.armv6/ in that path. Oh, I see. TARGET defining is a trace of a previous cross-compiling. I'll fix my script and retry. >> I think TARGET=arm TARGET_ARCH=armv6 is the correct environment, not >> TARGET=armv6. >> >> Or did something change (again!)? > > Nope, my bad, it should be TARGET_ARCH=armv6 (and no need to also > specify TARGET= at all). Thank you! > I'm just demonstrating once again that "multitasking" is shorthand for > "screwing up multiple things at once." -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve