I can't compile sketches for Arduino 101 on Ubuntu 16.04

Discussion in 'UDOO X86' started by dave234, Jun 12, 2019.

  1. dave234

    dave234 New Member

    Joined:
    Jun 12, 2019
    Messages:
    3
    Likes Received:
    2
    Hello,

    I have an UDOO x86 Ultra with Ubuntu 16.04 and I installed the Arduino IDE 1.8.9. The internal connection to the Arduino/Genuino 101 is found at port: /dev/ttyACM0 (Arduino/Genuino 101)

    My problem is, when I try to compile a sketch for the Arduino/Genuino 101, I receive the following error message:

    ****************************************************************************************

    Arduino: 1.8.9 (Linux), Board: "Arduino/Genuino 101"

    Build options changed, rebuilding all
    fork/exec /home/dock/.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-g++: no such file or directory
    Error compiling for board Arduino/Genuino 101.

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    ****************************************************************************************

    I need to use the Curie board to read sensor data through I2C and to control a stepper motor.
    I can compile and upload sketches to a normal Arduino/Genuino Uno without any problems.

    When I open the directory where the missing file should be, I find the following files:

    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-addr2line
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-ar
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-as
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-c++
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-c++filt
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-cpp
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-elfedit
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-gcc-4.8.5
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-gcc-ar
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-gcc-nm
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-gcc-ranlib
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-gcov
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-gdb
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-ld.bfd
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-nm
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-objcopy
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-objdump
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-ranlib
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-readelf
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-run
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-size
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-strings
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-strip
    /.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1/bin/arc-elf32-tcf-gcc

    Can anyone please help me? I can't find anything for this problem that could help me.
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,083
    Likes Received:
    529
  3. dave234

    dave234 New Member

    Joined:
    Jun 12, 2019
    Messages:
    3
    Likes Received:
    2
    Hi waltervl,

    Thanks for your reply. I already encountered this link and I already uninstalled and reinstalled the Arduino IDE. Unfortunately this did not help as the missing file was still not there.

    It is possible to compile the program with the Arduino Web Tool, but I would rather use the offline IDE.
    Do you have any experience with this problem?
     
  4. dave234

    dave234 New Member

    Joined:
    Jun 12, 2019
    Messages:
    3
    Likes Received:
    2
    Update,

    I just deleted the Arduino IDE (as I already did before but this time I deleted the "~/.arduino15" directory) and after I re-installed the Arduino IDE, the "arc-elf32-g++" was there this time and I could compile and upload an example program.

    Thank you waltervl to make me re-install it even though I already tried this.

    It does not make any real sense as nothing is really different in the end, but it's working now.
     
    evaloverde and waltervl like this.

Share This Page