Comments (3)
Hello @steele232 , I success to build this Firefly image, I wish it's may help you.
FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive
RUN useradd -ms /bin/bash user
RUN apt-get update && apt-get install -y build-essential vim git wget curl chrpath file python3
WORKDIR "/root"
# install nightly-2022-08-08 toolchain only
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain nightly-2022-08-08 -y
ENV PATH=/root/.cargo/bin:$PATH
RUN rustup default nightly-2022-08-08
ENV CARGO_MAKE_TOOLCHAIN=nightly-2022-08-08
RUN cargo install cargo-make
RUN rustup target add wasm32-unknown-unknown --toolchain nightly-2022-08-08
RUN apt-get update && apt-get install -y ninja-build cmake ccache
# LLVM
ENV XDG_DATA_HOME=/root/.local/share
RUN mkdir -p $XDG_DATA_HOME/llvm/firefly/ && \
cd $XDG_DATA_HOME/llvm/firefly/ && \
wget https://github.com/getfirefly/llvm-project/releases/download/firefly-15.0.0-dev_2022-08-27/clang+llvm-15.0.0-x86_64-linux-gnu.tar.gz && \
tar -xz --strip-components 1 -f clang+llvm-15.0.0-x86_64-linux-gnu.tar.gz && \
rm clang+llvm-15.0.0-x86_64-linux-gnu.tar.gz && \
cd -
# llvm-project
RUN git clone --depth 1 https://github.com/lumen/llvm-project
RUN cd /root/llvm-project && git checkout firefly
RUN make llvm-shared -C /root/llvm-project
RUN cd -
# FireFly
Run git clone https://github.com/GetFirefly/firefly.git
ENV CC=$XDG_DATA_HOME/llvm/firefly/bin/clang
ENV CXX=$XDG_DATA_HOME/llvm/firefly/bin/clang++
ENV LLVM_PREFIX=$XDG_DATA_HOME/llvm/firefly
ENV FIREFLY_BUILD_TYPE=static
RUN cd /root/firefly && cargo make firefly
from firefly.
Ok! Just saw this. I will try this soon!
from firefly.
So unfortunately this one fails for me. It made my Ubuntu 16GB laptop crash several times from CPU utilization or something and then when I tried to build the docker image without any other programs running simultaneously, it didn't crash the computer but it did fail with an error status of 2. It was very weird. It seemed to have problems shortly after step [ 2646 / 5700 ] or something like that.
But I'm glad that you and other people have gotten it working!
...used-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O2 -g -DNDEBUG -fno-exceptions -fno-rtti -UNDEBUG -std=c++14 -MD -MT tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaExpr.cpp.o -MF tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaExpr.cpp.o.d -o tools/clang/lib/Sema/CMakeFiles/obj.clangSema.dir/SemaExpr.cpp.o -c /root/llvm-project/clang/lib/Sema/SemaExpr.cpp
ninja: build stopped: subcommand failed.
make: *** [Makefile:27: llvm-shared] Error 1
make: Leaving directory '/root/llvm-project'
The command '/bin/sh -c make llvm-shared -C /root/llvm-project' returned a non-zero code: 2
make: *** [makefile:11: build] Error 2
I suppose possible next steps for me would be to
- checkout a certain commit of the project and try again..
- or try spinning up a more powerful machine in the cloud and trying to build it again.
from firefly.
Related Issues (20)
- CMake >= 3.20 not supported HOT 1
- offset_of HOT 2
- Implementing ETS HOT 9
- Krustlet Provider HOT 2
- Build errors ^^^^^^^^ feature has been removed
- Project Status HOT 10
- Need help for applying lumen
- GraalVM HOT 2
- can't build lumen on linux using the latest nightly nor nightly-2022-07-12 HOT 3
- Write page explaining change from lumen to firefly. HOT 3
- Build errors ^^^^^^^^ use of unstable library feature 'core_c_str' HOT 2
- `firefly compile` fails during linking due to undefined reference to `init:boot/1` HOT 3
- Compiler will get segmentation fault for some kinds of `when` clauses on function HOT 1
- Some arithmetic expressions will not compile with error: failed to legalize operation 'cir.cast' HOT 1
- Overflow on a small integer causes a runtime error: `ImmediateOutOfRangeError`
- Error running example module on M1 HOT 1
- When will a precompiled toolchain package be available? HOT 2
- Can't build from source on develop HOT 2
- Elixir example? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firefly.