On Linux (openSUSE Leap 15.5) I'm using Arduino IDE 1.8.6 (suse package from here: /repositories/CrossToolchain:/avr/15.5 - openSUSE Download) to upload the OpenCat software for a Petoi Bittle (GitHub - PetoiCamp/OpenCat: An open source quadruped robot pet framework for developing Boston Dynamics-style four-legged robots that are perfect for STEM, coding & robotics education, IoT robotics applications, AI-enhanced robotics application services, research, and DIY robotics kit development.). I have gcc 7.7.5 (suse package) installed.
All is compiling, but the linker is failing: /usr/lib64/gcc/avr/7/ld: cannot find -lgcc: No such file or directory
which, I think, means it can't find libgcc - but it's just used gcc to compile the components, so (I assume) it's all there!
Any advice on how I can fix this? Is there a config setting I've missed? Another package I need to install?
For similar errors with other libraries, the answers say there needs to be a symbolic link created so the linker finds the library. Do I need to do the same here? Link what into which directory?