NetBSD Problem Report #45828
From www@NetBSD.org Fri Jan 13 00:33:57 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 27DD463BFC2
for <gnats-bugs@gnats.NetBSD.org>; Fri, 13 Jan 2012 00:33:57 +0000 (UTC)
Message-Id: <20120113003355.CBA6C63BFB8@www.NetBSD.org>
Date: Fri, 13 Jan 2012 00:33:55 +0000 (UTC)
From: noud4@home.nl
Reply-To: noud4@home.nl
To: gnats-bugs@NetBSD.org
Subject: lang/mono doesn't build on 5.99.5x/i386
X-Send-Pr-Version: www-1.0
>Number: 45828
>Category: pkg
>Synopsis: lang/mono doesn't build on 5.99.5x/i386
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kefren
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 13 00:35:01 +0000 2012
>Closed-Date: Sun Dec 29 20:54:55 +0000 2013
>Last-Modified: Sun Dec 29 20:54:55 +0000 2013
>Originator: B.ICT A.P. deBROUWER Jr.
>Release: 5.99.59
>Organization:
-none-
>Environment:
NetBSD 10.0.2.17 5.99.59 NetBSD 5.99.59 (MONOLITHIC) #0: Tue Dec 27 01:19:12 UTC 2011 builds@b8.netbsd.org:/home/builds/ab/HEAD/i386/201112261820Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/MONOLITHIC i386
>Description:
am running nbsd/i386 on amd64 hw.
since a move from 5.1 and pkgsrc 10Q4 to
NetBSD 5.99.55 5.99.56 5.99.59/i386 with pkgsrc-current (HEAD)
i can't build lang/mono anymore.
the same is subject this ML message:
http://mail-index.netbsd.org/pkgsrc-users/2011/09/23/msg015082.html
(gdb) bt
#0 0xbbb8d747 in _lwp_kill () from /usr/lib/libc.so.12
#1 0xbbb8d703 in raise () from /usr/lib/libc.so.12
#2 0xbbb8ceed in abort () from /usr/lib/libc.so.12
#3 0x080db90a in mono_handle_native_sigsegv (signal=11, ctx=0xbfbfc918) at mini-exceptions.c:2245
#4 0x0805cef4 in mono_sigsegv_signal_handler (_dummy=11, info=0xbfbfc898, context=0xbfbfc918) at mini.c:5848
#5 <signal handler called>
#6 GC_push_all_eager (bottom=0xbfbfcc54 "", top=0xc0000000 <Address 0xc0000000 out of bounds>) at mark.c:1468
#7 0x08213b09 in pthread_push_all_stacks () at pthread_stop_world.c:297
#8 GC_push_all_stacks () at pthread_stop_world.c:332
#9 0x0820e1bf in GC_mark_some (cold_gc_frame=0xbfbfcd0c "�311 \b��\b") at mark.c:391
#10 0x08207e7a in GC_stopped_mark (stop_func=0x8207bc0 <GC_never_stop_func>) at alloc.c:543
#11 0x082084d9 in GC_try_to_collect_inner (stop_func=0x8207bc0 <GC_never_stop_func>) at alloc.c:382
#12 0x0820f941 in GC_init_inner () at misc.c:807
#13 0x0820fad7 in GC_init () at misc.c:517
#14 0x081253ac in mono_gc_base_init () at boehm-gc.c:126
#15 0x0813ec0d in mono_init_internal (filename=0xbfbfe3dc ".//class/lib/monolite/mcs.exe",
exe_filename=0xbfbfe3dc ".//class/lib/monolite/mcs.exe", runtime_version=0x0) at domain.c:1286
#16 0x0805db9d in mini_init (filename=0xbfbfe3dc ".//class/lib/monolite/mcs.exe", runtime_version=0x0) at mini.c:6321
#17 0x080b599a in mono_main (argc=7, argv=0xbfbfd050) at driver.c:1746
#18 0x080573e0 in mono_main_with_options (argv=0xbfbfd050, argc=7) at main.c:66
#19 main (argc=7, argv=0xbfbfd050) at main.c:97
using:
CONFIGURE_ARGS+= --with-gc=none
gives a correct build.
CONFIGURE_ARGS+= --with-gc=boehm
does not:
checking gc.h usability... yes
checking gc.h presence... yes
checking for gc.h... yes
checking gc/gc.h usability... yes
checking gc/gc.h presence... yes
checking for gc/gc.h... yes
checking for GC_malloc in -lgc... no
configure: error: "GC requested but libgc not found! Install libgc or run configure with --with-gc=none."
*** Error code 1
>How-To-Repeat:
install NetBSD 5.99.5x
cd lang/mono && make
>Fix:
patch to Makefile and move libgc items to it's own PLIST.libgc:
--- Makefile.orig 2012-01-13 00:51:57.000000000 +0000
+++ Makefile 2012-01-13 02:24:47.000000000 +0000
@@ -31,6 +32,14 @@
CONFIGURE_ARGS+= --with-preview=yes
CONFIGURE_ARGS+= --with-libgdiplus=installed
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "i386")
+CONFIGURE_ARGS+= --with-gc=none
+.else
+PLIST_SRC+= ${PKGDIR}/PLIST.libgc
+.endif
+
.include "options.mk"
MAKE_FLAGS+= PERL=${PERL5:Q}
--- PLIST.common.orig 2012-01-13 01:33:38.000000000 +0000
+++ PLIST.common 2012-01-13 02:21:56.000000000 +0000
@@ -1007,38 +1007,6 @@
share/examples/mono/browscap.ini
share/examples/mono/config
share/examples/mono/mconfig/config.xml
-share/libgc-mono/README
-share/libgc-mono/README.DGUX386
-share/libgc-mono/README.Mac
-share/libgc-mono/README.MacOSX
-share/libgc-mono/README.OS2
-share/libgc-mono/README.amiga
-share/libgc-mono/README.arm.cross
-share/libgc-mono/README.autoconf
-share/libgc-mono/README.changes
-share/libgc-mono/README.contributors
-share/libgc-mono/README.cords
-share/libgc-mono/README.darwin
-share/libgc-mono/README.dj
-share/libgc-mono/README.environment
-share/libgc-mono/README.ews4800
-share/libgc-mono/README.hp
-share/libgc-mono/README.linux
-share/libgc-mono/README.macros
-share/libgc-mono/README.rs6000
-share/libgc-mono/README.sgi
-share/libgc-mono/README.solaris2
-share/libgc-mono/README.uts
-share/libgc-mono/README.win32
-share/libgc-mono/barrett_diagram
-share/libgc-mono/debugging.html
-share/libgc-mono/gc.man
-share/libgc-mono/gcdescr.html
-share/libgc-mono/gcinterface.html
-share/libgc-mono/leak.html
-share/libgc-mono/scale.html
-share/libgc-mono/simple_example.html
-share/libgc-mono/tree.html
share/locale/de/LC_MESSAGES/mcs.mo
share/locale/es/LC_MESSAGES/mcs.mo
share/locale/ja/LC_MESSAGES/mcs.mo
>Release-Note:
>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/45828: lang/mono doesn't build on 5.99.5x/i386
Date: Fri, 13 Jan 2012 02:44:29 +0100
On Fri, Jan 13, 2012 at 12:35:05AM +0000, noud4@home.nl wrote:
> since a move from 5.1 and pkgsrc 10Q4 to
> NetBSD 5.99.55 5.99.56 5.99.59/i386 with pkgsrc-current (HEAD)
> i can't build lang/mono anymore.
Still worked for me a few days ago on 5.99.59/amd64 with pkgsrc-current.
(Though it's so building so slowly I sometimes kill it because I'm not sure if it didn't deadlock.)
Thomas
From: "B.ICT A.P. deBROUWER Jr." <noud4@home.nl>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/45828: lang/mono doesn't build on 5.99.5x/i386
Date: Fri, 13 Jan 2012 03:08:41 +0000
On Fri, 2012-01-13 at 01:45 +0000, Thomas Klausner wrote:
> Still worked for me a few days ago on 5.99.59/amd64 with
> pkgsrc-current.
i'm talking /i386 here, not /amd64.
(same goes for the ML message poster,
telling me he can build on /amd64 not /i386.)
Noud
--
From: "B.ICT A.P. deBROUWER Jr." <noud4@home.nl>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/45828: lang/mono doesn't build on 5.99.5x/i386
Date: Fri, 13 Jan 2012 04:01:15 +0000
On Fri, 2012-01-13 at 01:45 +0000, Thomas Klausner wrote:
> (Though it's so building so slowly I sometimes kill it because I'm
> not sure if it didn't deadlock.)
and on /i386 it's not about a stall:
gmake[7]: Leaving directory
`/obj/lang/mono/work/mono-2.10.6/mcs/class/aot-compiler'
/usr/pkg/bin/gmake all-local
gmake[7]: Entering directory `/obj/lang/mono/work/mono-2.10.6/mcs/class'
gmake[7]: Leaving directory `/obj/lang/mono/work/mono-2.10.6/mcs/class'
gmake[6]: Leaving directory `/obj/lang/mono/work/mono-2.10.6/mcs/class'
gmake[6]: Entering directory `/obj/lang/mono/work/mono-2.10.6/mcs/tools'
gmake[7]: Entering directory
`/obj/lang/mono/work/mono-2.10.6/mcs/tools/gacutil'
Creating ../../build/deps/basic_gacutil.exe.makefrag ...
gmake[7]: Leaving directory
`/obj/lang/mono/work/mono-2.10.6/mcs/tools/gacutil'
gmake[7]: Entering directory
`/obj/lang/mono/work/mono-2.10.6/mcs/tools/gacutil'
/usr/pkg/bin/gmake all-local
gmake[8]: Entering directory
`/obj/lang/mono/work/mono-2.10.6/mcs/tools/gacutil'
MCS [basic] gacutil.exe
[1] Abort trap (core dumped) MONO_PATH="./../...
gmake[8]: *** [../../class/lib/basic/gacutil.exe] Error 134
gmake[8]: Leaving directory
`/obj/lang/mono/work/mono-2.10.6/mcs/tools/gacutil'
gmake[7]: *** [do-all] Error 2
gmake[7]: Leaving directory
`/obj/lang/mono/work/mono-2.10.6/mcs/tools/gacutil'
gmake[6]: *** [all-recursive] Error 1
gmake[6]: Leaving directory `/obj/lang/mono/work/mono-2.10.6/mcs/tools'
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory `/obj/lang/mono/work/mono-2.10.6/mcs'
gmake[4]: *** [profile-do--basic--all] Error 2
gmake[4]: Leaving directory `/obj/lang/mono/work/mono-2.10.6/mcs'
gmake[3]: *** [profiles-do--all] Error 2
gmake[3]: Leaving directory `/obj/lang/mono/work/mono-2.10.6/mcs'
gmake[2]: *** [all-local] Error 2
gmake[2]: Leaving directory `/obj/lang/mono/work/mono-2.10.6/runtime'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/obj/lang/mono/work/mono-2.10.6'
gmake: *** [all] Error 2
*** Error code 2
Noud
--
Responsible-Changed-From-To: pkg-manager->kefren
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 15 Jan 2012 22:29:03 +0000
Responsible-Changed-Why:
Over to maintainer.
From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/45828
Date: Fri, 20 Jan 2012 12:05:17 +0000
I can confirm that on i386 with Noud's patch (the bits removed from PLIST
obviously get added to the new PLIST.libgc) it is now possible to build
mono => tomboy => meta-pkgs/gnome is now possible. (No more core dump)
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 29 Dec 2013 20:54:55 +0000
State-Changed-Why:
problem was fixed almost two years back
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.