To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit a575d728 authored by Philipp Miedl's avatar Philipp Miedl

Published compilation suite of ExOT

parent 73f04b40
!Makefile
generated-config.txt
get-docker.sh
Copyright (c) 2015-2020, Swiss Federal Institute of Technology (ETH Zurich)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
......@@ -27,6 +27,8 @@ sudo sh get-docker.sh
sudo usermod -aG docker $USER
```
In order to use docker as a non-root you must logout/login or restart.
The following are the steps required on [Ubuntu](https://docs.docker.com/install/linux/docker-ce/ubuntu/):
1. Remove old versions of Docker:
......@@ -63,7 +65,7 @@ The following are the steps required on [Ubuntu](https://docs.docker.com/install
sudo apt-get install docker-ce docker-ce-cli containerd.io
```
4. [Post-installation step](https://docs.docker.com/install/linux/linux-postinstall/) → Add yourself to the *docker* group to use Docker as a non-root user:
4. [Post-installation step](https://docs.docker.com/install/linux/linux-postinstall/) → Add yourself to the *docker* group to use Docker as a non-root user (restart or at least logout/login required):
```sh
sudo usermod -aG docker $USER
......@@ -105,10 +107,16 @@ After building the image using the *scripted* rule, a special script will be cre
Assuming that the created script was called *dock*, one can, for example, build a CMake project by running on the host machine:
```sh
dock cmake -DCMAKE_TOOLCHAIN_FILE=/tool/static/x86_64.cmake -DCMAKE_BUILD_TYPE=Debug -B build/linux-amd64 -H.
dock cmake -DCMAKE_TOOLCHAIN_FILE=/tool/static/x86_64.cmake -DCMAKE_BUILD_TYPE=Debug -Bbuild/linux-amd64 -H.
dock cmake --build build/linux-amd64 --target <target>
```
The `-B` flag is used to specify the build folder output, while the `-H` flag specifies the source folder. Both specified directories are relative to the current folder.
> *Caveat*: Make sure to __specify only relative paths when supplying the source and build folder flags__( `-H` and `-B`)! The Docker runtime mounts the current working directory in the container. Therefore, it does not have access to any directory that is a parent/sibling, and __cannot work with absolute paths__!
> *Note*: Make sure that there are __no spaces when providing the flags__ for build output folder (*-B*) and source folder (*-H*). If spaces are present (e.g. *-B build/output* instead of *-Bbuild/output*) the results will not be as expected.
To output the version info of the installed compilers and tools, run:
```sh
......
......@@ -50,6 +50,11 @@ RUN apt-get install -q --no-install-recommends --yes \
g++-$GCC_VER-arm-linux-gnueabi \
g++-$GCC_VER-arm-linux-gnueabihf
# install the GNU debugger
RUN apt-get install -q --no-install-recommends --yes \
gdb \
gdb-multiarch
# install build tools
RUN apt-get install -q --no-install-recommends --yes \
ninja-build \
......
......@@ -7,21 +7,26 @@ echo
echo "GNU compilers' versions:"
echo " - x86_64: $(gcc-8 --version | grep gcc)"
echo " - 64b arm: $(aarch64-linux-gnu-gcc-8 --version | grep gcc)"
echo " - 32b arm (sf): $(arm-linux-gnueabi-gcc-8 --version | grep gcc)"
echo " - 32b arm (hf): $(arm-linux-gnueabihf-gcc-8 --version | grep gcc)"
echo " - x86_64: $(gcc-8 --version | grep gcc)"
echo " - 64b arm: $(aarch64-linux-gnu-gcc-8 --version | grep gcc)"
echo " - 32b arm (sf): $(arm-linux-gnueabi-gcc-8 --version | grep gcc)"
echo " - 32b arm (hf): $(arm-linux-gnueabihf-gcc-8 --version | grep gcc)"
echo "GNU debugger version:"
echo " - gdb: $(gdb --version | grep gdb)"
echo " - gdb-multiarch: $(gdb-multiarch --version | grep gdb)"
echo "Build programs' versions:"
echo " - CMake: $(cmake --version | grep version)"
echo " - make: $(make --version | grep Make)"
echo " - ninja: $(ninja --version)"
echo " - CMake: $(cmake --version | grep version)"
echo " - make: $(make --version | grep Make)"
echo " - ninja: $(ninja --version)"
echo "Support programs' versions:"
echo " - clang-format: $(clang-format-6.0 --version | grep version)"
echo " - clang-tidy: $(clang-tidy-6.0 --version | grep version)"
echo " - clang-format: $(clang-format-6.0 --version | grep version | awk '{$1=$1};1')"
echo " - clang-tidy: $(clang-tidy-6.0 --version | grep version | awk '{$1=$1};1')"
echo
echo $line
......@@ -18,7 +18,7 @@ u:error() {
}
u:error_and_exit() {
error $@
u:error $@
exit 1
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment