dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] Using Portable.Net on an embedded system (2.)


From: Simon Posnjak
Subject: Re: [Pnet-developers] Using Portable.Net on an embedded system (2.)
Date: Thu, 21 Oct 2004 18:08:53 +0200

V čet, 21.10.2004 ob 12:52 je Gopal V napisal(a):
> Hi,
> 
> > embedded board. I have
> > ported GC and libffi to cris (patches will be send
> > in the near future).
> 
> Glad to know about that :)
> 
> > # ./ilrun -L libs/ hello.exe
> ....
> > 00:40:8C:CD:00:<5>__alloc_pages: 0-order allocation
> > failed (gfp=0x1d2/0)
> 
> Is this still a memory issue ?. I've fixed CVS
> in such a way that you can build both mscorlib.dll
> and ilrun as "--with-profile=kernel-fp" .
While building pnetlib with kernel-fp profile I got:

spaceScope.cs ./XPath/XmlDataType.cs ./XPath/Private/XPathNodes.cs
./XPath/Private/XPathTokenizer.cs ./XPath/Private/XPathAxis.cs
./XPath/Private/XPathExpressionBase.cs ./XPath/Private/XPathIterators.cs
./XPath/Private/XPathParser.cs ./Xsl/IXsltContextVariable.cs
./Xsl/XsltException.cs ./Xsl/IXsltContextFunction.cs
./Xsl/XslTransform.cs ./Xsl/XsltArgumentList.cs
./Xsl/XsltCompileException.cs ./Xsl/XsltContext.cs -L./../System/first
-lSystem -L./../DotGNU.SSL -lDotGNU.SSL -L./../OpenSystem.Platform
-lOpenSystem.Platform -L./../runtime -lmscorlib
./XmlTextReader.cs:48: invalid type specification `Stack'
./XmlDocument.cs:1151: called object is not a method or delegate
./XmlDocument.cs:1151: incompatible types in assignment: no conversion
from `invalid type' to `System.Text.Encoding'
./XmlDocument.cs:1203: incompatible types in assignment: no conversion
from `invalid type' to `System.String'
./XmlTextReader.cs:108: invalid type specification `Stack'
./XmlTextReader.cs:777: called object is not a method or delegate
./XmlTextReader.cs:953: incompatible types in assignment: no conversion
from `invalid type' to `int'
./XmlTextReader.cs:1346: invalid operands to binary `>'
./XmlTextReader.cs:1346: no conversion from `int' to `bool'
./XmlTextReader.cs:1380: invalid operands to binary `=='
./XmlTextReader.cs:1380: no conversion from `int' to `bool'
./XmlTextReader.cs:1608: invalid operands to binary `=='
./XmlTextReader.cs:1609: called object is not a method or delegate
./XmlTextReader.cs:1609: invalid operands to binary `!='
./XmlTextReader.cs:1609: invalid operands to binary `||'
./XmlTextReader.cs:1615: invalid operands to binary `=='
./XmlTextReader.cs:1615: invalid operands to binary `&&'
./XmlTextReader.cs:1938: invalid operands to binary `=='
./XmlTextReader.cs:1938: invalid operands to binary `&&'
./XmlTextReader.cs:1946: called object is not a method or delegate
./XmlTextWriter.cs:1293: called object is not a method or delegate
./XmlTextWriter.cs:1294: invalid value for argument 1
./XmlTextWriter.cs:1294: called object is not a method or delegate
./XmlTextWriter.cs:1294: incompatible types in assignment: no conversion
from `invalid type' to `bool'
*** Target `all' for project `pnetlib System.Xml' failed ***
*** Project `pnetlib System.Xml' build failed ***
make[1]: *** [System.Xml.dll] Error 1
make[1]: Leaving directory
`/stuff1/delo/playground/Portable.Net/pnetlib/System.Xml'
make: *** [all-recursive] Error 1

So I build the pnetlib with full profile...

> That should give you at least some way to confirm 
> that the problem is with the memory usage .
> 
> > Anybody knows a reason why this happens (or how
> > should I debug this)?
> 
> Can you just try this again with the low memory
> profiles ?. (remember to swap the locks in monitor.c
> as the earlier mail said).
> 
> For starters before all that, I'll give you a 
> statically linked IL file (surprise, surprise) . 
> Get it from http://t3.dotgnu.info/code/test.il  
> Use that as follows 
> 
> cscc -nostdlib -o test.exe test.il (on your desktop)
> 
> copy this over onto the board and try running ..
I have tried and got this:
# ./ilrun -L /var/libs/ test.exe
test.exe: invalid entry point
__alloc_pages: 0-order allocation failed (gfp=0x1d2/0)
VM: killing process ilrun
Segmentation fault

But I do not think that the problem is related to memory. The big
consumption of memory and segfault occurs in context (your test.exe) or
image (my hello.exe) destroy functions which are triggered by ilrun not
being able to link or find the correct symbols.

Also I stepped thought the code which I suspect as malfunctioning with
gdb on my ia32 and on CRIS and found that on CRIS in the function 
ILTypeIdentical in image/meta_types.c line 514, we ALWAYS return in 541:

       if(ILType_IsPrimitive(type1))    <---- This is alway true
        {
                return (type1 == type2);
        }

while on my ia32 box this dose not happen.

Any ideas?

                Regards Simon





reply via email to

[Prev in Thread] Current Thread [Next in Thread]