From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Namhyung Kim <namhyung@kernel.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Build failure for perf daemon on perf-tools-next
Date: Thu, 4 Jul 2024 16:18:55 -0300 [thread overview]
Message-ID: <Zob1n0hC6uavZKT9@x1> (raw)
Hi,
I hadn't notice this before, its like this code isn't being
built and some change made it build or that daemon->start field (or curr
local variable) changed its type or we have a new compiler that has a
new type check, I'm still checking:
perfbuilder@number:~$ dsh debian:experimental-x-mips
$ bash
toolsbuilder@84768d80be97:/$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
toolsbuilder@84768d80be97:/$ mips-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=mips-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc-cross/mips-linux-gnu/13/lto-wrapper
Target: mips-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 13.2.0-25' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-libitm --disable-libsanitizer --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --without-target-system-zlib --enable-multiarch --disable-werror --enable-multilib --with-arch-32=mips32r2 --with-fp-32=xx --with-lxc1-sxc1=no --enable-targets=all --with-arch-64=mips64r2 --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=mips-linux-gnu --program-prefix=mips-linux-gnu- --includedir=/usr/mips-linux-gnu/include --with-build-config=bootstrap-lto-lean --enable-link-serialization=8
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (Debian 13.2.0-25)
toolsbuilder@84768d80be97:/$
21 6.70 debian:experimental-x-mips : FAIL gcc version 13.2.0 (Debian 13.2.0-25)
builtin-daemon.c: In function 'cmd_session_list':
builtin-daemon.c:691:35: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'time_t' {aka 'long long int'} [-Werror=format=]
691 | fprintf(out, "%c%lu",
| ~~^
| |
| long unsigned int
| %llu
692 | /* session up time */
693 | csv_sep, (curr - daemon->start) / 60);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| time_t {aka long long int}
builtin-daemon.c:703:52: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'time_t' {aka 'long long int'} [-Werror=format=]
703 | fprintf(out, " up: %lu minutes\n",
| ~~^
| |
| long unsigned int
| %llu
704 | (curr - daemon->start) / 60);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| time_t {aka long long int}
builtin-daemon.c:730:43: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'time_t' {aka 'long long int'} [-Werror=format=]
730 | fprintf(out, "%c%lu",
| ~~^
| |
| long unsigned int
| %llu
731 | /* session up time */
732 | csv_sep, (curr - session->start) / 60);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| time_t {aka long long int}
builtin-daemon.c:748:52: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'time_t' {aka 'long long int'} [-Werror=format=]
748 | fprintf(out, " up: %lu minutes\n",
| ~~^
| |
| long unsigned int
| %llu
749 | (curr - session->start) / 60);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| time_t {aka long long int}
cc1: all warnings being treated as errors
tests/workloads/landlock.c:27:15: error: packed attribute causes inefficient alignment for 'allowed_access' [-Werror=attributes]
27 | __u64 allowed_access;
| ^~~~~~~~~~~~~~
tests/workloads/landlock.c:28:15: error: packed attribute causes inefficient alignment for 'parent_fd' [-Werror=attributes]
28 | __s32 parent_fd;
| ^~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [/git/perf-6.10.0-rc3/tools/build/Makefile.build:158: workloads] Error 2
make[3]: *** [/git/perf-6.10.0-rc3/tools/build/Makefile.build:158: tests] Error 2
reply other threads:[~2024-07-04 19:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zob1n0hC6uavZKT9@x1 \
--to=acme@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.