{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenLightingProject/ola/issues/1103","repository_url":"https://api.github.com/repos/OpenLightingProject/ola","labels_url":"https://api.github.com/repos/OpenLightingProject/ola/issues/1103/labels{/name}","comments_url":"https://api.github.com/repos/OpenLightingProject/ola/issues/1103/comments","events_url":"https://api.github.com/repos/OpenLightingProject/ola/issues/1103/events","html_url":"https://github.com/OpenLightingProject/ola/issues/1103","id":169481501,"number":1103,"title":"configure option to fix build on low memory platforms (rpi)","user":{"login":"edlins","id":12804882,"avatar_url":"https://avatars.githubusercontent.com/u/12804882?v=3","gravatar_id":"","url":"https://api.github.com/users/edlins","html_url":"https://github.com/edlins","followers_url":"https://api.github.com/users/edlins/followers","following_url":"https://api.github.com/users/edlins/following{/other_user}","gists_url":"https://api.github.com/users/edlins/gists{/gist_id}","starred_url":"https://api.github.com/users/edlins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edlins/subscriptions","organizations_url":"https://api.github.com/users/edlins/orgs","repos_url":"https://api.github.com/users/edlins/repos","events_url":"https://api.github.com/users/edlins/events{/privacy}","received_events_url":"https://api.github.com/users/edlins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-04T21:48:20Z","updated_at":"2016-08-04T21:48:20Z","closed_at":null,"body":"Hello, I am on a rpi B+ with g++ 4.9.2 building OLA 0.10.2 from source and it was failing in \"make check\" on StringUtilsTest.cpp due to running out of memory (cc1plus was > 400MB).  Apparently starting with G++ 4.8 there is a default compiler option that enables macro expansion tracking which causes a massive increase in memory consumption in some cases (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56746).  This is very easily fixed by disabling macro expansion tracking with an additional parameter to ./configure like so:\r\n\r\n     ./configure --enable-rdm-tests CXXFLAGS='-ftrack-macro-expansion=0'\r\n\r\nWith that, the source build completes successfully.\r\n\r\nWhat I would suggest is a tiny addition to the linuxinstall doc (https://www.openlighting.org/ola/linuxinstall/) where it talks about deciding on the ./configure options.It would be helpful to have something along the lines of:\r\n\r\n\"If you are compiling on a platform with limited memory, such as a Raspberry Pi with 512 MB of RAM, try adding CXXFLAGS='-ftrack-macro-expansion=0' to the end of the ./configure command.\"\r\n\r\nI know it's not an OLA issue but should save time and headaches for anyone else building on rpi.\r\n\r\nThanks!"}}
{"actor":{"display_login":"edlins"}}