[mpsit] Eroare de compilare

Catalin Vasile catalinvasile92 at gmail.com
Tue Nov 15 11:23:56 EET 2016


In fisierul ala se tot fac cast-uri de la un tip de pointer la altul.
In mod obisnuit astfel de erori nu apar, dar daca ai un flag activat la
compilator...

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.
Anyway, ca un hint, ca se vezi ce flag-uri sunt folosite la compilare
pentru acel modul:
bitbake -c devshell nume_modul

O sa ti se deschida un terminal cu tot mediul setat pentru acea reteta.
Poti da:
echo $CC
echo $CFLAGS

si orice alta variabila de interes[1].

[1]
https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html

On Mon, Nov 14, 2016 at 12:42 PM, Vasile COSOVANU (82711) <
vasile.cosovanu at stud.acs.upb.ro> wrote:

> Am intampinat  o eroare la compilarea bt2qt (http://doc.qt.io/
> QtForDeviceCreation/qtee-custom-embedded-linux-image.html)
> pentru raspberry pi. A mai intalnit cineva eroarea asta si daca da cum se
> rezolva.
>
>
> ERROR: Function failed: do_compile (log file is located at
> /media/vengage/Linux/Qt/5.6/Boot2Qt/sources/meta-b2qt/
> build-raspberrypi/tmp/work/x86_64-linux/binutils-native/
> 2.24-r0/temp/log.do_compile.26798)
> ERROR: Logfile of failure stored in: /media/vengage/Linux/Qt/5.6/
> Boot2Qt/sources/meta-b2qt/build-raspberrypi/tmp/work/
> x86_64-linux/binutils-native/2.24-r0/temp/log.do_compile.26798
>
> | cc1: warnings being treated as errors
> | /Qt/5.6/Boot2Qt/sources/meta-b2qt/build-raspberrypi/tmp/
> work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/bfd/elf32-xtensa.c:
> In function 'xlate_offset_with_removed_text':
> | /Qt/5.6/Boot2Qt/sources/meta-b2qt/build-raspberrypi/tmp/
> work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/bfd/elf32-xtensa.c:7807:
> error: dereferencing pointer 'a' does break strict-aliasing rules
> | /Qt/5.6/Boot2Qt/sources/meta-b2qt/build-raspberrypi/tmp/
> work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/bfd/elf32-xtensa.c:7809:
> error: dereferencing pointer 'a' does break strict-aliasing rules
> |/Qt/5.6/Boot2Qt/sources/meta-b2qt/build-raspberrypi/tmp/
> work/x86_64-linux/binutils-native/2.24-r0/binutils-2.24/bfd/elf32-xtensa.c:7805:
> note: initialized from here
>
> Am gasit eroarea mai in detaliu.
>
> Aici e codul din fisier.
>
>
> 7802 static int
> 7803 xlate_compare (const void *a_v, const void *b_v)
> 7804 {
> 7805   const xlate_map_entry_t *a = (const xlate_map_entry_t *) a_v;
> 7806   const xlate_map_entry_t *b = (const xlate_map_entry_t *) b_v;
> 7807   if (a->orig_address < b->orig_address)
> 7808     return -1;
> 7809   if (a->orig_address > (b->orig_address + b->size - 1))
> 7810     return 1;
> 7811   return 0;
> 7812 }
>
> Mersi,
>
> Vasile Cosovanu
>
>
> _______________________________________________
> mpsit mailing list
> mpsit at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/mpsit
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/mpsit/attachments/20161115/2d8bd97a/attachment.html>


More information about the mpsit mailing list