I'm not sure what's causing your problem, but one thing I notice is that it's not scons that's having an error, it's make running in the libelf directory. We have a private copy of libelf just for m5's purposes, but it was developed seperately and has it's own build system. The real question is why make isn't finding the header files. That might be because they aren't in the compiler's include search paths, which you might be able to correct by setting the C_INCLUDE_PATH environment variable as explained here:

http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Environment-Variables.html#Environment-Variables

Gabe

Nicolas Zea wrote:

When I try to compile m5 I get the following error:

gmake[2]: Entering directory `/Users/Nick/Workspace/m5-2.0b2/build/ libelf/build/po' gcc -DHAVE_CONFIG_H -I.. -I. -I../lib -I/Users/Nick/Workspace/ m5-2.0b2/ext/libelf/po -I/Users/Nick/Workspace/m5-2.0b2/ext/libelf/ lib -g -O2 \ /Users/Nick/Workspace/m5-2.0b2/ext/libelf/po/gmo2msg.c - o /Users/Nick/Workspace/m5-2.0b2/ext/libelf/po/gmo2msg /Users/Nick/Workspace/m5-2.0b2/ext/libelf/po/gmo2msg.c:28:21: error: libintl.h: No such file or directory /Users/Nick/Workspace/m5-2.0b2/ext/libelf/po/gmo2msg.c: In function 'main': /Users/Nick/Workspace/m5-2.0b2/ext/libelf/po/gmo2msg.c:44: error: 'LC_ALL' undeclared (first use in this function) /Users/Nick/Workspace/m5-2.0b2/ext/libelf/po/gmo2msg.c:44: error: (Each undeclared identifier is reported only once /Users/Nick/Workspace/m5-2.0b2/ext/libelf/po/gmo2msg.c:44: error: for each function it appears in.) /Users/Nick/Workspace/m5-2.0b2/ext/libelf/po/gmo2msg.c:88: error: 'LC_MESSAGES' undeclared (first use in this function) /Users/Nick/Workspace/m5-2.0b2/ext/libelf/po/gmo2msg.c:89: warning: incompatible implicit declaration of built-in function 'gettext' gmake[2]: *** [/Users/Nick/Workspace/m5-2.0b2/ext/libelf/po/gmo2msg] Error 1 gmake[2]: Leaving directory `/Users/Nick/Workspace/m5-2.0b2/build/ libelf/build/po'
gmake[1]: *** [de.msg] Error 2
gmake[1]: Leaving directory `/Users/Nick/Workspace/m5-2.0b2/build/ libelf/build/po'
gmake: *** [install-recursive] Error 1
scons: *** [build/libelf/lib/libelf.a] Error 512
scons: building terminated because of errors.

Now I know I have libintl.h on my system (its in the gettext's macports directory at /opt/local/include). Is there any way to find out where scons is looking for the file? Has anyone else run into this problem? For info, my python version is 2.4.3 (from macports) and scons is 0.96.95 (compiled myself).

Thanks,
Nick
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users


_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to