Skip to content

Instantly share code, notes, and snippets.

@vasilakisfil
Created November 8, 2016 19:09
Show Gist options
  • Save vasilakisfil/7dc4896f40a1231cfb87f3327ac7ebf0 to your computer and use it in GitHub Desktop.
Save vasilakisfil/7dc4896f40a1231cfb87f3327ac7ebf0 to your computer and use it in GitHub Desktop.
crystal failing
Resolving Crystal download URL by Remote Cache ... ok
Downloading Crystal binary tarball ...
https://github.com/crystal-lang/crystal/releases/download/0.19.0/crystal-0.19.0-1-linux-x86_64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 611 0 611 0 0 418 0 --:--:-- 0:00:01 --:--:-- 417
100 15.3M 100 15.3M 0 0 1726k 0 0:00:09 0:00:09 --:--:-- 3133k
ok
Moving the Crystal directory ...ok
Checking if Shards already exists ... ng
Resolving Shards download URL ... ok
Downloading Shards tarball ...
https://github.com/crystal-lang/shards/archive/v0.6.4.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 127 0 127 0 0 85 0 --:--:-- 0:00:01 --:--:-- 85
100 26916 0 26916 0 0 7387 0 --:--:-- 0:00:03 --:--:-- 17512
ok
Building Shards ... /usr/bin/ld: /home/vasilakisfil/.crenv/versions/0.19.0/embedded/lib/../lib/libyaml.a(api.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/vasilakisfil/.crenv/versions/0.19.0/embedded/lib/../lib/libyaml.a(parser.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/vasilakisfil/.crenv/versions/0.19.0/embedded/lib/../lib/libyaml.a(scanner.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/vasilakisfil/.crenv/versions/0.19.0/embedded/lib/../lib/libyaml.a(reader.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc -o "/home/vasilakisfil/.crenv/cache/0.19.0/shards-0.6.4/bin/shards" "${@}" -rdynamic -lyaml -lpcre -lgc -lpthread /home/vasilakisfil/.crenv/versions/0.19.0/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`
shards build faild: /home/vasilakisfil/.crenv/cache/0.19.0/shards-0.6.4 at /home/vasilakisfil/.crenv/plugins/crystal-build/bin/../lib/CrystalBuild/Builder/Shards.pm line 19, <DATA> line 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment