{"action":"created","issue":{"url":"https://api.github.com/repos/avr-rust/rust/issues/16","repository_url":"https://api.github.com/repos/avr-rust/rust","labels_url":"https://api.github.com/repos/avr-rust/rust/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/avr-rust/rust/issues/16/comments","events_url":"https://api.github.com/repos/avr-rust/rust/issues/16/events","html_url":"https://github.com/avr-rust/rust/issues/16","id":150570526,"number":16,"title":"Failing build","user":{"login":"rhn","id":360181,"avatar_url":"https://avatars.githubusercontent.com/u/360181?v=3","gravatar_id":"","url":"https://api.github.com/users/rhn","html_url":"https://github.com/rhn","followers_url":"https://api.github.com/users/rhn/followers","following_url":"https://api.github.com/users/rhn/following{/other_user}","gists_url":"https://api.github.com/users/rhn/gists{/gist_id}","starred_url":"https://api.github.com/users/rhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhn/subscriptions","organizations_url":"https://api.github.com/users/rhn/orgs","repos_url":"https://api.github.com/users/rhn/repos","events_url":"https://api.github.com/users/rhn/events{/privacy}","received_events_url":"https://api.github.com/users/rhn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-23T16:09:14Z","updated_at":"2016-06-23T04:40:20Z","closed_at":null,"body":"Trying to build avr-rust breaks whenever I run make.\r\nThe submodule src/llvm is hardcoded to use the commit `cebc0b4`:\r\n\r\n```\r\n# make\r\n[...]\r\nSynchronizing submodule url for 'src/llvm'\r\n[...]\r\n# cd src/llvm; git checkout\r\n(HEAD detached at cebc0b4)\r\n```\r\n\r\nThis seems to correspond to the branch avr-rust, and produces a broken build, in which the shl instruction is not lowered properly:\r\n\r\n```\r\nCFG_LLVM_LINKAGE_FILE= LD_LIBRARY_PATH=/mnt/tempcache/AVR-rust/avr-rust-build/x86_64-unknown-linux-gnu/stage2/lib:$LD_LIBRARY_PATH   x86_64-unknown-linux-gnu/stage2/bin/rustc --cfg stage2  -O --cfg rtopt  --target=avr-atmel-none -C linker=avr-gcc -C ar=avr-ar  -C target-cpu=atmega328p -C prefer-dynamic -D warnings -L \"avr-atmel-none/rt\"     --out-dir x86_64-unknown-linux-gnu/stage2/lib/rustlib/avr-atmel-none/lib -C extra-filename=-a5fc0d6c ../avr-rust/src/libcore/lib.rs\r\nLLVM ERROR: Cannot select: 0x7f616b009818: i8 = ##name## 0x7f616be53ce8, 0x7f616b5d3b88 [ORD=4] [ID=8]\r\n  0x7f616be53ce8: i8,ch = CopyFromReg 0x7f616b840d10, 0x7f6170529ce8 [ORD=1] [ID=5]\r\n    0x7f6170529ce8: i8 = Register %vreg0 [ID=1]\r\n  0x7f616b5d3b88: i16 = and 0x7f616b00a158, 0x7f6171ba5720 [ORD=4] [ID=7]\r\n    0x7f616b00a158: i16,ch = CopyFromReg 0x7f616b840d10, 0x7f6171bd8a90 [ORD=1] [ID=6]\r\n      0x7f6171bd8a90: i16 = Register %vreg1 [ID=2]\r\n    0x7f6171ba5720: i16 = Constant<7> [ID=4]\r\nIn function: _ZN3num8wrapping35Wrapping$LT$u8$GT$.Shl$LT$usize$GT$3shl20h8e8197c1e2abaa89d3aE\r\n```\r\n\r\nAs a related question, how to make sure llvm does *not* revert to some other branch when I do `make`?"},"comment":{"url":"https://api.github.com/repos/avr-rust/rust/issues/comments/227948174","html_url":"https://github.com/avr-rust/rust/issues/16#issuecomment-227948174","issue_url":"https://api.github.com/repos/avr-rust/rust/issues/16","id":227948174,"user":{"login":"shepmaster","id":174509,"avatar_url":"https://avatars.githubusercontent.com/u/174509?v=3","gravatar_id":"","url":"https://api.github.com/users/shepmaster","html_url":"https://github.com/shepmaster","followers_url":"https://api.github.com/users/shepmaster/followers","following_url":"https://api.github.com/users/shepmaster/following{/other_user}","gists_url":"https://api.github.com/users/shepmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/shepmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shepmaster/subscriptions","organizations_url":"https://api.github.com/users/shepmaster/orgs","repos_url":"https://api.github.com/users/shepmaster/repos","events_url":"https://api.github.com/users/shepmaster/events{/privacy}","received_events_url":"https://api.github.com/users/shepmaster/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T04:40:20Z","updated_at":"2016-06-23T04:40:20Z","body":"> run some blinkenlights on an AVR device?\r\n\r\nhttp://jakegoulding.com/blog/2016/01/24/rust-on-an-arduino-uno-part-3/\r\n\r\n> an average user\r\n\r\nDepends on \"average\". I believe that most people who will be interested in this project at this point are capable of [compiling LLVM and Rust](http://jakegoulding.com/blog/2016/05/12/rust-on-an-arduino-uno-part-4/) and doing a bit of small hacking to fix the inevitable small issues. However, there's certainly a lot more that I'd like to provide to make it easier."}}
{"actor":{"display_login":"shepmaster"}}