pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/40395: lang/mono fails to build for NetBSD/macppc 4.0
>Number: 40395
>Category: pkg
>Synopsis: lang/mono fails to build for NetBSD/macppc 4.0
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 14 11:35:00 +0000 2009
>Originator: Havard Eidnes
>Release: NetBSD 4.0
>Organization:
I try...
>Environment:
System: NetBSD malus.urc.uninett.no 4.0 NetBSD 4.0 (GENERIC) #0: Sun Dec 16
00:27:58 PST 2007
builds@wb30:/home/builds/ab/netbsd-4-0-RELEASE/macppc/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/macppc/compile/GENERIC
macppc
Architecture: powerpc
Machine: macppc
>Description:
The build of lang/mono fails on NetBSD/macppc 4.0.
A build log contains
gmake[3]: Entering directory `/usr/pkgsrc/lang/mono/work/mono-2.0.1/mcs'
/usr/pkg/bin/gmake profile-do--default--all profile-do--net_2_0--all
profile-do--net_3_5--all
gmake[4]: Entering directory `/usr/pkgsrc/lang/mono/work/mono-2.0.1/mcs'
/usr/pkg/bin/gmake PROFILE=basic all
gmake[5]: Entering directory `/usr/pkgsrc/lang/mono/work/mono-2.0.1/mcs'
gmake[6]: mcs: Command not found
gmake[6]: *** [build/deps/basic-profile-check.exe] Error 127
gmake[6]: Entering directory `/usr/pkgsrc/lang/mono/work/mono-2.0.1/mcs'
*** The compiler 'mcs' doesn't appear to be usable.
*** Trying the 'monolite' directory.
gmake[7]: Entering directory `/usr/pkgsrc/lang/mono/work/mono-2.0.1/mcs'
**ERROR:threads.c:785:mono_thread_get_stack_bounds: assertion failed: ((current
> *staddr) && (current < *staddr + *stsize))
[1] Abort trap (core dumped) MONO_PATH="./cla...
gmake[8]: *** [build/deps/basic-profile-check.exe] Error 134
gmake[8]: Entering directory `/usr/pkgsrc/lang/mono/work/mono-2.0.1/mcs'
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
gmake[8]: *** [do-profile-check-monolite] Error 1
near the end.
An inspection of the source reveals that the assert which
fails here already is ifdef'ed out for sun, so adding this
patch gets us further:
--- mono/metadata/threads.c.orig 2008-09-02 17:42:41.000000000 +0200
+++ mono/metadata/threads.c
@@ -779,7 +779,7 @@ mono_thread_get_stack_bounds (guint8 **s
#endif
#endif
-#ifndef sun
+#if !defined(sun) && !defined(__powerpc__)
pthread_attr_getstack (&attr, (void**)staddr, stsize);
if (*staddr)
g_assert ((current > *staddr) && (current < *staddr + *stsize));
However, the build still fails, and this time while
processing a file in an alien language (to me...):
MONO_PATH="../class/lib/monolite:$MONO_PATH"
/usr/pkgsrc/lang/mono/work/mono-2.0.1/runtime/mono-wrapper
../class/lib/monolite/mcs.exe /codepage:65001 -optimize -d:NET_1_1 -d:ONLY_1_1
-d:BOOTSTRAP_WITH_OLDLIB -debug -target:exe -out:mcs.exe cs-parser.cs
@mcs.exe.sources
typemanager.cs(140,66): error CS8025: Parsing error
Compilation failed: 1 error(s), 0 warnings
gmake[7]: *** [../class/lib/basic/mcs.exe] Error 1
gmake[7]: Leaving directory `/usr/pkgsrc/lang/mono/work/mono-2.0.1/mcs/mcs'
gmake[6]: *** [do-all] Error 2
At this point I'm not even able to tell with certainty which
line it balks at, and I'm not able to cook up a quick fix
similar to the above.
>How-To-Repeat:
Try to build lang/mono for NetBSD/macppc 4.0.
>Fix:
Sorry, don't know.
Home |
Main Index |
Thread Index |
Old Index