[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Make test
From: |
Programmingkid |
Subject: |
Re: [Qemu-devel] Make test |
Date: |
Thu, 24 Aug 2017 18:24:06 -0400 |
> On Aug 24, 2017, at 6:21 PM, Cleber Rosa <address@hidden> wrote:
>
>
>
> 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 ]
Forgot to mention that doing a "#include <unistd.h>" does work on Mac OS X.
Does this work on your platform?
#include <stdio.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
printf("version = %ld\n", _POSIX_VERSION);
return 0;
}
- [Qemu-devel] Make test, Programmingkid, 2017/08/24
- Re: [Qemu-devel] Make test, Cleber Rosa, 2017/08/24
- Re: [Qemu-devel] Make test, Programmingkid, 2017/08/24
- Re: [Qemu-devel] Make test, Cleber Rosa, 2017/08/24
- Re: [Qemu-devel] Make test, Thomas Huth, 2017/08/25
- Re: [Qemu-devel] Make test, Peter Maydell, 2017/08/25
- Re: [Qemu-devel] Make test, Fam Zheng, 2017/08/25
- Re: [Qemu-devel] Make test, Peter Maydell, 2017/08/25
Re: [Qemu-devel] Make test, Programmingkid, 2017/08/24