[Nestedvm] memory.h

Pablo Beltran pbeltranl at gmail.com
Sun Dec 16 07:23:00 EST 2012


This is the error message:

mips-unknown-elf-gcc -c -DHAVE_CONFIG_H    -fPIC -Wimplicit -Wreturn-type
-Wno-write-strings -Wformat -O -fomit-frame-pointer
-I/home/pablo/freetype-2.4.10/include -I/home/pablo/jpeg-6b
-I/home/pablo/zlib-1.2.7 -O3 -mmemcpy -ffunction-sections -fdata-sections
-falign-functions=512 -fno-rename-registers -fno-schedule-insns
-fno-delayed-branch -freduce-all-givs modules/swfbits.c -o modules/swfbits.o
modules/swfbits.c:26:20: memory.h: No such file or directory
make[1]: *** [modules/swfbits.o] Error 1

The source code of *swfbits.c*:

#include <stdlib.h>
#include <stdio.h>
*#include <memory.h>*
#include "../../config.h"
#ifdef HAVE_ZLIB
#include <zconf.h>
#include <zlib.h>
#endif
#include <fcntl.h>
#include <ctype.h>
...

While stdlib.h and stdio.h are provided by the nestedvmt:
/home/pablo/nestedvm/upstream/build/newlib-1.11.0/newlib/libc/include/stdlib.h
/home/pablo/nestedvm/upstream/build/newlib-1.11.0/newlib/libc/include/stdio.h

memory.h not:
/usr/include/memory.h (and others)

although there is a similar one at:
/home/pablo/nestedvm/upstream/build/gcc-3.3.6/libstdc++-v3/include/std/*
std_memory.h*

Is memory.h not supported? Does memory.h must be replaced by std_memory.h
or any similar workaround?'

Many thanks,
Pablo.





2012/12/16 Pablo Beltran <pbeltranl at gmail.com>

> Hi,
>
> I want to compile the SWFTools project by using the nestedvm compiler. But
> I'm getting problems with the *memory.h* file.
> I've built several 3rd party required libraries (jpeg, freetype, zlib)
> without problems and configured the SWFTools with nestedvm, but when I run
> the *make* command it stops because the memory.h file is missing.
>
> Well, I found one at the /usr/include, so I added the *-I/usr/include*param to the gcc compiler (via Makefile). The missing file  is already
> found, but tons of errors are then displayed.
>
> How can it be resolved? I guess that was not the right way to deal with
> the missing memory.h file...
>
> Many thanks!
> Pablo.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.hcoop.net/pipermail/nestedvm/attachments/20121216/55b508ab/attachment.htm 


More information about the Nestedvm mailing list