<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=4065&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Why rustc does not work under non root account?]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=4065</link>
		<description><![CDATA[The most recent posts in Why rustc does not work under non root account?.]]></description>
		<lastBuildDate>Mon, 18 Jan 2021 17:50:53 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Why rustc does not work under non root account?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=26889#p26889</link>
			<description><![CDATA[<p>I&#039;ve just tested your sample program using the ASCII live ISO image and it compiles and runs just fine for the non-privileged user.</p><p>From this I can deduce that your system has been subtly broken by your reckless and excessive use of backported packages.</p><p>EDIT: I told you so <img src="http://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 18 Jan 2021 17:50:53 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=26889#p26889</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why rustc does not work under non root account?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=26888#p26888</link>
			<description><![CDATA[<p>Well, I installed from Internet using standard method described at:</p><p><a href="https://riptutorial.com/rust/example/27821/setting-up" rel="nofollow">https://riptutorial.com/rust/example/27821/setting-up</a></p><p>and everything works fine.</p>]]></description>
			<author><![CDATA[dummy@example.com (bimon)]]></author>
			<pubDate>Mon, 18 Jan 2021 17:30:03 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=26888#p26888</guid>
		</item>
		<item>
			<title><![CDATA[Why rustc does not work under non root account?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=26871#p26871</link>
			<description><![CDATA[<p>Hello,</p><p>I have installed following versions of Rust packages:</p><div class="codebox"><pre><code>ii  libstd-rust-1.34:amd64                                           1.34.2+dfsg1-1~deb9u1                                    amd64        Rust standard libraries                                                                                                             
ii  libstd-rust-1.41:amd64                                           1.41.1+dfsg1-1~deb9u1                                    amd64        Rust standard libraries                                                                                                             
ii  libstd-rust-dev:amd64                                            1.41.1+dfsg1-1~deb9u1                                    amd64        Rust standard libraries - development files                                                                                         
ii  rust-doc                                                         1.41.1+dfsg1-1~deb9u1                                    all          Rust systems programming language - Documentation                                                                                   
ii  rust-gdb                                                         1.41.1+dfsg1-1~deb9u1                                    all          Rust debugger (gdb)                                                                                                                 
ii  rust-lldb                                                        1.41.1+dfsg1-1~deb9u1                                    all          Rust debugger (lldb)                                                                                                                
ii  rust-src                                                         1.41.1+dfsg1-1~deb9u1                                    all          Rust systems programming language - source code                                                                                     
ii  rustc                                                            1.41.1+dfsg1-1~deb9u1                                    amd64        Rust systems programming language   </code></pre></div><p>Compiling from root works fine, but from a non root user I get following error:</p><div class="codebox"><pre><code>rustc main.rs
error: linking with `cc` failed: exit code: 1
  |
  = note: &quot;cc&quot; &quot;-Wl,--as-needed&quot; &quot;-Wl,-z,noexecstack&quot; &quot;-m64&quot; &quot;-L&quot; &quot;/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib&quot; &quot;main.main.7rcbfp3g-cgu.0.rcgu.o&quot; &quot;m                                                                                      ain.main.7rcbfp3g-cgu.1.rcgu.o&quot; &quot;main.main.7rcbfp3g-cgu.2.rcgu.o&quot; &quot;main.main.7rcbfp3g-cgu.3.rcgu.o&quot; &quot;main.main.7rcbfp3g-cgu.4.rcgu.o&quot; &quot;main.main.7rcbf                                                                                      p3g-cgu.5.rcgu.o&quot; &quot;-o&quot; &quot;main&quot; &quot;main.4s37gsrti678ik8u.rcgu.o&quot; &quot;-Wl,--gc-sections&quot; &quot;-pie&quot; &quot;-Wl,-zrelro&quot; &quot;-Wl,-znow&quot; &quot;-nodefaultlibs&quot; &quot;-L&quot; &quot;/usr/lib/rust                                                                                      lib/x86_64-unknown-linux-gnu/lib&quot; &quot;-Wl,--start-group&quot; &quot;-Wl,-Bstatic&quot; &quot;/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-2b8ce385717c133f.rlib&quot; &quot;/us                                                                                      r/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-bfdb904b514c26fa.rlib&quot; &quot;/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-7519d6bf                                                                                      50917898.rlib&quot; &quot;/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-16e1de1aad2c3dfc.rlib&quot; &quot;/usr/lib/rustlib/x86_64-unknown-lin                                                                                      ux-gnu/lib/libbacktrace-8ed76b3ed1b96667.rlib&quot; &quot;/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-2b9293c7b8f41cd3.rlib&quot; &quot;/usr/lib/rustli                                                                                      b/x86_64-unknown-linux-gnu/lib/librustc_demangle-854234105dc1a978.rlib&quot; &quot;/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-a6a6d047de166dab.rlib                                                                                      &quot; &quot;/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-1c0cf4a4fbb9635d.rlib&quot; &quot;/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-efaf138ef5c1d                                                                                      0b8.rlib&quot; &quot;/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-e28446567bdd0cc8.rlib&quot; &quot;/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_w                                                                                      orkspace_core-7d724940c36772e7.rlib&quot; &quot;/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-ef8dee7216df56b3.rlib&quot; &quot;-Wl,--end-group&quot; &quot;/usr/lib/rustlib                                                                                      /x86_64-unknown-linux-gnu/lib/libcompiler_builtins-a5f50861fed71e63.rlib&quot; &quot;-Wl,-Bdynamic&quot; &quot;-ldl&quot; &quot;-lrt&quot; &quot;-lpthread&quot; &quot;-lgcc_s&quot; &quot;-lc&quot; &quot;-lm&quot; &quot;-lrt&quot; &quot;-lpt                                                                                      hread&quot; &quot;-lutil&quot; &quot;-lutil&quot;
  = note: collect2: fatal error: ld terminated with signal 4 [Illegal instruction]
          compilation terminated.

error: aborting due to previous error</code></pre></div><p>Earlier I thought my old CPU is not supported by rust compiler, but since root is able to compile then CPU is not related to the problem?</p><p>Is it a simple test program, which should compile fine:</p><div class="codebox"><pre><code>fn main() {                                                                                                                                                                                                                                 
    println!(&quot;Hello, world!&quot;);                                                                                                                                                                                                              
}  </code></pre></div><p>Compiled binary under root displays what is expected when run:</p><div class="codebox"><pre><code>./main 
Hello, world!</code></pre></div><p>My system is after:</p><div class="codebox"><pre><code>apt-get dist-upgrade -t=ascii-backports</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (bimon)]]></author>
			<pubDate>Mon, 18 Jan 2021 00:23:56 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=26871#p26871</guid>
		</item>
	</channel>
</rss>
