Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2012 10:51:58 -0800
From:      Devin Teske <devin.teske@fisglobal.com>
To:        Peter Grehan <grehan@freebsd.org>
Cc:        mike <mike@reifenberger.com>, Devin Teske <dteske@freebsd.org>, Adrian Chadd <adrian@freebsd.org>, freebsd-arch@freebsd.org
Subject:   Re: Working on Bootforth / ficl
Message-ID:  <4693988C-04B2-457F-9E4A-CB64840E05C6@fisglobal.com>
In-Reply-To: <50A1435F.2010002@freebsd.org>
References:  <A0A46155-0969-459E-BCD6-4AA7B8B371BE@fisglobal.com> <alpine.WNT.2.00.1211120856000.7920@ux32> <1DE1DC5C-9D7F-4FC7-A27C-736B0B172DBF@fisglobal.com> <50A1435F.2010002@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4693988C-04B2-457F-9E4A-CB64840E05C6>