Issue with building gst in parallel.
| Project: | GNU Smalltalk |
| Component: | Build |
| Category: | bug |
| Priority: | normal |
| Assigned: | bonzinip |
| Status: | fixed |
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
| Assigned to: | Unassigned | » bonzinip |
| Status: | active | » fixed |
| Attachment: | gst-make-j2.patch (1.16 KB) |
Thanks, I fixed it with the attached patch.
| 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.
Can you try modifying yourself the GST_PKG_DEPENDENCIES invocation in configure.ac?
Yes, I already tried +GST_PACKAGE_DEPENDENCIES([gst-tool], [gst.im]), but it made no difference. Not sure if that is correct though.
The right one is
GST_PACKAGE_DEPENDENCIES([gst-tool gst.im])
Thanks!
I committed the change, it should work now.
| Status: | active | » fixed |
I committed the change, it should work now.
