adafruit/Adafruit_BusIO

Compile error with max31855k

entropyeater opened this issue · 2 comments

  • Arduino board: Arduino/Genuino 101

  • Arduino IDE version - 1.18.15

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too): Open and upload serialthermocouple from "Adafruit MAX31855 library"
    It returns the following "Error compiling for board Arduino/Genuino 101"

Arduino: 1.8.15 (Mac OS X), Board: "Arduino/Genuino 101"

/Users/daniel/Library/Arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-g++ -c -mcpu=quarkse_em -mlittle-endian -g -Os -Wall -fno-reorder-functions -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-defer-pop -Wno-unused-but-set-variable -Wno-main -ffreestanding -fno-stack-protector -mno-sdata -ffunction-sections -fdata-sections -fsigned-char -fno-rtti -fno-exceptions -fcheck-new -D__ARDUINO_ARC__ -std=c++11 -DCONFIG_BLUETOOTH_PERIPHERAL -DCONFIG_BLUETOOTH_CENTRAL -DCONFIG_BLUETOOTH_GATT_CLIENT -w -x c++ -E -CC -DF_CPU=32000000L -DARDUINO=10815 -DARDUINO_ARC32_TOOLS -DARDUINO_ARCH_ARC32 -D__CPU_ARC__ -DCLOCK_SPEED=32 -DCONFIG_SOC_GPIO_32 -DCONFIG_SOC_GPIO_AON -DINFRA_MULTI_CPU_SUPPORT -DCFW_MULTI_CPU_SUPPORT -DHAS_SHARED_MEM -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/system/libarc32_arduino101/common -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/system/libarc32_arduino101/drivers -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/system/libarc32_arduino101/bootcode -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/system/libarc32_arduino101/framework/include -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/cores/arduino -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/variants/arduino_101 -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/libraries/SPI/src -I/Users/daniel/Documents/Arduino/libraries/Adafruit_MAX31855_library -I/Users/daniel/Documents/Arduino/libraries/Adafruit_BusIO -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/libraries/Wire/src /var/folders/p4/vh0y2_vx4gx65lfycjnm2xt80000gn/T/arduino_build_436628/sketch/serialthermocouple.ino.cpp -o /var/folders/p4/vh0y2_vx4gx65lfycjnm2xt80000gn/T/arduino_build_436628/preproc/ctags_target_for_gcc_minus_e.cpp
/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/p4/vh0y2_vx4gx65lfycjnm2xt80000gn/T/arduino_build_436628/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/Users/daniel/Library/Arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-g++ -c -mcpu=quarkse_em -mlittle-endian -g -Os -Wall -fno-reorder-functions -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-defer-pop -Wno-unused-but-set-variable -Wno-main -ffreestanding -fno-stack-protector -mno-sdata -ffunction-sections -fdata-sections -fsigned-char -MMD -fno-rtti -fno-exceptions -fcheck-new -D__ARDUINO_ARC__ -std=c++11 -DCONFIG_BLUETOOTH_PERIPHERAL -DCONFIG_BLUETOOTH_CENTRAL -DCONFIG_BLUETOOTH_GATT_CLIENT -DF_CPU=32000000L -DARDUINO=10815 -DARDUINO_ARC32_TOOLS -DARDUINO_ARCH_ARC32 -D__CPU_ARC__ -DCLOCK_SPEED=32 -DCONFIG_SOC_GPIO_32 -DCONFIG_SOC_GPIO_AON -DINFRA_MULTI_CPU_SUPPORT -DCFW_MULTI_CPU_SUPPORT -DHAS_SHARED_MEM -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/system/libarc32_arduino101/common -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/system/libarc32_arduino101/drivers -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/system/libarc32_arduino101/bootcode -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/system/libarc32_arduino101/framework/include -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/cores/arduino -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/variants/arduino_101 -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/libraries/SPI/src -I/Users/daniel/Documents/Arduino/libraries/Adafruit_MAX31855_library -I/Users/daniel/Documents/Arduino/libraries/Adafruit_BusIO -I/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/libraries/Wire/src /var/folders/p4/vh0y2_vx4gx65lfycjnm2xt80000gn/T/arduino_build_436628/sketch/serialthermocouple.ino.cpp -o /var/folders/p4/vh0y2_vx4gx65lfycjnm2xt80000gn/T/arduino_build_436628/sketch/serialthermocouple.ino.cpp.o
In file included from /Users/daniel/Documents/Arduino/libraries/Adafruit_MAX31855_library/examples/serialthermocouple/serialthermocouple.ino:17:0:
/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/libraries/SPI/src/SPI.h:47:18: error: invalid conversion from ‘int’ to ‘BitOrder’ [-fpermissive]
#define MSBFIRST 1
^
/Users/daniel/Documents/Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.h:31:31: note: in expansion of macro ‘MSBFIRST’
#define SPI_BITORDER_MSBFIRST MSBFIRST
^
/Users/daniel/Documents/Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.h:62:43: note: in expansion of macro ‘SPI_BITORDER_MSBFIRST’
BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
^
/Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/libraries/SPI/src/SPI.h:47:18: error: invalid conversion from ‘int’ to ‘BitOrder’ [-fpermissive]
#define MSBFIRST 1
^
/Users/daniel/Documents/Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.h:31:31: note: in expansion of macro ‘MSBFIRST’
#define SPI_BITORDER_MSBFIRST MSBFIRST
^
/Users/daniel/Documents/Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.h:67:43: note: in expansion of macro ‘SPI_BITORDER_MSBFIRST’
BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
^
Using library SPI at version 1.0 in folder: /Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/libraries/SPI
Using library Adafruit_MAX31855_library at version 1.3.0 in folder: /Users/daniel/Documents/Arduino/libraries/Adafruit_MAX31855_library
Using library Adafruit_BusIO at version 1.8.1 in folder: /Users/daniel/Documents/Arduino/libraries/Adafruit_BusIO
Using library Wire at version 1.0 in folder: /Users/daniel/Library/Arduino15/packages/Intel/hardware/arc32/2.0.4/libraries/Wire
exit status 1
Error compiling for board Arduino/Genuino 101.

Should this be posted in the MAX31855 repo?
https://github.com/adafruit/Adafruit_CircuitPython_MAX31855

This repo is for the SSD1306 OLED.

fixed