{"action":"created","issue":{"url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/101","repository_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5","labels_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/101/comments","events_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/101/events","html_url":"https://github.com/sandeepmistry/arduino-nRF5/issues/101","id":210222567,"number":101,"title":"Linux Arduino runtime.tools path errors","user":{"login":"erickrupinski","id":14302270,"avatar_url":"https://avatars.githubusercontent.com/u/14302270?v=3","gravatar_id":"","url":"https://api.github.com/users/erickrupinski","html_url":"https://github.com/erickrupinski","followers_url":"https://api.github.com/users/erickrupinski/followers","following_url":"https://api.github.com/users/erickrupinski/following{/other_user}","gists_url":"https://api.github.com/users/erickrupinski/gists{/gist_id}","starred_url":"https://api.github.com/users/erickrupinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erickrupinski/subscriptions","organizations_url":"https://api.github.com/users/erickrupinski/orgs","repos_url":"https://api.github.com/users/erickrupinski/repos","events_url":"https://api.github.com/users/erickrupinski/events{/privacy}","received_events_url":"https://api.github.com/users/erickrupinski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-25T09:04:37Z","updated_at":"2017-02-26T00:49:31Z","closed_at":null,"body":"\r\nArduino 1.8.1 installed from website, nRF 0.2.0, Xubuntu 16.04\r\n\r\nStrings with runtime.tools do not appear to be properly pathed or permissioned? \r\n\r\nI hardcoded arm-none-eabi-g++ to the system arm-none-eabi-g++ version of the file by changing the platform.txt. I was able to get past the first error I encountered, and then encountered another path error with the openocd file. \r\n\r\n#HackIllinois2017\r\n\r\n```\r\n/home/eric/Downloads/arduino-1.8.1/arduino-builder -dump-prefs -logger=machine -hardware /home/eric/Downloads/arduino-1.8.1/hardware -hardware /home/eric/.arduino15/packages -tools /home/eric/Downloads/arduino-1.8.1/tools-builder -tools /home/eric/Downloads/arduino-1.8.1/hardware/tools/avr -tools /home/eric/.arduino15/packages -built-in-libraries /home/eric/Downloads/arduino-1.8.1/libraries -libraries /home/eric/Arduino/libraries -fqbn=sandeepmistry:nRF5:Generic_nRF51822:chip=xxaa,softdevice=none,lfclk=lfxo -ide-version=10801 -build-path /tmp/arduino_build_370034 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=/home/eric/.arduino15/packages/sandeepmistry/tools/openocd/0.10.0-dev.nrf5 -prefs=runtime.tools.gcc-arm-none-eabi.path=/home/eric/.arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4 -verbose /home/eric/Downloads/arduino-1.8.1/examples/01.Basics/Blink/Blink.ino\r\n/home/eric/Downloads/arduino-1.8.1/arduino-builder -compile -logger=machine -hardware /home/eric/Downloads/arduino-1.8.1/hardware -hardware /home/eric/.arduino15/packages -tools /home/eric/Downloads/arduino-1.8.1/tools-builder -tools /home/eric/Downloads/arduino-1.8.1/hardware/tools/avr -tools /home/eric/.arduino15/packages -built-in-libraries /home/eric/Downloads/arduino-1.8.1/libraries -libraries /home/eric/Arduino/libraries -fqbn=sandeepmistry:nRF5:Generic_nRF51822:chip=xxaa,softdevice=none,lfclk=lfxo -ide-version=10801 -build-path /tmp/arduino_build_370034 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=/home/eric/.arduino15/packages/sandeepmistry/tools/openocd/0.10.0-dev.nrf5 -prefs=runtime.tools.gcc-arm-none-eabi.path=/home/eric/.arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4 -verbose /home/eric/Downloads/arduino-1.8.1/examples/01.Basics/Blink/Blink.ino\r\nUsing board 'Generic_nRF51822' from platform in folder: /home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0\r\nUsing core 'nRF5' from platform in folder: /home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0\r\nDetecting libraries used...\r\n\"/home/eric/.arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/arm-none-eabi-g++\" -mcpu=cortex-m0 -mthumb -c -g -Os -w  -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=16000000 -DARDUINO=10801 -DARDUINO_GENERIC -DARDUINO_ARCH_NRF5  -DNRF51 -DNRF5 \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/toolchain/\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/toolchain/CMSIS/Include\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/toolchain/gcc/\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/device/\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/drivers_nrf/delay/\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/softdevice/none/headers/\" -DUSE_LFXO \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/variants/Generic\" \"/tmp/arduino_build_370034/sketch/Blink.ino.cpp\" -o \"/dev/null\"\r\nGenerating function prototypes...\r\n\"/home/eric/.arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/arm-none-eabi-g++\" -mcpu=cortex-m0 -mthumb -c -g -Os -w  -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions  -w -x c++ -E -CC -DF_CPU=16000000 -DARDUINO=10801 -DARDUINO_GENERIC -DARDUINO_ARCH_NRF5  -DNRF51 -DNRF5 \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/toolchain/\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/toolchain/CMSIS/Include\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/toolchain/gcc/\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/device/\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/drivers_nrf/delay/\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/softdevice/none/headers/\" -DUSE_LFXO \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5\" \"-I/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/variants/Generic\" \"/tmp/arduino_build_370034/sketch/Blink.ino.cpp\" -o \"/tmp/arduino_build_370034/preproc/ctags_target_for_gcc_minus_e.cpp\"\r\nfork/exec /home/eric/.arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/arm-none-eabi-g++: no such file or directory\r\nError compiling for board Generic nRF51822.\r\n```\r\n\r\n```\r\n/usr/bin/arm-none-eabi-gcc\"  \"-L/tmp/arduino_build_370034\" -Os -Wl,--gc-sections -save-temps  \"-L/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/toolchain/gcc/\" \"-L/home/eric/.arduino15/packages/sandeepmistry/hardware/nRF5/0.2.0/cores/nRF5/SDK/components/softdevice/none/toolchain/armgcc/\" \"-Tnrf51_xxaa.ld\" \"-Wl,-Map,/tmp/arduino_build_370034/Blink.ino.map\" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0 -mthumb  -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o \"/tmp/arduino_build_370034/Blink.ino.elf\" \"/tmp/arduino_build_370034/sketch/Blink.ino.cpp.o\" \"/tmp/arduino_build_370034/core/variant.cpp.o\" -Wl,--start-group -lm \"/tmp/arduino_build_370034/core/core.a\" -Wl,--end-group\r\n/usr/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .heap by 4 bytes\r\n\"/usr/bin/arm-none-eabi-objcopy\" -O binary  \"/tmp/arduino_build_370034/Blink.ino.elf\" \"/tmp/arduino_build_370034/Blink.ino.bin\"/usr/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .stack_dummy by 4 bytes\r\n\r\n/usr/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .heap by 4 bytes\r\n/usr/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .stack_dummy by 4 bytes\r\n/usr/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .heap by 4 bytes\r\n/usr/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .stack_dummy by 4 bytes\r\n/usr/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .heap by 4 bytes\r\n/usr/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .stack_dummy by 4 bytes\r\n/usr/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .heap by 4 bytes\r\n/usr/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .stack_dummy by 4 bytes\r\n\"/usr/bin/arm-none-eabi-objcopy\" -O ihex  \"/tmp/arduino_build_370034/Blink.ino.elf\" \"/tmp/arduino_build_370034/Blink.ino.hex\"\r\nSketch uses 1496 bytes (0%) of program storage space. Maximum is 262144 bytes.\r\njava.io.IOException: Cannot run program \"/home/eric/.arduino15/packages/sandeepmistry/tools/openocd/0.10.0-dev.nrf5/bin/openocd\": error=2, No such file or directory\r\n\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)\r\n\tat java.lang.Runtime.exec(Runtime.java:620)\r\n\tat java.lang.Runtime.exec(Runtime.java:485)\r\n\tat processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)\r\n\tat cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)\r\n\tat cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:343)\r\n\tat cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:89)\r\n\tat cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)\r\n\tat processing.app.SketchController.upload(SketchController.java:709)\r\n\tat processing.app.SketchController.exportApplet(SketchController.java:682)\r\n\tat processing.app.Editor$DefaultExportHandler.run(Editor.java:2190)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.io.IOException: error=2, No such file or directory\r\n\tat java.lang.UNIXProcess.forkAndExec(Native Method)\r\n\tat java.lang.UNIXProcess.<init>(UNIXProcess.java:247)\r\n\tat java.lang.ProcessImpl.start(ProcessImpl.java:134)\r\n\tat java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)\r\n\t... 11 more\r\nAn error occurred while uploading the sketch\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/comments/282523892","html_url":"https://github.com/sandeepmistry/arduino-nRF5/issues/101#issuecomment-282523892","issue_url":"https://api.github.com/repos/sandeepmistry/arduino-nRF5/issues/101","id":282523892,"user":{"login":"erickrupinski","id":14302270,"avatar_url":"https://avatars.githubusercontent.com/u/14302270?v=3","gravatar_id":"","url":"https://api.github.com/users/erickrupinski","html_url":"https://github.com/erickrupinski","followers_url":"https://api.github.com/users/erickrupinski/followers","following_url":"https://api.github.com/users/erickrupinski/following{/other_user}","gists_url":"https://api.github.com/users/erickrupinski/gists{/gist_id}","starred_url":"https://api.github.com/users/erickrupinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erickrupinski/subscriptions","organizations_url":"https://api.github.com/users/erickrupinski/orgs","repos_url":"https://api.github.com/users/erickrupinski/repos","events_url":"https://api.github.com/users/erickrupinski/events{/privacy}","received_events_url":"https://api.github.com/users/erickrupinski/received_events","type":"User","site_admin":false},"created_at":"2017-02-26T00:49:31Z","updated_at":"2017-02-26T00:49:31Z","body":"Good catch. I was running 64 bit linux when I first ran the toolchains. I tried running it again in a 32 bit installation of Xubuntu and did not run across these errors. "}}
{"actor":{"display_login":"erickrupinski"}}