osx-cross / homebrew-avr

Homebrew AVR Toolchain
BSD 2-Clause "Simplified" License
394 stars 79 forks source link

Abort trap: 6 signal terminated program cc1 #320

Closed rwijtvliet closed 9 months ago

rwijtvliet commented 9 months ago

Error when compiling qmk (qmk compile ..):

(...)

Compiling: .build/obj_keyboardio_atreus_rwijtvliet/src/default_keyboard.c                          dyld[50335]: Library not loaded: /opt/homebrew/opt/mpfr/lib/libmpfr.6.dylib
  Referenced from: <B938679C-CFBC-3146-9708-0FD82ABDEBD4> /opt/homebrew/Cellar/avr-gcc@8/8.5.0_1/libexec/gcc/avr/8.5.0/cc1
  Reason: tried: '/opt/homebrew/opt/mpfr/lib/libmpfr.6.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/mpfr/lib/libmpfr.6.dylib' (no such file), '/opt/homebrew/opt/mpfr/lib/libmpfr.6.dylib' (no such file)
avr-gcc: internal compiler error: Abort trap: 6 signal terminated program cc1
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/osx-cross/homebrew-avr/issues> for instructions.
 [ERRORS]
 |
 |
 |
gmake[1]: *** [builddefs/common_rules.mk:361: .build/obj_keyboardio_atreus_rwijtvliet/.build/obj_keyboardio_atreus_rwijtvliet/src/default_keyboard.o] Error 1
if [ -f .build/error_occurred ]; then printf "\033[31;01mMake finished with errors\n\033[0m" & exit 1; fi;
gmake: *** [Makefile:392: keyboardio/atreus:rwijtvliet] Error 1
Make finished with errors

It worked fine when I last used it ~3 weeks ago.

My machine: macos m2 sonoma 14.1

Output of brew list:

❯ brew list --versions
aom 3.7.0
arm-none-eabi-binutils 2.38
arm-none-eabi-gcc@8 8.5.0_1
autoconf 2.71
automake 1.16.5
avr-binutils 2.40_2
avr-gcc@8 8.5.0_1
avrdude 7.2
bash 5.2.21
boost 1.83.0
bootloadhid 2012-12-08
brotli 1.1.0
c-ares 1.22.0
ca-certificates 2023-08-22
cairo 1.18.0
clang-format 17.0.5
cliclick 5.1
confuse 3.3
coreutils 9.4
dfu-programmer 1.1.0
dfu-util 0.11
dockutil 2.0.5
fd 8.7.1
findutils 4.9.0
fontconfig 2.14.2
freetype 2.13.2
fribidi 1.0.13
gawk 5.3.0
gettext 0.22.3
gh 2.39.1
ghostscript 10.02.1
giflib 5.2.1
glib 2.78.1
gmp 6.3.0
gnu-getopt 2.39.2
gnu-indent 2.2.13
gnu-sed 4.9
gnu-tar 1.35
gnutls 3.8.1
graphite2 1.3.14
grep 3.11
harfbuzz 8.3.0
hid_bootloader_cli 210130_2
hidapi 0.14.0
highway 1.0.7
icu4c 73.2
imagemagick 7.1.1-21
imath 3.1.9
isl 0.26
jasper 4.1.0
jbig2dec 0.20
jpeg-turbo 3.0.0
jpeg-xl 0.8.2_1
jq 1.7
libde265 1.0.12
libevent 2.1.12_1
libftdi 1.5_2
libheif 1.17.3
libidn 1.41
libidn2 2.3.4_1
libimagequant 4.2.2
liblqr 0.4.2_1
libmpc 1.3.1
libnghttp2 1.58.0
libomp 17.0.4
libpng 1.6.40
libraqm 0.10.1
libraw 0.21.1
libtasn1 4.19.0
libtermkey 0.22
libtiff 4.6.0
libtool 2.4.7
libunistring 1.1
libusb 1.0.26
libusb-compat 0.1.8
libuv 1.47.0
libvmaf 2.3.1
libvterm 0.3.3
libx11 1.8.7 1.8.6
libxau 1.0.11
libxcb 1.16
libxdmcp 1.1.4
libxext 1.3.5
libxrender 0.9.11
little-cms2 2.15
luajit 2.1.1699801871
luv 1.45.0-0
lz4 1.9.4
lzo 2.10
m4 1.4.19
make 4.4.1
mdloader 1.0.7_2
mpdecimal 2.5.1
mpfr 4.2.1
msgpack 6.0.0
neofetch 7.1.0
neovim 0.9.4
nettle 3.9.1
node 21.1.0
oniguruma 6.9.9
openexr 3.2.1
openjdk 21.0.1
openjpeg 2.5.0_1
openssl@3 3.1.4
p11-kit 0.25.2
pcre2 10.42
pillow 10.1.0
pixman 0.42.2
pkg-config 0.29.2_3
python@3.11 3.11.6_1
qmk 1.1.2_3
readline 8.2.1
ripgrep 13.0.0
screenresolution 1.6
shared-mime-info 2.4
sketchybar 2.19.3
skhd 0.3.9
sqlite 3.44.0
starship 1.16.0
switchaudio-osx 1.2.2
syncthing 1.26.0
tcl-tk 8.6.13_5
teensy_loader_cli 2.2
texinfo 7.1
tree 2.1.1
tree-sitter 0.20.8
unbound 1.19.0
unibilium 2.1.1
wallpaper 2.3.1
webp 1.3.2
wget 1.21.4
wireguard-go 0.0.20230223
wireguard-tools 1.0.20210914_1
x265 3.5
xorgproto 2023.2
xz 5.4.5
yabai 6.0.1
zstd 1.5.5
alacritty 0.12.3
commander-one 3.7
espanso 2.1.8
freecad 0.21.1
inkscape 1.3.0,42339
kawa 1.1.0
miniconda py311_23.5.2-0
raycast 1.61.1
sf-symbols 5
spotify 1.2.19.941,bf202593,417
topnotch 1.3.2
unnaturalscrollwheels 1.3.0
visual-studio-code 1.82.2
vscodium 1.82.2.23257

Not sure what else I can tell you. If you want me to check something, let me know!

ladislas commented 9 months ago

I'll ping @fauxpark here :)

fauxpark commented 9 months ago

Run brew doctor, if all is well run brew reinstall mpfr. Seems like you're missing the dylib from that package; no idea how that could have happened.

rwijtvliet commented 9 months ago

That fixed it! Many thanks!