Gentoo Archives: gentoo-user

From: Dan Johansson <Dan.Johansson@×××.nu>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] Can not compile arduino sketch after GCC upgrade
Date: Sun, 30 Apr 2017 11:23:14
Message-Id: 4d0438cb-11da-7571-2b8f-aa9e8a4c58d0@dmj.nu
1 After upgrading GCC to 5.4.0 (from 4.9.3) I can no longer compile my
2 sketches.
3
4 At the end of the compile phase a get the following linker error:
5
6 avr-gcc -Os -Wl,--gc-sections -mmcu=atmega32u4 -o
7 /tmp/build881550966608502477.tmp/Blinky.cpp.elf
8 /tmp/build881550966608502477.tmp/Blinky.cpp.o
9 /tmp/build881550966608502477.tmp/FastLED313/hsv2rgb.cpp.o
10 /tmp/build881550966608502477.tmp/FastLED313/wiring.cpp.o
11 /tmp/build881550966608502477.tmp/FastLED313/colorutils.cpp.o
12 /tmp/build881550966608502477.tmp/FastLED313/colorpalettes.cpp.o
13 /tmp/build881550966608502477.tmp/FastLED313/lib8tion.cpp.o
14 /tmp/build881550966608502477.tmp/FastLED313/FastLED.cpp.o
15 /tmp/build881550966608502477.tmp/FastLED313/bitswap.cpp.o
16 /tmp/build881550966608502477.tmp/FastLED313/power_mgt.cpp.o
17 /tmp/build881550966608502477.tmp/FastLED313/noise.cpp.o
18 /tmp/build881550966608502477.tmp/core.a
19 -L/tmp/build881550966608502477.tmp -lm
20 /usr/libexec/gcc/avr/ld: cannot find crtatmega32u4.o: No such file or
21 directory
22 /usr/libexec/gcc/avr/ld: cannot find -latmega32u4
23 collect2: error: ld returned 1 exit status
24
25 And sure enough, there is not "crtatmega32u4.o" on this system (and only
26 one file with "atmega32u4" in the filename:
27 /usr/lib64/gcc/avr/5.4.0/device-specs/specs-atmega32u4).
28
29 I have tried to reinstall the avr-crossdev-toolchain:
30 crossdev -C avr
31 USE="-openmp -hardened -sanitize -vtv" crossdev -s4 -S --target avr
32 ln -s /usr/lib64/binutils/avr/2.26.1/ldscripts /usr/avr/lib/ldscript
33
34
35 And just to be sure I have also re-emerged:
36 dev-embedded/avrdude
37 dev-embedded/arduino
38
39 Any suggestions what I am missing?
40
41 --
42 D/\N
43 ***************************************************
44 This message is printed on 100% recycled electrons!
45 ***************************************************

Attachments

File name MIME type
0x2FB894AD.asc application/pgp-keys
smime.p7s application/pkcs7-signature

Replies

Subject Author
Re: [gentoo-user] Can not compile arduino sketch after GCC upgrade Dan Johansson <dan@×××.nu>