{"id":19599273,"url":"https://github.com/impulseadventure/arduino-lto-error","last_synced_at":"2025-07-08T11:33:04.251Z","repository":{"id":79247810,"uuid":"161593147","full_name":"ImpulseAdventure/Arduino-LTO-Error","owner":"ImpulseAdventure","description":"Demonstration of Arduino lto1.exe compiler error (splice_child_die / dwarf2out.c)","archived":false,"fork":false,"pushed_at":"2019-05-15T14:09:19.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-09T07:51:05.252Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ImpulseAdventure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-13T06:19:09.000Z","updated_at":"2019-05-15T14:09:21.000Z","dependencies_parsed_at":"2023-03-11T11:45:16.647Z","dependency_job_id":null,"html_url":"https://github.com/ImpulseAdventure/Arduino-LTO-Error","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImpulseAdventure%2FArduino-LTO-Error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImpulseAdventure%2FArduino-LTO-Error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImpulseAdventure%2FArduino-LTO-Error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImpulseAdventure%2FArduino-LTO-Error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ImpulseAdventure","download_url":"https://codeload.github.com/ImpulseAdventure/Arduino-LTO-Error/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240876855,"owners_count":19871903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T09:09:33.775Z","updated_at":"2025-02-26T15:17:33.731Z","avatar_url":"https://github.com/ImpulseAdventure.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arduino-LTO1-Error\nDemonstration of Arduino `lto1.exe` compiler error (`splice_child_die` / `dwarf2out.c`)\n\n### Test Setup:\n- **IDE**:        Arduino IDE 1.8.7\n- **Board Pkg**:  Arduino AVR Boards 1.6.23\n- **Device**:     Arduino UNO\n\n### Output:\n```\n  lto1.exe: internal compiler error: in splice_child_die, at dwarf2out.c:4905\n  Please submit a full bug report,\n  with preprocessed source if appropriate.\n  See \u003chttp://gcc.gnu.org/bugs.html\u003e for instructions.\n  lto-wrapper.exe: fatal error: C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc returned 1 exit status\n```\n\n### Other test results:\n- Arduino IDE 1.8.9 + Arduino AVR Boards 1.6.209 (no error)\n- Arduino IDE 1.8.9 + Arduino AVR Boards 1.6.23  (fail)\n- Arduino IDE 1.8.7 + Arduino AVR Boards 1.6.209 (no error)\n- Arduino IDE 1.8.7 + Arduino AVR Boards 1.6.23  (fail)\n- Arduino IDE 1.8.7 + Arduino AVR Boards 1.6.22  (fail)\n- Arduino IDE 1.8.7 + Arduino AVR Boards 1.6.21  (no error)\n- Arduino IDE 1.8.5                              (no error)\n\n- Arduino IDE 1.8.7 + Arduino AVR Boards 1.6.23 + Disable debugger symbols (no error)\n  - Remove \"-g\" option from platform.txt: compiler.c.flags\n  \n# SOLUTION\nThe latest gcc 7.3.0 toolchain under consideration for the next Arduino IDE resolves this issue. To test out the new toolchain, please refer to the [instructions for updating gcc to 7.3.0](https://github.com/arduino/Arduino/issues/7949#issuecomment-442969335).\n\n# WORKAROUND\nAs the newer IDE environment is not available yet, an easy workaround is to backdate the *Arduino AVR Boards* from within the Arduino IDE Board Manager. Please select version 1.6.21 instead of 1.6.22 or 1.6.23.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpulseadventure%2Farduino-lto-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimpulseadventure%2Farduino-lto-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpulseadventure%2Farduino-lto-error/lists"}