From owner-freebsd-arch@FreeBSD.ORG Mon Nov 12 18:52:01 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6FFF87CD; Mon, 12 Nov 2012 18:52:01 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 300748FC13; Mon, 12 Nov 2012 18:52:00 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.31]) by ltcfislmsgpa06.fnfis.com (8.14.5/8.14.5) with ESMTP id qACIq0cH020948 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 12 Nov 2012 12:52:00 -0600 Received: from [10.0.0.103] (10.14.152.61) by smtp.fisglobal.com (10.132.206.31) with Microsoft SMTP Server (TLS) id 14.2.309.2; Mon, 12 Nov 2012 12:51:59 -0600 Subject: Re: Working on Bootforth / ficl MIME-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset="iso-8859-1" From: Devin Teske In-Reply-To: <50A1435F.2010002@freebsd.org> Date: Mon, 12 Nov 2012 10:51:58 -0800 Content-Transfer-Encoding: quoted-printable Message-ID: <4693988C-04B2-457F-9E4A-CB64840E05C6@fisglobal.com> References: <1DE1DC5C-9D7F-4FC7-A27C-736B0B172DBF@fisglobal.com> <50A1435F.2010002@freebsd.org> To: Peter Grehan X-Mailer: Apple Mail (2.1283) X-Originating-IP: [10.14.152.61] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8185, 1.0.431, 0.0.0000 definitions=2012-11-12_03:2012-11-12,2012-11-11,1970-01-01 signatures=0 Cc: mike , Devin Teske , Adrian Chadd , freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Devin Teske List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 18:52:01 -0000 On Nov 12, 2012, at 10:43 AM, Peter Grehan wrote: > Hi Devin, >=20 >>> - A user-land ficl executable which acted exactly like the >>> bootloader for better forth development >>>=20 >>=20 >> Does it support "include" ? That's been one of the biggest things >> preventing me from simulating boot in userland. If it does, this >> would be a very great addition. >=20 > Have you had a look at sys/boot/userboot/test ? That should be able to (m= ostly?) help with userspace testing. >=20 Until now, I was only aware of "testmain" under sys/boot/ficl/ (and that do= esn't get me very far because it lacks "include"). I took a look at sys/boot/userboot/test and it looks a lot more robust. However, "test" currently doesn't compile (error below): =3D=3D=3D> test (all) Warning: Object directory not changed from original /usr/home/dteske/src/fr= eebsd_svn/base/head/sys/boot/userboot/test cc -O2 -pipe -I/usr/home/dteske/src/freebsd_svn/base/head/sys/boot/userboo= t/test/.. -I/usr/home/dteske/src/freebsd_svn/base/head/sys/boot/userboot/te= st/../../.. -std=3Dgnu99 -c test.c In file included from test.c:41: /usr/include/stdlib.h:54: error: expected '=3D', ',', ';', 'asm' or '__attr= ibute__' before 'wchar_t' /usr/include/stdlib.h:95: error: expected ')' before '*' token /usr/include/stdlib.h:96: error: expected ')' before '*' token /usr/include/stdlib.h:110: error: expected declaration specifiers or '...' = before 'wchar_t' /usr/include/stdlib.h:111: error: expected ';', ',' or ')' before '*' token *** Error code 1 Stop in /usr/home/dteske/src/freebsd_svn/base/head/sys/boot/userboot/test. *** Error code 1 --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.