Bug 17982 - [aot-compiler.c:7186:5] (error) implicit declaration of function 'arch_emit_direct_call'
Summary: [aot-compiler.c:7186:5] (error) implicit declaration of function 'arch_emit_d...
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-02-24 23:29 UTC by Armando C. Dutra
Modified: 2014-02-25 11:39 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 Armando C. Dutra 2014-02-24 23:29:06 UTC
I started the building mono on windows using the cygwing shell.

During the processing "make command" , an error occurred in aot-compiler.c file:

aot-compiler.c: In function 'emit_code':
aot-compiler.c:7186:5: error: implicit declaration of function 'arch_emit_direct_call' [-Werror=implicit-function-declaration]
aot-compiler.c:7186:5: warning: nested extern declaration of 'arch_emit_direct_call' [-Wnested-externs]

I believe that error is occurring because my environment not support the aot feature.

I checked the support through this example:
c:\mono --aot=full hello.exe
> AOT compilation is not supported on this platform.

Inside the aot-compile.c, I checked in all the invoking of the "arch_emit_direct_call" is within the condition "MONO_ARCH_AOT_SUPPORTED", with exception of the invocation of the line 7186.
Comment 1 Zoltan Varga 2014-02-25 11:39:05 UTC
Fixed by 2027961a5c39318929665950f73b7ca68890f7c7.