<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>Hi Russell,</div><div>First, I have built Mono natively successfully, as you did. Download source from git ( branch-<span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">4.8.1.0</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"> </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">), update the external module, make&make install. All done for my Ubuntu14.0. "Hello-world" test works well.</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">And the rtems part is working fine on my host and target (zynq) too, I have used it for like 2 years. The version I am using is 4.11, stable branch.</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">Then, right now, I want to combine these together. </span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">Like I compiled Mono natively, I need to configure it first, </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"></span><a href="https://pastebin.com/56ZXNBrj" style="font-size: 10.5pt; line-height: 1.5; background-color: window;">https://pastebin.com/56ZXNBrj</a><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;">then, the error came up, as usual, </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"></span><a href="https://pastebin.com/qz407hPN" style="font-size: 10.5pt; line-height: 1.5; background-color: window;">https://pastebin.com/qz407hPN</a>, and the config log is here <span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;"></span><a href="https://pastebin.com/Nc4EQy7D" style="font-size: 10.5pt; line-height: 1.5; background-color: window;">https://pastebin.com/Nc4EQy7D</a><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span></div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"></span><div><br></div><div>The error you encountered here is, I think, that you need to point out the path where linkcmds locates. Try to add "-B/.../arm-rtems4.11/lib -B/.../arm-rtems4.11/xilinx_zynq_zedboard/lib/ " to your CFLAGS. And it may go well. </div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></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-24 11:05</div><div><b>To:</b> <a href="mailto:joel@rtems.org">Joel Sherrill</a></div><div><b>CC:</b> <a href="mailto:users@rtems.org">rtems-users@rtems.org</a></div><div><b>Subject:</b> Re: Has anyone tried to port Mono to RTEMS</div></div></div><div><div>On Sun, Jul 23, 2017 at 6:28 PM, Joel Sherrill <joel@rtems.org> wrote:</div>
<div>></div>
<div>></div>
<div>> On Jul 23, 2017 7:11 PM, "Chris Johns" <chrisj@rtems.org> wrote:</div>
<div>></div>
<div>> On 24/07/2017 09:29, Russell Haley wrote:</div>
<div>>></div>
<div>>> I've retreated from FreeBSD all together. I'm on Debian Jessie right now.</div>
<div>>> rsb is</div>
<div>>> running and Mono is compiling now (still compiling C, not yet into mcs</div>
<div>>> where it</div>
<div>>> compiles the framework). I saw the original posters timezone item go</div>
<div>>> whizing</div>
<div>>> past so it's not a problem with my system so far. Will know more when I</div>
<div>>> get rsb</div>
<div>>> completed.</div>
<div>></div>
<div>> Interesting. This would imply something is not full crossed to the RTEMS</div>
<div>> environment in Mono or the RTEMS environment is not consistent. The RTEMS</div>
<div>> environment should be consistent across a range of host machines and so it</div>
<div>> should give the same results to configure probes.</div>
<div>></div>
<div>> One issue I find when on FreeBSD is configure or build logic based around</div>
<div>> sed</div>
<div>> breaks. If the sed logic uses GNU sed extensions, for example '\n' for a new</div>
<div>> line, it breaks the BSD sed as it does not support it.</div>
<div>></div>
<div>></div>
<div>> Does Mono build natively on FreeBSD? It is quite possible that any number of</div>
<div>> host tools are not installed, not the GNU version, or Mono simply has Linux</div>
<div>> specific assumptions.</div>
<div> </div>
<div>Nothing seems to be working on FreeBSD 12 right now. There just seems</div>
<div>to be lots of broken stuff. TrueOS moved over to a rolling release a</div>
<div>little while ago and I've never tried to do any development on it</div>
<div>before. Building from 12-CURRENT seems like an enticing idea but...</div>
<div>I've run into a lot of issues (or I feel like I have anyway). I</div>
<div>abandoned Arch for Debian because I didn't want to deal with rolling</div>
<div>releases in embedded development (the little I do). I may have to</div>
<div>consider rolling my own FBSD Desktop instead of using TrueOS.</div>
<div> </div>
<div>Anyway, this is about mono. I got mono to build natively on Debian. I</div>
<div>got the RTEMS sparc simulator from the quick start to build (OMG, what</div>
<div>do I do with that now??? A manual reference for the next steps would</div>
<div>be great cause I can't find it).</div>
<div> </div>
<div>I tried modifying OPs (Original Poster) command line to work with my env:</div>
<div> </div>
<div>#LD_LIBRARY_PATH is from</div>
<div>http://www.mono-project.com/docs/compiling-mono/compiling-from-git/</div>
<div> </div>
<div>env LD_LIBRARY_PATH=/home/russellh/rtems/4.12/bin/ \</div>
<div>./autogen.sh \</div>
<div>--prefix=/opt/Mono/mono-4.8.1.0/mono-arm \</div>
<div>--target=arm-rtems4.12 \</div>
<div>--host=x86_64-unknown-linux \</div>
<div>CC=/home/russellh/rtems/4.12/bin/sparc-rtems4.12-gcc \</div>
<div>CFLAGS="-qrtems"</div>
<div> </div>
<div>This doesn't work. It fails to find the linker and won't configure.</div>
<div>Output is here: https://pastebin.com/Twt36Qph</div>
<div> </div>
<div> </div>
<div>It's frustrating because everything in mono configuration is</div>
<div>autogenerated. That means I can't find the conftest.c file. Anyway,</div>
<div>The issue is the linker location is out to lunch:</div>
<div> </div>
<div>/home/russellh/rtems/4.12/lib/gcc/sparc-rtems4.12/7.1.0/../../../../sparc-rtems4.12/bin/ld:</div>
<div>cannot open linker script file linkcmds:</div>
<div> </div>
<div>As noted above, the compiling-from-git section said to add</div>
<div>LD_LIBRARY_PATH. I tried exporting it first, then tried the env trick.</div>
<div>No luck either way.</div>
<div> </div>
<div>If I cared to pursue this (which I don't) I would await an RTEMS reply</div>
<div>and then likely contact the mono team. However, a note from an</div>
<div>ex-collegue: The are moving a very large number of servers from</div>
<div>Microsoft to Linux (save $$$) and their evaluation of Mono was so</div>
<div>dismal they decided to re-factor to work with DotNet Core instead.</div>
<div>They have a HUGE amount of code to refactor! And those are big beefy</div>
<div>*servers* with lots and lots of memory.</div>
<div> </div>
<div>This exercise has been very instructive for me. Once I figure out how</div>
<div>to get the simulator working I'll look at linking in Lua and then</div>
<div>perhaps DotNetCore. That however requires build clang and llvm 3.9 and</div>
<div>a bunch of stuff I just don't want to deal with when Lua is there for</div>
<div>me.</div>
<div> </div>
<div>Good luck Xuelin Tian, I won't be responding further.</div>
<div> </div>
<div>Cheers,</div>
<div>Russ</div>
<div>_______________________________________________</div>
<div>users mailing list</div>
<div>users@rtems.org</div>
<div>http://lists.rtems.org/mailman/listinfo/users</div>
</div></blockquote>
</body></html>