Bug 13820 - [3.4/4.0 Regression] "make dvi" crashes when configured from a relative source directory
Summary: [3.4/4.0 Regression] "make dvi" crashes when configured from a relative sourc...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 3.4.0
: P2 critical
Target Milestone: 3.4.0
Assignee: Kelley Cook
URL:
Keywords: patch
Depends on:
Blocks: 14536
  Show dependency treegraph
 
Reported: 2004-01-22 21:35 UTC by Kelley Cook
Modified: 2004-09-13 14:15 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work: 3.3
Known to fail:
Last reconfirmed: 2004-01-23 02:35:58


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kelley Cook 2004-01-22 21:35:24 UTC
I just noticed that changing the *.dvi files to be built in the doc directory
has caused a regression.  This occurs on mainline and the 3.4 branch

To recreate:

../gcc-srcdir/configure
make configure-gcc
cd gcc
make dvi

The problem is the texi2dvi (at least the version that comes with texinfo 4.2)
does not appear to work with include directories with relative path names and
the rules for making dvi files refers to $(docdir) which is defined as
$(srcdir)/doc.
$(srcdir) is a relative path name.

On the plus side I think this is easy to fix and a patch will be forthcoming
within the day
Comment 1 Andrew Pinski 2004-01-23 02:35:57 UTC
Confirmed.
Comment 2 Kelley Cook 2004-01-23 18:44:24 UTC
Patch at http://gcc.gnu.org/ml/gcc-patches/2004-01/msg02349.html
Comment 3 Kelley Cook 2004-01-31 00:57:00 UTC
Fix checked into gcc-3.4 and HEAD

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	kcook@gcc.gnu.org	2004-01-31 00:45:28

Modified files:
	gcc            : ChangeLog Makefile.in 
	gcc/ada        : ChangeLog Make-lang.in 
	gcc/f          : ChangeLog Make-lang.in 
	gcc/java       : ChangeLog Make-lang.in 
	gcc/treelang   : ChangeLog Make-lang.in 

Log message:
	gcc/
	2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
	
	* Makefile.in (abs_docdir, abs_srcdir): Define.
	(doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
	
	gcc/ada/
	2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
	
	* Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
	(doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
	(doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
	
	gcc/f/
	2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
	
	* Make-lang.in (doc/g77.dvi): Use $(abs_docdir).
	
	gcc/java/
	2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
	
	* Make-lang.in (doc/gcj.dvi): Use $(abs_docdir).
	
	gcc/treelang/
	2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
	
	* Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.116&r2=2.2326.2.117
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1223.2.6&r2=1.1223.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.428.2.2&r2=1.428.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/Make-lang.in.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.70.2.1&r2=1.70.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.622.2.2&r2=1.622.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/Make-lang.in.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.138.2.2&r2=1.138.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1315.2.6&r2=1.1315.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/Make-lang.in.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.128.2.2&r2=1.128.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.79.2.1&r2=1.79.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/Make-lang.in.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.43.2.1&r2=1.43.2.2

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	kcook@gcc.gnu.org	2004-01-31 00:50:04

Modified files:
	gcc            : ChangeLog Makefile.in 
	gcc/ada        : ChangeLog Make-lang.in 
	gcc/f          : ChangeLog Make-lang.in 
	gcc/java       : ChangeLog Make-lang.in 
	gcc/treelang   : ChangeLog Make-lang.in 

Log message:
	gcc/
	2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
	
	* Makefile.in (abs_docdir, abs_srcdir): Define.
	(doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
	
	gcc/ada/
	2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
	
	* Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
	(doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
	(doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
	
	gcc/f/
	2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
	
	* Make-lang.in (doc/g77.dvi): Use $(abs_docdir).
	
	gcc/java/
	2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
	
	* Make-lang.in (doc/gcj.dvi): Use $(abs_docdir).
	
	gcc/treelang/
	2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
	
	* Make-lang.in (doc/treelang.dvi): Use $(abs_docdir).

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2572&r2=2.2573
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&r1=1.1238&r2=1.1239
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/ChangeLog.diff?cvsroot=gcc&r1=1.436&r2=1.437
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/Make-lang.in.diff?cvsroot=gcc&r1=1.72&r2=1.73
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/ChangeLog.diff?cvsroot=gcc&r1=1.625&r2=1.626
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/Make-lang.in.diff?cvsroot=gcc&r1=1.141&r2=1.142
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1322&r2=1.1323
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/Make-lang.in.diff?cvsroot=gcc&r1=1.130&r2=1.131
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/ChangeLog.diff?cvsroot=gcc&r1=1.80&r2=1.81
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/Make-lang.in.diff?cvsroot=gcc&r1=1.44&r2=1.45