[mpsit] Eroare de compilare

Vasile COSOVANU (82711) vasile.cosovanu at stud.acs.upb.ro
Mon Nov 14 12:42:15 EET 2016


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/mpsit/attachments/20161114/f70323b6/attachment.html>


More information about the mpsit mailing list