<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>make (e=2): The system cannot find the file specified.</title>
		<link>http://www.allegro.cc/forums/view/593750</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 24 Oct 2007 02:27:02 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Well, after my somewhat interesting attempts to build Allegro in a mingw32 environment using code::blocks, I have taken the very good advice given to me and am attempting to build using the makefile. <img src="http://www.allegro.cc/forums/smileys/rolleyes.gif" alt="::)" /></p><p>So, I unpacked a fresh directory, ran &quot;set.bat mingw&quot;, and, for good measure, I copied mingw32-make.exe to make.exe (in the proper path).  Running &quot;make all&quot; gives me this output:</p><p>------------------------<br />make msg lib<br />make[1]: Entering directory `C:/CODE/libraries/allegro&#39;<br />process_begin: CreateProcess(NULL, echo Compiling Allegro for MinGW32, optimised<br />. Please wait..., ...) failed.<br />make (e=2): The system cannot find the file specified.<br />make[1]: *** [msg] Error 2<br />make[1]: Leaving directory `C:/CODE/libraries/allegro&#39;<br />make: *** [all] Error 2<br />------------------------</p><p>Environment variables:</p><p>MINGDIR is set to c:\mingw<br />PATH includes c:\mingw\bin</p><p>gcc-v returns:</p><p>------------------------<br />Reading specs from c:/mingw/bin/../lib/gcc/mingw32/3.4.2/specs<br />Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable -languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug<br />Thread model: win32<br />gcc version 3.4.2 (mingw-special)<br />------------------------</p><p>I have installed the directx headers as well.</p><p>Another interesting thing to note is that &quot;make clean&quot; attempts to use &#39;rm&#39; instead of &#39;del&#39; even though no UNIX_TOOLS variable is set.</p><p>So, can anyone help me build this thing?  I&#39;ve read through the instructions, and I don&#39;t think I&#39;m missing anything...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Andy Walker)</author>
		<pubDate>Tue, 23 Oct 2007 22:44:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
PATH includes c:\mingw\bin
</p></div></div><p>

I&#39;m not sure about this, but shouldn&#39;t PATH include other dirs it contains by default?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Wed, 24 Oct 2007 00:46:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I&#39;m not sure about this, but shouldn&#39;t PATH include other dirs it contains by default?
</p></div></div><p>

Oh, it does, I just didn&#39;t want to paste it all here, so I only made sure to note that it INCLUDES c:\mingw\bin
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Andy Walker)</author>
		<pubDate>Wed, 24 Oct 2007 00:49:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>And if one of those has another version of make, you&#39;re in for trouble. Since your make is apparently called &quot;make&quot; and not &quot;mingw32-make&quot;, this might well be the case.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
So, I unpacked a fresh directory, ran &quot;set.bat mingw&quot;
</p></div></div><p>
Don&#39;t you mean &quot;fix&quot;?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Wed, 24 Oct 2007 00:54:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
And if one of those has another version of make, you&#39;re in for trouble. Since your make is apparently called &quot;make&quot; and not &quot;mingw32-make&quot;, this might well be the case.
</p></div></div><p>

Actually, it generates the exact same error if I type mingw32-make.</p><p>And, yes, I meant &quot;fix.bat&quot;.  Sorry <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Andy Walker)</author>
		<pubDate>Wed, 24 Oct 2007 00:58:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>[edit]</p><p>[edit] What version of allegro are you using?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ron Novy)</author>
		<pubDate>Wed, 24 Oct 2007 00:59:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
