<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Yeah, I have already tried this out. I commented the timezone part, and another error came up... </div><div>It saied "<span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">error: Cross compiling is not supported for target arm-unknown-rtems4.11</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">"</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">So, I think I need to dig deeper...</span></div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>Best wishes,</div><div>xuelin.tian@qkmtech.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:russ.haley@gmail.com">Russell Haley</a></div><div><b>Date:</b> 2017-07-25 14:57</div><div><b>To:</b> <a href="mailto:xuelin.tian@qkmtech.com">xuelin.tian</a></div><div><b>CC:</b> <a href="mailto:chrisj@rtems.org">Chris Johns</a>; <a href="mailto:joel@rtems.org">Joel Sherrill</a>; <a href="mailto:users@rtems.org">users</a></div><div><b>Subject:</b> Re: Has anyone tried to port Mono to RTEMS</div></div></div><div><div>I can't sleep till I send this: </div>
<div> </div>
<div>Perhaps try removing the test from the configure file that runs the test? It's a generated file from a template with similar name. Autogen.sh should have the code paths.</div>
<div> </div>
<div>Russ</div>
<div>Sent from my BlackBerry 10 smartphone on the Virgin Mobile network.</div>
<div>  Original Message  </div>
<div>From: Russell Haley</div>
<div>Sent: Monday, July 24, 2017 8:17 PM</div>
<div>To: xuelin.tian@qkmtech.com</div>
<div>Cc: Chris Johns; Joel Sherrill; users@rtems.org</div>
<div>Subject: Re: Re: Has anyone tried to port Mono to RTEMS</div>
<div> </div>
<div>On Mon, Jul 24, 2017 at 7:42 PM, xuelin.tian@qkmtech.com</div>
<div><xuelin.tian@qkmtech.com> wrote:</div>
<div>> I do not know, and I just comment the check function in configure.ac.</div>
<div>> And another error comes up... still working on it...</div>
<div>></div>
<div>> ________________________________</div>
<div>> Best wishes,</div>
<div>> xuelin.tian@qkmtech.com</div>
<div>></div>
<div>></div>
<div>> From: Chris Johns</div>
<div>> Date: 2017-07-25 10:02</div>
<div>> To: xuelin.tian@qkmtech.com; Russell Haley; Joel Sherrill</div>
<div>> CC: users@rtems.org</div>
<div>> Subject: Re: Has anyone tried to port Mono to RTEMS</div>
<div>> On 25/07/2017 11:53, xuelin.tian@qkmtech.com wrote:</div>
<div>>> This is the config log, https://pastebin.com/Nc4EQy7D</div>
<div>>> You can start from Line 11218.</div>
<div>>></div>
<div>>> And the check function from configure.ac is shown below:</div>
<div>>> dnl ********************************</div>
<div>>> dnl *** Checks for timezone stuff **</div>
<div>>> dnl ********************************</div>
<div>>> AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,</div>
<div>>> AC_TRY_COMPILE([</div>
<div>>> #include <time.h></div>
<div>>> ], [</div>
<div>>> struct tm tm;</div>
<div>>> tm.tm_gmtoff = 1;</div>
<div>>> ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))</div>
<div>>> if test $ac_cv_struct_tm_gmtoff = yes; then</div>
<div>>> AC_DEFINE(HAVE_TM_GMTOFF, 1, [Have tm_gmtoff])</div>
<div>>> else</div>
<div>>> AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,</div>
<div>>> AC_TRY_COMPILE([</div>
<div>>> #include <time.h></div>
<div>>> ], [</div>
<div>>> timezone = 1;</div>
<div>>> ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))</div>
<div>>> if test $ac_cv_var_timezone = yes; then</div>
<div>>> AC_DEFINE(HAVE_TIMEZONE, 1, [Have timezone variable])</div>
<div>>> else</div>
<div>>> AC_ERROR(unable to find a way to determine timezone)</div>
<div>>> fi</div>
<div>>> fi</div>
<div>></div>
<div>> The log says (saving everyone from pastebin ads):</div>
<div>></div>
<div>> configure:22637: result: no</div>
<div>> configure:22647: checking for tm_gmtoff in struct tm</div>
<div>> configure:22668: arm-rtems4.11-gcc -c -qrtems</div>
<div>> -B/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/lib</div>
<div>> -B/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/xilinx_zynq_zedboard/lib/</div>
<div>> --specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard</div>
<div>> -mtune=cortex-a9 -std=gnu99 -fno-strict-aliasing -fwrapv</div>
<div>> -Wno-zero-length-array</div>
<div>> -DMONO_DLL_EXPORT -Wno-unused-but-set-variable -g -Wall -Wunused</div>
<div>> -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes</div>
<div>> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual</div>
<div>> -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value</div>
<div>> -Wno-attributes</div>
<div>> -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -g</div>
<div>> -Wall</div>
<div>> -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes</div>
<div>> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual</div>
<div>> -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value</div>
<div>> -Wno-attributes</div>
<div>> conftest.c >&5</div>
<div>> conftest.c:81:1: warning: function declaration isn't a prototype</div>
<div>> [-Wstrict-prototypes]</div>
<div>> main ()</div>
<div>> ^</div>
<div>> conftest.c: In function 'main':</div>
<div>> conftest.c:85:6: error: 'struct tm' has no member named 'tm_gmtoff'</div>
<div>> tm.tm_gmtoff = 1;</div>
<div>> ^</div>
<div>> It looks like we do not have __TM_GMTOFF defined so do not currently have</div>
<div>> this</div>
<div>> field supported. The second test is for `timezone`:</div>
<div> </div>
<div>Not ISO C apparently:</div>
<div>https://www.gnu.org/software/libc/manual/html_node/Broken_002ddown-Time.html</div>
<div> </div>
<div>"...The tm_gmtoff field is derived from BSD and is a GNU library</div>
<div>extension; it is not visible in a strict ISO C environment."</div>
<div> </div>
<div>> configure:22675: result: no</div>
<div>> configure:22682: checking for timezone variable</div>
<div>> configure:22702: arm-rtems4.11-gcc -c -qrtems</div>
<div>> -B/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/lib</div>
<div>> -B/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/xilinx_zynq_zedboard/lib/</div>
<div>> --specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard</div>
<div>> -mtune=cortex-a9 -std=gnu99 -fno-strict-aliasing -fwrapv</div>
<div>> -Wno-zero-length-array</div>
<div>> -DMONO_DLL_EXPORT -Wno-unused-but-set-variable -g -Wall -Wunused</div>
<div>> -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes</div>
<div>> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual</div>
<div>> -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value</div>
<div>> -Wno-attributes</div>
<div>> -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -g</div>
<div>> -Wall</div>
<div>> -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes</div>
<div>> -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual</div>
<div>> -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value</div>
<div>> -Wno-attributes</div>
<div>> conftest.c >&5</div>
<div>> conftest.c:81:1: warning: function declaration isn't a prototype</div>
<div>> [-Wstrict-prototypes]</div>
<div>> main ()</div>
<div>> ^</div>
<div>> conftest.c: In function 'main':</div>
<div>> conftest.c:84:5: error: 'timezone' undeclared (first use in this function)</div>
<div>> timezone = 1;</div>
<div>> ^</div>
<div>> conftest.c:84:5: note: each undeclared identifier is reported only once for</div>
<div>> each</div>
<div>> function it appears in</div>
<div>></div>
<div>> I am not sure about this one.</div>
<div>></div>
<div>> Chris</div>
</div></blockquote>
</body></html>