Skip to content

Commit

Permalink
ci: disable build_src_package GitLab job due to libtrace errors
Browse files Browse the repository at this point in the history
Build log[1]:

    $ make
    [...]
    make -C src/libtrace/
    make[1]: Entering directory '/builds/Firejail/firejail_ci/src/libtrace'
    gcc -ggdb -O2 -DVERSION='"0.9.73"' [...]  -c ../../src/libtrace/libtrace.c -o ../../src/libtrace/libtrace.o
    ../../src/libtrace/libtrace.c:451:59: warning: 'struct stat64' declared inside parameter list will not be visible outside of this definition or declaration
      451 | typedef int (*orig_stat64_t)(const char *pathname, struct stat64 *statbuf);
          |                                                           ^~~~~~
    ../../src/libtrace/libtrace.c:453:41: warning: 'struct stat64' declared inside parameter list will not be visible outside of this definition or declaration
      453 | int stat64(const char *pathname, struct stat64 *statbuf) {
          |                                         ^~~~~~
    ../../src/libtrace/libtrace.c: In function 'stat64':
    ../../src/libtrace/libtrace.c:457:40: error: passing argument 2 of 'orig_stat64' from incompatible pointer type [-Wincompatible-pointer-types]
      457 |         int rv = orig_stat64(pathname, statbuf);
          |                                        ^~~~~~~
          |                                        |
          |                                        struct stat64 *
    ../../src/libtrace/libtrace.c:457:40: note: expected 'struct stat64 *' but argument is of type 'struct stat64 *'
    ../../src/libtrace/libtrace.c: At top level:
    ../../src/libtrace/libtrace.c:476:60: warning: 'struct stat64' declared inside parameter list will not be visible outside of this definition or declaration
      476 | typedef int (*orig_lstat64_t)(const char *pathname, struct stat64 *statbuf);
          |                                                            ^~~~~~
    ../../src/libtrace/libtrace.c:478:42: warning: 'struct stat64' declared inside parameter list will not be visible outside of this definition or declaration
      478 | int lstat64(const char *pathname, struct stat64 *statbuf) {
          |                                          ^~~~~~
    ../../src/libtrace/libtrace.c: In function 'lstat64':
    ../../src/libtrace/libtrace.c:482:41: error: passing argument 2 of 'orig_lstat64' from incompatible pointer type [-Wincompatible-pointer-types]
      482 |         int rv = orig_lstat64(pathname, statbuf);
          |                                         ^~~~~~~
          |                                         |
          |                                         struct stat64 *
    ../../src/libtrace/libtrace.c:482:41: note: expected 'struct stat64 *' but argument is of type 'struct stat64 *'
    make[1]: Leaving directory '/builds/Firejail/firejail_ci/src/libtrace'

Environment: gcc (14.2.0-r4), musl-dev (1.2.5-r8) on Alpine Linux v3.21.

Relates to #6610.

[1] https://gitlab.com/Firejail/firejail_ci/-/jobs/8853165146
  • Loading branch information
kmk3 committed Jan 15, 2025
1 parent 6574db6 commit 27b67a6
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,23 @@ build_fedora_package:
- rpm -i ./*.rpm
- make print-version

build_src_package:
image: alpine:latest
timeout: 10 minutes
script:
- apk update
- apk upgrade
- apk add build-base linux-headers gawk
- ./ci/printenv.sh
# Note: Do not use ` --enable-fatal-warnings` because the build
# currently produces warnings on Alpine (see #6224).
- >
./configure --prefix=/usr
|| (cat config.log; exit 1)
- make
- make install-strip
- make print-version
# FIXME: Cannot build src/libtrace with musl (see #6610).
#build_src_package:
# image: alpine:latest
# timeout: 10 minutes
# script:
# - apk update
# - apk upgrade
# - apk add build-base linux-headers gawk
# - ./ci/printenv.sh
# # Note: Do not use ` --enable-fatal-warnings` because the build
# # currently produces warnings on Alpine (see #6224).
# - >
# ./configure --prefix=/usr
# || (cat config.log; exit 1)
# - make
# - make install-strip
# - make print-version

debian_ci:
image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest
Expand Down

0 comments on commit 27b67a6

Please sign in to comment.