qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Make test


From: Cleber Rosa
Subject: Re: [Qemu-devel] Make test
Date: Thu, 24 Aug 2017 18:21:31 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1


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: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]