<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>
<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">
<p class="details" style="font-style: italic; color: #737278;">
<a href="https://gitlab.rtems.org/frank_k">Frank Kuehndel</a> created an issue: <a href="https://gitlab.rtems.org/rtems/tools/rtems-tools/-/issues/20">#20</a>
</p>
<div class="md" style="position: relative; z-index: 1; color: #28272d; word-wrap: break-word;">
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: .3em; border-bottom-width: 1px; border-bottom-color: #bfbfc3; border-bottom-style: solid; color: #28272d; margin: 0 0 16px;" align="initial">
<a href="#summary" aria-hidden="true" class="anchor" id="user-content-summary" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Summary</h2>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">The basis is an RTEMS 7 build with the tools build by RSB 7. Trying to run the Rust Hello World SPARC example fails (note the line with <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0; font-weight: inherit; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>6.0.not_released</code>):</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" v-pre="true" style='display: block; font-size: 14px; color: #28272d; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: .25rem; white-space: pre; margin-top: 0; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">$ rtems-run --rtems-bsp=leon3-sis hello_rtems_sparc.exe</span>
<span id="LC2" class="line" lang="plaintext">RTEMS Testing - Run, 6.0.not_released</span>
<span id="LC3" class="line" lang="plaintext"> Command Line: /opt/rtems/7/bin/rtems-run --rtems-bsp=leon3-sis hello_rtems_sparc.exe</span>
<span id="LC4" class="line" lang="plaintext"> Host: Linux 7cd9e47cd4ec 6.4.0-150600.23.33-default #1 SMP PREEMPT_DYNAMIC Thu Jan 9 14:10:22 UTC 2025 (ba46628) x86_64</span>
<span id="LC5" class="line" lang="plaintext"> Python: 3.12.3 (main, Jan 17 2025, 18:03:48) [GCC 13.3.0]</span>
<span id="LC6" class="line" lang="plaintext">Host: Linux-6.4.0-150600.23.33-default-x86_64-with-glibc2.39 (Linux 7cd9e47cd4ec 6.4.0-150600.23.33-default #1 SMP PREEMPT_DYNAMIC Thu Jan 9 14:10:22 UTC 2025 (ba46628) x86_64 x86_64)</span>
<span id="LC7" class="line" lang="plaintext">Run time : 0:00:00.253992</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">Running the same example "manually" using <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0; font-weight: inherit; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>sparc-rtems7-sis</code> works flawlessly:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" v-pre="true" style='display: block; font-size: 14px; color: #28272d; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: .25rem; white-space: pre; margin-top: 0; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">$ sparc-rtems7-sis -leon3 -nouartrx -r m 4 hello_rtems_sparc.exe</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext"> SIS - SPARC/RISCV instruction simulator 2.30, copyright Jiri Gaisler 2020</span>
<span id="LC4" class="line" lang="plaintext"> Bug-reports to jiri@gaisler.se</span>
<span id="LC5" class="line" lang="plaintext"></span>
<span id="LC6" class="line" lang="plaintext"> LEON3 emulation enabled, 1 cpus online, delta 50 clocks</span>
<span id="LC7" class="line" lang="plaintext"></span>
<span id="LC8" class="line" lang="plaintext"> Loaded hello_rtems_sparc.exe, entry 0x40000000</span>
<span id="LC9" class="line" lang="plaintext">Hello from Rust</span>
<span id="LC10" class="line" lang="plaintext"></span>
<span id="LC11" class="line" lang="plaintext">[ RTEMS shutdown ]</span>
<span id="LC12" class="line" lang="plaintext">CPU: 0</span>
<span id="LC13" class="line" lang="plaintext">RTEMS version: 7.0.0.fb604515050282bb00e3d311d811730881f8af8e</span>
<span id="LC14" class="line" lang="plaintext">RTEMS tools: 13.3.0 20240521 (RTEMS 7, RSB d60fc2742d084cbf70428f387da4676aa1cc3db5, Newlib 1b3dcfd)</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">Note: The Risc-V example runs without issues: <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0; font-weight: inherit; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>rtems-run --rtems-bsp=rv64imafdc hello_rtems_riscv.exe</code> but also prints <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; font-weight: inherit; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>RTEMS Testing - Run, 6.0.not_released</code>.</p>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">This bug was found by our CI job executing the exact instructions from the Rust documentation in the <a href="https://docs.rtems.org/branches/master/user/rust/bare-metal.html#bare-metal-rust-with-rtems" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0;">rtems user manual</a>.</p>
<table dir="auto" style="border-spacing: 0; text-align: initial; color: #28272d; width: auto; display: block; overflow-x: auto; border-collapse: collapse; margin: 16px 0; border-width: 0;">
<thead style="margin-top: 0;">
<tr style="margin-top: 0;">
<th style="line-height: 20px; margin-top: 0; padding: 10px 16px; border-color: #dcdcde #dcdcde #bfbfc3; border-style: solid; border-width: 1px 1px 2px;" bgcolor="#fbfafd" valign="top"></th>
<th style="line-height: 20px; padding: 10px 16px; border-color: #dcdcde #dcdcde #bfbfc3; border-style: solid; border-width: 1px 1px 2px;" bgcolor="#fbfafd" valign="top">Version/Commit</th>
</tr>
</thead>
<tbody style="background-color: #ffffff;">
<tr style="margin-top: 0;">
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">Date:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">2025-01-31T18:56:22+01:00</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rtems-docs:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">c34d0c8b42fedc2d7fec65c7d328d49269650754</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rtems-source-builder:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">d60fc2742d084cbf70428f387da4676aa1cc3db5</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rtems:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">fb604515050282bb00e3d311d811730881f8af8e</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">cargo:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">1.84.1 (66221abde 2024-11-19)</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rustc:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">1.84.1 (e71f9a9a9 2025-01-27)</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">rustc-nightly:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">1.86.0-nightly (a730edcd6 2025-01-30)</td>
</tr>
<tr>
<td style="line-height: 20px; margin-top: 0; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">OS:</td>
<td style="line-height: 20px; padding: 10px 16px; border: 1px solid #dcdcde;" valign="top">Ubuntu 24.04.1 LTS</td>
</tr>
</tbody>
</table>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: .3em; border-bottom-width: 1px; border-bottom-color: #bfbfc3; border-bottom-style: solid; color: #28272d; margin: 24px 0 16px;" align="initial">
<a href="#steps-to-reproduce" aria-hidden="true" class="anchor" id="user-content-steps-to-reproduce" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Steps to reproduce</h2>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">Executing the exact instructions from the <a href="https://docs.rtems.org/branches/master/user/rust/bare-metal.html#bare-metal-rust-with-rtems" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0;">rtems user manual</a> (with RTEMS/RSB 7). The error appears in the very last step when executing <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; font-weight: inherit; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>rtems-run --rtems-bsp=leon3-sis hello_rtems_sparc.exe</code>.</p>
<h3 dir="auto" style="font-size: 1.3em; margin: 24px 0 0;" align="initial">
<a href="#pre-set-options" aria-hidden="true" class="anchor" id="user-content-pre-set-options" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Pre-set options</h3>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #737278;">
—
<br>
<a href="https://gitlab.rtems.org/rtems/tools/rtems-tools/-/issues/20">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.rtems.org">gitlab.rtems.org</a>. <a href="https://gitlab.rtems.org/-/sent_notifications/1c2a66180a571edcf3e8c35e2f1a58c0/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.rtems.org/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.rtems.org/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.rtems.org/rtems/tools/rtems-tools/-/issues/20"}}</script>
</p>
</div>
</body>
</html>