Issue with building gst in parallel.

Tagged:
Project:GNU Smalltalk
Component:Build
Category:bug
Priority:normal
Assigned:bonzinip
Status:fixed
Description

How to duplicate:

$ ./configure
$ make -j2
...
make[3]: Leaving directory `/var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/packages/blox/tk'
./gst-tool gst-package --kernel-dir="/var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/kernel" -I "/var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/gst.im" --srcdir=. --target-directory=. packages/blox/tk/package.xml
/bin/sh: ./gst-tool: No such file or directory
make[2]: *** [BloxTK.star] Error 127
...

Discovered this while trying to create an ebuild for Gentoo. It usually builds with -j2 or higher. Building with -j1 avoids the problem.

Updates

#1 submitted by Paolo Bonzini on Fri, 11/16/2007 - 15:52
Assigned to:Unassigned» bonzinip
Status:active» fixed
Attachment:gst-make-j2.patch (1.16 KB)

Thanks, I fixed it with the attached patch.

#2 submitted by Jason Shoemaker on Sat, 11/17/2007 - 08:12
Status:fixed» active

Thanks for the quick response.

I applied the patches, and I'm now getting these two errors:

...
Wrote /var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/elc.22019/gst-mode.elc
Wrote /var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/elc.22019/smalltalk-mode.elc
./gst-tool gst-package --kernel-dir="/var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/kernel" -I "/var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/gst.im" --srcdir=. --target-directory=. packages/browser/package.xml
gst: Couldn't open image file /var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/gst.im
make[2]: *** [Browser.star] Error 1
make[2]: *** Waiting for unfinished jobs....
generating symbol list for `blox-tk.la'
...
creating blox-tk.la
(cd .libs && rm -f blox-tk.la && ln -s ../blox-tk.la blox-tk.la)
make[3]: Leaving directory `/var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/packages/blox/tk'
./gst-tool gst-package --kernel-dir="/var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/kernel" -I "/var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/gst.im" --srcdir=. --target-directory=. packages/blox/tk/package.xml
gst: Couldn't open image file /var/tmp/portage/dev-lang/gnu-smalltalk-2.95f/work/smalltalk-2.95f/gst.im
make[2]: *** [BloxTK.star] Error 1

So gst-tool seems to be working, but gst.im is missing.

#3 submitted by Paolo Bonzini on Sat, 11/17/2007 - 08:44

Can you try modifying yourself the GST_PKG_DEPENDENCIES invocation in configure.ac?

#4 submitted by Jason Shoemaker on Sat, 11/17/2007 - 23:52

Yes, I already tried +GST_PACKAGE_DEPENDENCIES([gst-tool], [gst.im]), but it made no difference. Not sure if that is correct though.

#5 submitted by Paolo Bonzini on Sun, 11/18/2007 - 18:52

The right one is

GST_PACKAGE_DEPENDENCIES([gst-tool gst.im])

Thanks!

#6 submitted by Paolo Bonzini on Thu, 11/29/2007 - 12:04

I committed the change, it should work now.

#7 submitted by Paolo Bonzini on Thu, 11/29/2007 - 12:04
Status:active» fixed

I committed the change, it should work now.

User login