<!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/michael.hesselberg.frandsen">Michael Frandsen</a> created an issue: <a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5128">#5128</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">When building the nucleo-h755zi bsp, it fails in test.c when getting to cpukit/posix/src/lio_listio.c</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;">[3201/4530] Linking build/arm/nucleo-h755zi/testsuites/psxtests/psxenosys.exe</span>
<span id="LC2" class="line" lang="plaintext">[3209/4530] Linking build/arm/nucleo-h755zi/testsuites/psxtests/psxfenv01.exe</span>
<span id="LC3" class="line" lang="plaintext">[3213/4530] Compiling testsuites/psxtests/psxfile01/main.c</span>
<span id="LC4" class="line" lang="plaintext">[3218/4530] Compiling testsuites/psxtests/psxfile01/test.c</span>
<span id="LC5" class="line" lang="plaintext">/home/mfrandsen/rtems/tools/6/lib/gcc/arm-rtems6/13.3.0/../../../../arm-rtems6/bin/ld: ./librtemscpu.a(lio_listio.c.61.o): in function `lio_listio':</span>
<span id="LC6" class="line" lang="plaintext">/home/mfrandsen/rtems/src/rtems/build/arm/nucleo-h755zi/../../../cpukit/posix/src/lio_listio.c:105:(.text.lio_listio+0x68): undefined reference to `rtems_aio_check_sigevent'</span>
<span id="LC7" class="line" lang="plaintext">/home/mfrandsen/rtems/tools/6/lib/gcc/arm-rtems6/13.3.0/../../../../arm-rtems6/bin/ld: /home/mfrandsen/rtems/src/rtems/build/arm/nucleo-h755zi/../../../cpukit/posix/src/lio_listio.c:148:(.text.lio_listio+0x86): undefined reference to `init_write_req'</span>
<span id="LC8" class="line" lang="plaintext">/home/mfrandsen/rtems/tools/6/lib/gcc/arm-rtems6/13.3.0/../../../../arm-rtems6/bin/ld: /home/mfrandsen/rtems/src/rtems/build/arm/nucleo-h755zi/../../../cpukit/posix/src/lio_listio.c:158:(.text.lio_listio+0x90): undefined reference to `rtems_aio_enqueue'</span>
<span id="LC9" class="line" lang="plaintext">/home/mfrandsen/rtems/tools/6/lib/gcc/arm-rtems6/13.3.0/../../../../arm-rtems6/bin/ld: /home/mfrandsen/rtems/src/rtems/build/arm/nucleo-h755zi/../../../cpukit/posix/src/lio_listio.c:125:(.text.lio_listio+0xc6): undefined reference to `init_read_req'</span>
<span id="LC10" class="line" lang="plaintext">/home/mfrandsen/rtems/tools/6/lib/gcc/arm-rtems6/13.3.0/../../../../arm-rtems6/bin/ld: /home/mfrandsen/rtems/src/rtems/build/arm/nucleo-h755zi/../../../cpukit/posix/src/lio_listio.c:135:(.text.lio_listio+0xce): undefined reference to `rtems_aio_enqueue'</span>
<span id="LC11" class="line" lang="plaintext">/home/mfrandsen/rtems/tools/6/lib/gcc/arm-rtems6/13.3.0/../../../../arm-rtems6/bin/ld: /home/mfrandsen/rtems/src/rtems/build/arm/nucleo-h755zi/../../../cpukit/posix/src/lio_listio.c:171:(.text.lio_listio+0xfa): undefined reference to `rtems_aio_completed_list_op'</span>
<span id="LC12" class="line" lang="plaintext">/home/mfrandsen/rtems/tools/6/lib/gcc/arm-rtems6/13.3.0/../../../../arm-rtems6/bin/ld: /home/mfrandsen/rtems/src/rtems/build/arm/nucleo-h755zi/../../../cpukit/posix/src/lio_listio.c:84:(.text.lio_listio+0x1d0): undefined reference to `aio_request_queue'</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">This is built using the following config.ini</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;">[DEFAULT]</span>
<span id="LC2" class="line" lang="plaintext">RTEMS_DEBUG = true</span>
<span id="LC3" class="line" lang="plaintext">BUILD_TESTS = true</span>
<span id="LC4" class="line" lang="plaintext"></span>
<span id="LC5" class="line" lang="plaintext">[arm/nucleo-h755zi]</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">A single modification has been added to optmemflashsz.yam to correct the size for adding an CM4 bsp that uses half the flash size.</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;">SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause</span>
<span id="LC2" class="line" lang="plaintext">actions:</span>
<span id="LC3" class="line" lang="plaintext">- get-integer: null</span>
<span id="LC4" class="line" lang="plaintext">- env-assign: null</span>
<span id="LC5" class="line" lang="plaintext">build-type: option</span>
<span id="LC6" class="line" lang="plaintext">copyrights:</span>
<span id="LC7" class="line" lang="plaintext">- Copyright (C) 2020 embedded brains GmbH & Co. KG</span>
<span id="LC8" class="line" lang="plaintext">default:</span>
<span id="LC9" class="line" lang="plaintext">- enabled-by:</span>
<span id="LC10" class="line" lang="plaintext">  - arm/stm32h747i-disco-m4</span>
<span id="LC11" class="line" lang="plaintext">  - arm/stm32h757i-eval-m4</span>
<span id="LC12" class="line" lang="plaintext">    arm/nucleo-h755zi</span>
<span id="LC13" class="line" lang="plaintext">  value: 0x00100000</span>
<span id="LC14" class="line" lang="plaintext">- enabled-by: true</span>
<span id="LC15" class="line" lang="plaintext">  value: 0x00200000</span>
<span id="LC16" class="line" lang="plaintext">description: |</span>
<span id="LC17" class="line" lang="plaintext">  Size of the internal flash in bytes.</span>
<span id="LC18" class="line" lang="plaintext">enabled-by: true</span>
<span id="LC19" class="line" lang="plaintext">format: '{:#010x}'</span>
<span id="LC20" class="line" lang="plaintext">links: []</span>
<span id="LC21" class="line" lang="plaintext">name: STM32H7_MEMORY_FLASH_SIZE</span>
<span id="LC22" class="line" lang="plaintext">type: build</span></code></pre>
<copy-code></copy-code>
</div>
<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">It consistently fails with above changes and config on a newly built toolset.
I issued:</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;">./waf configure --prefix=$HOME/rtems/tools/6</span>
<span id="LC2" class="line" lang="plaintext">./waf</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">$HOME/rtems/tools/6 is the installed location of the sb-set-builder command and compiles nicely without tests enabled.</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: #28272d; margin: 24px 0 16px;" align="initial">
<a href="#expected-behaviour" aria-hidden="true" class="anchor" id="user-content-expected-behaviour" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Expected behaviour</h2>
<p dir="auto" style="color: #28272d; margin: 0;" align="initial">My expectation was to try using the test features of BSP validation before making changes or adding CM4.
Once I have both BSPs from the gitlab repo, I will add the suggested mods from KGardas to play with som OpenAMP stuff.</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/rtos/rtems/-/issues/5128">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/bc456aa977823ec154efe9e9b71f7b51/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/rtos/rtems/-/issues/5128"}}</script>


</p>
</div>
</body>
</html>