<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 02/03/2014 13:54, Zoltan Varga
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJR-0p9hXXdz9OV25FF4+MwZKf-5C8ybcCkQAA9dtQvGaHwbZQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>  mono requires an existing mono installation to work, and
          will only fall back to monolite if it is missing. If you want
          it to use monolite, then remove the existing mono installation
          from the PATH.</div>
        <div><br>
        </div>
        <div>                    Zoltan</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
      </div>
    </blockquote>
    <br>
    Hi Zoltan,<br>
    <br>
    Thanks for the response. <br>
    <br>
    I'm not sure I understand you. There is already a monolite/basic.exe
    present in the Mono archive.<br>
    <br>
    The build environment is building another basic.exe<br>
    <br>
    The problem seems to be that a dependency is being introduced on the
    wrong mscorlib by the basic<br>
    profile makefile, which is what I was attempting to address (?)<br>
    <br>
    Best Regards,<br>
    <br>
    Alex<br>
    <br>
    <blockquote
cite="mid:CAJR-0p9hXXdz9OV25FF4+MwZKf-5C8ybcCkQAA9dtQvGaHwbZQ@mail.gmail.com"
      type="cite">
      <div class="gmail_extra">
        <div class="gmail_quote">On Sun, Mar 2, 2014 at 8:24 AM, Alex J
          Lennon <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:ajlennon@dynamicdevices.co.uk"
              target="_blank">ajlennon@dynamicdevices.co.uk</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
            <br>
            I'm updating a recipe for Yocto/Openembedded layer,
            meta-mono, which<br>
            cross-compiles Mono 3.2.8 for embedded Linux targets.<br>
            <br>
            I am using an Ubuntu 12.04 LTS host for build and previously
            this has<br>
            worked well with the default mono support available in
            precise, version<br>
            2.10 I think.<br>
            <br>
            (NB the Yocto  build environment shouldn't have any external<br>
            dependencies on the  host version of mono as it is building
            its own<br>
            native, host, build  prior to the cross-compiled build).<br>
            <br>
            When I updated the host to use Mono  3.2.1 from
            ppa:directhex/monoxide<br>
            for some other work I was doing, I started getting
            unexpected build<br>
            problems with the meta-mono recipe.<br>
            <br>
            >From what I've been able to track down, what is
            happening is that the<br>
            build process is building basic/basic.exe from the basic
            profile. I'm<br>
            not sure why this is happening as we already have the
            bootstrap<br>
            basic.exe in monolite.<br>
            <br>
            This new basic.exe should have a dependency on the
            apropriate<br>
            mscorlib.dl that is being built with it, but instead has a
            dependency on<br>
            an external mscorlib.dll on the host. With Mono 3.2.1
            installed this<br>
            dependency is on /usr/lib/mono/4.5/mscorlib.dll<br>
            <br>
            As a result of this dependency when the new basic.exe is
            executed we get<br>
            various warnings of the form,<br>
            <br>
            ../corlib/Mono/DataConverter.cs(759,25): warning CS0436: The
            type<br>
            `Mono.DataConverter' conflicts with the imported type of
            same name'.<br>
            Ignoring the imported type definition<br>
            ../../build/common/MonoTODOAttribute.cs(38,17): (Location of
            the symbol<br>
            related to previous warning)<br>
            /usr/lib/mono/4.5/mscorlib.dll (Location of the symbol
            related to<br>
            previous warning)<br>
            <br>
            Then an error<br>
            <br>
            MCS     [build] mscorlib.dll<br>
            Unhandled Exception:<br>
            System.TypeLoadException: Could not load type<br>
            'Mono.CSharp.CommandLineParser' from assembly 'basic,
            Version=3.2.8.0,<br>
            Culture=neutral, PublicKeyToken=null'.<br>
            [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException:
            Could not<br>
            load type 'Mono.CSharp.CommandLineParser' from assembly
            'basic,<br>
            Version=3.2.8.0, Culture=neutral, PublicKeyToken=null'.<br>
            make[8]: *** [../../class/lib/build/tmp/mscorlib.dll] Error
            1<br>
            <br>
            I took a look at the basic profile make file for missing
            paths and I<br>
            think it may be missing the required dependency path. When I
            added this<br>
            in the build works,<br>
            <br>
            --- 3.2.8-r0/mcs/build/profiles/<a moz-do-not-send="true"
              href="http://basic.make.org" target="_blank">basic.make.org</a>
             2014-03-01<br>
            17:51:52.904670729 +0000<br>
            +++ 3.2.8-r0/mcs/build/profiles/basic.make      2014-03-01<br>
            17:46:50.476669939 +0000<br>
            @@ -12,7 +12,7 @@<br>
             PROFILE_RUNTIME = $(with_mono_path_monolite) $(RUNTIME)<br>
             BOOTSTRAP_MCS = $(PROFILE_RUNTIME) $(RUNTIME_FLAGS)
            $(MONOLITE_MCS) -sdk:2<br>
             else<br>
            -PROFILE_RUNTIME = $(EXTERNAL_RUNTIME)<br>
            +PROFILE_RUNTIME = ${with_mono_path) $(EXTERNAL_RUNTIME)<br>
             BOOTSTRAP_MCS = $(EXTERNAL_MCS)<br>
             endif<br>
            <br>
            Could somebody please comment on whether this makes sense?
            If so I'd be<br>
            happy to provide the patch to you in whatever format is
            required.<br>
            <br>
            Thanks & Best Regards,<br>
            <br>
            Alex Lennon<br>
            Dynamic Devices Ltd<br>
            <br>
            <br>
            _______________________________________________<br>
            Mono-devel-list mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
            <a moz-do-not-send="true"
              href="http://lists.ximian.com/mailman/listinfo/mono-devel-list"
              target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <div class="preview">
        <p style="font-family: Helvetica, Arial, sans-serif; font-size:
          10px; line-height: 12px;"><a
            href="http://www.dynamicdevices.co.uk/" class="clink"><img
              src="cid:part5.04090004.06050103@dynamicdevices.co.uk"
              alt="Dynamic Devices Ltd" id="sig-logo" border="0"></a></p>
        <p style="font-family: Helvetica, Arial, sans-serif; font-size:
          10px; line-height: 12px; color: rgb(153, 153, 153);"><span
            id="name-input" style="font-weight: bold;" class="txt">Alex
            J Lennon</span> <span id="title-sep">/</span> <span
            id="title-input" style="color: #999;" class="txt">Director</span><br>
          <span id="address-input" style="color: #999;" class="txt">1
            Queensway, Liverpool L22 4RA</span> </p>
        <p style="font-family: Helvetica, Arial, sans-serif; font-size:
          10px; line-height: 12px;"> <span id="mobile-input"
            style="color: #999;" class="txt">mobile: +44 (0)7956 668178</span>
          <br>
          <br>
        </p>
        <p style="font-size: 10px; line-height: 12px; font-family:
          Helvetica, Arial, sans-serif"> <a id="linkedin-input"
            class="social" href="http://www.linkedin.com/in/alexjlennon"><img
              src="cid:part7.00040603.04050500@dynamicdevices.co.uk"
              alt="Linkedin"></a> <a id="skype-input" class="social"
            href="skype:alexjlennon?add"><img
              src="cid:part9.06060804.07000106@dynamicdevices.co.uk"
              alt="Skype"></a></p>
        <p id="disclaimer-input" style="font-family: Helvetica, Arial,
          sans-serif; color: rgb(153, 153, 153); font-size: 9px;
          line-height: 12px;width: 25%" class="txt">This e-mail message
          may contain confidential or legally privileged information and
          is intended only for the use of the intended recipient(s). Any
          unauthorized disclosure, dissemination, distribution, copying
          or the taking of any action in reliance on the information
          herein is prohibited. E-mails are not secure and cannot be
          guaranteed to be error free as they can be intercepted,
          amended, or contain viruses. Anyone who communicates with us
          by e-mail is deemed to have accepted these risks. Company Name
          is not responsible for errors or omissions in this message and
          denies any responsibility for any damage arising from the use
          of e-mail. Any opinion and other statement contained in this
          message and any attachment are solely those of the author and
          do not necessarily represent those of the company.</p>
      </div>
    </div>
  </body>
</html>