What version of allegro are you using?
</p></div></div><p>
Allegro 4.2.2</p><p>[edit]<br />deleted the make.exe, leaving only minggw32-make.exe</p><pre>
C:\CODE\libraries\allegro&gt;mingw32-make
process_begin: CreateProcess(NULL, echo Compiling Allegro for MinGW32, optimised
. Please wait..., ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: *** [msg] Error 2
</pre><p>

[edit]<br />Okay, so something is seriously weird here.  It&#39;s the <b>msg</b> target that&#39;s failing... and since the msg target simply echos &quot;Compiling Allegro blah blah&quot;, that means that make is trying to spawn a process using a program called &quot;echo&quot; and is failing.  I bet this has something to do with why &quot;mingw32-make clean&quot; tries to use &quot;rm&quot; instead of &quot;del&quot;</p><pre>
C:\CODE\libraries\allegro&gt;mingw32-make clean
rm -fv obj/*/*.o obj/*/*/*.o obj/*/*/*/*.o obj/*/*.obj obj/*/*/*.obj
mingw32-make: [clean] Error -1073741790 (ignored)
rm -fv obj/*/*.h obj/*/*.s obj/*/*.exe obj/*/*/*.lst obj/*/*/*.asm obj/*/*.res o
bj/*/asmdef obj/*/*.inc lib/*/*.a lib/unix/*.so* lib/unix/sta* lib/*/*.lib lib/*
/*.exp lib/*/*.dll lib/*/*.pdb lib/*/*.ilk lib/*/*.map *.pdb */*.pdb */*.ilk */*
.map */*.sym gmon.out */gmon.out */*.prf allegro.log */allegro.log */*/allegro.l
og log */log */*/log core */core */*/core
mingw32-make: [clean] Error -1073741790 (ignored)
</pre><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Andy Walker)</author>
		<pubDate>Wed, 24 Oct 2007 01:03:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Do you have DJGPP as well as Mingw32?  I think there were some extra tools and stuff that were included in a separate package... Might be the problem but try downloading the latest allegro and mingw32 again... Re-install mingw32 and allegro might help... Run a scan of the hard-drive first though... It could be that there is a problem with the drive or that a virus is trying to infect your executables....
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ron Novy)</author>
		<pubDate>Wed, 24 Oct 2007 01:39:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Do you have DJGPP as well as Mingw32?
</p></div></div><p>
Nope.  Just mingw32.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
It could be that there is a problem with the drive or that a virus is trying to infect your executables
</p></div></div><p>
I don&#39;t think that&#39;s the problem.  It looks to me like mingw32-make just isn&#39;t doing its job properly.  Besides, I have Cisco Security Agent installed, and it complains any time something attempts to do anything sneaky (or potentially so) like inject code into a process or write to an executable behind the scenes.</p><p>The problem definitely seems to lie with the way make is attempting to build target <b>msg</b>.  If I type mingw32-make lib, it putters away for awhile just fine before failing at another echo line.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Andy Walker)</author>
		<pubDate>Wed, 24 Oct 2007 01:44:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I would disable any anti-virus type of tools and try again.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I bet this has something to do with why &quot;mingw32-make clean&quot; tries to use &quot;rm&quot; instead of &quot;del&quot;
</p></div></div><p>
Oh, and make sure you don&#39;t have any things like bash.exe or sh.exe in your path. Allegro has this annoying habit of trying to detect whether or not you are in a &quot;Unix Environment.&quot;
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Wed, 24 Oct 2007 01:52:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Oh, and make sure you don&#39;t have any things like bash.exe or sh.exe in your path.
</p></div></div><p>

Ah HAH.  It was an sh.exe in my windows directory.  Pernicious little booger.  I renamed it, and it cleans and begins to build... until:</p><pre>gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -Wno-unused -mtune=i586 -O2 -funroll
-loops -ffast-math  -fomit-frame-pointer -I. -I./include -o obj/mingw32/alleg/po
ly3d.o -c src/poly3d.c
src/poly3d.c:32:35: obj/mingw32/asmcapa.h: No such file or directory
mingw32-make: *** [obj/mingw32/alleg/poly3d.o] Error 1</pre><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Andy Walker)</author>
		<pubDate>Wed, 24 Oct 2007 02:07:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>mingw32-make obj/mingw32/asmcapa.h
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Wed, 24 Oct 2007 02:09:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yeah.  Spoke too soon.  Just found this: <a href="http://www.allegro.cc/forums/thread/589188">http://www.allegro.cc/forums/thread/589188</a></p><p>Same error came up for asmdef.inc, so I made that, too.</p><p>Built and failed on linking because allegro.def was missing.  That&#39;s because I&#39;m stupid and had run &quot;make veryclean&quot; I think.  Replaced it with a copy from the zip.</p><p>Then it failed on plugins.h, which I also had to re-make (because of veryclean?).</p><p>And now we&#39;re done.  Successful build <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Okay, time for a learning experience for me: what did I do wrong to prevent these files from being built initially?  <s>How is the .DEF file originally generated, and is  there a make target to regenerate it (i.e. undo &quot;make veryclean&quot;)?</s></p><p>[edit]<br />Found fixdll.bat, but am still unsure why asmdef and plugins.h weren&#39;t built.  Also, it built it as &quot;alleg42.dll&quot;.  Is that correct?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Andy Walker)</author>
		<pubDate>Wed, 24 Oct 2007 02:27:02 +0000</pubDate>
	</item>
</rss>
