Well, it was documented in the SCons user manual. http://www.scons.org/doc/2.1.0/HTML/scons-user/x1239.html
It's a bummer that SCons wouldn't work with Boost nicely. Thanks, Min On Wed, Mar 21, 2012 at 4:42 PM, Min Kyu Jeong <[email protected]> wrote: > 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
