pkgsrc-Bugs archive

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

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



The following reply was made to PR pkg/48522; it has been noted by GNATS.

From: Richard Hansen <rhansen%bbn.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/48522: lang/mono2 fails to build on i386 NetBSD 6.1
Date: Wed, 15 Jan 2014 03:36:40 -0500

 I tried building against devel/boehm-gc (with
 PKG_OPTIONS.boehm-gc+=threads) by using the following patch:
 
 diff --git a/pkgsrc/lang/mono2/Makefile b/pkgsrc/lang/mono2/Makefile
 index 36bd493..d078818 100644
 --- a/pkgsrc/lang/mono2/Makefile
 +++ b/pkgsrc/lang/mono2/Makefile
 @@ -31,6 +31,7 @@ CONFIGURE_ARGS+=      --with-icu=yes
  CONFIGURE_ARGS+=       --with-preview=yes
  CONFIGURE_ARGS+=       --with-libgdiplus=installed
  CONFIGURE_ARGS+=       --disable-dtrace
 +CONFIGURE_ARGS+=       --with-gc=boehm
 
  .include "options.mk"
 
 @@ -158,6 +159,7 @@ ULIMIT_CMD_datasize=        ulimit -d 524288
  ULIMIT_CMD_stacksize=  ulimit -s 10240
  .endif
 
 +.include "../../devel/boehm-gc/buildlink3.mk"
  .include "../../devel/gettext-lib/buildlink3.mk"
  .include "../../lang/python/application.mk"
  .include "../../textproc/icu/buildlink3.mk"
 diff --git a/pkgsrc/lang/mono2/distinfo b/pkgsrc/lang/mono2/distinfo
 index 7956ab1..7596a03 100644
 --- a/pkgsrc/lang/mono2/distinfo
 +++ b/pkgsrc/lang/mono2/distinfo
 @@ -4,7 +4,7 @@ SHA1 (mono-2.10.9.tar.bz2) =
 1a6e8c5a0c3d88d87982259aa04402e028a283de
  RMD160 (mono-2.10.9.tar.bz2) = ac9784c413eb2cdb490750a86a96cce5c11ad5bd
  Size (mono-2.10.9.tar.bz2) = 34038017 bytes
  SHA1 (patch-aa) = f3c88247c143cba6d0475f1dabb653adbc841bdb
 -SHA1 (patch-ab) = bc7c65758bd4c24340ab75f42e6fae9831c0498b
 +SHA1 (patch-ab) = 10eb6f4453c626f0bedce4b0ce6519ba6aea4d5f
  SHA1 (patch-ac) = 78f3b0786480e066959cc191e3f45d3f773220e2
  SHA1 (patch-ad) = 2dc253928695966b5310457b0cec52cd919a4851
  SHA1 (patch-ae) = 2b032ad658e8aa23c4e3825474d2d284b00557cd
 diff --git a/pkgsrc/lang/mono2/patches/patch-ab
 b/pkgsrc/lang/mono2/patches/patch-ab
 index c3a9915..074f28e 100644
 --- a/pkgsrc/lang/mono2/patches/patch-ab
 +++ b/pkgsrc/lang/mono2/patches/patch-ab
 @@ -18,7 +18,7 @@ Support 64-bit SunOS.
                 libmono_ldflags="-pthread"
                 need_link_unlink=yes
  -              libdl="-ldl"
 -+              libdl="-ldl /libexec/ld.elf_so"
 ++              libdl=
                 libgc_threads=pthreads
                 with_sigaltstack=no
                 use_sigposix=yes
 
 
 Unfortunately the build still failed, but with a slightly different error:
 
 ...
 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'
 Insufficient memory for GC_all_nils
 ...
 
 Note that it no longer segfaults; it instead errors out with
 "Insufficient memory for GC_all_nils".
 
 -Richard
 


Home | Main Index | Thread Index | Old Index