Boost C++ Libraries: Ticket #166: Cannot build jam using MINGW https://svn.boost.org/trac10/ticket/166 <pre class="wiki">When I'm triing to build jam I'v got error messages: ====================================== .cc bin.mingwx86\jam C:\DOCUME~1\SERGIY~1\LOCALS~1\Temp/ccCqjaaa.o (.text+0x12f):timestamp.c: undefine d reference to `file_time' C:\DOCUME~1\SERGIY~1\LOCALS~1\Temp/ccCqjaaa.o (.text+0x2cd):timestamp.c: undefine d reference to `file_archscan' C:\DOCUME~1\SERGIY~1\LOCALS~1\Temp/ccCqjaaa.o (.text+0x315):timestamp.c: undefine d reference to `file_dirscan' C:\DOCUME~1\SERGIY~1\LOCALS~1\Temp/ccimlaaa.o (.text+0x131c):builtins.c: undefine d reference to `file_dirscan' gcc -o bin.mingwx86\jam -DNDEBUG - DOPT_HEADER_CACHE_EXT -DOPT_GRAPH_DEBU G_EXT -DOPT_SEMAPHORE - DOPT_FIX_TARGET_VARIABLES_EXT - DOPT_IMPROVED_PATIENCE_EXT -DYYSTACKSIZE=5000 -s -O3 -finline-functions - DMINGW command.c compile.c exp and.c glob.c hash.c hcache.c headers.c hdrmacro.c jam.c jambase.c jamgram.c list s.c make.c make1.c newstr.c option.c parse.c regexp.c rules.c scan.c search.c su bst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c pwd.c exec unix.c fileunix.c pathunix.c ...failed .cc bin.mingwx86\jam... ...failed updating 1 target... ========================================= When I look into build.sh and jam.h I've understood the problem is in definition of MINGW in jam.h # define OSMAJOR "MINGW=true" # define OSMINOR "OS=MINGW" # define OS_NT In build.jam some files are not included because MINGW is not NT and because MINGW is not UNIX. Now I decide this by inserting everything where I found $(NT) check additional check for MINGW. But I think it should be better decision. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/166 Trac 1.4.3 René Rivera Tue, 17 Jun 2003 18:04:48 GMT <link>https://svn.boost.org/trac10/ticket/166#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/166#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=33595 Not sure how you are attempting to build BJam. But doing: .\build.bat mingw Works with the current CVS state to build with mingw. Perhaps you could clarify how you are building and what version of Boost+BJam you are building? </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>ysv_</dc:creator> <pubDate>Tue, 17 Jun 2003 21:27:46 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/166#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/166#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=779069 I use .\build.bat mingw to build jam version 3.1.4 from boost 1.30.0. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>René Rivera</dc:creator> <pubDate>Tue, 17 Jun 2003 22:00:00 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/166#comment:3 https://svn.boost.org/trac10/ticket/166#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=33595 OK thanks. This is already fixed. The fix is to not consider MINGW as an OS. See: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost/boost/tools/build/jam_src/build.bat?rev=1.10&amp;content-type=text/vnd.viewcvs-markup and http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost/boost/tools/build/jam_src/build.jam?rev=1.21&amp;content-type=text/vnd.viewcvs-markup </pre> Ticket