<!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/joel">Joel Sherrill</a> created an issue: <a href="https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/23">#23</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">Tools for microblaze-rtems6 fail to build with the issue being an XXX version conflict that results in a compile error for gcc. This is the error message from the RSB log:</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;">libtool: compile:  gcc -O2 -g -pipe -I/home/joel/rtems-work/rtems-source-builder/rtems/build/tmp/sb-1000/6/rtems-microblaze/home/joel/rtems-work/tools/6/include -I/home/joel/rtems-work/rtems-source-builder/rtems/build/tmp/sb-1000-internal/include -DHAVE_CONFIG_H -I. -I../../../gnu-mirror-gcc-d04fe55/mpc/src -I.. -g -O2 -MT mul.lo -MD -MP -MF .deps/mul.Tpo -c ../../../gnu-mirror-gcc-d04fe55/mpc/src/mul.c -o mul.o</span>
<span id="LC2" class="line" lang="plaintext">../../../gnu-mirror-gcc-d04fe55/mpc/src/mul.c:175:1: error: conflicting types for ‘mpfr_fmma’; have ‘int(__mpfr_struct *, const __mpfr_struct *, const __mpfr_struct *, const __mpfr_struct *, const __mpfr_struct *, int,  mpfr_rnd_t)’</span>
<span id="LC3" class="line" lang="plaintext">  175 | mpfr_fmma (mpfr_ptr z, mpfr_srcptr a, mpfr_srcptr b, mpfr_srcptr c,</span>
<span id="LC4" class="line" lang="plaintext">      | ^~~~~~~~~</span>
<span id="LC5" class="line" lang="plaintext">In file included from ../../../gnu-mirror-gcc-d04fe55/mpc/src/mpc.h:25,</span>
<span id="LC6" class="line" lang="plaintext">                 from ../../../gnu-mirror-gcc-d04fe55/mpc/src/mpc-impl.h:30,</span>
<span id="LC7" class="line" lang="plaintext">                 from ../../../gnu-mirror-gcc-d04fe55/mpc/src/mul.c:22:</span>
<span id="LC8" class="line" lang="plaintext">/usr/include/mpfr.h:765:21: note: previous declaration of ‘mpfr_fmma’ with type ‘int(__mpfr_struct *, const __mpfr_struct *, const __mpfr_struct *, const __mpfr_struct *, const __mpfr_struct *, mpfr_rnd_t)’</span>
<span id="LC9" class="line" lang="plaintext">  765 | __MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr,</span>
<span id="LC10" class="line" lang="plaintext">      |                     ^~~~~~~~~</span>
<span id="LC11" class="line" lang="plaintext"></span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">I ran git bisect and it identified this as the breaking commit:</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;">423d98d2058a7dac0921f9a13113b024696236b9 is the first bad commit</span>
<span id="LC2" class="line" lang="plaintext">commit 423d98d2058a7dac0921f9a13113b024696236b9</span>
<span id="LC3" class="line" lang="plaintext">Author: Chris Johns <chrisj@rtems.org></span>
<span id="LC4" class="line" lang="plaintext">Date:   Sat Jun 8 09:04:11 2024 +1000</span>
<span id="LC5" class="line" lang="plaintext"></span>
<span id="LC6" class="line" lang="plaintext">    gdb: Build MPFR before GDB as it now depeneds on it</span>
<span id="LC7" class="line" lang="plaintext">    </span>
<span id="LC8" class="line" lang="plaintext">    Closes #7</span>
<span id="LC9" class="line" lang="plaintext"></span>
<span id="LC10" class="line" lang="plaintext"> bare/config/devel/expat-internal.bset       | 14 +++++++++</span>
<span id="LC11" class="line" lang="plaintext"> bare/config/devel/gmp-internal.bset         | 14 +++++++++</span>
<span id="LC12" class="line" lang="plaintext"> bare/config/devel/mpfr-4.2.1.cfg            | 18 +++++++++++</span>
<span id="LC13" class="line" lang="plaintext"> bare/config/devel/mpfr-internal.bset        | 14 +++++++++</span>
<span id="LC14" class="line" lang="plaintext"> rtems/config/6/rtems-default.bset           |  1 +</span>
<span id="LC15" class="line" lang="plaintext"> rtems/config/tools/rtems-default-tools.bset | 16 ++++++++--</span>
<span id="LC16" class="line" lang="plaintext"> source-builder/config/expat-2-1.cfg         | 47 ++++++++++++++++++++++++---</span>
<span id="LC17" class="line" lang="plaintext"> source-builder/config/gcc-13.cfg            |  8 ++---</span>
<span id="LC18" class="line" lang="plaintext"> source-builder/config/gcc-common-1.cfg      | 16 ++--------</span>
<span id="LC19" class="line" lang="plaintext"> source-builder/config/gdb-common-1.cfg      |  2 +-</span>
<span id="LC20" class="line" lang="plaintext"> source-builder/config/gmp.cfg               | 48 +++++++++++++++++++++++++---</span>
<span id="LC21" class="line" lang="plaintext"> source-builder/config/mpfr.cfg              | 49 ++++++++++++++++++++++++++---</span>
<span id="LC22" class="line" lang="plaintext"> source-builder/defaults.mc                  | 19 +++++++----</span>
<span id="LC23" class="line" lang="plaintext"> 13 files changed, 223 insertions(+), 43 deletions(-)</span>
<span id="LC24" class="line" lang="plaintext"> create mode 100644 bare/config/devel/expat-internal.bset</span>
<span id="LC25" class="line" lang="plaintext"> create mode 100644 bare/config/devel/gmp-internal.bset</span>
<span id="LC26" class="line" lang="plaintext"> create mode 100644 bare/config/devel/mpfr-4.2.1.cfg</span>
<span id="LC27" class="line" lang="plaintext"> create mode 100644 bare/config/devel/mpfr-internal.bset</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">This is the git bisect log:</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;">$ git bisect log</span>
<span id="LC2" class="line" lang="plaintext">git bisect start</span>
<span id="LC3" class="line" lang="plaintext"># status: waiting for both good and bad commits</span>
<span id="LC4" class="line" lang="plaintext"># bad: [c085b3bafb66e7cf2f9afd8b2622b5c1799e1616] rtems-tools: Fetch rtems-syms improvements</span>
<span id="LC5" class="line" lang="plaintext">git bisect bad c085b3bafb66e7cf2f9afd8b2622b5c1799e1616</span>
<span id="LC6" class="line" lang="plaintext"># status: waiting for good commit(s), bad commit known</span>
<span id="LC7" class="line" lang="plaintext"># good: [93321bacf219039a02b3150c83ed1114d5bd1657] Change README to markdown</span>
<span id="LC8" class="line" lang="plaintext">git bisect good 93321bacf219039a02b3150c83ed1114d5bd1657</span>
<span id="LC9" class="line" lang="plaintext"># good: [b7be268a79710ad267e967a112644b105b2c4133] config/rtems-kernel: Update for gitlab</span>
<span id="LC10" class="line" lang="plaintext">git bisect good b7be268a79710ad267e967a112644b105b2c4133</span>
<span id="LC11" class="line" lang="plaintext"># bad: [80f8bdb11dd373dfa26376c1beb378f0c16d7943] bare/expat-internal: Fix the default version</span>
<span id="LC12" class="line" lang="plaintext">git bisect bad 80f8bdb11dd373dfa26376c1beb378f0c16d7943</span>
<span id="LC13" class="line" lang="plaintext"># bad: [423d98d2058a7dac0921f9a13113b024696236b9] gdb: Build MPFR before GDB as it now depeneds on it</span>
<span id="LC14" class="line" lang="plaintext">git bisect bad 423d98d2058a7dac0921f9a13113b024696236b9</span>
<span id="LC15" class="line" lang="plaintext"># good: [d68c65b2e03ac7512922dc167f3573badc7d1cfe] config/rtems-net-services: Update for gitlab</span>
<span id="LC16" class="line" lang="plaintext">git bisect good d68c65b2e03ac7512922dc167f3573badc7d1cfe</span>
<span id="LC17" class="line" lang="plaintext"># good: [f39e9584775a0bccdbd6959a9c55d473330d08e2] Migrate devel links to gitlab</span>
<span id="LC18" class="line" lang="plaintext">git bisect good f39e9584775a0bccdbd6959a9c55d473330d08e2</span>
<span id="LC19" class="line" lang="plaintext"># first bad commit: [423d98d2058a7dac0921f9a13113b024696236b9] gdb: Build MPFR before GDB as it now depeneds on it</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">The microblaze target is using a specific version of binutils and gcc with patches extracted from the Xilinx repo. Updating to FSF versions is not possible. There is an effort underway to submit work but the person who reached out to the binutils and gcc communities says it may take a year. So we are stuck needing to get the Microblaze target back to its state before this patch.</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 0 16px;" align="initial">cd ```
rtems
../source-builder/sb-set-builder --prefix=${HOME}/rtems-work/tools/6 --log=l-microblaze.txt  6/rtems-microblaze</p>
<div class="gl-relative markdown-code-block js-markdown-code" style="margin-bottom: 0;">
<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;"></span>
<span id="LC2" class="line" lang="plaintext">/milestone %6.1</span></code></pre>
<copy-code></copy-code>
</div>
</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-source-builder/-/issues/23">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/97628ce2732eb711da74fe6384bd2e4f/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-source-builder/-/issues/23"}}</script>


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