Re: [Mono-list] Problems on FreeBSD with Beta 1

2004-05-21 Thread Scott Muc
Hey guys,

I've been documenting my progress and have made a pseudo article about
it. Here's the URL (sorry about the bad rendering in IE):

http://muc-central.com/articles/index.php?file=FreeBSD%20Mono

Looks like the same problems exist for both garbage collection
mechanisms. Does the included libgc also use pthreads?

Scott Muc

PS, please let me know if there are any inaccurate statements in that
article. I'll make changes to it right as soon as I can.

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Problems on FreeBSD with Beta 1

2004-05-20 Thread Scott Muc
On Thu, 2004-05-20 at 08:16, Victor Jalencas wrote:
 (please excuse me if this message is a duplicate)
 
 Scott, how did you install the Boehm GC? From the ports collection or a
 more recent version?
 
 And what does ldconfig -r |grep lgc output?
 

Hi Victor,

I've tried installing straight from the source, and via the ports. The
result is the same problem. Here's the tail of my ./configure :

...
checking for glib-2.0 = 1.3.11... yes
checking BASE_DEPENDENCIES_CFLAGS... -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include
checking BASE_DEPENDENCIES_LIBS... -L/usr/local/lib -lglib-2.0 -liconv
checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking gc/gc.h usability... no
checking gc/gc.h presence... no
checking for gc/gc.h... no
checking for GC_malloc in -lgc... no
configure: error: GC requested but libgc not found! Install libgc or
run configure with --with-gc=none.

spark% ldconfig -r | grep lgc
78:-lgc.1 = /usr/local/lib/libgc.so.1
79:-lgccpp.1 = /usr/local/lib/libgccpp.so.1

Scott Muc





 
 Scott Muc wrote:
 
  On Tue, 2004-05-18 at 18:09, Scott Muc wrote:
  
 On Tue, 2004-05-18 at 08:56, Paolo Molaro wrote:
 
 On 05/17/04 Supreme Overlord wrote:
 
 Just tried a new build with the May-17th snapshot with the same results.
 Here are two lines from a 'ps aux'. The process states never change.
 
 root   39900  0.1  4.7 15852 5860  p0  S+7:18PM   0:01.70 lt-mono
 --config ../../data/config ./../gacutil.exe /i ./Accessibility.dll /f
 /pa
 root   39983  0.0  2.1  9440 2588  ??  Is7:18PM   0:00.03 lt-mono
 --config ../../data/config ./../gacutil.exe /i ./Accessibility.dll /f
 /pa
 
 [...]
 
 /usr/bin/install -c -m 644 mscorlib.dll /usr/local/lib/mscorlib.dll
 MONO_PATH=. ../../mono/mini/mono --config ../../data/config
 ./../gacutil.exe /i ./Accessibility.dll /f /package 1.0 /root
 /usr/local/lib
 Package exported to: /usr/local/lib/mono/1.0
 Accessibility installed into the gac (/usr/local/lib/mono/gac/)
 
 Then it just hangs. I've mapped libc to libc.so.4 in the data/config
 file. I would love to assist in finding out why this hangs, but I'm not
 familiar with what needs to be done.
 
 Is this a SMP machine?
 Try attaching to the process with gdb and post a backtrace of all the
 threads (thread apply all bt at the gdb command prompt).
 You may also want to try a newer libgc from
 http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/, since the
 changelog mentions fixes for FreeBSD (compile and install libgc and then
 recompile mono after configuring with ./configure --with-gc=boehm).
 
 lupus
  
  
  ok, I've made some progress, albeit a slight digression from what we're
  trying to achieve. Note that this is with the May 18th code snapshot.
  
  I managed to build the mono beta 1 by doing the following:
  
  ./configure --prefix=/usr/local --with-gc=none
  gmake
  edit data/config to change libc mappings to libc.so.4
  gmake install
  
  voila!
  
  spark% mono --version
  Mono JIT compiler version 0.91.99.20040518, (C) 2002-2004 Novell, Inc
  and Contributors. www.go-mono.com
  TLS:   normal
  GC:none
  SIGSEGV  : normal
  Globalization: none
  
  I then proceeded to download and compile xsp-0.13. There were no
  problems with the compilation and installation of xsp. I tried running
  it and got the following stack trace when making my first request:
  
  (note: started in /usr/local/share/doc/xsp/test )
  spark% mono /usr/local/bin/xsp.exe
  Listening on port: 8080
  Listening on address: 0.0.0.0
  Root directory: /usr/local/share/doc/xsp/test
  Hit Return to stop the server.
  System.ExecutionEngineException: No GCHandle support built-in
  in (unmanaged) (wrapper managed-to-native)
  System.Runtime.InteropServices.GCHandle:GetTargetHandle
  (object,int,System.Runtime.InteropServices.GCHandleType)
  in 0x4 (wrapper managed-to-native)
  System.Runtime.InteropServices.GCHandle:GetTargetHandle
  (object,int,System.Runtime.InteropServices.GCHandleType)
  in 0x00023 System.Runtime.InteropServices.GCHandle:.ctor
  (object,System.Runtime.InteropServices.GCHandleType)
  in 0x0001b System.Runtime.InteropServices.GCHandle:Alloc
  (object,System.Runtime.InteropServices.GCHandleType)
  in 0x00050 System.WeakReference:AllocateHandle (object)
  in 0x00026 System.WeakReference:.ctor (object,bool)
  in 0x00012 System.WeakReference:.ctor (object)
  in 0x0002b System.Runtime.Remoting.ClientIdentity:set_ClientProxy
  (System.MarshalByRefObject)
  in 0x00323
  System.Runtime.Remoting.RemotingServices:GetOrCreateClientIdentity
  (System.Runtime.Remoting.ObjRef,System.Type,object)
  in 0x0001c System.Runtime.Remoting.RemotingServices:GetRemoteObject
  (System.Runtime.Remoting.ObjRef,System.Type)
  in 0x00074
  System.Runtime.Remoting.RemotingServices:GetProxyForRemoteObject
  (System.Runtime.Remoting.ObjRef,System.Type)
  in 0x0010f System.Runtime.Remoting.RemotingServices:Unmarshal

