{"action":"created","issue":{"url":"https://api.github.com/repos/pine/crenv/issues/32","repository_url":"https://api.github.com/repos/pine/crenv","labels_url":"https://api.github.com/repos/pine/crenv/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/pine/crenv/issues/32/comments","events_url":"https://api.github.com/repos/pine/crenv/issues/32/events","html_url":"https://github.com/pine/crenv/issues/32","id":202500576,"node_id":"MDU6SXNzdWUyMDI1MDA1NzY=","number":32,"title":"Cannot install crystal on FreeBSD","user":{"login":"kubo39","id":927749,"node_id":"MDQ6VXNlcjkyNzc0OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/927749?v=4","gravatar_id":"","url":"https://api.github.com/users/kubo39","html_url":"https://github.com/kubo39","followers_url":"https://api.github.com/users/kubo39/followers","following_url":"https://api.github.com/users/kubo39/following{/other_user}","gists_url":"https://api.github.com/users/kubo39/gists{/gist_id}","starred_url":"https://api.github.com/users/kubo39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubo39/subscriptions","organizations_url":"https://api.github.com/users/kubo39/orgs","repos_url":"https://api.github.com/users/kubo39/repos","events_url":"https://api.github.com/users/kubo39/events{/privacy}","received_events_url":"https://api.github.com/users/kubo39/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-23T10:47:36Z","updated_at":"2018-07-24T12:59:28Z","closed_at":"2017-02-20T20:12:46Z","author_association":"CONTRIBUTOR","body":"Failed to download due to crenv cannot treat `*.pkg`:\r\n\r\n```\r\n[vagrant@ ~] $ freebsd-version\r\n11.0-CURRENT\r\n[vagrant@ ~] $ crenv install 0.20.5\r\nResolving Crystal download URL by Remote Cache ... ng\r\nResolving Crystal download URL by GitHub ... ng\r\nError: Version not found\r\n```\r\n\r\nAnd build error at linking time before 0.19.4:\r\n\r\n```\r\n[vagrant@ ~]$ crenv install 0.19.4\r\nResolving Crystal download URL by Remote Cache ... ok\r\nDownloading Crystal binary tarball ...\r\nhttps://github.com/crystal-lang/crystal/releases/download/0.19.4/crystal-0.19.4-2-freebsd10.1-x86_64.tar.gz\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100   617    0   617    0     0    789      0 --:--:-- --:--:-- --:--:--   789\r\n100 13.8M  100 13.8M    0     0  2585k      0  0:00:05  0:00:05 --:--:-- 3692k\r\nok\r\nMoving the Crystal directory ...ok\r\nChecking if Shards already exists ... ng\r\nResolving Shards download URL ... ok\r\nDownloading Shards tarball ...\r\nhttps://github.com/crystal-lang/shards/archive/v0.6.4.tar.gz\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100   127    0   127    0     0    135      0 --:--:-- --:--:-- --:--:--   134\r\n100 26916    0 26916    0     0  14188      0 --:--:--  0:00:01 --:--:-- 36032\r\nok\r\nBuilding Shards ... /usr/bin/ld: cannot find -lyaml\r\ncc: error: linker command failed with exit code 1 (use -v to see invocation)\r\nError: execution of command failed with code: 1: `cc -o \"/home/vagrant/.anyenv/envs/crenv/cache/0.19.4/shards-0.6.4/bin/shards\" \"${@}\"  -rdynamic  -lyaml -lpcre -lgc-threaded -lpthread /home/vagrant/.anyenv/envs/crenv/versions/0.19.4/src/ext/libcrystal.a -levent -lpthread -L/usr/lib -L/usr/local/lib`\r\n\r\nRetry building Shards ... cc: error: unknown argument: '-no-pie'\r\nError: execution of command failed with code: 1: `cc -o \"/home/vagrant/.anyenv/envs/crenv/cache/0.19.4/shards-0.6.4/bin/shards\" \"${@}\" -no-pie -rdynamic  -lyaml -lpcre -lgc-threaded -lpthread /home/vagrant/.anyenv/envs/crenv/versions/0.19.4/src/ext/libcrystal.a -levent -lpthread -L/usr/lib -L/usr/local/lib`\r\nshards build faild: /home/vagrant/.anyenv/envs/crenv/cache/0.19.4/shards-0.6.4 at /home/vagrant/.anyenv/envs/crenv/plugins/crystal-build/bin/../lib/CrystalBuild/Builder/Shards.pm line 33, <DATA> line 2.\r\n```\r\n\r\nclang 3.8 does not have `-no-pie` option, it has `-nopie`.\r\n\r\n```\r\n[vagrant@ ~]$ cc --version\r\nFreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)\r\nTarget: x86_64-unknown-freebsd11.0\r\nThread model: posix\r\nInstalledDir: /usr/bin\r\n```"},"comment":{"url":"https://api.github.com/repos/pine/crenv/issues/comments/407397617","html_url":"https://github.com/pine/crenv/issues/32#issuecomment-407397617","issue_url":"https://api.github.com/repos/pine/crenv/issues/32","id":407397617,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzM5NzYxNw==","user":{"login":"yfkhar","id":12835803,"node_id":"MDQ6VXNlcjEyODM1ODAz","avatar_url":"https://avatars0.githubusercontent.com/u/12835803?v=4","gravatar_id":"","url":"https://api.github.com/users/yfkhar","html_url":"https://github.com/yfkhar","followers_url":"https://api.github.com/users/yfkhar/followers","following_url":"https://api.github.com/users/yfkhar/following{/other_user}","gists_url":"https://api.github.com/users/yfkhar/gists{/gist_id}","starred_url":"https://api.github.com/users/yfkhar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yfkhar/subscriptions","organizations_url":"https://api.github.com/users/yfkhar/orgs","repos_url":"https://api.github.com/users/yfkhar/repos","events_url":"https://api.github.com/users/yfkhar/events{/privacy}","received_events_url":"https://api.github.com/users/yfkhar/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T12:59:28Z","updated_at":"2018-07-24T12:59:28Z","author_association":"NONE","body":"Hi, i have the same issue on FreeBSD 11.2-RELEASE\r\n```\r\n% crenv install 0.25.1\r\nResolving Crystal download URL by Remote Cache ... ng\r\nResolving Crystal download URL by GitHub ... ng\r\nError: Version not found\r\n```\r\n```\r\n% which shards\r\nshards not found\r\n```\r\n\r\ncurl git bash perl5 pcre libyaml are already installed with pkg\r\n\r\n```\r\n% cc --version\r\nFreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0)\r\nTarget: x86_64-unknown-freebsd11.2\r\nThread model: posix\r\nInstalledDir: /usr/bin\r\n```\r\nCan't wait to install crystal ;)"}}
{"actor":{"display_login":"yfkhar"}}