Skip to content

Commit 952f1d8

Browse files
committed
chore: bump gcc in circleci
1 parent 583bae5 commit 952f1d8

3 files changed

Lines changed: 64 additions & 32 deletions

File tree

.circleci/build-dependencies.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
build-essential
2+
libbsd-dev
3+
libelf-dev
4+
libdw-dev
5+
binutils-dev
6+
zlib1g-dev
7+
autoconf
8+
automake
9+
libtool
10+
pkg-config
11+
autoconf-archive
12+
ocaml
13+
ocamlbuild
14+
ocaml-findlib
15+
libnum-ocaml-dev
16+
default-jdk-headless
17+
python3
18+
make
19+
git
20+
gawk
21+
gdb
22+
wget
23+
libc6-dbg
24+
libunwind-dev
25+
libunwind-dev:i386
26+
linux-libc-dev-i386-cross
27+
libc6-dev-i386
28+
libboost-iostreams-dev
29+
libboost-regex-dev
30+
libboost-serialization-dev
31+
libboost-filesystem-dev
32+
libffi-dev
33+
gettext-base

.circleci/config.yml

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,20 @@ jobs:
44
docker:
55
- image: ubuntu:24.04
66
steps:
7+
- checkout
78
- run:
89
name: Install dependencies
910
command: |
1011
dpkg --add-architecture i386
1112
apt update
1213
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y \
13-
build-essential libbsd-dev libelf-dev libdw-dev binutils-dev zlib1g-dev \
14-
autoconf automake libtool pkg-config autoconf-archive \
15-
g++-10 gcc-10 lib32gcc-10-dev \
16-
ocaml ocamlbuild ocaml-findlib libnum-ocaml-dev \
17-
default-jdk-headless python3 \
18-
make git gawk gdb wget libc6-dbg \
19-
libunwind-dev libunwind-dev:i386 linux-libc-dev-i386-cross libc6-dev-i386 \
20-
libboost-iostreams-dev libboost-regex-dev \
21-
libboost-serialization-dev libboost-filesystem-dev libffi-dev \
22-
gettext-base # for envsubst
23-
cd /usr/bin && ln -sf gcc-10 gcc
24-
cd /usr/bin && ln -sf g++-10 g++
14+
$(cat .circleci/build-dependencies.txt)
2515
- run:
26-
name: Report OCaml version for debugging
16+
name: Report compiler versions
2717
command: |
18+
gcc --version
19+
g++ --version
2820
dpkg -l | grep ocaml
29-
- checkout
3021
- run:
3122
name: Update submodules
3223
command: git submodule update --init --recursive
@@ -40,13 +31,6 @@ jobs:
4031
./autogen.sh
4132
./configure
4233
make -j 2
43-
#- run: # now our glibc is built with DWARF 5, so don't do this
44-
# name: Create liballocs metadata
45-
# no_output_timeout: 25m
46-
# command: |
47-
# mkdir -p /usr/lib/meta && \
48-
# make -f tools/Makefile.meta \
49-
# $(for libname in `ldd /bin/true | sed -En '/[[:blank:]]*([^[:blank:]]* => )?(.*) \(0x[0-9a-f]+\)/ {s//\2/;p}' | egrep 'libc\.so\.6|ld-linux.*\.so' | xargs readlink -f`; do echo "/usr/lib/meta${libname}-meta.so"; done)
5034
- persist_to_workspace:
5135
root: /
5236
paths: root/project usr/lib/meta
@@ -56,22 +40,13 @@ jobs:
5640
docker:
5741
- image: ubuntu:24.04
5842
steps:
43+
- checkout
5944
- run:
6045
name: Install dependencies
61-
# We use 'clang' for some tests, so need that
6246
command: |
6347
apt update
6448
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y \
65-
ca-certificates make build-essential g++-10 autoconf automake libtool \
66-
libelf-dev python3 git gawk libunwind-dev \
67-
ocaml ocamlbuild ocaml-findlib \
68-
clang \
69-
libdw-dev binutils-dev libffi-dev \
70-
libboost-iostreams-dev libboost-regex-dev \
71-
libboost-serialization-dev libboost-filesystem-dev \
72-
pkg-config libglib2.0-dev # <-- for 'simple-multi-alloc' test case only
73-
cd /usr/bin && ln -sf gcc-10 gcc
74-
cd /usr/bin && ln -sf g++-10 g++
49+
$(cat root/project/.circleci/test-dependencies.txt)
7550
- attach_workspace:
7651
at: /
7752
- run:

.circleci/test-dependencies.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ca-certificates
2+
make
3+
build-essential
4+
autoconf
5+
automake
6+
libtool
7+
libelf-dev
8+
python3
9+
git
10+
gawk
11+
libunwind-dev
12+
ocaml
13+
ocamlbuild
14+
ocaml-findlib
15+
clang
16+
libdw-dev
17+
binutils-dev
18+
libffi-dev
19+
libboost-iostreams-dev
20+
libboost-regex-dev
21+
libboost-serialization-dev
22+
libboost-filesystem-dev
23+
pkg-config
24+
libglib2.0-dev

0 commit comments

Comments
 (0)