[ xdvi-Bugs-2933610 ] Parallel make build failure: 'libgui.a': No such file

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.tex.xdvi.devel
Message-ID <[email protected]>
Bugs item #2933610, was opened at 2010-01-17 01:48
Message generated for change (Comment added) made by stefanulrich
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=377580&aid=2933610&group_id=23164

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ed Catmur (edcatmur)
>Assigned to: Stefan Ulrich (stefanulrich)
Summary: Parallel make build failure: 'libgui.a': No such file

Initial Comment:
Compilation fails when built with make options -j2 or higher.

Sample errors:

rm -f libgui.a
x86_64-pc-linux-gnu-ranlib libgui.a
x86_64-pc-linux-gnu-ranlib: 'libgui.a': No such file
make[1]: *** [libgui.a] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-text/xdvik-22.84.16/work/xdvik-22.84.16/texk/xdvik/gui'
make: *** [gui/libgui.a] Error 2
make: *** Waiting for unfinished jobs....

Alternatively:

rm -f libgui.a
i686-pc-linux-gnu-ar rc libgui.a help-window.o message-window.o mag.o menu.o Panner.o pagesel.o print-dialog.o print-log.o search-dialog.o selection.o sfDir.o sfDraw.o sfPath.o sfSelFile.o statusline.o Tip.o topic-window.o xaw_bitmaps.o xaw_menu.o xicon.o xlwradio.o xm_colorsel.o xm_filesel.o xm_menu.o xm_prefs.o xm_prefs_appearance.o xm_prefs_fonts.o xm_prefs_page.o xm_prefs_scroll.o xm_prefs_helpers.o xm_toolbar.o
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./.. -W -Wall -Wunused  -I/usr/include/kpathsea -DPS_GS  -DXDVI_KPSE_PROG_NAME=xdvi -I./gui   -ggdb -O1 -O2 -O3 -pipe -march=core2 -mmmx -msse -m3dnow -fdiagnostics-show-option  -c dvisel.c -o dvisel.o
i686-pc-linux-gnu-ar: libgui.a: Error reading xm_toolbar.o: File truncated
make[1]: *** [libgui.a] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-text/xdvik-22.84.16/work/xdvik-22.84.16/texk/xdvik/gui'
make: *** [libguibuild] Error 2
make: *** Waiting for unfinished jobs....

This is caused by the duplicate build target for gui/libgui.a.

The attached patch fixes the issue in the recommended[1] manner.

Downstream bug on Gentoo bugzilla[2].

1. http://www.gnu.org/software/automake/manual/make/Phony-Targets.html
2. http://bugs.gentoo.org/show_bug.cgi?id=293541

----------------------------------------------------------------------

>Comment By: Stefan Ulrich (stefanulrich)
Date: 2010-01-23 12:25

Message:
Thanks a lot for the patch; applied to 22.84.17-CVS5.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=377580&aid=2933610&group_id=23164

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.