build problems

39 views
Skip to first unread message

Antti....@googlemail.com

unread,
Jul 14, 2008, 5:10:43 AM7/14/08
to inferno-ds
Hi
having some issues

1) fpimem.c seems to be missing from SVN? removed it from mkfile
2) had to modify mkfile: <| $SHELLNAME arm7/mkdeps arm7/mkfile # sets
$ARM7SRC
3) getting errors that mk: c:\inferno\usr\inferno\lib\profile can not
make

im pretty sure it all uptodate install, etc..
but maybe the build just cant work on winvista? unfortunatly i only
have one notebook and that has vista as os :(

Antti

Salva Peiró

unread,
Jul 14, 2008, 6:21:27 AM7/14/08
to infer...@googlegroups.com

1) fpimem.c shouldn't be missing, it should be in ../port/fpimem.c.
The file in charge of making source files from ../port/ reachable
from the ds port directory is ../port/portmkfile.
Maybe portmkfile is not being properly run.

2) before introducing arm7/mkdeps i checked it on windows xp (but not on vista),

3) as the README says, some files which are not in the default Inferno install
are needed by the build process (referenced by CONF=sds) you can find
them on root/.
The profile in particular is not in the root/,
so just create an empty profile for the build process to continue.

To fix other dependency issues just:
cp root/usr/inferno/lib/* ../../usr/inferno/lib

thanks for the report,
i'll push the fixes on the next commit.
--
salva

Antti....@googlemail.com

unread,
Jul 14, 2008, 1:59:13 PM7/14/08
to inferno-ds
hm..

ok i am getting closer

mk: 'install' is up to date
sds.cV -Ic:/inferno/Inferno/arm/include -Ic:/inferno/include -Ic:/
inferno/libinterp -r '-DKERNDATE='1216058212
5l -o isds -H0 -T0x02000130 -l l.5 clock.5 fpi.5 fpiarm.5 fpimem.5
defont.5 main.5 trap.5 sds.5 c:/inferno/Inferno/arm/lib/libinterp.a c:/
inferno/Inferno/arm/l
b/libtk.a c:/inferno/Inferno/arm/lib/libdraw.a c:/inferno/Inferno/arm/
lib/libmemlayer.a c:/inferno/Inferno/arm/lib/libmemdraw.a c:/inferno/
Inferno/arm/lib/libk
yring.a c:/inferno/Inferno/arm/lib/libsec.a c:/inferno/Inferno/arm/lib/
libmp.a c:/inferno/Inferno/arm/lib/libmath.a c:/inferno/Inferno/arm/
lib/libkern.a
addclock0link: undefined: malloc
(2627) BL ,malloc+0(SB)
addclock0link: undefined: print
(2628) BL ,print+0(SB)
addclock0link: undefined: ilock
(2632) BL ,ilock+0(SB)
addclock0link: undefined: iunlock
(2636) BL ,iunlock+0(SB)
clockintr: undefined: checkalarms
(2679) BL ,checkalarms+0(SB)

and something is messy with /arm7 also
when run

mk CONF=sds

then arm7 builds
but from main make it does

any help?


On 14 juuli, 13:21, "Salva Peiró" <saoret....@gmail.com> wrote:
> On Mon, Jul 14, 2008 at 11:10 AM, Antti.Luk...@googlemail.com

Salva Peiró

unread,
Jul 14, 2008, 3:20:13 PM7/14/08
to infer...@googlegroups.com

i'm assuming that the above log comes form a clean checkout (without
modifications)

the undefined symbol errors are happening here:

i$CONF: $OBJ $CONF.c $CONF.root.h $LIBNAMES
$CC $CFLAGS '-DKERNDATE='$KERNDATE $CONF.c
$LD -o $target -H0 -T$KTZERO -l $OBJ $CONF.$O $LIBFILES

which seem to be related with files missing on the $OBJ variable,
which is defined just above and should contain $IP, $DEVS, $ETHERS,
$LINKS, $PORT, ...
but all those variables are empty when they should have been set by
../port/mkdevlist
based on the contents of CONF=sds.

So the first place to start looking would be finding out if mkdevlist
is working properly.

One precaution to avoid build problems is to put the Inferno tools
first in the PATH:

set HOST=Nt
set ARCH=386
set INFERNO=c:/inferno
set PATH=%INFERNO%/%HOST%/%ARCH%/bin;%PATH%

Moreover a full log of the build process could give more details
as something could be failing before the link stage, for this run:
mk vclean
mk

HTH
--
salva

Antti....@googlemail.com

unread,
Jul 14, 2008, 7:09:37 PM7/14/08
to inferno-ds
svn co http://inferno-ds.googlecode.com/svn/trunk/ ds2
then log as follows

C:\Inferno\os\ds2>xc.bat
C:\Inferno\os\ds2>set HOST=Nt
C:\Inferno\os\ds2>set ARCH=386
C:\Inferno\os\ds2>set INFERNO=c:/inferno
C:\Inferno\os\ds2>set path=c:\devkitpro\devkitarm\bin;c:\inferno\nt
\386\bin

C:\Inferno\os\ds2>mk vclean
arm7/mkdeps: file not found
svn: file not found
for(i in ds sds ds sds)
rm -f $i.c i$i i$i.* $i.ver
rm -f *.[5] *.root.[sh] errstr.h *.out
rm -f syms
cd arm7; mk CONF=sds vclean
rc: file stdin$: line 3: token '=': syntax error

C:\Inferno\os\ds2>

I assume its something wrong with AWK ?
or something even worse, as long as

mk vclean doesnt work i would say nothing would work?

hm, what version of inferno is needed ???

I did CD install from vitanuov is that ok??

Antti



On 14 juuli, 22:20, "Salva Peiró" <saoret....@gmail.com> wrote:
> On Mon, Jul 14, 2008 at 7:59 PM, Antti.Luk...@googlemail.com

Noah Evans

unread,
Jul 14, 2008, 7:36:50 PM7/14/08
to infer...@googlegroups.com, inferno-ds
Maybe try with the svn version?

Sent from my iPhone

On Jul 14, 2008, at 7:09 PM, "Antti....@googlemail.com" <Antti....@googlemail.com

Antti....@googlemail.com

unread,
Jul 15, 2008, 3:10:19 AM7/15/08
to inferno-ds
SVN version of inferno ?

if that it needed it really bad, I am on country house with only
mobile internet access limiting download to 18KB/s
svn checkout of inferno would take forever :(

I assumed the vita nuovo inferno disti to be "standard" and up to date

it looks like AWK scripts are not executed at all, or something like
that so i hoped there is some simple known issue what has to be done

Antti

On 15 juuli, 02:36, Noah Evans <noah.ev...@gmail.com> wrote:
> Maybe try with the svn version?
>
> Sent from my iPhone
>
> On Jul 14, 2008, at 7:09 PM, "Antti.Luk...@googlemail.com" <Antti.Luk...@googlemail.com
>
>  > wrote:
>
> > svn cohttp://inferno-ds.googlecode.com/svn/trunk/ds2

Salva Peiró

unread,
Jul 15, 2008, 6:46:40 AM7/15/08
to infer...@googlegroups.com

Well, it seem you're the first compiling inferno-ds under vista,
so more or less you're on your own on building the project, as i don't
have vista.

1 svn co http://inferno-ds.googlecode.com/svn/trunk/ ds2
2
3 C:\Inferno\os\ds2>xc.bat
4 C:\Inferno\os\ds2>set HOST=Nt
5 C:\Inferno\os\ds2>set ARCH=386


6 C:\Inferno\os\ds2>set INFERNO=c:/inferno

7 C:\Inferno\os\ds2>set path=c:\devkitpro\devkitarm\bin;c:\inferno\nt
8 \386\bin
9
10 C:\Inferno\os\ds2>mk vclean
11 arm7/mkdeps: file not found
12 svn: file not found
13 for(i in ds sds ds sds)
14 rm -f $i.c i$i i$i.* $i.ver
15 rm -f *.[5] *.root.[sh] errstr.h *.out
16 rm -f syms
17 cd arm7; mk CONF=sds vclean
18 rc: file stdin$: line 3: token '=': syntax error

errors comented line by line:
7: if that line is right, you're loosing all your previous path contents,
i believe it should look like:
set path=c:\devkitpro\devkitarm\bin;c:\inferno\nt\386\bin;%path%

That's should explain the error on line 12, about rc being unable to find svn.
11: seems you need to prefix the arm7/mkdeps call with $SHELLNAME as
you did before.
12: it looks like rc complains about the svn command not found.
18: rc is complaining about the '=' sign in the mk invocation, you can
try quoting it:
cd arm7/ mk CONF'='sds vclean

Also to remove doubts it would be good to know,
if you can run the failing commands from the prompt,
and try to find out what's making them fail.

apply the fixes & try again, :-)

--
salva

Antti....@googlemail.com

unread,
Jul 15, 2008, 11:11:50 AM7/15/08
to inferno-ds
Hm

BTW I am not that stupid, just the makefile tweaking isnt my favorite
thing

1) I wasnt sure about my own change $SHELLNAME

but yes it WAS required
2) the path in example i had killed for test purpose so i was aware
that svn was not on the path

CONF'='$CONF

did it, not it builds the nds file !

not sure if it works but it builds ok

and, well i think the mkfile could be changed to BUILD OUT OF BOX
i belive the changes needed for me are safe for global builds eg they
want break in other env

Antti
PS there is still minor problem with ./mksymtab
but that minor as it is past the nds build


On 15 juuli, 13:46, "Salva Peiró" <saoret....@gmail.com> wrote:
> On Tue, Jul 15, 2008 at 1:09 AM, Antti.Luk...@googlemail.com

Antti....@googlemail.com

unread,
Jul 15, 2008, 11:35:10 AM7/15/08
to inferno-ds
sorry

it DOES build the isds.nds

it does even run but complains about some dldi missing
and goes into eternal dhcp transmit loop

so i guess my build isnt 100% yet

Antti

On 15 juuli, 18:11, "Antti.Luk...@googlemail.com"

Salva Peiró

unread,
Jul 15, 2008, 11:41:59 AM7/15/08
to infer...@googlegroups.com
On Tue, Jul 15, 2008 at 5:35 PM, Antti....@googlemail.com
<Antti....@googlemail.com> wrote:
>
> sorry
>
> it DOES build the isds.nds
>
> it does even run but complains about some dldi missing
> and goes into eternal dhcp transmit loop
>
> so i guess my build isnt 100% yet
>
> Antti
>

the 'remote' boot option doesn't work,
as there's no complete wifi networking support.
The only usable option atm is the 'kernel' boot.

--
salva

Antti....@googlemail.com

unread,
Jul 15, 2008, 11:50:36 AM7/15/08
to inferno-ds
WAU, but PLEASE

tell me how and what should i do to let it boot normally ??

or WHAT is to be expected when i

run mk from svn checkout
and then execute the isds.nds ?

i assumed the same as the icds.nds what is downloadable as
precompiled?
but my nds file is 1660 KB not 1720

Antti

On 15 juuli, 18:41, "Salva Peiró" <saoret....@gmail.com> wrote:
> On Tue, Jul 15, 2008 at 5:35 PM, Antti.Luk...@googlemail.com

Antti....@googlemail.com

unread,
Jul 15, 2008, 12:23:13 PM7/15/08
to inferno-ds
stupid i am

just the boot priorit order is changed
so it is possible to select kernel and boot ok

just the icds.nds did directly boot to kernel mode so i was confused

thanks for all the help it works now

Antti

On 15 juuli, 18:50, "Antti.Luk...@googlemail.com"

Salva Peiró

unread,
Jul 15, 2008, 12:37:07 PM7/15/08
to infer...@googlegroups.com
On Tue, Jul 15, 2008 at 6:23 PM, Antti....@googlemail.com
<Antti....@googlemail.com> wrote:
>
> stupid i am
>
> just the boot priorit order is changed
> so it is possible to select kernel and boot ok
>
> just the icds.nds did directly boot to kernel mode so i was confused
>
> thanks for all the help it works now
>
> Antti
>

congrats!,
i've noted down all the changes you needed to get it running on vista,
and i'll apply them on the next commit, which should happen around the
end of week.

Anyway if you can send the output of `svn diff`,
i'll make sure that there's nothing missing.

the README file has a small section called usage, which mentions the boot prompt
for more details you can look at the sources, like the initial limbo
program: dsinit.b.
The wiki has also some pointers about the hardware, project ideas and status.

the difference in size of isds.nds < icds.nds is due to the latter
containing more things,
like games and such you can read [games on inferno-ds], probably
caerwyn knows more about.

[games on inferno-ds]
http://groups.google.com/group/inferno-ds/browse_thread/thread/fa3babbabf5d70c4
--
salva

Antti....@googlemail.com

unread,
Jul 15, 2008, 12:45:07 PM7/15/08
to inferno-ds
Ha

yes i did read the readme
but i did not understand it ;)

there was said PROMPT
but i just pressed A
and it always tried net boot

the D stick use to change boot order was not so clear for me
later i looked the code in dsinit.b

sure i is understandable, but it not so clear for those who first
build

so adding
use D pad to select either kernel or net boot
and actually kernel boot should be default

this small info would help others i think

the fixes needed was merely the $SHELLNAME
and the '='
thats it

Antti


On 15 juuli, 19:37, "Salva Peiró" <saoret....@gmail.com> wrote:
> On Tue, Jul 15, 2008 at 6:23 PM, Antti.Luk...@googlemail.com
> [games on inferno-ds]http://groups.google.com/group/inferno-ds/browse_thread/thread/fa3bab...
> --
> salva
Reply all
Reply to author
Forward
0 new messages