Skip to content

Instantly share code, notes, and snippets.

View TomasTomecek's full-sized avatar

Tomas Tomecek TomasTomecek

View GitHub Profile
@TomasTomecek
TomasTomecek / build.log
Created March 6, 2025 13:36
opensips build
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fgnu89-inline -DPKG_MALLOC -DSHM_MMAP -DUSE_MCAST -DDISABLE_NAGLE -DSTATISTICS -DHAVE_RESOLV_RES -DF_MALLOC -DQ_MALLOC -DHP_MALLOC -DDBG_MALLOC -DHAVE_STDATOMIC -DHAVE_GENERICS -DNAME='"opensips"' -DVERSION='"3.5.4"' -DARCH='"x86_64"' -DOS='"linux"' -DCOMPILER='"gcc 15"' -D__CPU_x86_64 -D__OS_linux -D__SMP_yes -DCFG_DIR='"/etc/opensips/"' -DVERSIONTYPE='"git"' -DTHISREVISION='"051e1c4cc"' -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_MSG_NOSIGNAL -DHAV
@TomasTomecek
TomasTomecek / build.log
Created December 6, 2024 13:01
Log snippet
Finish: build setup for selinux-policy-41.26-2.20241205130831825281.pr2460.5.g5484cf206.fc42.src.rpm
Finish: build phase for selinux-policy-41.26-2.20241205130831825281.pr2460.5.g5484cf206.fc42.src.rpm
INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan
INFO: /var/lib/mock/fedora-rawhide-x86_64-1733404191.700875/root/var/log/dnf5.log
INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz
/bin/tar: Removing leading `/' from member names
ERROR: Exception(/var/lib/copr-rpmbuild/results/selinux-policy-41.26-2.20241205130831825281.pr2460.5.g5484cf206.fc42.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 24 seconds
INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
2024-01-24T15:38:25.0354050Z 2024-01-24T15:38:25.033Z waku:error:connection-manager Error dialing peer 16Uiu2HAm4ogtjMF567go92sEsWcVtqHtoaxdytxqcC4v75cWDk9L - The dial request has no valid addresses
2024-01-24T15:38:25.0355562Z 2024-01-24T15:38:25.033Z waku:info:connection-manager Dialing peer 16Uiu2HAm4ogtjMF567go92sEsWcVtqHtoaxdytxqcC4v75cWDk9L on attempt 3
2024-01-24T15:38:25.0357120Z 2024-01-24T15:38:25.033Z waku:error:connection-manager Error dialing peer 16Uiu2HAmGHZf972j41BJTNF7hkbG5LPfraiXXaX1JYdeB2GASK4P - The dial request has no valid addresses
2024-01-24T15:38:25.0358654Z 2024-01-24T15:38:25.033Z waku:info:connection-manager Dialing peer 16Uiu2HAmGHZf972j41BJTNF7hkbG5LPfraiXXaX1JYdeB2GASK4P on attempt 3
2024-01-24T15:38:25.0360238Z 2024-01-24T15:38:25.034Z waku:error:connection-manager Error dialing peer 16Uiu2HAm4ogtjMF567go92sEsWcVtqHtoaxdytxqcC4v75cWDk9L - The dial request has no valid addresses
2024-01-24T15:38:25.0362094Z 2024-01-24T15:38:25.034Z waku:info:connection-manager Deleting undialabl
@TomasTomecek
TomasTomecek / gist:aaaf91e0480b8d3825fa1f374de4aeca
Created April 10, 2024 14:43
GCC 14, F40, CUDA compilation errors
-- /usr/bin/g++ /home/fedora/tt/python-torch/pytorch-6a89a753b1556fe8558582c452fdba083f6ec01a/torch/abi-check.cpp -o /home/fedora/tt/python-torch/pytorch-6a89a753b1556fe8558582c13:57:07 [233/1713]
uild/abi-check
-- Determined _GLIBCXX_USE_CXX11_ABI=1
-- Could not find ccache. Consider installing ccache to speed up compilation.
-- Current compiler supports avx2 extension. Will build perfkernels.
-- Current compiler supports avx512f extension. Will build fbgemm.
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:780 (message):
Compiling the CUDA compiler identification source file
"CMakeCUDACompilerId.cu" failed.
Warning: Permanently added '2620:52:3:1:dead:beef:cafe:c114' (ED25519) to the list of known hosts.
You can reproduce this build on your computer by running:
sudo dnf install copr-rpmbuild
/usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/6168772-centos-stream-9-x86_64 --chroot centos-stream-9-x86_64
Version: 0.68
PID: 5189
@TomasTomecek
TomasTomecek / gist:2abcdb8b33eb96d31cdc58eb138dc344
Created July 13, 2023 09:49
Find the error in the rpmbuild output
```
/usr/lib/golang/pkg/tool/linux_amd64/compile -o $WORK/b852/_pkg_.a -trimpath "$WORK/b852=>" -p github.com/containers/podman/v4/pkg/specgen/generate/kube -lang=go1.18 -complete -installsuffix shared -buildid AXJTWutV-zkO52RMAmWr/AXJTWutV-zkO52RMAmWr -goversion go1.20.5 -shared -c=2 -nolocalimports -importcfg $WORK/b852/importcfg -pack ./pkg/specgen/generate/kube/kube.go ./pkg/specgen/generate/kube/seccomp.go ./pkg/specgen/generate/kube/volume.go
# github.com/containers/podman/v4/pkg/specgen/generate/kube
pkg/specgen/generate/kube/kube.go:617:3: undefined: portNum
pkg/specgen/generate/kube/kube.go:619:3: undefined: portNum
pkg/specgen/generate/kube/kube.go:621:9: undefined: portNum
github.com/containers/podman/v4/pkg/systemd/generate
mkdir -p $WORK/b853/
cat >/tmp/go-build1875107258/b853/importcfg << 'EOF' # internal
# import config
@TomasTomecek
TomasTomecek / table.md
Created October 11, 2022 10:42
Packit release suffix matrix
bump_version release_suffix expected_path_name updated_spec_file
False None csdiff-2.7.0.20220930.132946.g3ab6fbf-2.fc36.src.rpm False
False '' csdiff-2.7.0.20220930.132946.g3ab6fbf-2.fc36.src.rpm False
False 3 csdiff-2.7.0.20220930.132946.g3ab6fbf-2.3.fc36.src.rpm True
True None csdiff-2.7.0.20220930.132946.g3ab6fbf-3.fc36.src.rpm True
True '' csdiff-2.7.0.20220930.132946.g3ab6fbf-3.fc36.src.rpm True
True 3 I would say an error or csdiff-2.7.0.20220930.132946.g3ab6fbf-3.3.fc36.src.rpm True
@TomasTomecek
TomasTomecek / pod.yml
Last active January 23, 2017 10:00
Minimal OpenShift pod
apiVersion: v1
kind: Pod
metadata:
name: "caching-dns-server" # pod name, your reference from command line
namespace: "myproject" # default namespace in `oc cluster up`
spec:
containers:
- command:
- "bash"
image: "caching-dns-bind" # use your image!
@TomasTomecek
TomasTomecek / get_digest.py
Last active October 6, 2015 08:23
Generate digest of a manifest
#!/usr/bin/python
"""
This script takes at least one argument: path to a file with manifest.
It then computes and prints digest of the manifest(s).
The main reason this is not done properly, by decoding json, removing `signatures` and
encoding again, is that docker messes up encoding of strings and makes it impossible
to do right. For more info see:
@TomasTomecek
TomasTomecek / admin.py
Last active March 12, 2021 21:04
Automatically add all fields to django admin with links between models
# -*- coding: utf-8 -*-
"""
admin.py
Auto-register admin classes with fields and links to linked model classes
based on http://djangosnippets.org/snippets/997/
"""