{"action":"created","issue":{"url":"https://api.github.com/repos/spark/firmware/issues/1060","repository_url":"https://api.github.com/repos/spark/firmware","labels_url":"https://api.github.com/repos/spark/firmware/issues/1060/labels{/name}","comments_url":"https://api.github.com/repos/spark/firmware/issues/1060/comments","events_url":"https://api.github.com/repos/spark/firmware/issues/1060/events","html_url":"https://github.com/spark/firmware/issues/1060","id":165126130,"number":1060,"title":"Build firmware failed  at linking stage","user":{"login":"XuGuohui","id":8130559,"avatar_url":"https://avatars.githubusercontent.com/u/8130559?v=3","gravatar_id":"","url":"https://api.github.com/users/XuGuohui","html_url":"https://github.com/XuGuohui","followers_url":"https://api.github.com/users/XuGuohui/followers","following_url":"https://api.github.com/users/XuGuohui/following{/other_user}","gists_url":"https://api.github.com/users/XuGuohui/gists{/gist_id}","starred_url":"https://api.github.com/users/XuGuohui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XuGuohui/subscriptions","organizations_url":"https://api.github.com/users/XuGuohui/orgs","repos_url":"https://api.github.com/users/XuGuohui/repos","events_url":"https://api.github.com/users/XuGuohui/events{/privacy}","received_events_url":"https://api.github.com/users/XuGuohui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-12T16:50:30Z","updated_at":"2016-08-04T03:12:13Z","closed_at":null,"body":"Hi,\r\n\r\nI pulled the latest develop branch and built it with ARM GCC 4.9.3. \r\n\r\nMake command : `PLATFORM=photon PARTICLE_DEVELOP=1`\r\n\r\nError reported:\r\n\r\n> src/main.c: In function 'main':\r\nMCU/STM32F2xx/STM32_USB_OTG_Driver/src/usb_core.c:300:27: error: iteration 6 invokes undefined behavior [-Werror=aggressive-loop-optimizations]\r\nMCU/STM32F2xx/STM32_USB_OTG_Driver/src/usb_core.c:298:3: note: containing loop\r\nMCU/STM32F2xx/STM32_USB_OTG_Driver/src/usb_core.c:306:25: error: iteration 6 invokes undefined behavior [-Werror=aggressive-loop-optimizations]\r\nMCU/STM32F2xx/STM32_USB_OTG_Driver/src/usb_core.c:304:3: note: containing loop\r\nlto1.exe: all warnings being treated as errors\r\n\r\nAny idea would be appreciated!"},"comment":{"url":"https://api.github.com/repos/spark/firmware/issues/comments/237440949","html_url":"https://github.com/spark/firmware/issues/1060#issuecomment-237440949","issue_url":"https://api.github.com/repos/spark/firmware/issues/1060","id":237440949,"user":{"login":"XuGuohui","id":8130559,"avatar_url":"https://avatars.githubusercontent.com/u/8130559?v=3","gravatar_id":"","url":"https://api.github.com/users/XuGuohui","html_url":"https://github.com/XuGuohui","followers_url":"https://api.github.com/users/XuGuohui/followers","following_url":"https://api.github.com/users/XuGuohui/following{/other_user}","gists_url":"https://api.github.com/users/XuGuohui/gists{/gist_id}","starred_url":"https://api.github.com/users/XuGuohui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XuGuohui/subscriptions","organizations_url":"https://api.github.com/users/XuGuohui/orgs","repos_url":"https://api.github.com/users/XuGuohui/repos","events_url":"https://api.github.com/users/XuGuohui/events{/privacy}","received_events_url":"https://api.github.com/users/XuGuohui/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T03:12:12Z","updated_at":"2016-08-04T03:12:12Z","body":"@sergeuz Bingo! I did try building the firmware from the `main` and `module` directories and no error occurred. So it is the problem when building the firmware  from root directory, i.e. building the bootloader. \r\n\r\nWould it be fixed soon? I'm eager to port the latest firmware for RedBear Duo.\r\n\r\nThank you so much!"}}
{"actor":{"display_login":"XuGuohui"}}