Author Topic: Mono Build Fails  (Read 5024 times)

andrewy

  • Newbie
  • *
  • Posts: 6
    • View Profile
Mono Build Fails
« on: January 19, 2006, 09:38:19 pm »
I'm using gcc 2.95, distro openzaurus-unstable, machine collie, the jan2006prebreakage revision, my and host processor athlon xp 2400.
When I try to compile mono with "bitbake mono", I get the following errors:
Code: [Select]
ccache arm-linux-gcc -march=armv4 -mtune=xscale -DHAVE_CONFIG_H -I. -I/var/d2/andrew/oetmp/work/mono-1.0-r0/mono-1.0/mono/metadata -I../.. -I/var/d2/andrew/oetmp/work/mono-1.0-r0/mono-1.0 -I/var/d2/andrew/oetmp/work/mono-1.0-r0/mono-1.0/mono -I/var/d2/andrew/oetmp/work/mono-1.0-r0/mono-1.0/libgc/include -pthread -I/var/d2/andrew/oetmp/staging/arm-linux/include/glib-2.0 -I/var/d2/andrew/oetmp/staging/arm-linux/lib/glib-2.0/include -I/var/d2/andrew/oetmp/staging/arm-linux/include/glib-2.0 -I/var/d2/andrew/oetmp/staging/arm-linux/lib/glib-2.0/include -D_REENTRANT -D_REENTRANT -I/usr/include -DMONO_ASSEMBLIES=\"/usr/lib\" -DMONO_CFG_DIR=\"/etc\" -I/var/d2/andrew/oetmp/staging/arm-linux/include -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DARM_FPU_NONE -DNO_UNALIGNED_ACCESS -I/var/d2/andrew/oetmp/staging/arm-linux/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT socket-io.lo -MD -MP -MF .deps/socket-io.Tpo -c socket-io.c  -fPIC -DPIC -o .libs/socket-io.o
| In file included from /usr/include/sys/socket.h:35,
|                  from ../../mono/io-layer/sockets.h:14,
|                  from ../../mono/io-layer/wapi.h:27,
|                  from ../../mono/io-layer/io-layer.h:24,
|                  from socket-io.c:31:
| /usr/include/bits/socket.h: In function `__cmsg_nxthdr':
| /usr/include/bits/socket.h:271: warning: cast increases required alignment of target type
| socket-io.c: In function `ves_icall_System_Net_Sockets_Socket_LocalEndPoint_internal':
| socket-io.c:869: warning: cast increases required alignment of target type
| socket-io.c:880: warning: cast increases required alignment of target type
| socket-io.c: In function `ves_icall_System_Net_Sockets_Socket_RemoteEndPoint_internal':
| socket-io.c:895: warning: cast increases required alignment of target type
| socket-io.c:906: warning: cast increases required alignment of target type
| socket-io.c: In function `create_sockaddr_from_object':
| socket-io.c:921: warning: cast increases required alignment of target type
| socket-io.c: In function `Socket_to_SOCKET':
| socket-io.c:1248: warning: cast increases required alignment of target type
| socket-io.c: In function `ves_icall_System_Net_Sockets_Socket_Select_internal':
| socket-io.c:1284: warning: cast increases required alignment of target type
| socket-io.c:1301: warning: cast increases required alignment of target type
| socket-io.c:1318: warning: cast increases required alignment of target type
| socket-io.c:1350: warning: cast increases required alignment of target type
| socket-io.c:1357: warning: cast increases required alignment of target type
| socket-io.c:1360: warning: cast increases required alignment of target type
| socket-io.c:1373: warning: cast increases required alignment of target type
| socket-io.c:1380: warning: cast increases required alignment of target type
| socket-io.c:1383: warning: cast increases required alignment of target type
| socket-io.c:1396: warning: cast increases required alignment of target type
| socket-io.c:1403: warning: cast increases required alignment of target type
| socket-io.c:1406: warning: cast increases required alignment of target type
| socket-io.c: In function `ves_icall_System_Net_Sockets_Socket_GetSocketOption_obj_internal':
| socket-io.c:1489: warning: cast increases required alignment of target type
| socket-io.c: In function `ipaddress_to_struct_in_addr':
| socket-io.c:1551: warning: cast increases required alignment of target type
| socket-io.c: In function `ipaddress_to_struct_in6_addr':
| socket-io.c:1566: warning: cast increases required alignment of target type
| socket-io.c:1577: warning: cast increases required alignment of target type
| socket-io.c: In function `ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal':
| socket-io.c:1646: warning: cast increases required alignment of target type
| socket-io.c:1666: warning: cast increases required alignment of target type
| socket-io.c:1673: warning: cast increases required alignment of target type
| socket-io.c:1692: warning: cast increases required alignment of target type
| socket-io.c:1701: warning: cast increases required alignment of target type
| socket-io.c: In function `hostent_to_IPHostEntry2':
| socket-io.c:1916: warning: cast increases required alignment of target type
| socket-io.c:1934: warning: cast increases required alignment of target type
| socket-io.c:1980: warning: cast increases required alignment of target type
| socket-io.c:1998: warning: cast increases required alignment of target type
| socket-io.c: In function `addrinfo_to_IPHostEntry':
| socket-io.c:2064: warning: cast increases required alignment of target type
| socket-io.c: In function `create_object_from_sockaddr':
| socket-io.c:793: internal compiler error: in arm_print_operand, at config/arm/arm.c:9887
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See for instructions.
| make[3]: *** [socket-io.lo] Error 1
| make[3]: Leaving directory `/var/d2/andrew/oetmp/work/mono-1.0-r0/mono-1.0/mono/metadata'
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory `/var/d2/andrew/oetmp/work/mono-1.0-r0/mono-1.0/mono'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/var/d2/andrew/oetmp/work/mono-1.0-r0/mono-1.0'
| make: *** [all] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed: /var/d2/andrew/oetmp/work/mono-1.0-r0/temp/log.do_compile.5924
NOTE: package mono-1.0-r0: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package mono-1.0: failed
ERROR: Build of 'mono' failed
Build statistics:
  Attempted builds: 1
  Failed builds: 1

It says that it's an internal compiler error, but it wouldn't available if it didn't work for anyone, so it must be something wrong with my setup.
anyone know how I can fix it?