<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 23, 2018 at 8:21 AM, Michal Nowak <span dir="ltr"><<a href="mailto:mnowak@startmail.com" target="_blank">mnowak@startmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 08/21/18 11:16 PM, Aurélien Larcher wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<br>
On Tue, Aug 21, 2018 at 11:10 PM, Michal Nowak <<a href="mailto:mnowak@startmail.com" target="_blank">mnowak@startmail.com</a> <mailto:<a href="mailto:mnowak@startmail.com" target="_blank">mnowak@startmail.com</a>>> wrote:<br>
<br>
    On 08/16/18 07:31 PM, Aurélien Larcher wrote:<br>
<br>
<br>
<br>
        On Thu, Aug 16, 2018 at 7:18 PM, Aurélien Larcher<br>
        <<a href="mailto:aurelien.larcher@gmail.com" target="_blank">aurelien.larcher@gmail.com</a> <mailto:<a href="mailto:aurelien.larcher@gmail.com" target="_blank">aurelien.larcher@gmail<wbr>.com</a>><br></span>
        <mailto:<a href="mailto:aurelien.larcher@gmail.com" target="_blank">aurelien.larcher@gmail<wbr>.com</a><div><div class="h5"><br>
        <mailto:<a href="mailto:aurelien.larcher@gmail.com" target="_blank">aurelien.larcher@gmail<wbr>.com</a>>>> wrote:<br>
<br>
<br>
<br>
<br>
<br>
        <a href="https://github.com/cgrzemba/oi-userland/tree/rust/components/developer/rust" rel="noreferrer" target="_blank">https://github.com/cgrzemba/oi<wbr>-userland/tree/rust/components<wbr>/developer/rust</a><br>
        <<a href="https://github.com/cgrzemba/oi-userland/tree/rust/components/developer/rust" rel="noreferrer" target="_blank">https://github.com/cgrzemba/o<wbr>i-userland/tree/rust/component<wbr>s/developer/rust</a>><br>
                            <<a href="https://github.com/cgrzemba/oi-userland/tree/rust/components/developer/rust" rel="noreferrer" target="_blank">https://github.com/cgrzemba/o<wbr>i-userland/tree/rust/component<wbr>s/developer/rust</a><br>
        <<a href="https://github.com/cgrzemba/oi-userland/tree/rust/components/developer/rust" rel="noreferrer" target="_blank">https://github.com/cgrzemba/o<wbr>i-userland/tree/rust/component<wbr>s/developer/rust</a>>><br>
<br>
<br>
                 I remember now updating my recipe to yours but I needed<br>
        some<br>
                 configuration tweaks to deal with a few issues:<br>
                 - /usr/bin/cc is default used as linker but it is<br>
        sunstudio 12.1<br>
                 so you need to override it,<br>
                 - AR should be specified,<br>
                 - this recipe assumes that GCC runtime libraries are in<br>
                 /usr/lib/$(MACH64) which is not true for us with GCC >= 6,<br>
                 - the linker should be specified for the target as it<br>
        is not<br>
                 passed from the global settings.<br>
<br>
                 Also rustc will eat up to 3GB of RAM so the host should<br>
        have<br>
                 enough memory.<br>
<br>
<br>
             Just rebased my change over Carsten's branch:<br>
<br>
        <a href="https://github.com/alarcher/oi-userland/tree/rust123" rel="noreferrer" target="_blank">https://github.com/alarcher/oi<wbr>-userland/tree/rust123</a><br>
        <<a href="https://github.com/alarcher/oi-userland/tree/rust123" rel="noreferrer" target="_blank">https://github.com/alarcher/o<wbr>i-userland/tree/rust123</a>><br>
             <<a href="https://github.com/alarcher/oi-userland/tree/rust123" rel="noreferrer" target="_blank">https://github.com/alarcher/o<wbr>i-userland/tree/rust123</a><br>
        <<a href="https://github.com/alarcher/oi-userland/tree/rust123" rel="noreferrer" target="_blank">https://github.com/alarcher/o<wbr>i-userland/tree/rust123</a>>><br>
