So this error is driving me mad:
make: *** No rule to make target `/usr/include/stdlib.h', needed by `g_canvas.o'. Stop
On the MinGW builds on the WinXP auto-build server, this is what happens when trying to build Pd. I am totally baffled what is causing it. The makefile.mingw didn't change, so I am guessing it is something in the environment. But the thing is that I don't remember changing anything on that machine for a long time, besides upgrading Cygwin and Windows Updates.
This is what is stopping the nightly builds for Windows... anyone have any insight?
.hc
------------------------------------------------------------------------ ----
I spent 33 years and four months in active military service and during that period I spent most of my time as a high class muscle man for Big Business, for Wall Street and the bankers. - General Smedley Butler
Hans-Christoph Steiner wrote:
So this error is driving me mad:
make: *** No rule to make target `/usr/include/stdlib.h', needed by `g_canvas.o'. Stop
This is the first line of the first file that you're trying to compile, so it looks like the compiler isn't being specified. Turns out that in the makefile.mingw in pd/src (maybe not the same makefile you're using) the variable $(CC) is never defined; normally it should be set to point to gcc. Did some line(s) get dropped accidentally?
Martin
On Dec 3, 2007, at 12:28 PM, Martin Peach wrote:
Hans-Christoph Steiner wrote:
So this error is driving me mad:
make: *** No rule to make target `/usr/include/stdlib.h', needed by `g_canvas.o'. Stop
This is the first line of the first file that you're trying to compile, so it looks like the compiler isn't being specified. Turns out that in the makefile.mingw in pd/src (maybe not the same makefile you're using) the variable $(CC) is never defined; normally it should be set to point to gcc. Did some line(s) get dropped accidentally?
AFAIK, if CC is not defined, make automatically defines it. Or something does, at least, since when I echo $(CC), I get "gcc".
I tried manually defining it and it didn't change the error :(
.hc
------------------------------------------------------------------------ ----
"[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity." -John Gilmore
Hans-Christoph Steiner wrote:
make: *** No rule to make target `/usr/include/stdlib.h', needed by `g_canvas.o'. Stop
This is the first line of the first file that you're trying to compile, so it looks like the compiler isn't being specified. Turns out that in the makefile.mingw in pd/src (maybe not the same makefile you're using) the variable $(CC) is never defined; normally it should be set to point to gcc. Did some line(s) get dropped accidentally?
AFAIK, if CC is not defined, make automatically defines it. Or something does, at least, since when I echo $(CC), I get "gcc".
I tried manually defining it and it didn't change the error :(
Did you try a make depend first? Just guessing...
Martin
Hans-Christoph Steiner wrote:
make: *** No rule to make target `/usr/include/stdlib.h', needed by `g_canvas.o'. Stop
Does /usr/include/stdlib.h exist?
Whatever method you are using to generate the list of file dependencies for make is including /usr/include/stdlib.h as a dependency that g_canvas.c uses. If the file exists, it should work just fine.
By the way, what is the method that this Makefile is using to generate these dependencies?
-- Russell
On Dec 3, 2007, at 4:32 PM, Russell Bryant wrote:
Hans-Christoph Steiner wrote:
make: *** No rule to make target `/usr/include/stdlib.h', needed by `g_canvas.o'. Stop
Does /usr/include/stdlib.h exist?
Whatever method you are using to generate the list of file dependencies for make is including /usr/include/stdlib.h as a dependency that g_canvas.c uses. If the file exists, it should work just fine.
By the way, what is the method that this Makefile is using to generate these dependencies?
That was it. Why it worked like it was for years before, I'll never know. But I updated the depend target so that it uses "makefile.dependencies" as a target. This should make make update that file when it needs it.
.hc
------------------------------------------------------------------------ ----
All mankind is of one author, and is one volume; when one man dies, one chapter is not torn out of the book, but translated into a better language; and every chapter must be so translated.... -John Donne
Now we know how to make make make the right choice :) M
On Mon, Dec 03, 2007 at 08:36:33PM -0500, Hans-Christoph Steiner wrote:
On Dec 3, 2007, at 4:32 PM, Russell Bryant wrote:
Hans-Christoph Steiner wrote:
make: *** No rule to make target `/usr/include/stdlib.h', needed by `g_canvas.o'. Stop
Does /usr/include/stdlib.h exist?
Whatever method you are using to generate the list of file dependencies for make is including /usr/include/stdlib.h as a dependency that g_canvas.c uses. If the file exists, it should work just fine.
By the way, what is the method that this Makefile is using to generate these dependencies?
That was it. Why it worked like it was for years before, I'll never know. But I updated the depend target so that it uses "makefile.dependencies" as a target. This should make make update that file when it needs it.
.hc
All mankind is of one author, and is one volume; when one man dies, one chapter is not torn out of the book, but translated into a better language; and every chapter must be so translated.... -John Donne
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev