boot2duino icon indicating copy to clipboard operation
boot2duino copied to clipboard

recipe.preproc.macros pattern is missing Arduino 1.8.19

Open TroyFletcher opened this issue 4 years ago • 3 comments

recipe.preproc.macros pattern is missing Error compiling for board Generic x86 computer.

Arduino would not recognize the new hardware folder until boards.txt was inside one of the subdirectories.

Building on windows 7, can test on a linux system later if necessary, I figure this was just a misplaced file.

TroyFletcher avatar Jan 17 '22 15:01 TroyFletcher

Hi, I never got around to test boot2duino on Windows. Can you reproduce the issue on Linux?

jeanthom avatar Jan 17 '22 20:01 jeanthom

Sorry for delay; compiling any example on Linux 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux, running Arduino 1.8.13

/usr/bin/ld: warning: changing start of section .gnu.hash by 3 bytes
/usr/bin/ld: warning: changing start of section .plt by 11 bytes
/usr/bin/ld: warning: changing start of section .plt.got by 3 bytes
/usr/bin/ld: warning: changing start of section .rel.dyn by 3 bytes
/usr/bin/ld: warning: changing start of section .gnu.hash by 3 bytes
/usr/bin/ld: warning: changing start of section .plt by 11 bytes
/usr/bin/ld: warning: changing start of section .plt.got by 3 bytes
/usr/bin/ld: warning: changing start of section .rel.dyn by 3 bytes
/usr/bin/ld: section .dynamic LMA [0000000000007e00,0000000000007e8f] overlaps section .text LMA [0000000000007e00,0000000000007f54]
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Generic x86 computer.

GNU ld (GNU Binutils for Debian) 2.31.1

Strangely, this system doesn't complain about the location of boards.txt.

TroyFletcher avatar Jan 21 '22 14:01 TroyFletcher

I assume you have GCC < 11, could you try updating to 11 or later? It seems to fix the issue (see https://github.com/jeanthom/boot2duino/issues/6)

jeanthom avatar Jan 23 '22 22:01 jeanthom