David Abrahams wrote:
Viktor.Ransmayr@t-online.de writes:
Hello everyone,
I've downloaded Boost 1.30.0 and tried to produce bjam from source using the MinGW environment.
For the record, I'm using
- MinGW-2.0.0-3 - binutils-2.13.90-2021006-02 - mingw-runtime-2.4 - w32api-2.2
Trying to bootstrap from source using
build.bat mingw >> %TMP%\build.log 2>&1
from the DOS cmd-shell on a WinXP-Pro system I receive the following errors. ( To save some bandwidth I've stripped the file build.log" to the relevant pieces and send it in attachment "stripped.build.log" )
Please let me know if I missed something in the documentation. - Otherwise tell me how to proceed further, since I'm really interested in getting Boost running in my MinGW environment.
build.jam:260: in .clean warning: unknown rule .rm build.jam:285: in .exe
Very interesting. It appears that the build script is failing to detect that you're running on a Windows system.
It seems to me that the fix is to change line 247 of build.bat from:
set BOOST_JAM_CC=gcc -DMINGW
to
set BOOST_JAM_CC=gcc -DMINGW -DNT
However, it also seems to me that this fix is missing from *most* of the toolsets handled by build.bat, so it's not clear why it works for anything other than metrowerks, msvc, and vc7.
Note that you don't need to build bjam with mingw to use it later with mingw. If you have any of the other toolsets listed above, you can just build bjam once with that.
HTH,
Hello David, Unfortunately your suggestion/ suspicion didn't solve the problem :-( - I'm attaching the build log again. Regards, Viktor Ransmayr PS: At the moment I only have the MinGW development environment on my laptop, so I'm not in a position to choose. - Nevertheless if no fix can be found could I use the binary bjam executable from SF ? ---------- ### ### Using 'mingw' toolset. ### D:\boost_1_30_0\tools\build\jam_src>rd /S /Q bootstrap.mingw Das System kann die angegebene Datei nicht finden. D:\boost_1_30_0\tools\build\jam_src>md bootstrap.mingw D:\boost_1_30_0\tools\build\jam_src>gcc -DMINGW -DNT -o bootstrap.mingw\jam0.exe command.c compile.c execnt.c execunix.c execvms.c expand.c filent.c fileos2.c fileunix.c filevms.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c pwd.c In file included from command.c:19: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from compile.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from execnt.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from execunix.c:7: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from execvms.c:7: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from expand.c:1: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from filent.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from fileos2.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from fileunix.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from filevms.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from glob.c:27: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from hash.c:7: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from hdrmacro.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from headers.c:14: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from jam.c:108: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from jamgram.y:98: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from lists.c:7: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from make.c:52: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from make1.c:51: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from newstr.c:7: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from option.c:7: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from parse.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from pathunix.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from pathvms.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from rules.c:7: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from scan.c:7: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from search.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from subst.c:2: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from timestamp.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from variable.c:15: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from modules.c:7: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from filesys.c:1: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from builtins.c:7: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition In file included from pwd.c:1: jam.h:132:1: warning: "OSMAJOR" redefined jam.h:92:1: warning: this is the location of the previous definition jam.h:133:1: warning: "OSMINOR" redefined jam.h:93:1: warning: this is the location of the previous definition jam.h:136:1: warning: "MAXLINE" redefined jam.h:98:1: warning: this is the location of the previous definition D:\Homes\vr\Tmp/ccIXcaaa.o(.text+0x10):execunix.c: multiple definition of `onintr' D:\Homes\vr\Tmp/cc0ocaaa.o(.text+0x54a):execnt.c: first defined here D:\Homes\vr\Tmp/ccIXcaaa.o(.text+0x8e):execunix.c: multiple definition of `execcmd' D:\Homes\vr\Tmp/cc0ocaaa.o(.text+0x702):execnt.c: first defined here D:\Homes\vr\Tmp/ccIXcaaa.o(.text+0x4b2):execunix.c: multiple definition of `execwait' D:\Homes\vr\Tmp/cc0ocaaa.o(.text+0xda8):execnt.c: first defined here [Non-text portions of this message have been removed]