FS#54159 - [avr-gcc] Arduino segfaults when building due avr-gcc
Attached to Project:
Community Packages
Opened by Julio (The_Loko) - Monday, 22 May 2017, 22:40 GMT
Last edited by Anatol Pomozov (anatolik) - Sunday, 16 July 2017, 20:24 GMT
Opened by Julio (The_Loko) - Monday, 22 May 2017, 22:40 GMT
Last edited by Anatol Pomozov (anatolik) - Sunday, 16 July 2017, 20:24 GMT
|
Details
Description:
Since avr-gcc 7.1.0-1 update, arduino 1:1.8.2-1 fails when building code with avr-gcc segfult and shows this: signal: segmentation fault (core dumped) Error building for board Arduino/Genuino Uno. Additional info: * package version(s): avr-gcc 7.1.0-1, arduino 1:1.8.2-1 * Backtrace: #0 0x00007ffa67783137 in __stpcpy_sse2_unaligned () from /usr/lib/libc.so.6 #1 0x00000000004018fb in find_a_file(path_prefix*, char const*, int) () #2 0x00000000004016dc in main () Steps to reproduce: - Open Arduino IDE, - Build any program |
This task depends upon
Closed by Anatol Pomozov (anatolik)
Sunday, 16 July 2017, 20:24 GMT
Reason for closing: Fixed
Additional comments about closing: avr-gcc 7.1.0-2
Sunday, 16 July 2017, 20:24 GMT
Reason for closing: Fixed
Additional comments about closing: avr-gcc 7.1.0-2
EDITED: Sorry for my mistake. I tested again the package and it did't work. The avr-gcc version 6.3.0 will work fine.
So decided to uninstall all arduino, avr packages as well as gcc related packages. After a system reboot installed arduino package only with its dependencies and worked!
I guess classic windows-style troubleshoot did the trick \o/
It just involves changing a configuration file to use ar instead of avr-gcc-ar.
Although it seems from the above comment that the problem may be fixed soon anyways.