Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME680 BSEC Arduino Uno compile error

    Highlighted
    Occasional Visitor

    Re: BME680 BSEC Arduino Uno compile error

    I downloaded this repo today (25.9.2020) and tried to compile basic sketch for ATmega2560 but got the similar (incompatible) error:

    c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: skipping incompatible C:\Users\arduinouser\Documents\Arduino\libraries\BSEC\src\atmega2560\libalgobsec.a when searching for -lalgobsec

    A few more lines before error appeared:

    Compiling sketch...
    "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\arduinouser\\Documents\\Arduino\\libraries\\BSEC\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\Wire\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\libraries\\SPI\\src" "C:\\Users\\arduinouser\\AppData\\Local\\Temp\\arduino_build_965258\\sketch\\basic.ino.cpp" -o "C:\\Users\\arduinouser\\AppData\\Local\\Temp\\arduino_build_965258\\sketch\\basic.ino.cpp.o"
    Compiling libraries...
    Compiling library "BSEC"
    Library BSEC has been declared precompiled:
    Using precompiled library in C:\Users\arduinouser\Documents\Arduino\libraries\BSEC\src\atmega2560
    Using previously compiled file: C:\Users\arduinouser\AppData\Local\Temp\arduino_build_965258\libraries\BSEC\bsec.cpp.o
    Using previously compiled file: C:\Users\arduinouser\AppData\Local\Temp\arduino_build_965258\libraries\BSEC\bme680\bme680.c.o
    Using previously compiled file: C:\Users\arduinouser\AppData\Local\Temp\arduino_build_965258\libraries\BSEC\BSEC.a
    Compiling library "Wire"
    Using previously compiled file: C:\Users\arduinouser\AppData\Local\Temp\arduino_build_965258\libraries\Wire\Wire.cpp.o
    Using previously compiled file: C:\Users\arduinouser\AppData\Local\Temp\arduino_build_965258\libraries\Wire\utility\twi.c.o
    Compiling library "SPI"
    Using previously compiled file: C:\Users\arduinouser\AppData\Local\Temp\arduino_build_965258\libraries\SPI\SPI.cpp.o
    Compiling core...
    Using precompiled core: C:\Users\arduinouser\AppData\Local\Temp\arduino_cache_256396\core\core_arduino_avr_mega_cpu_atmega2560_0c812875ac70eb4a9b385d8fb077f54c.a
    Linking everything together...
    "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -Wl,-Map "-Wl,C:\\Users\\arduinouser\\AppData\\Local\\Temp\\arduino_build_965258/basic.ino.map" -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -o "C:\\Users\\arduinouser\\AppData\\Local\\Temp\\arduino_build_965258/basic.ino.elf" -Wl,--start-group "C:\\Users\\arduinouser\\AppData\\Local\\Temp\\arduino_build_965258\\sketch\\basic.ino.cpp.o" "C:\\Users\\arduinouser\\AppData\\Local\\Temp\\arduino_build_965258\\libraries\\BSEC\\BSEC.a" "C:\\Users\\arduinouser\\AppData\\Local\\Temp\\arduino_build_965258\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\arduinouser\\AppData\\Local\\Temp\\arduino_build_965258\\libraries\\Wire\\utility\\twi.c.o" "C:\\Users\\arduinouser\\AppData\\Local\\Temp\\arduino_build_965258\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\arduinouser\\AppData\\Local\\Temp\\arduino_cache_256396\\core\\core_arduino_avr_mega_cpu_atmega2560_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\\Users\\arduinouser\\Documents\\Arduino\\libraries\\BSEC\\src\\atmega2560" -lalgobsec -lalgobsec -Wl,--end-group "-LC:\\Users\\arduinouser\\AppData\\Local\\Temp\\arduino_build_965258"
    c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: skipping incompatible C:\Users\arduinouser\Documents\Arduino\libraries\BSEC\src\atmega2560\libalgobsec.a when searching for -lalgobsec
    c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lalgobsec
    c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: skipping incompatible C:\Users\arduinouser\Documents\Arduino\libraries\BSEC\src\atmega2560\libalgobsec.a when searching for -lalgobsec
    c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lalgobsec
    collect2.exe: error: ld returned 1 exit status
    Using library BSEC at version 1.5.1474 in folder: C:\Users\arduinouser\Documents\Arduino\libraries\BSEC
    Using library Wire at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire
    Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI
    exit status 1
    Error compiling for board Arduino Mega or Mega 2560.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist