<!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=utf-8" 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: #626168;">
<a href="https://gitlab.rtems.org/c-mauderer">Christian Mauderer</a> created an issue: <a href="https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/135">#135</a>
</p>
<div class="md" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word;">
<h2 dir="auto" style="margin-top: 0; margin-bottom: 10px;" align="initial">
<a href="#summary" aria-hidden="true" class="anchor" id="user-content-summary" style="margin-top: 0; margin-left: -20px; text-decoration: none; outline: none; position: absolute; width: 20px;"></a>Summary</h2>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">I try to build 7/rtems-arm with the current RSB (<a href="https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/commit/e4ba1611f6d47041a0b9be59827b1428c4aad9a0" data-reference-type="commit" data-original="e4ba1611f6d47041a0b9be59827b1428c4aad9a0" data-link="false" data-link-reference="false" data-commit="e4ba1611f6d47041a0b9be59827b1428c4aad9a0" data-project="7" data-container="body" data-placement="top" title="rtems/config/7: Migrate to GCC 15 where possible" class="gfm gfm-commit has-tooltip" style='font-family: "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;'>e4ba1611</a>) with the additional gmp patch from <a href="https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/134" data-reference-type="issue" data-original="#134" data-link="false" data-link-reference="false" data-issue="29311" data-project="7" data-iid="134" data-namespace-path="rtems/tools/rtems-source-builder" data-project-path="rtems/tools/rtems-source-builder" data-issue-type="issue" data-container="body" data-placement="top" title="gmp doesn't compile with gcc-15 on the host" class="gfm gfm-issue">#134</a> / <a href="https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/190" data-reference-type="merge_request" data-original="!190" data-link="false" data-link-reference="false" data-merge-request="1776" data-project="7" data-project-path="rtems/tools/rtems-source-builder" data-iid="190" data-container="body" data-placement="top" title="gmp: Fix compilation with gcc-15" class="gfm gfm-merge_request">!190</a>. Building gettext doesn't work with a host gcc version 15. I get the following error in the 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: #3a383f; 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; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 1rem; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; border-radius: .25rem; background-color: inherit; 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; font-variant-ligatures: none; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">libtool: compile:  gcc -O2 -g -pipe -I/home/christian/rtems/rtems-simulation-env/external/rtems-source-builder/rtems/build/tmp/sb-1000/devel/qemu-xilinx/home/christian/rtems/rtems-simulation-env/rtems-install/7/include -I/home/christian/rtems/rtems-simulation-env/external/rtems-source-builder/rtems/build/tmp/sb-1000-internal/include -c -DLOCALEDIR=\"/home/christian/rtems/rtems-simulation-env/rtems-install/7/share/locale\" -DLOCALE_ALIAS_PATH=\"/home/christian/rtems/rtems-simulation-env/rtems-install/7/share/locale\" -DLIBDIR=\"/home/christian/rtems/rtems-simulation-env/rtems-install/7/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/home/christian/rtems/rtems-simulation-env/rtems-install/7/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I../../../gettext-0.18.3.1/gettext-runtime/intl -I.. -g -O2 -fvisibility=hidden ../../../gettext-0.18.3.1/gettext-runtime/intl/explodename.c -o explodename.o >/dev/null 2>&1</span>
<span id="LC2" class="line" lang="plaintext">In file included from ../../../gettext-0.18.3.1/gettext-runtime/intl/dcigettext.c:92:</span>
<span id="LC3" class="line" lang="plaintext">../../../gettext-0.18.3.1/gettext-runtime/intl/gettextP.h: In function 'SWAP':</span>
<span id="LC4" class="line" lang="plaintext">../../../gettext-0.18.3.1/gettext-runtime/intl/gettextP.h:118:1: warning: old-style function definition [-Wold-style-definition]</span>
<span id="LC5" class="line" lang="plaintext">  118 | SWAP (i)</span>
<span id="LC6" class="line" lang="plaintext">      | ^~~~</span>
<span id="LC7" class="line" lang="plaintext">../../../gettext-0.18.3.1/gettext-runtime/intl/dcigettext.c: At top level:</span>
<span id="LC8" class="line" lang="plaintext">../../../gettext-0.18.3.1/gettext-runtime/intl/dcigettext.c:147:7: error: conflicting types for 'getcwd'; have 'char *(void)'</span>
<span id="LC9" class="line" lang="plaintext">  147 | char *getcwd ();</span>
<span id="LC10" class="line" lang="plaintext">      |       ^~~~~~</span>
<span id="LC11" class="line" lang="plaintext">In file included from ../../../gettext-0.18.3.1/gettext-runtime/intl/dcigettext.c:65:</span>
<span id="LC12" class="line" lang="plaintext">/usr/include/unistd.h:531:14: note: previous declaration of 'getcwd' with type 'char *(char *, size_t)' {aka 'char *(char *, long unsigned int)'}</span>
<span id="LC13" class="line" lang="plaintext">  531 | extern char *getcwd (char *__buf, size_t __size) __THROW __wur;</span>
<span id="LC14" class="line" lang="plaintext">      |              ^~~~~~</span>
<span id="LC15" class="line" lang="plaintext">../../../gettext-0.18.3.1/gettext-runtime/intl/dcigettext.c: In function 'libintl_dcigettext':</span>
<span id="LC16" class="line" lang="plaintext">../../../gettext-0.18.3.1/gettext-runtime/intl/dcigettext.c:640:21: error: too many arguments to function 'getcwd'; expected 0, have 2</span>
<span id="LC17" class="line" lang="plaintext">  640 |               ret = getcwd (resolved_dirname, path_max);</span>
<span id="LC18" class="line" lang="plaintext">      |                     ^~~~~~  ~~~~~~~~~~~~~~~~</span>
<span id="LC19" class="line" lang="plaintext">../../../gettext-0.18.3.1/gettext-runtime/intl/dcigettext.c:147:7: note: declared here</span>
<span id="LC20" class="line" lang="plaintext">  147 | char *getcwd ();</span>
<span id="LC21" class="line" lang="plaintext">      |       ^~~~~~</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
<p dir="auto" style="color: #3a383f; margin: 0;" align="initial">These parts definitively changed in the current gettext. I assume that there is a reason that we use 0.18.3.1 instead of a current 0.26. So most likely we need a patch for the 0.18.3.1?</p>
</div>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #626168;">

<br>
<a href="https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/135">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/ab2618e96e1841a2c676e4c401dd0f0e/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>
<span style="color: transparent; font-size: 0; display: none; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0;">
Notification message regarding https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/135 at 1761157620
</span>
<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/135"}}</script>


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