Nov
24
1 week ago
started
started time in 1 week ago
Nov
16
2 weeks ago
started
started time in 2 weeks ago
Nov
12
3 weeks ago
started
started time in 2 weeks ago
Oct
27
1 month ago
Activity icon
issue

leElvyn issue comment osx-cross/homebrew-avr

leElvyn
leElvyn

cc1: internal compiler error: Illegal instruction: 4

Hardware :

MacBook, aluminum late 2008 Macos 10.15.7 (19H2)

avr brew version :

osx-cross/avr/[email protected]: stable 9.3.0 (bottled), HEAD

I am trying to compile one of my project (https://github.com/leElvyn/auto-smash/tree/main/firmware) from my macos computer. Usually, i am using my main computer to do that, a windows PC with WSL ubuntu, and it is working perfectly, but when using my macos computer :

 [INFO]    : Begin compilation of project "src/Joystick"...

avr-gcc (Homebrew AVR GCC 8.4.0_2) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 [GCC]     : Compiling C file "Joystick.c"
avr-gcc -c -pipe -gdwarf-2 -g2 -mmcu=atmega32u4 -fshort-enums -fno-inline-small-functions -Wall -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections -I. -DARCH=ARCH_AVR8 -DDMBS_ARCH_AVR8 -mrelax -fno-jump-tables -x c -Os -std=gnu99 -Wstrict-prototypes -DF_CPU=16000000UL -DUSE_LUFA_CONFIG_HEADER -IConfig/ -I/home/red/arduino-1.8.16/hardware/tools/avr/avr/include/ -mmcu=atmega32u4  -I. -I./lufa/LUFA/.. -DARCH=ARCH_AVR8 -DBOARD=BOARD_NONE -DF_USB=16000000UL   -MMD -MP -MF obj/Joystick.d src/Joystick.c -o obj/Joystick.o
cc1: internal compiler error: Illegal instruction: 4
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/osx-cross/homebrew-avr/issues> for instructions.
make: *** [obj/Joystick.o] Error 1
leElvyn
leElvyn

Yeah, sorry, LUFA is required to build this : http://www.fourwalledcubicle.com/LUFA.php (downloads can be found here) I tried this minimal program : https://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/ (i took the first one i could find) And it compiled an ran without any problems

How can i check if CLI tools and xcode are up to date

Activity icon
issue

ladislas issue comment osx-cross/homebrew-avr

ladislas
ladislas

cc1: internal compiler error: Illegal instruction: 4

Hardware :

MacBook, aluminum late 2008 Macos 10.15.7 (19H2)

avr brew version :

osx-cross/avr/[email protected]: stable 9.3.0 (bottled), HEAD

I am trying to compile one of my project (https://github.com/leElvyn/auto-smash/tree/main/firmware) from my macos computer. Usually, i am using my main computer to do that, a windows PC with WSL ubuntu, and it is working perfectly, but when using my macos computer :

 [INFO]    : Begin compilation of project "src/Joystick"...

avr-gcc (Homebrew AVR GCC 8.4.0_2) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 [GCC]     : Compiling C file "Joystick.c"
avr-gcc -c -pipe -gdwarf-2 -g2 -mmcu=atmega32u4 -fshort-enums -fno-inline-small-functions -Wall -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections -I. -DARCH=ARCH_AVR8 -DDMBS_ARCH_AVR8 -mrelax -fno-jump-tables -x c -Os -std=gnu99 -Wstrict-prototypes -DF_CPU=16000000UL -DUSE_LUFA_CONFIG_HEADER -IConfig/ -I/home/red/arduino-1.8.16/hardware/tools/avr/avr/include/ -mmcu=atmega32u4  -I. -I./lufa/LUFA/.. -DARCH=ARCH_AVR8 -DBOARD=BOARD_NONE -DF_USB=16000000UL   -MMD -MP -MF obj/Joystick.d src/Joystick.c -o obj/Joystick.o
cc1: internal compiler error: Illegal instruction: 4
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/osx-cross/homebrew-avr/issues> for instructions.
make: *** [obj/Joystick.o] Error 1
ladislas
ladislas

I can't compile your project as modules are missing and the commands in the readme don't work for me.

Can you try a simple program? Are you up to date with Xcode and the command line tools?

Activity icon
issue

leElvyn issue osx-cross/homebrew-avr

leElvyn
leElvyn

cc1: internal compiler error: Illegal instruction: 4

Hardware :

MacBook, aluminum late 2008 Macos 10.15.7 (19H2)

avr brew version :

osx-cross/avr/[email protected]: stable 9.3.0 (bottled), HEAD

I am trying to compile one of my project (https://github.com/leElvyn/auto-smash/tree/main/firmware) from my macos computer. Usually, i am using my main computer to do that, a windows PC with WSL ubuntu, and it is working perfectly, but when using my macos computer :

 [INFO]    : Begin compilation of project "src/Joystick"...

avr-gcc (Homebrew AVR GCC 8.4.0_2) 8.4.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 [GCC]     : Compiling C file "Joystick.c"
avr-gcc -c -pipe -gdwarf-2 -g2 -mmcu=atmega32u4 -fshort-enums -fno-inline-small-functions -Wall -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections -I. -DARCH=ARCH_AVR8 -DDMBS_ARCH_AVR8 -mrelax -fno-jump-tables -x c -Os -std=gnu99 -Wstrict-prototypes -DF_CPU=16000000UL -DUSE_LUFA_CONFIG_HEADER -IConfig/ -I/home/red/arduino-1.8.16/hardware/tools/avr/avr/include/ -mmcu=atmega32u4  -I. -I./lufa/LUFA/.. -DARCH=ARCH_AVR8 -DBOARD=BOARD_NONE -DF_USB=16000000UL   -MMD -MP -MF obj/Joystick.d src/Joystick.c -o obj/Joystick.o
cc1: internal compiler error: Illegal instruction: 4
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/osx-cross/homebrew-avr/issues> for instructions.
make: *** [obj/Joystick.o] Error 1
Oct
24
1 month ago
Activity icon
issue

bartekpacia issue comment osx-cross/homebrew-avr

bartekpacia
bartekpacia

Missing support for newer MCUs

I work on one AVR project that's targeting AVR128DB28 and have found out that avr-gcc (even the newest version 11) doesn't support it (i.e avr/io.h is not defined for it in /usr/local/Cellar/[email protected]/11.1.0_1/avr/include/avr).

Here's a related avr freaks thread.

Is there any chance that header files for those newer MCUs will be added to avr-libc? I know this is not necessarily the place to ask this question but as of now, I'm just not sure where else to ask this.

bartekpacia
bartekpacia
Oct
18
1 month ago
started
started time in 1 month ago
Oct
9
1 month ago
Activity icon
issue

failsafe89 issue comment osx-cross/homebrew-avr

failsafe89
failsafe89

Unknown symbol format elf32-avr fix for avr-gdb

Added patch suggested by https://github.com/osx-cross/homebrew-avr/issues/251#issuecomment-879036177 to resolve issue loading avr elf files into avr-gdb.

failsafe89
failsafe89

Sorry was super busy. Thanks for getting the change in!

Activity icon
issue

failsafe89 issue comment osx-cross/homebrew-avr

failsafe89
failsafe89

Add patch file for gdb .elf fix

Solves the issue raised by #251 by implementing the fix proposed by #255.

This PR simply includes the patch file. A subsequent PR will introduce the code that applies the patch to elf-gdb.h using the resulting Github URL created for the patch file.

failsafe89
failsafe89

Sorry was super busy. Thanks for getting it in @danapplegate

Previous