Open inliquid opened 1 year ago
Just for the context, it follows a discussion we had here https://github.com/cilium/tetragon/issues/1595#issuecomment-1766187127.
I'll try to reproduce that but really I don't get it since the whole point of using Docker is to have a reproducible environment and here everything should be built inside quay.io/cilium/clang:aeaada5cf60efe8d0e772d032fe3cc2bc613739c@sha256:b440ae7b3591a80ffef8120b2ac99e802bbd31dee10f5f15a48566832ae0866f
at a fixed bpftool commit b01941c8f7890489f09713348a7d89567538504b
.
I can't reproduce this, is this still an issue for you? I was thinking maybe it was the apt-get source manipulation but you seem to compile on amd64 for amd64 so...
If you don't mind just skip bpftool compilation and download the precompiled static version using:
- docker build -t "cilium/tetragon:latest" --target release --build-arg TETRAGON_VERSION=$(make version)
+ docker build -t "cilium/tetragon:latest" --build-arg TETRAGON_VERSION=$(make version)
Feel free to reopen this issue if you still have the issue, I'm curious to debug this but for now I can't really investigate more 🤔.
Hi @mtardy thanks, this command works:
docker build -t "cilium/tetragon:latest" --build-arg TETRAGON_VERSION=$(make version)
However make image
still generates lots of compile errors thus preventing it from being built as suggested by Makefile scenario.
I think that problem still persists and needs to be addressed. So either Makefile should exclude compilation of bpftool
, or compilation process should be fixed, or the source of the issue identified. May I kindly ask to reopen the issue?
Hi @mtardy thanks, this command works:
docker build -t "cilium/tetragon:latest" --build-arg TETRAGON_VERSION=$(make version)
However
make image
still generates lots of compile errors thus preventing it from being built as suggested by Makefile scenario.I think that problem still persists and needs to be addressed. So either Makefile should exclude compilation of
bpftool
, or compilation process should be fixed, or the source of the issue identified. May I kindly ask to reopen the issue?
Yes you can reopen but I don't understand how to reproduce your issue so I cannot really help you for now :(
Maybe I can collect more info to help investigate it, just let me know what else needed.
Maybe I can collect more info to help investigate it, just let me know what else needed.
Can you reproduce this on a system I can quickly spin a VM in a cloud provider for example?
Change in Dockerfile ENV BPFTOOL_REV "b01941c8f7890489f09713348a7d89567538504b" -> ENV BPFTOOL_REV "8485b9fba9b3bb3bd311b00632d2d22c0eee2e13" It's working for me
Change in Dockerfile ENV BPFTOOL_REV "b01941c8f7890489f09713348a7d89567538504b" -> ENV BPFTOOL_REV "8485b9fba9b3bb3bd311b00632d2d22c0eee2e13" It's working for me
is it failing for you with the other REV? on which distrib are you running?
Change in Dockerfile ENV BPFTOOL_REV "b01941c8f7890489f09713348a7d89567538504b" -> ENV BPFTOOL_REV "8485b9fba9b3bb3bd311b00632d2d22c0eee2e13" It's working for me
is it failing for you with the other REV? on which distrib are you running?
yes, it is falling on the other Rev. I use fedora. discussion of this problem: https://github.com/libbpf/bpftool/issues/17
@inliquid is it solved ? @mtardy please have a look at this too . I am also not able to build images in wsl2 given I graduated from https://github.com/cilium/cilium/issues/29302 --
sadath@sadath:~/go/src/tetragon$ make image image-operator
Cannot load builder desktop-linux: protocol not available
docker build -t "cilium/tetragon:latest" --target release --build-arg TETRAGON_VERSION=9fd23842 --platform=linux/amd64 .
[+] Building 288.3s (33/36)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 5.70kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 580B 0.0s
=> [internal] load metadata for docker.io/library/alpine:3.19.0@sha256:51b67269f354137895d43f3b3d810bfacd3945438 3.5s
=> [internal] load metadata for docker.io/library/golang:1.21.5-alpine@sha256:4db4aac30880b978cae5445dd4a7062152 3.5s
=> [internal] load metadata for quay.io/cilium/clang:aeaada5cf60efe8d0e772d032fe3cc2bc613739c@sha256:b440ae7b359 0.0s
=> [internal] load metadata for docker.io/library/golang:1.21.5@sha256:672a2286da3ee7a854c3e0a56e0838918d0dbb1c1 3.5s
=> [auth] library/golang:pull token for registry-1.docker.io 0.0s
=> [auth] library/alpine:pull token for registry-1.docker.io 0.0s
=> [internal] load build context 4.7s
=> => transferring context: 173.32MB 4.3s
=> [base-build 1/9] FROM docker.io/library/alpine:3.19.0@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5a 0.0s
=> [gops 1/2] FROM docker.io/library/golang:1.21.5-alpine@sha256:4db4aac30880b978cae5445dd4a706215249ad4f43d28bd 0.0s
=> [tetragon-builder 1/4] FROM docker.io/library/golang:1.21.5@sha256:672a2286da3ee7a854c3e0a56e0838918d0dbb1c18 0.0s
=> [bpftool-builder 1/7] FROM quay.io/cilium/clang:aeaada5cf60efe8d0e772d032fe3cc2bc613739c@sha256:b440ae7b3591a 0.0s
=> CACHED [bpftool-builder 2/7] WORKDIR /bpftool 0.0s
=> CACHED [bpftool-builder 3/7] RUN if [ amd64 != amd64 ]; then apt-get update && echo "deb [arch=amd64] htt 0.0s
=> CACHED [bpftool-builder 4/7] RUN apt-get update 0.0s
=> ERROR [bpftool-builder 5/7] RUN if [ amd64 != amd64 ]; then apt-get install -y curl git llvm gcc pkg-co 284.7s
=> CACHED [tetragon-builder 2/4] WORKDIR /go/src/github.com/cilium/tetragon 0.0s
=> CACHED [bpf-builder 2/5] WORKDIR /go/src/github.com/cilium/tetragon 0.0s
=> CACHED [bpf-builder 3/5] RUN apt-get update && apt-get install -y linux-libc-dev 0.0s
=> [bpf-builder 4/5] COPY . ./ 4.0s
=> [tetragon-builder 3/4] COPY . . 4.0s
=> [tetragon-builder 4/4] RUN make VERSION=9fd23842 TARGET_ARCH=amd64 tetragon tetra tetragon-oci-hook tetrago 149.6s
=> [bpf-builder 5/5] RUN make tetragon-bpf LOCAL_CLANG=1 TARGET_ARCH=amd64 38.8s
=> CACHED [gops 2/2] RUN apk add --no-cache git && git clone --depth 1 --branch v0.3.28 https://github.com/goog 0.0s
=> CACHED [base-build 2/9] RUN apk add iproute2 0.0s
=> CACHED [base-build 3/9] RUN mkdir /var/lib/tetragon/ && mkdir -p /etc/tetragon/tetragon.conf.d/ && mk 0.0s
=> [base-build 4/9] COPY --from=tetragon-builder /go/src/github.com/cilium/tetragon/tetragon /usr/bin/ 0.2s
=> [base-build 5/9] COPY --from=tetragon-builder /go/src/github.com/cilium/tetragon/tetra /usr/bin/ 0.2s
=> [base-build 6/9] COPY --from=tetragon-builder /go/src/github.com/cilium/tetragon/contrib/rthooks/tetragon-oci 0.1s
=> [base-build 7/9] COPY --from=tetragon-builder /go/src/github.com/cilium/tetragon/contrib/rthooks/tetragon-oci 0.1s
=> [base-build 8/9] COPY --from=gops /gops/gops /usr/bin/ 0.1s
=> [base-build 9/9] COPY --from=bpf-builder /go/src/github.com/cilium/tetragon/bpf/objs/*.o /var/lib/tetragon/ 0.2s
------
> [bpftool-builder 5/7] RUN if [ amd64 != amd64 ]; then apt-get install -y curl git llvm gcc pkg-config zlib1g-dev libelf-dev libelf-dev:arm64 libcap-dev:arm64 crossbuild-essential-amd64; else apt-get install -y curl git llvm gcc pkg-config zlib1g-dev libelf-dev libcap-dev; fi:
#33 0.784 Reading package lists...
#33 2.822 Building dependency tree...
#33 3.287 Reading state information...
#33 3.819 The following additional packages will be installed:
#33 3.819 bzip2 ca-certificates cpp cpp-11 gcc-11 gcc-11-base gcc-12-base git-man less
#33 3.819 lib32gcc-s1 lib32stdc++6 libasan6 libatomic1 libbrotli1 libcap2 libcbor0.8
#33 3.819 libcc1-0 libcurl3-gnutls libcurl4 libdpkg-perl libelf1 liberror-perl
#33 3.819 libexpat1 libfido2-1 libfile-fcntllock-perl libgcc-11-dev libgcc-s1
#33 3.819 libgdbm-compat4 libgdbm6 libglib2.0-0 libglib2.0-data libgomp1 libisl23
#33 3.819 libitm1 libldap-2.5-0 libldap-common liblocale-gettext-perl liblsan0 libmpc3
#33 3.819 libmpfr6 libnghttp2-14 libobjc-11-dev libobjc4 libperl5.34 libpsl5
#33 3.819 libquadmath0 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
#33 3.819 libssh-4 libstdc++-11-dev libstdc++6 libtsan0 libubsan1 libx11-6 libx11-data
#33 3.819 libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 llvm-runtime netbase
#33 3.819 openssh-client openssl patch perl perl-base perl-modules-5.34 publicsuffix
#33 3.819 shared-mime-info xauth xdg-user-dirs xz-utils
#33 3.819 Suggested packages:
#33 3.819 bzip2-doc cpp-doc gcc-11-locales gcc-multilib manpages-dev autoconf automake
#33 3.819 libtool flex bison gdb gcc-doc gcc-11-multilib gcc-11-doc gettext-base
#33 3.819 git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb
#33 3.819 git-cvs git-mediawiki git-svn debian-keyring gnupg bzr gdbm-l10n
#33 3.819 libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal
#33 3.819 libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql
#33 3.819 libstdc++-11-doc keychain libpam-ssh monkeysphere ssh-askpass ed
#33 3.819 diffutils-doc perl-doc libterm-readline-gnu-perl
#33 3.819 | libterm-readline-perl-perl libtap-harness-archive-perl dpkg-dev
#33 4.132 The following NEW packages will be installed:
#33 4.132 bzip2 ca-certificates cpp cpp-11 curl gcc gcc-11 git git-man less libbrotli1
#33 4.133 libcap-dev libcbor0.8 libcc1-0 libcurl3-gnutls libcurl4 libdpkg-perl
#33 4.133 libelf-dev libelf1 liberror-perl libexpat1 libfido2-1 libfile-fcntllock-perl
#33 4.133 libgdbm-compat4 libgdbm6 libglib2.0-0 libglib2.0-data libisl23 libldap-2.5-0
#33 4.133 libldap-common liblocale-gettext-perl libmpc3 libmpfr6 libnghttp2-14
#33 4.133 libperl5.34 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
#33 4.134 libssh-4 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1
#33 4.136 llvm llvm-runtime netbase openssh-client openssl patch perl
#33 4.136 perl-modules-5.34 pkg-config publicsuffix shared-mime-info xauth
#33 4.136 xdg-user-dirs xz-utils zlib1g-dev
#33 4.136 The following packages will be upgraded:
#33 4.142 gcc-11-base gcc-12-base lib32gcc-s1 lib32stdc++6 libasan6 libatomic1 libcap2
#33 4.142 libgcc-11-dev libgcc-s1 libgomp1 libitm1 liblsan0 libobjc-11-dev libobjc4
#33 4.142 libquadmath0 libstdc++-11-dev libstdc++6 libtsan0 libubsan1 perl-base
#33 4.803 20 upgraded, 63 newly installed, 0 to remove and 41 not upgraded.
#33 4.803 Need to get 68.1 MB of archives.
#33 4.803 After this operation, 184 MB of additional disk space will be used.
#33 4.803 Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 perl-base amd64 5.34.0-3ubuntu1.3 [1762 kB]
#33 11.63 Get:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblocale-gettext-perl amd64 1.07-4build3 [17.1 kB]
#33 12.76 Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 perl-modules-5.34 all 5.34.0-3ubuntu1.3 [2976 kB]
#33 18.42 Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 libgdbm6 amd64 1.23-1 [33.9 kB]
#33 19.32 Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libgdbm-compat4 amd64 1.23-1 [6606 B]
#33 19.83 Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libperl5.34 amd64 5.34.0-3ubuntu1.3 [4820 kB]
#33 37.74 Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 perl amd64 5.34.0-3ubuntu1.3 [232 kB]
#33 39.36 Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 lib32gcc-s1 amd64 12.3.0-1ubuntu1~22.04 [63.9 kB]
#33 40.51 Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libubsan1 amd64 12.3.0-1ubuntu1~22.04 [976 kB]
#33 45.93 Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gcc-12-base amd64 12.3.0-1ubuntu1~22.04 [20.1 kB]
#33 47.09 Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libstdc++6 amd64 12.3.0-1ubuntu1~22.04 [699 kB]
#33 50.91 Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libquadmath0 amd64 12.3.0-1ubuntu1~22.04 [154 kB]
#33 53.78 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libobjc4 amd64 12.3.0-1ubuntu1~22.04 [48.6 kB]
#33 55.29 Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 liblsan0 amd64 12.3.0-1ubuntu1~22.04 [1069 kB]
#33 59.27 Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libitm1 amd64 12.3.0-1ubuntu1~22.04 [30.2 kB]
#33 61.70 Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgomp1 amd64 12.3.0-1ubuntu1~22.04 [126 kB]
#33 63.03 Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libatomic1 amd64 12.3.0-1ubuntu1~22.04 [10.4 kB]
#33 64.27 Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 lib32stdc++6 amd64 12.3.0-1ubuntu1~22.04 [740 kB]
#33 67.10 Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgcc-s1 amd64 12.3.0-1ubuntu1~22.04 [53.9 kB]
#33 68.17 Get:20 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcap2 amd64 1:2.44-1ubuntu0.22.04.1 [18.3 kB]
#33 68.98 Get:21 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 openssl amd64 3.0.2-0ubuntu1.12 [1182 kB]
#33 74.74 Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 ca-certificates all 20230311ubuntu0.22.04.1 [155 kB]
#33 76.37 Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 less amd64 590-1ubuntu0.22.04.1 [143 kB]
#33 77.99 Get:24 http://archive.ubuntu.com/ubuntu jammy/main amd64 libelf1 amd64 0.186-1build1 [51.0 kB]
#33 79.22 Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1 amd64 2.4.7-1ubuntu0.2 [91.0 kB]
#33 80.51 Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libglib2.0-0 amd64 2.72.4-0ubuntu2.2 [1463 kB]
#33 87.51 Get:27 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libglib2.0-data all 2.72.4-0ubuntu2.2 [4612 B]
#33 88.27 Get:28 http://archive.ubuntu.com/ubuntu jammy/main amd64 netbase all 6.3 [12.9 kB]
#33 88.74 Get:29 http://archive.ubuntu.com/ubuntu jammy/main amd64 shared-mime-info amd64 2.1-2 [454 kB]
#33 91.39 Get:30 http://archive.ubuntu.com/ubuntu jammy/main amd64 xdg-user-dirs amd64 0.17-2ubuntu4 [53.9 kB]
#33 92.48 Get:31 http://archive.ubuntu.com/ubuntu jammy/main amd64 libcbor0.8 amd64 0.8.0-2ubuntu1 [24.6 kB]
#33 93.96 Get:32 http://archive.ubuntu.com/ubuntu jammy/main amd64 libfido2-1 amd64 1.10.0-1 [82.8 kB]
#33 95.36 Get:33 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libnghttp2-14 amd64 1.43.0-1ubuntu0.1 [76.7 kB]
#33 96.45 Get:34 http://archive.ubuntu.com/ubuntu jammy/main amd64 libpsl5 amd64 0.21.0-1.2build2 [58.4 kB]
#33 97.86 Get:35 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxau6 amd64 1:1.0.9-1build5 [7634 B]
#33 99.44 Get:36 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxdmcp6 amd64 1:1.1.3-0ubuntu5 [10.9 kB]
#33 99.91 Get:37 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxcb1 amd64 1.14-3ubuntu3 [49.0 kB]
#33 101.2 Get:38 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx11-data all 2:1.7.5-1ubuntu0.3 [120 kB]
#33 103.0 Get:39 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx11-6 amd64 2:1.7.5-1ubuntu0.3 [667 kB]
#33 105.1 Get:40 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxext6 amd64 2:1.3.4-1build1 [31.8 kB]
#33 106.1 Get:41 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxmuu1 amd64 2:1.1.3-3 [10.2 kB]
#33 106.6 Ign:42 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 openssh-client amd64 1:8.9p1-3ubuntu0.5
#33 107.1 Get:43 http://archive.ubuntu.com/ubuntu jammy/main amd64 publicsuffix all 20211207.1025-1 [129 kB]
#33 107.8 Err:42 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 openssh-client amd64 1:8.9p1-3ubuntu0.5
#33 107.8 404 Not Found [IP: 185.125.190.36 80]
#33 109.5 Get:44 http://archive.ubuntu.com/ubuntu jammy/main amd64 xauth amd64 1:1.1-1build2 [27.5 kB]
#33 110.3 Get:45 http://archive.ubuntu.com/ubuntu jammy/main amd64 xz-utils amd64 5.2.5-2ubuntu1 [84.8 kB]
#33 111.6 Get:46 http://archive.ubuntu.com/ubuntu jammy/main amd64 bzip2 amd64 1.0.8-5build1 [34.8 kB]
#33 112.4 Get:47 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libasan6 amd64 11.4.0-1ubuntu1~22.04 [2282 kB]
#33 119.3 Get:48 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libobjc-11-dev amd64 11.4.0-1ubuntu1~22.04 [196 kB]
#33 121.9 Get:49 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libstdc++-11-dev amd64 11.4.0-1ubuntu1~22.04 [2101 kB]
#33 132.0 Get:50 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgcc-11-dev amd64 11.4.0-1ubuntu1~22.04 [2517 kB]
#33 144.3 Get:51 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libtsan0 amd64 11.4.0-1ubuntu1~22.04 [2260 kB]
#33 149.5 Get:52 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gcc-11-base amd64 11.4.0-1ubuntu1~22.04 [20.2 kB]
#33 150.5 Get:53 http://archive.ubuntu.com/ubuntu jammy/main amd64 libisl23 amd64 0.24-2build1 [727 kB]
#33 153.4 Get:54 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmpfr6 amd64 4.1.0-3build3 [1425 kB]
#33 166.5 Get:55 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmpc3 amd64 1.2.1-2build1 [46.9 kB]
#33 168.0 Get:56 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 cpp-11 amd64 11.4.0-1ubuntu1~22.04 [10.0 MB]
#33 182.0 Get:57 http://archive.ubuntu.com/ubuntu jammy/main amd64 cpp amd64 4:11.2.0-1ubuntu1 [27.7 kB]
#33 183.4 Get:58 http://archive.ubuntu.com/ubuntu jammy/main amd64 libbrotli1 amd64 1.0.9-2build6 [315 kB]
#33 186.4 Get:59 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg2-3ubuntu1.2 [20.5 kB]
#33 187.5 Get:60 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-2 amd64 2.1.27+dfsg2-3ubuntu1.2 [53.8 kB]
#33 189.2 Get:61 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-2.5-0 amd64 2.5.16+dfsg-0ubuntu0.22.04.1 [183 kB]
#33 199.8 Get:62 http://archive.ubuntu.com/ubuntu jammy/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2build4 [58.2 kB]
#33 210.8 Get:63 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libssh-4 amd64 0.9.6-2ubuntu0.22.04.2 [186 kB]
#33 212.9 Get:64 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcurl4 amd64 7.81.0-1ubuntu1.15 [289 kB]
#33 214.9 Get:65 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 curl amd64 7.81.0-1ubuntu1.15 [194 kB]
#33 217.2 Get:66 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcc1-0 amd64 12.3.0-1ubuntu1~22.04 [48.3 kB]
#33 218.9 Get:67 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gcc-11 amd64 11.4.0-1ubuntu1~22.04 [20.1 MB]
#33 248.6 Get:68 http://archive.ubuntu.com/ubuntu jammy/main amd64 gcc amd64 4:11.2.0-1ubuntu1 [5112 B]
#33 249.8 Get:69 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcurl3-gnutls amd64 7.81.0-1ubuntu1.15 [284 kB]
#33 251.2 Get:70 http://archive.ubuntu.com/ubuntu jammy/main amd64 liberror-perl all 0.17029-1 [26.5 kB]
#33 252.1 Get:71 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 git-man all 1:2.34.1-1ubuntu1.10 [954 kB]
#33 257.0 Get:72 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 git amd64 1:2.34.1-1ubuntu1.10 [3166 kB]
#33 270.5 Get:73 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcap-dev amd64 1:2.44-1ubuntu0.22.04.1 [39.4 kB]
#33 271.4 Get:74 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libdpkg-perl all 1.21.1ubuntu2.2 [237 kB]
#33 272.8 Get:75 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu9.2 [164 kB]
#33 274.2 Get:76 http://archive.ubuntu.com/ubuntu jammy/main amd64 libelf-dev amd64 0.186-1build1 [64.4 kB]
#33 275.4 Get:77 http://archive.ubuntu.com/ubuntu jammy/main amd64 libfile-fcntllock-perl amd64 0.22-3build7 [33.9 kB]
#33 276.4 Get:78 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libldap-common all 2.5.16+dfsg-0ubuntu0.22.04.1 [15.8 kB]
#33 277.1 Get:79 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsasl2-modules amd64 2.1.27+dfsg2-3ubuntu1.2 [68.8 kB]
#33 278.0 Get:80 http://archive.ubuntu.com/ubuntu jammy/universe amd64 llvm-runtime amd64 1:14.0-55~exp2 [3204 B]
#33 278.5 Get:81 http://archive.ubuntu.com/ubuntu jammy/universe amd64 llvm amd64 1:14.0-55~exp2 [3758 B]
#33 279.0 Get:82 http://archive.ubuntu.com/ubuntu jammy/main amd64 patch amd64 2.7.6-7build2 [109 kB]
#33 282.0 Get:83 http://archive.ubuntu.com/ubuntu jammy/main amd64 pkg-config amd64 0.29.2-1ubuntu3 [48.2 kB]
#33 284.6 Fetched 67.2 MB in 4min 40s (240 kB/s)
#33 284.6 E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-client_8.9p1-3ubuntu0.5_amd64.deb 404 Not Found [IP: 185.125.190.36 80]
#33 284.6 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
------
executor failed running [/bin/sh -c if [ $BUILDARCH != $TARGETARCH ]; then apt-get install -y curl git llvm gcc pkg-config zlib1g-dev libelf-dev libelf-dev:arm64 libcap-dev:arm64 crossbuild-essential-$TARGETARCH; else apt-get install -y curl git llvm gcc pkg-config zlib1g-dev libelf-dev libcap-dev; fi]: exit code: 100
make: *** [Makefile:284: image] Error 1
@sadath-12 no I'm still observing it with latest tetragon code (from the main branch). For WSL2 you would also probably need to compile bpftool
from source. I tried it few times, but found that hyper-v based VM is more convenient when working with tetragon installations.
I would try compiling the bpftool
from source . any instructions @inliquid ? since I'm not super familiar with those internal things and might not to do it efficiently by myself
Hey @inliquid I could reproduce on 5.10, will try to fix this :)
The problem is still here:
The problem is still here:
Have you tried with latest main? Can you please give me your exact kernel version? In the meantime, I propose you to build images without compiling bfptool, so just use the same command as make image
but without target=release
I have an idea in mind to avoid this issue in the future: maintain a bpftool docker image that I can reuse because we'll see issues like this happen in the future since bpftool depends on the kernel it runs regardless of Docker.
Have you tried with latest main? Can you please give me your exact kernel version? In the meantime, I propose you to build images without compiling bfptool, so just use the same command as make image but without target=release
$ uname -a
Linux mint-vm 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
make image
without target=releaseOk thanks! Let's see with the same kernel version.
3. This is result of running
make image
without target=release
I don't understand as this seems impossible as without --target release
you don't build bpftool so you can't have bpftool building errors.
This is what you can use to build Tetragon:
docker build -t "cilium/tetragon:latest" --build-arg TETRAGON_VERSION=$(make version)
I don't understand as this seems impossible as without --target release you don't build bpftool so you can't have bpftool building errors.
I must have misunderstood, I meant that there wasn't any other parameter given to make
, but apparently --target=release been passed to docker build
:
$ make image
docker build -t "cilium/tetragon:latest" --target release --build-arg TETRAGON_VERSION=v1.1.0-pre.0-321-g95974f4b --platform=linux/amd64 .
What happened?
At some point I needed to build an image and it failed.
System is Mint 20.3 Una (based on Ubuntu 20.04 Focal).
Tetragon Version
Most recent code from main. I tried different tags, but all failed.
Kernel Version
Kubernetes Version
No response
Bugtool
No response
Relevant log output