Hi, all

I am having a compilation problem with a boost header-only library
(format). The SCons do not copy some of the headers of boost from the src
directory to the build directory. When I manually copy the files from the
source to the build directory, it builds fine.

The following is the error message.

build/ALPHA/mem/drsim/drsiminc/boost/config.hpp:26:29: fatal error:
boost/config/user.hpp: No such file or directory

I inspect the build/ALPHA/mem/drsim/drsiminc/boost/config/ directory and
user.hpp is not there. It is in the corresponding src directory.

The following is the config.hpp file that includes the missing file.

 20 // if we don't have a user config, then use the default location:
 21 #if !defined(BOOST_USER_CONFIG) && !defined(BOOST_NO_USER_CONFIG)
 22 #  define BOOST_USER_CONFIG <boost/config/user.hpp>
 23 #endif
 24 // include it first:
 25 #ifdef BOOST_USER_CONFIG
 26 #  include BOOST_USER_CONFIG
 27 #endif

It appears going through the BOOST_USER_CONFIG in #include at the line 26
makes Scons missing it. I substituted this segment with

 20 // if we don't have a user config, then use the default location:
 21 //#if !defined(BOOST_USER_CONFIG) && !defined(BOOST_NO_USER_CONFIG)
 22 //#  define BOOST_USER_CONFIG <boost/config/user.hpp>
 23 //#endif
 24 // include it first:
 25 //#ifdef BOOST_USER_CONFIG
 26 #include <boost/config/user.hpp>
 27 //#endif

and it works.

Is this a problem with SCons way of identifying dependent header files? I
am not familiar with inner workings of SCons so don't know where to look at
next. Any suggestion would be appreciated.

Thanks,

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

Reply via email to