qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Cleber Rosa <crosa@redhat.com>
To: Programmingkid <programmingkidx@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Make test
Date: Thu, 24 Aug 2017 18:21:31 -0400	[thread overview]
Message-ID: <0f7c2030-f9dc-1069-cb94-6d42030e8bc7@redhat.com> (raw)
In-Reply-To: <230513EB-08AB-41E9-97A6-69C646A5D205@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1280 bytes --]



On 08/24/2017 06:18 PM, Programmingkid wrote:
> After applying the patches I saw this error:
> 
> $ make test
> make -C tests/tcg test
>   CC      test_path.o
>   LINK    test_path
> ./test_path
> cc -m32 -nostdlib -Wall -O2 -g -fno-strict-aliasing -static  -o hello-i386 hello-i386.c
> hello-i386.c:1:10: fatal error: 'asm/unistd.h' file not found
> #include <asm/unistd.h>
>          ^
> 1 error generated.
> make[1]: *** [hello-i386] Error 1
> make: *** [test] Error 2
> 

Thanks for testing it.

> 
> The path to this header file is /usr/include/unistd.h and /usr/include/sys/unistd.h on my computer. Maybe you could add this to your patches to make them more Mac-friendly:
> 
> #ifdef __MACH__ /* Mach kernel - what's used in Mac OS X */
> 	#include <unistd.h>
> #endif
> 
> http://pubs.opengroup.org/onlinepubs/7908799/xsh/unistd.h.html
> Then again this page states you should be able to do a "#include <unistd.h>" on your posix compatible platform.
> 
> Thank you.
> 

I'll take a look and attempt a more portable fix on a v2.

Regards!

-- 
Cleber Rosa
[ Sr Software Engineer - Virtualization Team - Red Hat ]
[ Avocado Test Framework - avocado-framework.github.io ]
[  7ABB 96EB 8B46 B94D 5E0F  E9BB 657E 8D33 A5F2 09F3  ]


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-08-24 22:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3749.1503600836.21955.qemu-devel@nongnu.org>
2017-08-24 19:10 ` [Qemu-devel] Make test Programmingkid
2017-08-24 20:41   ` Cleber Rosa
2017-08-24 21:50     ` Programmingkid
2017-08-24 22:16       ` Cleber Rosa
2017-08-25  5:49         ` Thomas Huth
2017-08-25  9:10           ` Peter Maydell
2017-08-25  9:33             ` Fam Zheng
2017-08-25  9:41               ` Peter Maydell
2017-08-24 22:18     ` Programmingkid
2017-08-24 22:21       ` Cleber Rosa [this message]
2017-08-24 22:24         ` Programmingkid

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=0f7c2030-f9dc-1069-cb94-6d42030e8bc7@redhat.com \
    --to=crosa@redhat.com \
    --cc=programmingkidx@gmail.com \
    --cc=qemu-devel@nongnu.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 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).