Re: [Mono-list] Problems on FreeBSD with Beta 1

2004-05-17 Thread Scott Muc
this is my progress so far...

mono - May 15th code snapshot
FreeBSD 4.9
mono/mini/abcremoval.h taken from CVS since the snapshot was missing
this file.


Here's how I've tried to build mono:

./configure --prefix=/usr/local
gmake
gmake install
...
/bin/sh ../../mkinstalldirs /usr/local/lib
/usr/bin/install -c -m 644 mscorlib.dll /usr/local/lib/mscorlib.dll
MONO_PATH=. ../../mono/mini/mono --config ../../data/config
./../gacutil.exe /i ./Accessibility.dll /f /package 1.0 /root
/usr/local/lib
Package exported to: /usr/local/lib/mono/1.0
Accessibility installed into the gac (/usr/local/lib/mono/gac/)

Then it just hangs. I've mapped libc to libc.so.4 in the data/config
file. I would love to assist in finding out why this hangs, but I'm not
familiar with what needs to be done.

Scott


On Mon, 2004-05-17 at 12:26, Victor Jalencas wrote:
 Anyone can shed more light on this? I haven't been able to build mono on 
 FreeBSD for a long time. What is the recommended configuration (wrt 
 Boehm GC, threading, gcc...)?
 
 Thanks in advance
 
 Victor
 
 Jonathan Stowe wrote:
  Firstly it appears that you have to change the data/config file to map
  to libc.so.4 rather than libc.so.6 on FreeBSD 4.9 before anything will
  work. 
  
  Secondly gacutil appears to have problems during make install:
  
  MONO_PATH=. ../../mono/mini/mono --config ../../data/config
  ./../gacutil.exe /i ./Accessibility.dll /f /package 1.0 /root
  /usr/local/lib
   
  Unhandled Exception: System.NullReferenceException: Object reference not
  set to an instance of an object
  in (unmanaged) (wrapper managed-to-native) Mono.Tools.Driver:symlink
  (string,string)
  in 0x4 (wrapper managed-to-native) Mono.Tools.Driver:symlink
  (string,string)
  in 0x00822 Mono.Tools.Driver:InstallAssembly (string[])
  in 0x005d2 Mono.Tools.Driver:Run (string[])
  in 0x00035 Mono.Tools.Driver:Main (string[])
  
  
  I thought I would check before I stick it in bugzilla in case anyone had
  seen this already.
  
  /J\
  
  ___
  Mono-list maillist  -  [EMAIL PROTECTED]
  http://lists.ximian.com/mailman/listinfo/mono-list
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list