<!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/acidicneko">Ayush Yadav</a> created an issue: <a href="https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/192">#192</a>
</p>
<div class="md" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word;">
<h2 id="user-content-summary" dir="auto" style="margin-top: 0; margin-bottom: 10px;" align="initial">Summary<a href="#summary" aria-label="Link to heading 'Summary'" data-heading-content="Summary" class="anchor" style="margin-top: 0;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">I have been trying to build the <code style="font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0; font-weight: inherit; overflow-wrap: break-word; white-space: break-spaces; 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: keep-all; padding: 0.125rem 0.25rem;">amd/amd-kria-k26</code> target on freeBSD VM.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">I have been running into this error since:</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; 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; font-variant-ligatures: none; overflow-wrap: normal; padding: unset;"><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">ld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC2" class="line" lang="plaintext">>>> defined in libfdt/fdt_check.o</span>
<span id="LC3" class="line" lang="plaintext">>>> referenced by fdt_check.c:49 (libfdt/fdt_check.c:49)</span>
<span id="LC4" class="line" lang="plaintext">>>>               libfdt/fdt_check.o:(fdt_check_full)</span>
<span id="LC5" class="line" lang="plaintext"></span>
<span id="LC6" class="line" lang="plaintext">ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC7" class="line" lang="plaintext">>>> defined in libfdt/fdt_check.o</span>
<span id="LC8" class="line" lang="plaintext">>>> referenced by fdt_check.c</span>
<span id="LC9" class="line" lang="plaintext">>>>               libfdt/fdt_check.o:(.rodata+0x0)</span>
<span id="LC10" class="line" lang="plaintext"></span>
<span id="LC11" class="line" lang="plaintext">ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC12" class="line" lang="plaintext">>>> defined in libfdt/fdt_check.o</span>
<span id="LC13" class="line" lang="plaintext">>>> referenced by fdt_check.c</span>
<span id="LC14" class="line" lang="plaintext">>>>               libfdt/fdt_check.o:(.rodata+0x8)</span>
<span id="LC15" class="line" lang="plaintext"></span>
<span id="LC16" class="line" lang="plaintext">ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC17" class="line" lang="plaintext">>>> defined in libfdt/fdt_check.o</span>
<span id="LC18" class="line" lang="plaintext">>>> referenced by fdt_check.c</span>
<span id="LC19" class="line" lang="plaintext">>>>               libfdt/fdt_check.o:(.rodata+0x10)</span>
<span id="LC20" class="line" lang="plaintext"></span>
<span id="LC21" class="line" lang="plaintext">ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC22" class="line" lang="plaintext">>>> defined in libfdt/fdt_check.o</span>
<span id="LC23" class="line" lang="plaintext">>>> referenced by fdt_check.c</span>
<span id="LC24" class="line" lang="plaintext">>>>               libfdt/fdt_check.o:(.rodata+0x18)</span>
<span id="LC25" class="line" lang="plaintext"></span>
<span id="LC26" class="line" lang="plaintext">ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC27" class="line" lang="plaintext">>>> defined in libfdt/fdt_addresses.o</span>
<span id="LC28" class="line" lang="plaintext">>>> referenced by fdt_addresses.c:38 (libfdt/fdt_addresses.c:38)</span>
<span id="LC29" class="line" lang="plaintext">>>>               libfdt/fdt_addresses.o:(fdt_address_cells)</span>
<span id="LC30" class="line" lang="plaintext"></span>
<span id="LC31" class="line" lang="plaintext">ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC32" class="line" lang="plaintext">>>> defined in libfdt/fdt_check.o</span>
<span id="LC33" class="line" lang="plaintext">>>> referenced by fdt_check.c</span>
<span id="LC34" class="line" lang="plaintext">>>>               libfdt/fdt_check.o:(.rodata+0x20)</span>
<span id="LC35" class="line" lang="plaintext"></span>
<span id="LC36" class="line" lang="plaintext">ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC37" class="line" lang="plaintext">>>> defined in libfdt/fdt_check.o</span>
<span id="LC38" class="line" lang="plaintext">>>> referenced by fdt_check.c</span>
<span id="LC39" class="line" lang="plaintext">>>>               libfdt/fdt_check.o:(.rodata+0x28)</span>
<span id="LC40" class="line" lang="plaintext"></span>
<span id="LC41" class="line" lang="plaintext">ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC42" class="line" lang="plaintext">>>> defined in libfdt/fdt_addresses.o</span>
<span id="LC43" class="line" lang="plaintext">>>> referenced by fdt_addresses.c:50 (libfdt/fdt_addresses.c:50)</span>
<span id="LC44" class="line" lang="plaintext">>>>               libfdt/fdt_addresses.o:(fdt_size_cells)</span>
<span id="LC45" class="line" lang="plaintext"></span>
<span id="LC46" class="line" lang="plaintext">ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC47" class="line" lang="plaintext">>>> defined in libfdt/fdt_addresses.o</span>
<span id="LC48" class="line" lang="plaintext">>>> referenced by fdt_addresses.c:38 (libfdt/fdt_addresses.c:38)</span>
<span id="LC49" class="line" lang="plaintext">>>>               libfdt/fdt_addresses.o:(fdt_appendprop_addrrange)</span>
<span id="LC50" class="line" lang="plaintext"></span>
<span id="LC51" class="line" lang="plaintext">ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC52" class="line" lang="plaintext">>>> defined in libfdt/fdt_check.o</span>
<span id="LC53" class="line" lang="plaintext">>>> referenced by fdt_check.c</span>
<span id="LC54" class="line" lang="plaintext">>>>               libfdt/fdt_check.o:(.rodata+0x30)</span>
<span id="LC55" class="line" lang="plaintext"></span>
<span id="LC56" class="line" lang="plaintext">ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC57" class="line" lang="plaintext">>>> defined in libfdt/fdt_check.o</span>
<span id="LC58" class="line" lang="plaintext">>>> referenced by fdt_check.c</span>
<span id="LC59" class="line" lang="plaintext">>>>               libfdt/fdt_check.o:(.rodata+0x38)</span>
<span id="LC60" class="line" lang="plaintext"></span>
<span id="LC61" class="line" lang="plaintext">ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC62" class="line" lang="plaintext">>>> defined in libfdt/fdt_check.o</span>
<span id="LC63" class="line" lang="plaintext">>>> referenced by fdt_check.c</span>
<span id="LC64" class="line" lang="plaintext">>>>               libfdt/fdt_check.o:(.rodata+0x40)</span>
<span id="LC65" class="line" lang="plaintext"></span>
<span id="LC66" class="line" lang="plaintext">ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC67" class="line" lang="plaintext">>>> defined in libfdt/fdt_addresses.o</span>
<span id="LC68" class="line" lang="plaintext">>>> referenced by fdt_addresses.c:50 (libfdt/fdt_addresses.c:50)</span>
<span id="LC69" class="line" lang="plaintext">>>>               libfdt/fdt_addresses.o:(fdt_appendprop_addrrange)</span>
<span id="LC70" class="line" lang="plaintext"></span>
<span id="LC71" class="line" lang="plaintext">ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC72" class="line" lang="plaintext">>>> defined in libfdt/fdt_empty_tree.o</span>
<span id="LC73" class="line" lang="plaintext">>>> referenced by fdt_empty_tree.c:25 (libfdt/fdt_empty_tree.c:25)</span>
<span id="LC74" class="line" lang="plaintext">>>>               libfdt/fdt_empty_tree.o:(fdt_create_empty_tree)</span>
<span id="LC75" class="line" lang="plaintext"></span>
<span id="LC76" class="line" lang="plaintext">ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC77" class="line" lang="plaintext">>>> defined in libfdt/fdt_strerror.o</span>
<span id="LC78" class="line" lang="plaintext">>>> referenced by fdt_strerror.c:47 (libfdt/fdt_strerror.c:47)</span>
<span id="LC79" class="line" lang="plaintext">>>>               libfdt/fdt_strerror.o:(fdt_strerror)</span>
<span id="LC80" class="line" lang="plaintext"></span>
<span id="LC81" class="line" lang="plaintext">ld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC82" class="line" lang="plaintext">>>> defined in libfdt/fdt_strerror.o</span>
<span id="LC83" class="line" lang="plaintext">>>> referenced by fdt_strerror.c:53 (libfdt/fdt_strerror.c:53)</span>
<span id="LC84" class="line" lang="plaintext">>>>               libfdt/fdt_strerror.o:(fdt_strerror)</span>
<span id="LC85" class="line" lang="plaintext"></span>
<span id="LC86" class="line" lang="plaintext">ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC87" class="line" lang="plaintext">>>> defined in libfdt/fdt_strerror.o</span>
<span id="LC88" class="line" lang="plaintext">>>> referenced by fdt_strerror.c:0 (libfdt/fdt_strerror.c:0)</span>
<span id="LC89" class="line" lang="plaintext">>>>               libfdt/fdt_strerror.o:(fdt_strerror)</span>
<span id="LC90" class="line" lang="plaintext"></span>
<span id="LC91" class="line" lang="plaintext">ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC92" class="line" lang="plaintext">>>> defined in libfdt/fdt_strerror.o</span>
<span id="LC93" class="line" lang="plaintext">>>> referenced by fdt_strerror.c:0 (libfdt/fdt_strerror.c:0)</span>
<span id="LC94" class="line" lang="plaintext">>>>               libfdt/fdt_strerror.o:(fdt_strerror)</span>
<span id="LC95" class="line" lang="plaintext"></span>
<span id="LC96" class="line" lang="plaintext">ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC</span>
<span id="LC97" class="line" lang="plaintext">>>> defined in libfdt/fdt_strerror.o</span>
<span id="LC98" class="line" lang="plaintext">>>> referenced by fdt_strerror.c</span>
<span id="LC99" class="line" lang="plaintext">>>>               libfdt/fdt_strerror.o:(fdt_errtable)</span>
<span id="LC100" class="line" lang="plaintext"></span>
<span id="LC101" class="line" lang="plaintext">ld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)</span>
<span id="LC102" class="line" lang="plaintext">cc: error: linker command failed with exit code 1 (use -v to see invocation)</span>
<span id="LC103" class="line" lang="plaintext">gmake: *** [Makefile:218: libfdt/libfdt.so.1.7.2] Error 1</span>
<span id="LC104" class="line" lang="plaintext">shell cmd failed: /bin/sh -ex  /home/me/GSOC_Work/rtems-deployment/build/dtc-1.7.2-x86_64-freebsd15.0-1/do-build</span>
<span id="LC105" class="line" lang="plaintext">error: building dtc-1.7.2-x86_64-freebsd15.0-1</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">I have tried doing some basic troubleshooting.</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; 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; font-variant-ligatures: none; overflow-wrap: normal; padding: unset;"><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">%build</span>
<span id="LC2" class="line" lang="plaintext">  ...</span>
<span id="LC3" class="line" lang="plaintext">  CFLAGS="-fPIC -O2" %{__make} PREFIX=%{_prefix} WARNINGS=</span>
<span id="LC4" 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 0 1rem;" align="initial">and these as well.</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; 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; font-variant-ligatures: none; overflow-wrap: normal; padding: unset;"><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">%{__make} PREFIX=%{_prefix} WARNINGS= EXTRA_CFLAGS="-fPIC"</span>
<span id="LC2" class="line" lang="plaintext">%define host_cflags %{host_cflags} -fPIC</span>
<span id="LC3" class="line" lang="plaintext">%define host_cxxflags %{host_cxxflags} -fPIC</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">None of these worked and resulted into the same error again.</p>
<h2 id="user-content-steps-to-reproduce" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">Steps to reproduce<a href="#steps-to-reproduce" aria-label="Link to heading 'Steps to reproduce'" data-heading-content="Steps to reproduce" class="anchor" style="margin-top: 0;"></a>
</h2>
<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: #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; 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; font-variant-ligatures: none; overflow-wrap: normal; padding: unset;"><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">sb-set-builder --prefix=/opt/rtems/7 --bset-tar-file --trace   --log=out/amd/amd-kria-k26.txt --no-install amd/amd-kria-k26</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
</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/192">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/4-3dy7ad034vp1hx3xjqc54dxjb/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/192 at 1781562603
</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/192"}}</script>


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