{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/arduino-builder/issues/76","labels_url":"https://api.github.com/repos/arduino/arduino-builder/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/arduino/arduino-builder/issues/76/comments","events_url":"https://api.github.com/repos/arduino/arduino-builder/issues/76/events","html_url":"https://github.com/arduino/arduino-builder/issues/76","id":119820530,"number":76,"title":"run arduino-builder on ARM Linux box","user":{"login":"spiderkeys","id":859469,"avatar_url":"https://avatars.githubusercontent.com/u/859469?v=3","gravatar_id":"","url":"https://api.github.com/users/spiderkeys","html_url":"https://github.com/spiderkeys","followers_url":"https://api.github.com/users/spiderkeys/followers","following_url":"https://api.github.com/users/spiderkeys/following{/other_user}","gists_url":"https://api.github.com/users/spiderkeys/gists{/gist_id}","starred_url":"https://api.github.com/users/spiderkeys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spiderkeys/subscriptions","organizations_url":"https://api.github.com/users/spiderkeys/orgs","repos_url":"https://api.github.com/users/spiderkeys/repos","events_url":"https://api.github.com/users/spiderkeys/events{/privacy}","received_events_url":"https://api.github.com/users/spiderkeys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-01T22:16:04Z","updated_at":"2015-12-02T09:01:25Z","closed_at":null,"body":"I am trying to do something fairly unconventional, which is trying to use arduino-builder on a Beaglebone Black (armhf single board computer) to build an Arduino sketch with the latest 1.6.6 Arduino files. arduino-builder is required, since the distribution itself is CLI only, no display (and no one has built an armhf port of 1.6.6). Here are the steps I have taken (all on a beaglebone):\r\n\r\n- Cloned the latest Arduino master branch on Git to get the latest /hardware/ folder\r\n- Installed the latest avr-gcc toolchain (4.8.1) to /usr/bin/\r\n- Successfully built arduino-builder\r\n- Created a test sketch which is an empty init() and a loop(){ Delay(1000); }\r\n- Added the line \"mega.build.mcu=atmega2560\" to Arduino/hardware/arduino/avr/boards.txt, since it was missing for some reason and caused arduino-builder to error with an empty -mmcu flag\r\n- Changed the following to fix an error: \r\n\r\n```\r\ncompiler.path={runtime.tools.avr-gcc.path}/bin/\r\nto\r\ncompiler.path=/usr/bin/\r\n```\r\n\r\n- Executed the following command:\r\n\r\n```\r\n./arduino-builder -hardware=\"/root/workspace/Arduino/hardware/\" -tools=\"/usr/bin/\" -fqbn=arduino:avr:mega -verbose test.ino \r\n``` \r\n\r\nFollowing is the resulting output. The apparent error is \"ctags pattern is missing\"\r\n\r\n```\r\n\"/usr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR   \"-I/root/workspace/Arduino/hardware/arduino/avr/cores/arduino\" \"-I/root/workspace/Arduino/hardware/arduino/avr/variants/mega\" \"/tmp/arduino-sketch-F65E51C7CC67F8F1D777CCD86FAE2D65/sketch/test.ino.cpp\" -o \"/tmp/arduino-sketch-F65E51C7CC67F8F1D777CCD86FAE2D65/preproc/test.ino.cpp_134020434_preprocessed.cpp\"\r\n\r\n\"/usr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR   \"-I/root/workspace/Arduino/hardware/arduino/avr/cores/arduino\" \"-I/root/workspace/Arduino/hardware/arduino/avr/variants/mega\" \"/tmp/arduino-sketch-F65E51C7CC67F8F1D777CCD86FAE2D65/sketch/test.ino.cpp\" -o \"/tmp/arduino-sketch-F65E51C7CC67F8F1D777CCD86FAE2D65/preproc/test.ino.cpp_1597969999_preprocessed.cpp\"\r\n\r\n\"/usr/bin/avr-g++\" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR   \"-I/root/workspace/Arduino/hardware/arduino/avr/cores/arduino\" \"-I/root/workspace/Arduino/hardware/arduino/avr/variants/mega\" \"/tmp/arduino-sketch-F65E51C7CC67F8F1D777CCD86FAE2D65/sketch/test.ino.cpp\" -o \"/tmp/arduino-sketch-F65E51C7CC67F8F1D777CCD86FAE2D65/preproc/ctags_target_for_gcc_minus_e.cpp\"\r\nctags pattern is missing\r\n```\r\n\r\nI tried grepping through the arduino-builder folder, but couldn't find that specific error string anywhere. I then realized that the machine itself didn't have ctags installed, so I ran apt-get install exuberant-ctags, which added ctags to /usr/bin/ as well. No change observed.\r\n\r\nAny ideas on how I might fix this problem? \r\n\r\nAlso, I notice that there is a arduino-builder/src/arduino.cc/builder/hardware/platform.txt file which sets the variables:\r\n\r\n```\r\ntools.ctags.path={runtime.tools.ctags.path}\r\ntools.ctags.cmd.path={path}/ctags\r\ntools.ctags.pattern=\"{cmd.path}\" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives \"{source_file}\"\r\n```\r\n\r\nWhere are these being used? They aren't present in my Arduino/hardware/..../platform.txt file, and as far as I can tell, the arduino-builder executable doesn't know anything about the platform.txt file in  its build folder (unless those options were built into it somehow when I ran the Go build?)"},"comment":{"url":"https://api.github.com/repos/arduino/arduino-builder/issues/comments/161226812","html_url":"https://github.com/arduino/arduino-builder/issues/76#issuecomment-161226812","issue_url":"https://api.github.com/repos/arduino/arduino-builder/issues/76","id":161226812,"user":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T09:01:25Z","updated_at":"2015-12-02T09:01:25Z","body":"@facchinm good to know!"}}