[Mono-list] building r98 on Mac Leopard not possible?

Ben Aurel ben.aurel at gmail.com
Tue May 6 14:03:44 EDT 2008


hello

I've tried to build IronRuby on my Mac Leopard and I landed in a world
of trouble.

- After some workarounds I was finally able to build the latest Mono
release from sources

- Then I got stuck when I tried to build IronRuby then, so I opened a
thread on the IronRuby list:
http://www.ruby-forum.com/topic/152050

where somebody answered to the following problem:

>> $ rake compile mono=1
>> ...
>>  ./actions/comdispatch/DispCallable.cs(134,9): error CS0452: The type
>>  `T' must be a reference type in order to use it as type parameter `T'
>>  in the generic type or method
>>  `Microsoft.Scripting.Actions.RuleBuilder<T>'.
>>  ./actions/comdispatch/comtypelibdesc.cs(141,9): error CS0452: The type
>>  `T' must be a reference type in order to use it as type parameter `T'
>>  in the generic type or method
>> `Microsoft.Scripting.Actions.RuleBuilder<T>'.

> This is a recent unrelated error. This problem is reported as Mono bug #387040.
> https://bugzilla.novell.com/show_bug.cgi?id=387040

> The last working revision is r98. If all you want is to try IronRuby,
> you could update to old revisions

That's what I did then, downgrading to r98 and build mono again:

 svn update -r 98.

$ ./autogen.sh --prefix=/opt/mono

... and here the problems begin:

1. I guess there is no libtoolize (first line in autogen.sh). Can I
use glibtoolize instead

2. Lots of errors:

$ ./autogen.sh --prefix=/opt/mono
mono/metadata/Makefile.am:14: `libmetadata_a_HEADERS' is used but
`libmetadata_adir' is undefined
configure.in:17: warning: macro `AM_PATH_GLIB' not found in library
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking build system type... i386-apple-darwin9.2.2
checking host system type... i386-apple-darwin9.2.2
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld)
is GNU ld... no
checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to
reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker
(/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared
libraries... yes
checking dynamic linker characteristics... darwin9.2.2 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld)
is GNU ld... no
checking whether the g++ linker
(/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker
(/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared
libraries... yes
checking dynamic linker characteristics... darwin9.2.2 dyld
(cached) (cached) checking how to hardcode library paths into
programs... immediate
appending configuration tag "F77" to libtool
./configure: line 20762: syntax error near unexpected token `1.2.0,,'
./configure: line 20762: `AM_PATH_GLIB(1.2.0,,'

What am I doing wrong here?

thanks in advance
Ben


More information about the Mono-list mailing list