On Saturday, 3 February 2018 at 18:11:15 UTC, Daniel Kozak wrote:
Today I have added basic support for D language (ldc and dub)
to chromebrew: https://github.com/skycocker/chromebrew/pull/1717
So if you have ChromeBook with Chrome OS (developer mode is
needed for chromebrew), you can try it, if everything works ok
for you.
Tried it on an Acer Chromebook R13 running Version 69.0.3497.35
(Official Build) dev (32-bit). I have no previous experience with
llvm.
dub init ran fine.
getting this error when trying to run dub in the newly created
project
chronos@localhost ~/work/my_test $ dub
Failed to invoke the compiler /usr/local/bin/ldc2 to determine
the build platform: /usr/local/bin/ldc2: error while loading
shared libraries: libLLVMLTO.so.5: cannot open shared object
file: No such file or directory
when running ldc2
chronos@localhost ~/work/my_test $ ldc2
ldc2: error while loading shared libraries: libLLVMLTO.so.5:
cannot open shared object file: No such file or directory
I do have another version installed though:
chronos@localhost ~/work/my_test $ locate libLLVMLTO
/mnt/stateful_partition/dev_image/lib/libLLVMLTO.so
/mnt/stateful_partition/dev_image/lib/libLLVMLTO.so.6
/mnt/stateful_partition/dev_image/lib/libLLVMLTO.so.6.0.0
/usr/local/lib/libLLVMLTO.so
/usr/local/lib/libLLVMLTO.so.6
/usr/local/lib/libLLVMLTO.so.6.0.0
trying to build ldc:
chronos@localhost ~/work/my_test $ crew build ldc
(i) ldc: D language compiler using LLVM.
https://github.com/ldc-developers/ldc
version 1.7.0
Downloading source...
Archive downloaded
Unpacking archive, this may take awhile...
Building from source, this may take a while...
Rename all *.la files to *.la_tmp
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent
Left Speed
100 610 0 610 0 0 742 0 --:--:-- --:--:--
--:--:-- 778
100 4888k 100 4888k 0 0 437k 0 0:00:11 0:00:11
--:--:-- 749k
cmake: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found
(required by cmake)
cmake: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not
found (required by cmake)
cmake: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not
found (required by cmake)
ldc failed to build: `cmake -Bbuild/ldc-0.17.5-src
-Hbuild/ldc-0.17.5-src` exited with 1
chronos@localhost ~/work/my_test $ uname -a
Linux localhost 3.18.0-18117-g8dfac4fe62f3 #1 SMP PREEMPT Fri Aug
10 09:50:22 PDT 2018 aarch64 ARMv8 Processor rev 2 (v8l) GNU/Linux
chronos@localhost ~/work/my_test $ cat /proc/cpuinfo
processor : 0
model name : ARMv8 Processor rev 2 (v8l)
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 2