Bug 32001 - Cannot use upstream boehm-gc
Summary: Cannot use upstream boehm-gc
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: 4.0.0
Hardware: PC Other
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-07-16 05:15 UTC by Rainer Orth
Modified: 2015-12-21 01:56 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
proposed patch (989 bytes, patch)
2015-07-16 05:16 UTC, Rainer Orth
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Rainer Orth 2015-07-16 05:15:56 UTC
After resolving the issues described in Bug 32000, I got link errors when using upstream libgc (either 7.2f or 7.4.2)
on 64-bit Solaris 11/x86, although the issue is generic:

  CCLD     pedump
Undefined			first referenced
 symbol  			    in file
GC_toggleref_add                    ./.libs/libmonoruntime.a(libmonoruntime_la-boehm-gc.o)
GC_set_finalizer_notify_proc        ./.libs/libmonoruntime.a(libmonoruntime_la-boehm-gc.o)
GC_toggleref_register_callback      ./.libs/libmonoruntime.a(libmonoruntime_la-boehm-gc.o)

  not in upstream gc 7.2f, 7.4.0

GC_unregister_long_link             ./.libs/libmonoruntime.a(libmonoruntime_la-boehm-gc.o)
GC_REGISTER_LONG_LINK               ./.libs/libmonoruntime.a(libmonoruntime_la-boehm-gc.o)

  only in upstream 7.4.0

Given that the latter two aren't in gc 7.2f, that version isn't probably an option any longer, unlike for mono 3.2.6.

To work around this, I've gone for gc 7.4.2 instead, and used the attached patch to stub out the calls to the former
three functions in mono/metadata/boehm-gc.c, which allowed the links to complete.

  Rainer
Comment 1 Rainer Orth 2015-07-16 05:16:50 UTC
Created attachment 12057 [details]
proposed patch
Comment 2 Rodrigo Kumpera 2015-12-21 01:56:51 UTC
Upstream added those features.