<div dir="ltr"><div>In fisierul ala se tot fac cast-uri de la un tip de pointer la altul.</div><div>In mod obisnuit astfel de erori nu apar, dar daca ai un flag activat la compilator...</div><div><br></div><div>Daca este un modul deja existent in yocto pe care nu l-ai modificat, s-ar putea ca cineva care a modificat un layer mai de baza, sa fi adaugat flag-ul care iti genereaza tie eroarea, dar sa nu fi testat cap coada alte module.</div><div>Anyway, ca un hint, ca se vezi ce flag-uri sunt folosite la compilare pentru acel modul:</div><div>bitbake -c devshell nume_modul</div><div><br></div><div>O sa ti se deschida un terminal cu tot mediul setat pentru acea reteta. Poti da:</div><div>echo $CC</div><div>echo $CFLAGS</div><div><br></div><div>si orice alta variabila de interes[1].</div><div><br></div><div>[1] <a href="https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html">https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 14, 2016 at 12:42 PM, Vasile COSOVANU (82711) <span dir="ltr"><<a href="mailto:vasile.cosovanu@stud.acs.upb.ro" target="_blank">vasile.cosovanu@stud.acs.upb.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-6337543658631416529divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p></p>
<div>Am intampinat o eroare la compilarea bt2qt (<a href="http://doc.qt.io/QtForDeviceCreation/qtee-custom-embedded-linux-image.html" class="m_-6337543658631416529OWAAutoLink" id="m_-6337543658631416529LPlnk475864" target="_blank">http://doc.qt.io/<wbr>QtForDeviceCreation/qtee-<wbr>custom-embedded-linux-image.<wbr>html</a>) </div>
<div>pentru raspberry pi. A mai intalnit cineva eroarea asta si daca da cum se rezolva.</div>
<br>
<div><br>
</div>
<div>ERROR: Function failed: do_compile (log file is located at /media/vengage/Linux/Qt/5.6/<wbr>Boot2Qt/sources/meta-b2qt/<wbr>build-raspberrypi/tmp/work/<wbr>x86_64-linux/binutils-native/<wbr>2.24-r0/temp/log.do_compile.<wbr>26798)</div>
<div>ERROR: Logfile of failure stored in: /media/vengage/Linux/Qt/5.6/<wbr>Boot2Qt/sources/meta-b2qt/<wbr>build-raspberrypi/tmp/work/<wbr>x86_64-linux/binutils-native/<wbr>2.24-r0/temp/log.do_compile.<wbr>26798</div>
<br>
<p></p>
<p></p>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
| cc1: warnings being treated as errors</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
| /Qt/5.6/Boot2Qt/sources/meta-<wbr>b2qt/build-raspberrypi/tmp/<wbr>work/x86_64-linux/binutils-<wbr>native/2.24-r0/binutils-2.24/<wbr>bfd/elf32-xtensa.c: In function 'xlate_offset_with_removed_<wbr>text':</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
| /Qt/5.6/Boot2Qt/sources/meta-<wbr>b2qt/build-raspberrypi/tmp/<wbr>work/x86_64-linux/binutils-<wbr>native/2.24-r0/binutils-2.24/<wbr>bfd/elf32-xtensa.c:7807: error: dereferencing pointer 'a' does break strict-aliasing rules</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
| /Qt/5.6/Boot2Qt/sources/meta-<wbr>b2qt/build-raspberrypi/tmp/<wbr>work/x86_64-linux/binutils-<wbr>native/2.24-r0/binutils-2.24/<wbr>bfd/elf32-xtensa.c:7809: error: dereferencing pointer 'a' does break strict-aliasing rules</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
|/Qt/5.6/Boot2Qt/sources/meta-<wbr>b2qt/build-raspberrypi/tmp/<wbr>work/x86_64-linux/binutils-<wbr>native/2.24-r0/binutils-2.24/<wbr>bfd/elf32-xtensa.c:7805: note: initialized from here</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
<br>
</div>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">Am gasit eroarea mai in detaliu.</span>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
Aici e codul din fisier.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
7802 static int</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
7803 xlate_compare (const void *a_v, const void *b_v)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
7804 {</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
7805 const xlate_map_entry_t *a = (const xlate_map_entry_t *) a_v;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
7806 const xlate_map_entry_t *b = (const xlate_map_entry_t *) b_v;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
7807 if (a->orig_address < b->orig_address)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
7808 return -1;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
7809 if (a->orig_address > (b->orig_address + b->size - 1))</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
7810 return 1;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
7811 return 0;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
7812 }</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
Mersi,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
Vasile Cosovanu</div>
<br>
<p></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
mpsit mailing list<br>
<a href="mailto:mpsit@cursuri.cs.pub.ro">mpsit@cursuri.cs.pub.ro</a><br>
<a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/mpsit" rel="noreferrer" target="_blank">http://cursuri.cs.pub.ro/cgi-<wbr>bin/mailman/listinfo/mpsit</a><br>
<br></blockquote></div><br></div>