Bug 30160 - mono boehm build is broken on Linux x86
Summary: mono boehm build is broken on Linux x86
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: GC ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-05-16 03:39 UTC by Dylan Borg
Modified: 2015-05-19 09:25 UTC (History)
3 users (show)

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

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 Dylan Borg 2015-05-16 03:39:25 UTC
When I try to build mono I get the following errors from gcc:
make[4]: Entering directory '/var/www/git/mono-git/mono/mono/mini'
  CCLD     mono-boehm
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-threads.o): In function `mono_threads_join_threads':
/var/www/git/mono-git/mono/mono/metadata/threads.c:4845: undefined reference to `GC_pthread_join'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-threads.o): In function `mono_thread_join':
/var/www/git/mono-git/mono/mono/metadata/threads.c:4878: undefined reference to `GC_pthread_join'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-gc.o): In function `mono_gc_cleanup':
/var/www/git/mono-git/mono/mono/metadata/gc.c:1283: undefined reference to `GC_finalizer_notifier'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-mono-hash.o): In function `rehash':
/var/www/git/mono-git/mono/mono/metadata/mono-hash.c:233: undefined reference to `GC_local_malloc'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-mono-hash.o): In function `mono_g_hash_table_insert_replace':
/var/www/git/mono-git/mono/mono/metadata/mono-hash.c:443: undefined reference to `GC_local_malloc'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-mono-hash.o): In function `mono_g_hash_table_new':
/var/www/git/mono-git/mono/mono/metadata/mono-hash.c:156: undefined reference to `GC_local_malloc'
/var/www/git/mono-git/mono/mono/metadata/mono-hash.c:162: undefined reference to `GC_local_malloc'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-reflection.o): In function `create_dynamic_mono_image':
/var/www/git/mono-git/mono/mono/metadata/reflection.c:5087: undefined reference to `GC_local_malloc'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-reflection.o):/var/www/git/mono-git/mono/mono/metadata/reflection.c:5087: more undefined references to `GC_local_malloc' follow
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `on_gc_heap_resize':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:445: undefined reference to `GC_get_heap_size'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `on_gc_notification':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:424: undefined reference to `GC_get_heap_size'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:425: undefined reference to `GC_get_free_bytes'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_is_gc_thread':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:331: undefined reference to `GC_thread_is_registered'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `boehm_thread_register':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:348: undefined reference to `GC_thread_register_foreign'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_base_init':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:109: undefined reference to `GC_stackbottom'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:147: undefined reference to `GC_no_dls'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:163: undefined reference to `GC_init'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:165: undefined reference to `GC_oom_fn'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:166: undefined reference to `GC_set_warn_proc'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:167: undefined reference to `GC_finalize_on_demand'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:168: undefined reference to `GC_finalizer_notifier'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:170: undefined reference to `GC_init_gcj_malloc'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:185: undefined reference to `GC_set_max_heap_size'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_toggleref_register_callback':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1399: undefined reference to `GC_toggleref_register_callback'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_enable_events':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:459: undefined reference to `GC_notify_event'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:460: undefined reference to `GC_on_heap_resize'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_base_init':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:114: undefined reference to `GC_stackbottom'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_collection_count':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:284: undefined reference to `GC_gc_no'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_get_used_size':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:312: undefined reference to `GC_get_heap_size'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:312: undefined reference to `GC_get_free_bytes'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_get_heap_size':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:325: undefined reference to `GC_get_heap_size'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_enable_events':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:459: undefined reference to `GC_notify_event'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:460: undefined reference to `GC_on_heap_resize'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_register_root':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:475: undefined reference to `GC_add_roots'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_deregister_root':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:486: undefined reference to `GC_remove_roots'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_weak_link_remove':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:507: undefined reference to `GC_unregister_disappearing_link'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:505: undefined reference to `GC_unregister_long_link'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_weak_link_get':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:521: undefined reference to `GC_call_with_alloc_lock'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_alloc_obj':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:599: undefined reference to `GC_local_gcj_malloc'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:592: undefined reference to `GC_local_malloc_atomic'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:601: undefined reference to `GC_local_malloc'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_alloc_vector':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:625: undefined reference to `GC_local_gcj_malloc'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:618: undefined reference to `GC_local_malloc_atomic'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:627: undefined reference to `GC_local_malloc'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_alloc_array':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:653: undefined reference to `GC_local_gcj_malloc'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:646: undefined reference to `GC_local_malloc_atomic'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:655: undefined reference to `GC_local_malloc'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_alloc_string':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:674: undefined reference to `GC_local_malloc_atomic'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_invoke_finalizers':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:695: undefined reference to `GC_should_invoke_finalizers'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_get_managed_allocator_by_type':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1095: undefined reference to `GC_thread_tls'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_get_managed_allocator':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1044: undefined reference to `GC_thread_tls'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1049: undefined reference to `GC_all_interior_pointers'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_set_desktop_mode':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1204: undefined reference to `GC_dont_expand'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_is_disabled':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1216: undefined reference to `GC_dont_gc'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_register_for_finalization':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1307: undefined reference to `GC_base'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1310: undefined reference to `GC_register_finalizer_no_order'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_collect':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:238: undefined reference to `GC_gcollect'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_is_gc_thread':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:331: undefined reference to `GC_thread_is_registered'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_object_is_alive':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:368: undefined reference to `GC_is_marked'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_weak_link_add':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:498: undefined reference to `GC_general_register_disappearing_link'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:496: undefined reference to `GC_register_long_link'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_make_descr_from_bitmap':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:553: undefined reference to `GC_make_descriptor'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:553: undefined reference to `GC_make_descriptor'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:553: undefined reference to `GC_make_descriptor'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_alloc_fixed':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:576: undefined reference to `GC_malloc_explicitly_typed'
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:578: undefined reference to `GC_local_malloc'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_invoke_finalizers':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:696: undefined reference to `GC_invoke_finalizers'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_pending_finalizers':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:703: undefined reference to `GC_should_invoke_finalizers'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_get_suspend_signal':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:763: undefined reference to `GC_get_suspend_signal'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_get_restart_signal':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:769: undefined reference to `GC_get_restart_signal'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_invoke_with_gc_lock':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1192: undefined reference to `GC_call_with_alloc_lock'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_pthread_create':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1319: undefined reference to `GC_pthread_create'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_register_altstack':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1349: undefined reference to `GC_register_altstack'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_toggleref_add':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1393: undefined reference to `GC_toggleref_add'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_toggleref_register_callback':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1399: undefined reference to `GC_toggleref_register_callback'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-boehm-gc.o): In function `mono_gc_register_finalizer_callbacks':
/var/www/git/mono-git/mono/mono/metadata/boehm-gc.c:1448: undefined reference to `GC_set_finalizer_notify_proc'
collect2: error: ld returned 1 exit status
Makefile:1344: recipe for target 'mono-boehm' failed
make[4]: *** [mono-boehm] Error 1
make[4]: Leaving directory '/var/www/git/mono-git/mono/mono/mini'
Makefile:1173: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/var/www/git/mono-git/mono/mono/mini'
Makefile:439: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/www/git/mono-git/mono/mono'
Makefile:518: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/www/git/mono-git/mono'
Makefile:447: recipe for target 'all' failed
make: *** [all] Error 2
Comment 1 Zoltan Varga 2015-05-18 08:52:40 UTC
Could you try a full rebuild (i.e. make distclean and autogen.sh) ?
Comment 2 Dylan Borg 2015-05-19 09:25:47 UTC
That works.