{"id":225,"date":"2014-10-01T08:30:05","date_gmt":"2014-09-30T20:30:05","guid":{"rendered":"http:\/\/www.herbert.org.nz\/?p=225"},"modified":"2014-10-01T08:39:47","modified_gmt":"2014-09-30T20:39:47","slug":"gnu-gcc-arm-and-osx","status":"publish","type":"post","link":"https:\/\/www.herbert.org.nz\/?p=225","title":{"rendered":"GNU GCC Arm and OSX"},"content":{"rendered":"<p>Get the precompiled toolchain <a href=\"https:\/\/launchpad.net\/gcc-arm-embedded\/+download\" title=\"gcc-arm-embedded\">here<\/a><\/p>\n<p>Download and extract folder, copy to \/usr\/local\/.<br \/>\nUpdate link to \/usr\/local\/arm-gcc (ln -s \/usr\/local\/gcc-arm-none-eabi-{version} \/usr\/local\/arm-gcc)<\/p>\n<p>Once only: Add gcc-arm to path:<br \/>\nEdit \/etc\/paths.d\/60-arm-gcc<br \/>\n<code>\/usr\/local\/arm-gcc\/bin<\/code><\/p>\n<p>Also add man paths<br \/>\nEdit \/etc\/manpaths.d\/60-arm-gcc<br \/>\n<code>\/usr\/local\/arm-gcc\/share\/doc\/gcc-arm-none-eabi\/man<\/code><\/p>\n<p>A bit of a &#8216;bug&#8217; in os x is path_helper (run from \/etc\/profile) doesn&#8217;t set MANPATH if it&#8217;s not already defined. So A quick hack is to add the following lines in \/etc\/profile:<br \/>\n<code><br \/>\nMANPATH=<br \/>\nexport MANPATH<br \/>\n<\/code><\/p>\n<p>So the complete file looks like:<br \/>\n<code><br \/>\n# System-wide .profile for sh(1)<br \/>\nMANPATH=<br \/>\nexport MANPATH<\/p>\n<p>if [ -x \/usr\/libexec\/path_helper ]; then<br \/>\n\teval `\/usr\/libexec\/path_helper -s`<br \/>\nfi<\/p>\n<p>if [ \"${BASH-no}\" != \"no\" ]; then<br \/>\n\t[ -r \/etc\/bashrc ] && . \/etc\/bashrc<br \/>\nfi<\/code><\/p>\n<p>Then all man paths defined in \/etc\/manpaths.d will be set<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Get the precompiled toolchain here Download and extract folder, copy to \/usr\/local\/. Update link to \/usr\/local\/arm-gcc (ln -s \/usr\/local\/gcc-arm-none-eabi-{version} \/usr\/local\/arm-gcc) Once only: Add gcc-arm to path: Edit \/etc\/paths.d\/60-arm-gcc \/usr\/local\/arm-gcc\/bin Also add man paths Edit \/etc\/manpaths.d\/60-arm-gcc \/usr\/local\/arm-gcc\/share\/doc\/gcc-arm-none-eabi\/man A bit of a &hellip; <a href=\"https:\/\/www.herbert.org.nz\/?p=225\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-225","post","type-post","status-publish","format-standard","hentry","category-avr"],"_links":{"self":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts\/225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=225"}],"version-history":[{"count":3,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":229,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=\/wp\/v2\/posts\/225\/revisions\/229"}],"wp:attachment":[{"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.herbert.org.nz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}