pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/48522: lang/mono2 fails to build on i386 NetBSD 6.1



>Number:         48522
>Category:       pkg
>Synopsis:       lang/mono2 fails to build on i386 NetBSD 6.1
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 15 07:50:00 +0000 2014
>Originator:     Richard Hansen
>Release:        6.1
>Organization:
>Environment:
NetBSD foo 6.1 NetBSD 6.1 (GENERIC) ... i386
>Description:
See PR/45828 for a full description
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45828

Note that just like PR/45828, i386 is broken but amd64 is OK.

That PR was marked as closed, perhaps because lang/mono has since been updated 
to a version that doesn't have the problem.  However, this bug is about 
lang/mono2, not lang/mono.  lang/mono2 is an older version of mono.  At the 
time 45828 was filed, lang/mono was at 2.10.6.  lang/mono2 is currently at 
2.10.9 (2013Q4), which is probably similar enough that the problem I'm 
experiencing is indeed the same as PR/45828.

Applying the patch in PR/45828 fixed the problem for me, but I don't know if 
that's the "right" solution.  (Disabling garbage collection completely seems 
non-ideal to me, although maybe it only disables garbage collection for the 
lightweight C# compiler used to bootstrap?)

Upstream has tagged 2.10.10 through 2.10.12 in their Git repository, but they 
have not made any official release tarballs for these versions.  Release notes 
are not available for these revisions so it's unclear whether this bug has been 
fixed upstream between 2.10.10 and 2.10.12.

Also see PR/46147, which has similar symptoms but is unrealated (AFAIK).  That 
bug it was caused by a regression(?) in pthread introduced after netbsd-6 was 
already cut, and it affects amd64 unlike this bug.
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=46147

Here is the tail end of the build output without the patch applied:

---------------------------------------------------
gmake[6]: Entering directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
gmake[6]: gmcs: Command not found
build/profiles/basic.make:91: recipe for target 
'build/deps/basic-profile-check.exe' failed
gmake[6]: *** [build/deps/basic-profile-check.exe] Error 127
gmake[6]: Leaving directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
gmake[6]: Entering directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
*** The compiler 'gmcs' doesn't appear to be usable.
*** Trying the 'monolite' directory.
gmake[7]: Entering directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
gmake[8]: Entering directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
[1]   Abort trap (core dumped) MONO_PATH=".//cl...
build/profiles/basic.make:91: recipe for target 
'build/deps/basic-profile-check.exe' failed
gmake[8]: *** [build/deps/basic-profile-check.exe] Error 134
gmake[8]: Leaving directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
gmake[8]: Entering directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
build/profiles/basic.make:75: recipe for target 'do-profile-check-monolite' 
failed
gmake[8]: *** [do-profile-check-monolite] Error 1
gmake[8]: Leaving directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
build/profiles/basic.make:58: recipe for target 'do-profile-check' failed
gmake[7]: *** [do-profile-check] Error 2
gmake[7]: Leaving directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
build/profiles/basic.make:83: recipe for target 'do-profile-check-monolite' 
failed
gmake[6]: *** [do-profile-check-monolite] Error 2
gmake[6]: Leaving directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
build/profiles/basic.make:58: recipe for target 'do-profile-check' failed
gmake[5]: *** [do-profile-check] Error 2
gmake[5]: Leaving directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
Makefile:95: recipe for target 'profile-do--basic--all' failed
gmake[4]: *** [profile-do--basic--all] Error 2
gmake[4]: Leaving directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
Makefile:91: recipe for target 'profiles-do--all' failed
gmake[3]: *** [profiles-do--all] Error 2
gmake[3]: Leaving directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/mcs'
Makefile:490: recipe for target 'all-local' failed
gmake[2]: *** [all-local] Error 2
gmake[2]: Leaving directory 
'/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9/runtime'
Makefile:415: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/pkg_comp/obj/pkgsrc/lang/mono2/work/mono-2.10.9'
Makefile:340: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/lang/mono2
---------------------------------------------------

Note the "Abort trap (core dumped)" above.  If you examine the core file, you 
get a backtrace similar to the one in PR/45828.
>How-To-Repeat:
1. install NetBSD 6.1
2. fetch pkgsrc-2013Q4 into /usr/pkgsrc
3. cd /usr/pkgsrc/lang/mono2
4. make package
>Fix:
see patch in PR/45828

or maybe it could be fixed by depending on devel/boehm-gc and linking against 
libgc.so from that package via '--with-gc=boehm' (instead of using the probably 
very old version of the Boehm garbage collector that comes with mono 2.10.9)



Home | Main Index | Thread Index | Old Index