{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/487","labels_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/487/comments","events_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/487/events","html_url":"https://github.com/Homebrew/linuxbrew/issues/487","id":95478811,"number":487,"title":"isl 0.14.1 fails to build as gcc depends on isl (same applies to mpfr)","user":{"login":"davydden","id":8023934,"avatar_url":"https://avatars.githubusercontent.com/u/8023934?v=3","gravatar_id":"","url":"https://api.github.com/users/davydden","html_url":"https://github.com/davydden","followers_url":"https://api.github.com/users/davydden/followers","following_url":"https://api.github.com/users/davydden/following{/other_user}","gists_url":"https://api.github.com/users/davydden/gists{/gist_id}","starred_url":"https://api.github.com/users/davydden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davydden/subscriptions","organizations_url":"https://api.github.com/users/davydden/orgs","repos_url":"https://api.github.com/users/davydden/repos","events_url":"https://api.github.com/users/davydden/events{/privacy}","received_events_url":"https://api.github.com/users/davydden/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/linuxbrew/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Homebrew/linuxbrew/labels/build-error","name":"build-error","color":"e11d21"}],"state":"open","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":9,"created_at":"2015-07-16T16:55:50Z","updated_at":"2015-07-17T16:16:57Z","closed_at":null,"body":"on a stand alone linuxbrew there is a problem upgrading `isl`, `mpfr` and `gcc`.\r\nThe issue boils down to gcc being built against `isl` and `mpfr`\r\n```\r\nconfigure:3774: checking whether the C compiler works\r\nconfigure:3796: /XXX/.linuxbrew/bin/gcc-4.9 -Os -w -pipe -march=core2 -isystem/XXX/.linuxbrew/include -L/XXX/.linuxbrew/lib -Wl,--dynamic-linker=/XXX/.linuxbrew/opt/glibc/lib/ld-linux-x86-64.so.2 -Wl,-rpath,/XXX/.linuxbrew/lib conftest.c  >&5\r\n/XXX/.linuxbrew/Cellar/gcc/4.9.2/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/cc1: error while loading shared libraries: libisl.so.10: cannot open shared object file: No such file or directory\r\n```\r\ni ran with `-d` to confirm that `libisl.so.10` is not in `lib`:\r\n```\r\n==> ./configure --disable-silent-rules --prefix=/XXX/.linuxbrew/Cellar/isl/0.14.1 --with-gmp=system --with-gmp-prefix=/XXX/.linuxbrew/opt/gmp\r\nchecking for gcc... /XXX/.linuxbrew/bin/gcc-4.9\r\nchecking whether the C compiler works... no\r\nconfigure: error: in `/tmp/isl20150716-33394-1ldpd8x/isl-0.14.1':\r\nconfigure: error: C compiler cannot create executables\r\nSee `config.log' for more details\r\n/XXX/.linuxbrew/Library/Homebrew/debrew.rb:11:in `raise'\r\nBuildError: Failed executing: ./configure --disable-dependency-tracking --disable-silent-rules --prefix=/XXX/.linuxbrew/Cellar/isl/0.14.1 --with-gmp=system --with-gmp-prefix=/XXX/.linuxbrew/opt/gmp\r\n1. raise\r\n2. ignore\r\n3. backtrace\r\n4. irb\r\n5. shell\r\nChoose an action: 5\r\nWhen you exit this shell, you will return to the menu.\r\niwtm51@hydra:/tmp/isl20150716-33394-1ldpd8x/isl-0.14.1> ls /XXX/.linuxbrew/lib | grep \"isl\"\r\ncloog-isl\r\nisl\r\nlibcloog-isl.a\r\nlibcloog-isl.so\r\nlibcloog-isl.so.4\r\nlibcloog-isl.so.4.0.0\r\n```\r\n\r\nsame applies to `mpfr` and `gcc` itself.\r\n\r\nSolution is to `brew tap homebrew/versions` and force using system's gcc: \r\n`brew upgrade isl --cc=gcc-4.7` and `brew upgrade mpfr --cc=gcc-4.7`.\r\n\r\nI wonder if there is way to do it somehow automatically within the formulae so that the user does not hit those compiler-not-working errors? Or alternatively hack `homebrew` to keep `isl` and `mpfr` in the `lib` even during installation so that compiler works and then unlink them right before symlinking newer versions.\r\n\r\nIt's a kind of circular issue, no idea if there is a solution at all.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/comments/122330960","html_url":"https://github.com/Homebrew/linuxbrew/issues/487#issuecomment-122330960","issue_url":"https://api.github.com/repos/Homebrew/linuxbrew/issues/487","id":122330960,"user":{"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},"created_at":"2015-07-17T16:16:57Z","updated_at":"2015-07-17T16:16:57Z","body":"Another option is to add `isl` and `mpfr` to the `RPATH` of `gcc`."}}