Skip to content

GCC without build system #171

Answered by igfoo
jgromes asked this question in General
Sep 4, 2020 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi jgromes,

The problem is caused by avr-g++ being executed directly from a statically linked binary. If you do something like

for i in ~/.arduino*/packages/arduino/tools/avr-gcc/*/bin/*; do mv "$i" "$i.real"; printf '#!/usr/bin/sh\nexec "'"$i"'.real" ${1+"$@"}\n' > "$i"; chmod +x "$i"; done

after arduino-cli core install arduino:avr then it should work around the problem.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jgromes
Comment options

Answer selected by jgromes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants