Bug 40224 - error: implicit declaration of function 'mono_mb_emit_ldarg'
Summary: error: implicit declaration of function 'mono_mb_emit_ldarg'
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-04-08 07:53 UTC by malat
Modified: 2016-04-11 22:37 UTC (History)
3 users (show)

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:

Description malat 2016-04-08 07:53:37 UTC
It would be nice to fix compilation of mono with:

% ./autogen.sh --prefix=$HOME/blah --enable-minimal=jit

It currently fails with:

../../doltlibtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../mono -I../../libgc/include -I../../eglib/src -I../../eglib/src -fvisibility=hidden -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -D_FILE_OFFSET_BITS=64 -D__mono_ppc__ -DUSE_COMPILER_TLS -DHAVE_BOEHM_GC -g -O2 -std=gnu99 -fno-strict-aliasing -fwrapv -DMONO_DLL_EXPORT -Wno-unused-but-set-variable -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -Werror-implicit-function-declaration -MT libmonoruntime_la-cominterop.lo -MD -MP -MF .deps/libmonoruntime_la-cominterop.Tpo -c -o libmonoruntime_la-cominterop.lo `test -f 'cominterop.c' || echo './'`cominterop.c
cominterop.c: In function 'mono_mb_emit_cominterop_call':
cominterop.c:627:2: error: implicit declaration of function 'mono_mb_emit_ldarg' [-Werror=implicit-function-declaration]
  mono_mb_emit_ldarg (mb, 0);
cominterop.c:627:2: warning: nested extern declaration of 'mono_mb_emit_ldarg' [-Wnested-externs]
cominterop.c:628:2: error: implicit declaration of function 'mono_mb_emit_icon' [-Werror=implicit-function-declaration]
  mono_mb_emit_icon (mb, cominterop_get_com_slot_for_method (method));

Obviously since:

% cat mono/metadata/method-builder.h
mono_mb_emit_ldarg (MonoMethodBuilder *mb, guint argnum);
Comment 1 Zoltan Varga 2016-04-11 22:37:43 UTC
Should be fixed in mono master.