{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/518","labels_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/518/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/518/comments","events_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/518/events","html_url":"https://github.com/Homebrew/linuxbrew/pull/518","id":102669883,"number":518,"title":"FIXED: openssl fails to build on a raspberry pi","user":{"login":"nstCactus","id":353843,"avatar_url":"https://avatars.githubusercontent.com/u/353843?v=3","gravatar_id":"","url":"https://api.github.com/users/nstCactus","html_url":"https://github.com/nstCactus","followers_url":"https://api.github.com/users/nstCactus/followers","following_url":"https://api.github.com/users/nstCactus/following{/other_user}","gists_url":"https://api.github.com/users/nstCactus/gists{/gist_id}","starred_url":"https://api.github.com/users/nstCactus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nstCactus/subscriptions","organizations_url":"https://api.github.com/users/nstCactus/orgs","repos_url":"https://api.github.com/users/nstCactus/repos","events_url":"https://api.github.com/users/nstCactus/events{/privacy}","received_events_url":"https://api.github.com/users/nstCactus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/linuxbrew/labels/build-error","name":"build-error","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"sjackman","id":291551,"avatar_url":"https://avatars.githubusercontent.com/u/291551?v=3","gravatar_id":"","url":"https://api.github.com/users/sjackman","html_url":"https://github.com/sjackman","followers_url":"https://api.github.com/users/sjackman/followers","following_url":"https://api.github.com/users/sjackman/following{/other_user}","gists_url":"https://api.github.com/users/sjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/sjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjackman/subscriptions","organizations_url":"https://api.github.com/users/sjackman/orgs","repos_url":"https://api.github.com/users/sjackman/repos","events_url":"https://api.github.com/users/sjackman/events{/privacy}","received_events_url":"https://api.github.com/users/sjackman/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-08-23T23:11:54Z","updated_at":"2015-10-09T18:21:58Z","closed_at":"2015-10-08T22:24:50Z","pull_request":{"url":"https://api.github.com/repos/Homebrew/linuxbrew/pulls/518","html_url":"https://github.com/Homebrew/linuxbrew/pull/518","diff_url":"https://github.com/Homebrew/linuxbrew/pull/518.diff","patch_url":"https://github.com/Homebrew/linuxbrew/pull/518.patch"},"body":"Quick & dirty fix but it got the job done. Feel free to improve it.\r\n\r\n**Details:**\r\nI was trying to build openssl on a Raspberry Pi 2\r\n\r\nI ran this command:\r\n\r\n    brew install --verbose openssl\r\n\r\nAnd got the following output:\r\n\r\n>==> Downloading https://www.openssl.org/source/openssl-1.0.2d.tar.gz\r\n/usr/bin/curl -fLA Homebrew 0.9.5 (Ruby 1.9.3-194; arm-linux-eabihf) https://www.openssl.org/source/openssl-1.0.2d.tar.gz -C 0 -o /home/pi/.cache/Homebrew/openssl-1.0.2d.tar.gz.incomplete --connect-timeout 5\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100 5171k  100 5171k    0     0  3431k      0  0:00:01  0:00:01 --:--:-- 3581k\r\n==> Verifying openssl-1.0.2d.tar.gz checksum\r\ntar xf /home/pi/.cache/Homebrew/openssl-1.0.2d.tar.gz\r\ntar: A lone zero block at 52140\r\nError: undefined method `split' for nil:NilClass\r\nPlease report this bug:\r\n    https://github.com/Homebrew/linuxbrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting\r\n/home/pi/.linuxbrew/Library/Homebrew/os/linux/hardware.rb:53:in `flags'\r\n/home/pi/.linuxbrew/Library/Homebrew/os/linux/hardware.rb:63:in `block (2 levels) in <module:LinuxCPUs>'\r\n/home/pi/.linuxbrew/Library/Homebrew/os/mac.rb:171:in `prefer_64_bit?'\r\n/home/pi/.linuxbrew/Library/Formula/openssl.rb:53:in `install'\r\n/home/pi/.linuxbrew/Library/Homebrew/build.rb:129:in `block in install'\r\n/home/pi/.linuxbrew/Library/Homebrew/formula.rb:666:in `block in brew'\r\n/home/pi/.linuxbrew/Library/Homebrew/formula.rb:1076:in `block in stage'\r\n/home/pi/.linuxbrew/Library/Homebrew/resource.rb:91:in `block in unpack'\r\n/home/pi/.linuxbrew/Library/Homebrew/extend/fileutils.rb:16:in `mktemp'\r\n/home/pi/.linuxbrew/Library/Homebrew/resource.rb:88:in `unpack'\r\n/home/pi/.linuxbrew/Library/Homebrew/resource.rb:81:in `stage'\r\n/home/pi/.linuxbrew/Library/Homebrew/formula.rb:1068:in `stage'\r\n/home/pi/.linuxbrew/Library/Homebrew/formula.rb:662:in `brew'\r\n/home/pi/.linuxbrew/Library/Homebrew/build.rb:107:in `install'\r\n/home/pi/.linuxbrew/Library/Homebrew/build.rb:179:in `<main>'\r\n\r\nAfter investigating a little, I found out that the error was caused by the fact my _/proc/cpuinfo_ file didn't have any line begining with `flags.`:\r\n\r\n> processor\t: 0\r\nmodel name\t: ARMv7 Processor rev 5 (v7l)\r\nBogoMIPS\t: 57.60\r\nFeatures\t: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm\r\nCPU implementer\t: 0x41\r\nCPU architecture: 7\r\nCPU variant\t: 0x0\r\nCPU part\t: 0xc07\r\nCPU revision\t: 5\r\n>\r\n>processor\t: 1\r\nmodel name\t: ARMv7 Processor rev 5 (v7l)\r\nBogoMIPS\t: 57.60\r\nFeatures\t: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm\r\nCPU implementer\t: 0x41\r\nCPU architecture: 7\r\nCPU variant\t: 0x0\r\nCPU part\t: 0xc07\r\nCPU revision\t: 5\r\n>\r\n>processor\t: 2\r\nmodel name\t: ARMv7 Processor rev 5 (v7l)\r\nBogoMIPS\t: 57.60\r\nFeatures\t: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm\r\nCPU implementer\t: 0x41\r\nCPU architecture: 7\r\nCPU variant\t: 0x0\r\nCPU part\t: 0xc07\r\nCPU revision\t: 5\r\n>\r\n>processor\t: 3\r\nmodel name\t: ARMv7 Processor rev 5 (v7l)\r\nBogoMIPS\t: 57.60\r\nFeatures\t: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm\r\nCPU implementer\t: 0x41\r\nCPU architecture: 7\r\nCPU variant\t: 0x0\r\nCPU part\t: 0xc07\r\nCPU revision\t: 5\r\n>\r\n>Hardware\t: BCM2709\r\nRevision\t: a01041\r\nSerial\t\t: 000000006cd23207"},"comment":{"url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/comments/146953599","html_url":"https://github.com/Homebrew/linuxbrew/pull/518#issuecomment-146953599","issue_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/518","id":146953599,"user":{"login":"ronanc-raspberrypi","id":14964199,"avatar_url":"https://avatars.githubusercontent.com/u/14964199?v=3","gravatar_id":"","url":"https://api.github.com/users/ronanc-raspberrypi","html_url":"https://github.com/ronanc-raspberrypi","followers_url":"https://api.github.com/users/ronanc-raspberrypi/followers","following_url":"https://api.github.com/users/ronanc-raspberrypi/following{/other_user}","gists_url":"https://api.github.com/users/ronanc-raspberrypi/gists{/gist_id}","starred_url":"https://api.github.com/users/ronanc-raspberrypi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronanc-raspberrypi/subscriptions","organizations_url":"https://api.github.com/users/ronanc-raspberrypi/orgs","repos_url":"https://api.github.com/users/ronanc-raspberrypi/repos","events_url":"https://api.github.com/users/ronanc-raspberrypi/events{/privacy}","received_events_url":"https://api.github.com/users/ronanc-raspberrypi/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T18:21:58Z","updated_at":"2015-10-09T18:21:58Z","body":"ok back again,\r\n/proc/cpuinfo on my raspberry pi that successfully built openssl with the sjackman patch to hardware.rb file\r\nprocessor\t: 0\r\nmodel name\t: ARMv7 Processor rev 5 (v7l)\r\nBogoMIPS\t: 38.40\r\nFeatures\t: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm \r\nCPU implementer\t: 0x41\r\nCPU architecture: 7\r\nCPU variant\t: 0x0\r\nCPU part\t: 0xc07\r\nCPU revision\t: 5\r\n\r\nprocessor\t: 1\r\nmodel name\t: ARMv7 Processor rev 5 (v7l)\r\nBogoMIPS\t: 38.40\r\nFeatures\t: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm \r\nCPU implementer\t: 0x41\r\nCPU architecture: 7\r\nCPU variant\t: 0x0\r\nCPU part\t: 0xc07\r\nCPU revision\t: 5\r\n\r\nprocessor\t: 2\r\nmodel name\t: ARMv7 Processor rev 5 (v7l)\r\nBogoMIPS\t: 38.40\r\nFeatures\t: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm \r\nCPU implementer\t: 0x41\r\nCPU architecture: 7\r\nCPU variant\t: 0x0\r\nCPU part\t: 0xc07\r\nCPU revision\t: 5\r\n\r\nprocessor\t: 3\r\nmodel name\t: ARMv7 Processor rev 5 (v7l)\r\nBogoMIPS\t: 38.40\r\nFeatures\t: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm \r\nCPU implementer\t: 0x41\r\nCPU architecture: 7\r\nCPU variant\t: 0x0\r\nCPU part\t: 0xc07\r\nCPU revision\t: 5\r\n\r\nHardware\t: BCM2709\r\nRevision\t: a01041\r\nSerial\t\t: 0000000022b29dbb\r\n"}}