Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Aoflagger
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcel Loose
Aoflagger
Commits
e49b7f13
Commit
e49b7f13
authored
3 years ago
by
André Offringa
Browse files
Options
Downloads
Patches
Plain Diff
Add Docker for libc++ compile + fix errors
parent
fc160af3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/docker/Ubuntu21
+28
-0
28 additions, 0 deletions
scripts/docker/Ubuntu21
scripts/docker/Ubuntu21-clang-libcxx
+60
-0
60 additions, 0 deletions
scripts/docker/Ubuntu21-clang-libcxx
util/numberparser.h
+2
-2
2 additions, 2 deletions
util/numberparser.h
with
90 additions
and
2 deletions
scripts/docker/Ubuntu21
0 → 100644
+
28
−
0
View file @
e49b7f13
FROM ubuntu:21.04
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \
apt-get install -y \
cmake \
build-essential \
pkg-config \
casacore-data casacore-dev \
libblas-dev liblapack-dev \
liblua5.3-dev \
libpython3-dev \
libboost-date-time-dev libboost-test-dev \
libboost-system-dev libboost-filesystem-dev \
libgtkmm-3.0-dev \
libcfitsio-dev \
libfftw3-dev \
libgsl-dev \
libhdf5-serial-dev \
libpng-dev
ADD . /src
WORKDIR /src
RUN mkdir /build && cd /build && cmake ../src
RUN cd /build && make -j`nproc --all` && make install && make check -j`nproc --all`
RUN cd /build/python && echo "import aoflagger" | python3
This diff is collapsed.
Click to expand it.
scripts/docker/Ubuntu21-clang-libcxx
0 → 100644
+
60
−
0
View file @
e49b7f13
FROM ubuntu:21.04
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \
apt-get install -y \
bison \
cmake \
build-essential \
pkg-config \
clang \
flex \
gfortran \
libc++-dev \
libc++abi-dev \
libblas-dev liblapack-dev \
liblua5.3-dev \
libpython3-dev \
libcfitsio-dev \
libfftw3-dev \
libgsl-dev \
libpng-dev \
python3 \
python3-distutils \
wcslib-dev \
wget
RUN \
mkdir -p /software && \
cd /software && \
wget -nv -O - https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.tar.bz2 | tar xj && \
cd boost_1_78_0/ && \
./bootstrap.sh --with-toolset=clang && \
./b2 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++" install
RUN \
mkdir -p /software && \
cd /software && \
wget -nv -O - https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_12_1.tar.gz | tar xz && \
cd /software/hdf5-hdf5-1_12_1 && \
CC=/usr/bin/clang CXX=/usr/bin/clang++ CXXFLAGS="-stdlib=libc++" LDFLAGS="-stdlib=libc++" ./configure --prefix /usr/local --enable-cxx && \
make -j`nproc` install
RUN \
mkdir -p /software/casacore/build && \
cd /software/casacore && \
wget -nv -O - https://github.com/casacore/casacore/archive/refs/tags/v3.4.0.tar.gz | tar xz && \
cd build && \
cmake \
-DBUILD_TESTING=OFF -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_CXX_FLAGS="-stdlib=libc++" \
-DBUILD_PYTHON=OFF -DBUILD_PYTHON3=OFF \
../casacore-3.4.0 && \
make install -j`nproc`
ADD . /src
WORKDIR /src
RUN mkdir /build && cd /build && cmake ../src -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_CXX_FLAGS="-stdlib=libc++"
RUN cd /build && make -j`nproc --all` && make install && make check -j`nproc --all`
RUN cd /build/python && echo "import aoflagger" | python3
This diff is collapsed.
Click to expand it.
util/numberparser.h
+
2
−
2
View file @
e49b7f13
#include
<stdexcept>
#include
<cmath>
#include
<stdexcept>
#include
<string>
#ifndef HAVE_EXP10
#define exp10(x) exp((2.3025850929940456840179914546844) * (x))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment