[Mono-dev] uClibc

Ben Timby ben at gohelios.com
Fri Dec 9 14:18:52 EST 2005


I am having a bear of a time trying to link mono against uClibc. Can
anyone lend some insight into how to do this? So far, These are the
steps I have taken.

I created a patch (included below) to remove execinfo.h from
libgc/os_dep.c by undefining GC_HAVE_BUILTIN_BACKTRACE in
libgc/include/gc.h.

mono-uclibc.patch:
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
--- libgc/include/gc.h.orig	2005-12-09 20:26:20 +0000
+++ libgc/include/gc.h	2005-12-09 20:27:22 +0000
@@ -483,12 +483,6 @@

   #ifdef __linux__
   # include <features.h>
-# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
-     && !defined(__ia64__)
-#   ifndef GC_HAVE_BUILTIN_BACKTRACE
-#     define GC_HAVE_BUILTIN_BACKTRACE
-#   endif
-# endif
   # if defined(__i386__) || defined(__x86_64__)
   #   define GC_CAN_SAVE_CALL_STACKS
   # endif
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

I was then able to _mostly_ build mono, until it starts building class
libraries. The following command is run by make, and is subsequently killed.

-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
MONO_PATH="/var/tmp/portage/mono-1.1.8.3/work/mono-1.1.8.3/mcs/class/lib/basic" 

/var/tmp/portage/mono-1.1.8.3/work/mono-1.1.8.3/runtime/mono-wrapper
../../class/lib/basic/mcs.exe -d:NET_1_1 -d:ONLY_1_1
-d:BOOTSTRAP_WITH_OLDLIB -debug /config /lib:/usr/lib /config /unsafe
/r:mscorlib.dll /r:System.dll /nowarn:0162 /nowarn:0618 /nowarn:0612
/target:library /out:System.Xml.dll System.Xml.XPath/Parser.cs
Mono.Xml.Xsl/PatternParser.cs Mono.Xml.Xsl/PatternTokenizer.cs
@System.Xml.dll.sources
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

I have attached the strace for this, the (seemingly) relevant part is below:

-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
<... rt_sigsuspend resumed> )           = -1 EINTR (Interrupted system call)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

Any help is greatly appreciated. Thanks.

-- 
Ben Timby
Senior Software Architect
Helios, LLC
(p) 317-554-3619
(f) 317-554-8997
www.gohelios.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: failed.strace.gz
Type: application/gzip
Size: 7858 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051209/f5997736/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3166 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051209/f5997736/attachment-0001.bin 


More information about the Mono-devel-list mailing list