<!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: var(--default-regular-font, "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: var(--default-regular-font, "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/docs/rtems-docs/-/issues/32">#32</a>
</p>
<div class="md" style="color: #333238; 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: #333238; 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: #333238; 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> results in a <code style='font-size: 90%; color: #1f1e24; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; font-weight: inherit; font-family: var(--default-mono-font, "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;'>hello_rtems_sparc.exe</code> executable that when run does not print <code style='font-size: 90%; color: #1f1e24; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; font-weight: inherit; font-family: var(--default-mono-font, "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;'>Hello from Rust</code> (but crashes)? Currently, the output looks like:</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: #333238; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: var(--default-mono-font, "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: var(--default-mono-font, "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 Testing - Run, 6.0.not_released</span>
<span id="LC2" class="line" lang="plaintext"> Command Line: /opt/rtems/6/bin/rtems-run --rtems-bsp=leon3-sis hello_rtems_sparc.exe</span>
<span id="LC3" class="line" lang="plaintext"> Host: Linux dbcc3c47aca7 5.14.21-150500.55.68-default #1 SMP PREEMPT_DYNAMIC Wed Jun 5 21:39:05 UTC 2024 (40e256a) x86_64</span>
<span id="LC4" class="line" lang="plaintext"> Python: 3.12.3 (main, Jul 31 2024, 17:43:48) [GCC 13.2.0]</span>
<span id="LC5" class="line" lang="plaintext">Host: Linux-5.14.21-150500.55.68-default-x86_64-with-glibc2.39 (Linux dbcc3c47aca7 5.14.21-150500.55.68-default #1 SMP PREEMPT_DYNAMIC Wed Jun 5 21:39:05 UTC 2024 (40e256a) x86_64 x86_64)</span>
<span id="LC6" class="line" lang="plaintext"> SIS - SPARC/RISCV instruction simulator 2.30, copyright Jiri Gaisler 2020</span>
<span id="LC7" class="line" lang="plaintext"> Bug-reports to jiri@gaisler.se</span>
<span id="LC8" class="line" lang="plaintext"> LEON3 emulation enabled, 4 cpus online, delta 50 clocks</span>
<span id="LC9" class="line" lang="plaintext"> Loaded hello_rtems_sparc.exe, entry 0x40000000</span>
<span id="LC10" class="line" lang="plaintext">cpu 0 in error mode (tt = 0x02)</span>
<span id="LC11" class="line" lang="plaintext"> 186150 40019314: 02d48b00 unknown opcode: 0x02d48b00</span>
<span id="LC12" class="line" lang="plaintext">Run time : 0:00:00.254975</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">But it should look like:</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: #333238; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: var(--default-mono-font, "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: var(--default-mono-font, "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 Testing - Run, 6.0.not_released</span>
<span id="LC2" class="line" lang="plaintext"> Command Line: /opt/rtems/6/bin/rtems-run --rtems-bsp=leon3-sis hello_rtems_sparc.exe</span>
<span id="LC3" class="line" lang="plaintext"> Host: Linux 22a657516d60 5.14.21-150500.55.68-default #1 SMP PREEMPT_DYNAMIC Wed Jun 5 21:39:05 UTC 2024 (40e256a) x86_64</span>
<span id="LC4" class="line" lang="plaintext"> Python: 3.12.3 (main, Apr 10 2024, 05:33:47) [GCC 13.2.0]</span>
<span id="LC5" class="line" lang="plaintext">Host: Linux-5.14.21-150500.55.68-default-x86_64-with-glibc2.39 (Linux 22a657516d60 5.14.21-150500.55.68-default #1 SMP PREEMPT_DYNAMIC Wed Jun 5 21:39:05 UTC 2024 (40e256a) x86_64 x86_64)</span>
<span id="LC6" class="line" lang="plaintext"> SIS - SPARC/RISCV instruction simulator 2.30, copyright Jiri Gaisler 2020</span>
<span id="LC7" class="line" lang="plaintext"> Bug-reports to jiri@gaisler.se</span>
<span id="LC8" class="line" lang="plaintext"> LEON3 emulation enabled, 4 cpus online, delta 50 clocks</span>
<span id="LC9" class="line" lang="plaintext"> Loaded hello_rtems_sparc.exe, entry 0x40000000</span>
<span id="LC10" class="line" lang="plaintext">Hello from Rust</span>
<span id="LC11" class="line" lang="plaintext">cpu 0 in error mode (tt = 0x80)</span>
<span id="LC12" class="line" lang="plaintext"> 218950 40019060: 91d02000 ta 0x0</span>
<span id="LC13" class="line" lang="plaintext">Run time : 0:00:00.255040</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">The first known buggy build was:</p>
<table dir="auto" style="border-spacing: 0; text-align: initial; color: #333238; 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/Commmit</th>
</tr>
</thead>
<tbody style="background-color: #fff;">
<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">2024-08-01T02:33:11+02: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"><a href="https://gitlab.rtems.org/rtems/docs/rtems-docs/-/commit/05f9a3d56b45e700104d22bf40881ef89fff5d91" data-reference-type="commit" data-original="05f9a3d56b45e700104d22bf40881ef89fff5d91" data-link="false" data-link-reference="false" data-commit="05f9a3d56b45e700104d22bf40881ef89fff5d91" data-project="12" data-container="body" data-placement="top" title="Remove old references to devel.rtems.org" class="gfm gfm-commit has-tooltip" style='font-family: var(--default-mono-font, "GitLab Mono"),"JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; font-variant-ligatures: none; font-size: 95%; margin-top: 0;'>05f9a3d5</a></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">892e966e4331f977cca8c83fc3bc22c8fa9d2754</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">30ae3ef9dae36d6bfce650567af55000ca018650</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.80.0 (376290515 2024-07-16)</td>
</tr>
</tbody>
</table>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">The last known good build was:</p>
<table dir="auto" style="border-spacing: 0; text-align: initial; color: #333238; 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/Commmit</th>
</tr>
</thead>
<tbody style="background-color: #fff;">
<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">2024-07-29T02:33:15+02: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"><a href="https://gitlab.rtems.org/rtems/docs/rtems-docs/-/commit/05f9a3d56b45e700104d22bf40881ef89fff5d91" data-reference-type="commit" data-original="05f9a3d56b45e700104d22bf40881ef89fff5d91" data-link="false" data-link-reference="false" data-commit="05f9a3d56b45e700104d22bf40881ef89fff5d91" data-project="12" data-container="body" data-placement="top" title="Remove old references to devel.rtems.org" class="gfm gfm-commit has-tooltip" style='font-family: var(--default-mono-font, "GitLab Mono"),"JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; font-variant-ligatures: none; font-size: 95%; margin-top: 0;'>05f9a3d5</a></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">892e966e4331</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">807070a696a93c1dae09f527efd2a516b01d7277</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.80.0 (376290515 2024-07-16)</td>
</tr>
</tbody>
</table>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">The <em style="margin-top: 0;">rtems, rtems-source-builder, rtems-docs</em> git commits seem to not affect the outcome. Hence, I assume something has changed in Rust. Since the build for SPARC still uses Rust "nightly", its worth a try whether the "nightly" is still needed.</p>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">The build of hello world for Risc V (which is also part of the rtems user manual instructions) is not affected and works fine.</p>
<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: #333238; 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: #333238; margin: 0;" align="initial">Follow the instructions in <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;">Bare Metal Rust with RTEMS</a></p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #737278;">
—
<br>
<a href="https://gitlab.rtems.org/rtems/docs/rtems-docs/-/issues/32">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/efb2c982276113b6fbac055d7b6fa4c5/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/docs/rtems-docs/-/issues/32"}}</script>
</p>
</div>
</body>
</html>