From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org, Peter Xu <peterx@redhat.com>,
Thomas Huth <thuth@redhat.com>,
Juan Quintela <quintela@redhat.com>,
Leonardo Bras <leobras@redhat.com>
Subject: Re: [PATCH] tests/migration: Restrict initrd-stress.img to Linux
Date: Mon, 10 Jul 2023 21:17:43 +0200 [thread overview]
Message-ID: <6564b580-48d7-2ea7-207b-00d583b802e9@linaro.org> (raw)
In-Reply-To: <ZKxJxkw/zUkgrlr8@redhat.com>
On 10/7/23 20:11, Daniel P. Berrangé wrote:
> On Mon, Jul 10, 2023 at 07:56:07PM +0200, Philippe Mathieu-Daudé wrote:
>> Trying to build initrd-stress.img on Darwin we get:
>>
>> $ ninja tests/migration/initrd-stress.img
>> Compiling C object tests/migration/stress.p/stress.c.o
>> FAILED: tests/migration/stress.p/stress.c.o
>> ../tests/migration/stress.c:24:10: fatal error: 'linux/random.h' file not found
>> #include <linux/random.h>
>> ^~~~~~~~~~~~~~~~
>
> I think that's historical accident, as AFAICT, nothing in stress.c
> needs that include to be present.
Removing I get:
../../tests/migration/stress.c:35:12: error: 'syscall' is deprecated:
first deprecated in macOS 10.12 - syscall(2) is unsupported; please
switch to a supported interface. For SYS_kdebug_trace use
kdebug_signpost(). [-Werror,-Wdeprecated-declarations]
return syscall(SYS_gettid);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h:746:6:
note: 'syscall' has been explicitly marked deprecated here
int syscall(int, ...);
^
../../tests/migration/stress.c:43:16: error: use of undeclared
identifier 'RB_POWER_OFF'
reboot(RB_POWER_OFF);
^
../../tests/migration/stress.c:241:39: error: too many arguments to
function call, expected 4, have 5
if (mount("none", dir, fstype, 0, NULL) < 0) {
~~~~~ ^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.3/include/stddef.h:89:16:
note: expanded from macro 'NULL'
# define NULL ((void*)0)
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/mount.h:448:9:
note: 'mount' declared here
int mount(const char *, const char *, int, void *);
^
3 errors generated.
next prev parent reply other threads:[~2023-07-10 19:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-10 17:56 [PATCH] tests/migration: Restrict initrd-stress.img to Linux Philippe Mathieu-Daudé
2023-07-10 18:11 ` Daniel P. Berrangé
2023-07-10 19:17 ` Philippe Mathieu-Daudé [this message]
2023-07-11 11:50 ` Daniel P. Berrangé
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=6564b580-48d7-2ea7-207b-00d583b802e9@linaro.org \
--to=philmd@linaro.org \
--cc=berrange@redhat.com \
--cc=leobras@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=thuth@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).