{"id":80,"date":"2015-12-24T00:51:04","date_gmt":"2015-12-24T00:51:04","guid":{"rendered":"http:\/\/www.fuckyou.computer\/wordpress\/?p=80"},"modified":"2015-12-24T00:51:04","modified_gmt":"2015-12-24T00:51:04","slug":"mac-homebrew-and-avr-gcc-woes","status":"publish","type":"post","link":"http:\/\/www.fuckyou.computer\/wordpress\/?p=80","title":{"rendered":"Mac Homebrew and avr-gcc woes"},"content":{"rendered":"<p><code><br \/>\nchecking whether clang++ accepts -g... yes<br \/>\nchecking whether g++ accepts -static-libstdc++ -static-libgcc... no<br \/>\nchecking for gnatbind... no<br \/>\nchecking for gnatmake... no<br \/>\nPress ENTER or type command to continue<br \/>\nchecking whether compiler driver understands Ada... no<br \/>\nchecking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2<br \/>\nPress ENTER or type command to continue<br \/>\nchecking for objdir... .libs<br \/>\nchecking for the correct version of gmp.h... yes<br \/>\nchecking for the correct version of mpfr.h... yes<br \/>\nchecking for the correct version of mpc.h... yes<br \/>\nchecking for the correct version of the gmp\/mpfr\/mpc libraries... yes<br \/>\nchecking for version 0.10 of ISL... no<br \/>\nchecking for version 0.11 of ISL... no<br \/>\nchecking for version 0.12 of ISL... no<br \/>\nconfigure: error: Unable to find a usable ISL.  See config.log for details.<br \/>\n<\/code><\/p>\n<p>Some background here, I&#8217;ve been trying to get the toolchain for my mechanical keyboard set up but for some reason when I was using homebrew I could never get the avr-gcc installed due to a failed isl dependency. No matter what I read and tried I couldn&#8217;t get the make script to use the right isl version. I installed and uninstalled isl lord alone knows how many times. I installed and uninstalled the right version of isl012 but couldn&#8217;t link the headers correctly. Even the last resort of a symbolic link in my opt folder did nothing.<\/p>\n<p>I have now fixed it.<\/p>\n<p>All you need to do is:<\/p>\n<p><code>$brew edit avr-gcc<\/code><\/p>\n<p>Change the two lines <code>depends_on 'isl'<\/code> and  <code>\"__with-isl=#{Formula[\"isl\"].opt_prefix}\"<\/code> to isl012 and you&#8217;re good to go.<\/p>\n<p><code>$brew install avr-gcc<\/code><\/p>\n<p>It *should* install the dependency for you and have the bonus of not making your other build chains break due to rolling back. No more failing out on an implicit repository head too far ahead of the make file. I wish there was a way of switching to a previous stable version in homebrew without having to tap formulas using the git switch trigger in a one liner as standard. Something like <code>$brew switch isl 012<\/code> would be good  but for some reason only some repos support that syntax, postgresql for example.<\/p>\n<p>Seriously, fuck you computer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>checking whether clang++ accepts -g&#8230; yes checking whether g++ accepts -static-libstdc++ -static-libgcc&#8230; no checking for gnatbind&#8230; no checking for gnatmake&#8230; no Press ENTER or type command to continue checking whether compiler driver understands Ada&#8230; no checking how to compare bootstrapped objects&#8230; cmp &#8211;ignore-initial=16 $$f1 $$f2 Press ENTER or type command to continue checking for objdir&#8230; &hellip; <a href=\"http:\/\/www.fuckyou.computer\/wordpress\/?p=80\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Mac Homebrew and avr-gcc woes<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-80","post","type-post","status-publish","format-standard","hentry","category-self-help"],"_links":{"self":[{"href":"http:\/\/www.fuckyou.computer\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/80","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.fuckyou.computer\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.fuckyou.computer\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.fuckyou.computer\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.fuckyou.computer\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=80"}],"version-history":[{"count":2,"href":"http:\/\/www.fuckyou.computer\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":87,"href":"http:\/\/www.fuckyou.computer\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/80\/revisions\/87"}],"wp:attachment":[{"href":"http:\/\/www.fuckyou.computer\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.fuckyou.computer\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.fuckyou.computer\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}