<br>
<br>
        More work:<br>
<br></div></div>
        helios> rustc <a href="http://hello.rs" rel="noreferrer" target="_blank">hello.rs</a> <<a href="http://hello.rs" rel="noreferrer" target="_blank">http://hello.rs</a>> <<a href="http://hello.rs" rel="noreferrer" target="_blank">http://hello.rs</a>><span class=""><br>
        error[E0463]: can't find crate for `std`<br>
<br>
        error: aborting due to previous error<br>
<br>
        helios> ls /usr/lib/amd64/rustlib/x86_64-<wbr>sun-solaris/<br>
        analysis/ lib/<br>
<br>
        but rust looks for libraries in /usr/lib/rustlib<br>
<br>
        Symlinked like a piggy to check it and it is the problem...<br>
<br>
        Also rustc does not put /usr/lib/amd64 in the search path so<br>
        executables are broken.<br>
<br>
<br>
    I build Aurélien's branch inside a zone, but it fails for me with:<br>
<br>
    error: could not exec the linker `/usr/gcc/6/bin/gcc`: Not enough<br>
    space (os error 12)<br>
<br>
    For full log, see<br>
    <a href="https://paste.ec/paste/JxbabBm7#Kn+gh58pAwBhweYcTzrk6gzVSH7Rc6Npg2eXEmoCMv1" rel="noreferrer" target="_blank">https://paste.ec/paste/JxbabBm<wbr>7#Kn+gh58pAwBhweYcTzrk6gzVSH7R<wbr>c6Npg2eXEmoCMv1</a><br></span>
    <<a href="https://paste.ec/paste/JxbabBm7#Kn+gh58pAwBhweYcTzrk6gzVSH7Rc6Npg2eXEmoCMv1" rel="noreferrer" target="_blank">https://paste.ec/paste/JxbabB<wbr>m7#Kn+gh58pAwBhweYcTzrk6gzVSH7<wbr>Rc6Npg2eXEmoCMv1</a>>.<span class=""><br>
<br>
    I am quite sure that I have plenty of disk space available:<br>
<br>
    $ df -h .<br>
    Filesystem             Size   Used  Available Capacity  Mounted on<br>
    rpool/zones/build/build-userla<wbr>nd/ROOT/zbe-125<br>
                            114G  14.7G      74.9G    17%    /<br>
<br>
    Any idea what the problem might be? I build it on Lenovo X220 (4<br>
    cores, 6 GB of memory + 3 GB of swap), OS is updated to latest<br>
    packages. I don't think I limited the zone in any way when I created it.<br>
<br>
<br>
<br>
I have seen one instance of rustc take more than 3GB so you probably ran out of mem.<br>
</span></blockquote>
<br>
I guess that's the only logical explanation, especially when the same component sources work for you. Hence I don't have a suitable system to work this on.<br>
<br>
I also tried to bump rust to 1.28 but failed short as "-nodefaultlibs" is getting my way: <a href="https://github.com/mno-hime/oi-userland/tree/rust/components/developer/rust" rel="noreferrer" target="_blank">https://github.com/mno-hime/oi<wbr>-userland/tree/rust/components<wbr>/developer/rust</a>.<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>Is it again some config picking /usr/bin/cc instead of the specified compiler?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<br>
M.</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<wbr>_________________<br>
oi-dev mailing list<br>
<a href="mailto:oi-dev@openindiana.org" target="_blank">oi-dev@openindiana.org</a><br>
<a href="https://openindiana.org/mailman/listinfo/oi-dev" rel="noreferrer" target="_blank">https://openindiana.org/mailma<wbr>n/listinfo/oi-dev</a></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font style="font-family:courier new,monospace" size="1">---<br>Praise the Caffeine embeddings<br></font></div></div></div></div>
</div></div>