Bug 27133 - Fails to build because of funny version of makeinfo
Summary: Fails to build because of funny version of makeinfo
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.1.0
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-12 12:46 UTC by James Kanze
Modified: 2010-09-20 22:04 UTC (History)
4 users (show)

See Also:
Host: sparc-sun-solaris2.8
Target: sparc-sun-solaris2.8
Build: sparc-sun-solaris2.8
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Kanze 2006-04-12 12:46:11 UTC
This may actually be several distinct minor bugs.
On my Sparc machine, I have what I think is a strang
version of makeinfo, installed by TeX (or at least,
in the tex tree) -- makeinfo --version returns:
   makeinfo (GNU texinfo 3.12) 1.68
This results in the compiler system (most specifically
fastjar) failing to build.

I will apply the obvious fix in my case -- install
a correct version of makeinfo from sources.  However...
The makeinfo pages say that "all GNU distributions should come 
with prebuilt info files, thus makeinfo should not be needed.  
If you notice a distribution that does not come with *.info files, 
please report it as a bug."  Whence this bug report.

Two possible improvements while I'm at it: there really
could be an error message (or a warning) in configure, where
you check the version, and (more a question) is there a simple
way to build without building the documentation -- I've already
got it from the Linux build anyway?
Comment 1 Andrew Pinski 2006-04-12 18:18:32 UTC
Are you building from a release version, correct?

Otherwise you do need makeinfo as explained by:
http://gcc.gnu.org/install/prerequisites.html
Comment 2 Andrew Pinski 2006-04-13 01:41:31 UTC
Can you show how it fails also because this is not enough information really.
Comment 3 James Kanze 2006-04-13 16:28:58 UTC
(In reply to comment #1)
> Are you building from a release version, correct?

As far as I know.  It's version 4.1.0, downloaded
yesterday or the day before.  How can I tell?
(I do want something more or less stable, since
I'm using the compiler in production code.)
Comment 4 Philippe Schaffnit 2006-10-26 06:37:50 UTC
I am experiecing the same thing under Irix with freshly checked out sources.

The system: SGI, IRIX64 blue1 6.5 04100802 IP27. All the tools are quite out of date...

PS: is this related to 'Bug#: 27516 '?

PPS: For me it fails with

if [ xinfo = xinfo ]; then \
          rm -f doc/gfortran.info-*; \
          makeinfo --split-size=5000000 --split-size=5000000
--split-size=5000000 -I /USER/philippe/Irix/Gcc_Sources/gcc/doc/include
-I /USER/philippe/Irix/Gcc_Sources/gcc/fortran \
            -o doc/gfortran.info
/USER/philippe/Irix/Gcc_Sources/gcc/fortran/gfortran.texi; \
        else true; fi
makeinfo: getwd: doc/gfortran.info, 
make[3]: *** [doc/gfortran.info] Error 1
make[3]: Leaving directory `/USER/philippe/Irix/Compilation/Temp/gcc'
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory `/USER/philippe/Irix/Compilation/Temp'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/USER/philippe/Irix/Compilation/Temp'
make: *** [all] Error 2

Comment 5 Bernhard Reutner-Fischer 2006-10-26 11:18:42 UTC
pr27516 is different in that pr27516 calls makeinfo even if there was no makeinfo detected.

> PPS: For me it fails with
[]
> makeinfo: getwd: doc/gfortran.info, 
> make[3]: *** [doc/gfortran.info] Error 1
> make[3]: Leaving directory `/USER/philippe/Irix/Compilation/Temp/gcc'

can you please run that manually, like:
$ cd $OBJDIR/gcc
$ makeinfo -v --split-size=5000000 --split-size=5000000 \
--split-size=5000000 -I /USER/philippe/Irix/Gcc_Sources/gcc/doc/include \
-I /USER/philippe/Irix/Gcc_Sources/gcc/fortran \
-o doc/gfortran.info ; echo $?

Comment 6 Philippe Schaffnit 2006-10-26 12:02:44 UTC
Sure!

It will just take some time, as I've cleaned-up my objects in between (I was getting reading to give it another go with an up-to-date TexInfo...). I hope to be able to post that in a few hours (as soon as it's back there...).
Comment 7 Philippe Schaffnit 2006-10-27 07:03:49 UTC
Here's what I get:

 makeinfo -v --split-size=5000000 --split-size=5000000 --split-size=5000000 -I /USER/philippe/Irix/Gcc_Sources/gcc/doc/include -I /USER/philippe/Irix/Gcc_Sources/gcc/fortran -o doc/gfortran.info ; echo $?
makeinfo: missing file argument.
Try `makeinfo --help' for more information.
1

The whole thing probably happens because of:

makeinfo --version
makeinfo (GNU texinfo) 4.5

If configure could warn about it, it would be nice... (Obviously, I have no idea how complicated it would be...).

Also a switch to disable it could be handy (same remark...).

Thanks!
Comment 8 Bernhard Reutner-Fischer 2006-10-27 08:58:55 UTC
I forgot the texi file..

makeinfo -v --split-size=5000000 --split-size=5000000 --split-size=5000000 -I
/USER/philippe/Irix/Gcc_Sources/gcc/doc/include -I
/USER/philippe/Irix/Gcc_Sources/gcc/fortran -o doc/gfortran.info \
/USER/philippe/Irix/Gcc_Sources/gcc/fortran/gfortran.texi; echo $?

Please retry.

> Also a switch to disable it could be handy (same remark...).

You should be able to pass MAKEINFO=/bin/false to configure to make it explicit that makeinfo is not available on your machine.
Comment 9 Philippe Schaffnit 2006-10-30 11:38:03 UTC
Sorry it took me so long, but I had clobbered my objects (...), and then I tried to post it, but somehow it doesn't show: sorry if comes twice...

I would guess it's not obviously wrong....

makeinfo -v --split-size=5000000 --split-size=5000000 --split-size=5000000 -I /USER/philippe/Irix/Gcc_Sources/gcc/doc/include -I /USER/philippe/Irix/Gcc_Sources/gcc/fortran -o doc/gfortran.info /USER/philippe/Irix/Gcc_Sources/gcc/fortran/gfortran.texi ; echo $
makeinfo (GNU texinfo) 4.5
Making info file `doc/gfortran.info' from `/USER/philippe/Irix/Gcc_Sources/gcc/fortran/gfortran.texi'.
  @include `gcc-common.texi'
    @include `gcc-vers.texi'
Formatting node Top...
Formatting node Getting Started...
Formatting node GNU Fortran and GCC...
Formatting node GNU Fortran and G77...
  @include `invoke.texi'
Formatting node Invoking GNU Fortran...
Formatting node Option Summary...
Formatting node Fortran Dialect Options...
Formatting node Warning Options...
Formatting node Debugging Options...
Formatting node Directory Options...
Formatting node Runtime Options...
Formatting node Code Gen Options...
Formatting node Environment Variables...
Formatting node Project Status...
Formatting node Compiler and Library Status...
Formatting node Proposed Extensions...
Formatting node Runtime...
Formatting node GFORTRAN_STDIN_UNIT...
Formatting node GFORTRAN_STDOUT_UNIT...
Formatting node GFORTRAN_STDERR_UNIT...
Formatting node GFORTRAN_USE_STDERR...
Formatting node GFORTRAN_TMPDIR...
Formatting node GFORTRAN_UNBUFFERED_ALL...
Formatting node GFORTRAN_SHOW_LOCUS...
Formatting node GFORTRAN_OPTIONAL_PLUS...
Formatting node GFORTRAN_DEFAULT_RECL...
Formatting node GFORTRAN_LIST_SEPARATOR...
Formatting node GFORTRAN_CONVERT_UNIT...
Formatting node Extensions...
Formatting node Old-style kind specifications...
Formatting node Old-style variable initialization...
Formatting node Extensions to namelist...
Formatting node X format descriptor...
Formatting node Commas in FORMAT specifications...
Formatting node Missing period in FORMAT specifications...
Formatting node I/O item lists...
Formatting node Hexadecimal constants...
Formatting node Real array indices...
Formatting node Unary operators...
Formatting node Implicitly interconvert LOGICAL and INTEGER...
Formatting node Hollerith constants support...
Formatting node Cray pointers...
Formatting node CONVERT specifier...
Formatting node OpenMP...
  @include `intrinsic.texi'
Formatting node Intrinsic Procedures...
Formatting node Introduction...
Formatting node ABORT...
Formatting node ABS...
Formatting node ACCESS...
Formatting node ACHAR...
Formatting node ACOS...
Formatting node ACOSH...
Formatting node ADJUSTL...
Formatting node ADJUSTR...
Formatting node AIMAG...
Formatting node AINT...
Formatting node ALARM...
Formatting node ALL...
Formatting node ALLOCATED...
Formatting node AND...
Formatting node ANINT...
Formatting node ANY...
Formatting node ASIN...
Formatting node ASINH...
Formatting node ASSOCIATED...
Formatting node ATAN...
Formatting node ATAN2...
Formatting node ATANH...
Formatting node BESJ0...
Formatting node BESJ1...
Formatting node BESJN...
Formatting node BESY0...
Formatting node BESY1...
Formatting node BESYN...
Formatting node BIT_SIZE...
Formatting node BTEST...
Formatting node CEILING...
Formatting node CHAR...
Formatting node CHDIR...
Formatting node CHMOD...
Formatting node CMPLX...
Formatting node COMMAND_ARGUMENT_COUNT...
Formatting node CONJG...
Formatting node COS...
Formatting node COSH...
Formatting node COUNT...
Formatting node CPU_TIME...
Formatting node CSHIFT...
Formatting node CTIME...
Formatting node DATE_AND_TIME...
Formatting node DBLE...
Formatting node DCMPLX...
Formatting node DFLOAT...
Formatting node DIGITS...
Formatting node DIM...
Formatting node DOT_PRODUCT...
Formatting node DPROD...
Formatting node DREAL...
Formatting node DTIME...
Formatting node EOSHIFT...
Formatting node EPSILON...
Formatting node ERF...
Formatting node ERFC...
Formatting node ETIME...
Formatting node EXIT...
Formatting node EXP...
Formatting node EXPONENT...
Formatting node FDATE...
Formatting node FLOAT...
Formatting node FGET...
Formatting node FGETC...
Formatting node FLOOR...
Formatting node FLUSH...
Formatting node FNUM...
Formatting node FPUT...
Formatting node FPUTC...
Formatting node FRACTION...
Formatting node FREE...
Formatting node FSTAT...
Formatting node FSEEK...
Formatting node FTELL...
Formatting node GETARG...
Formatting node GET_COMMAND...
Formatting node GET_COMMAND_ARGUMENT...
Formatting node GETCWD...
Formatting node GETENV...
Formatting node GET_ENVIRONMENT_VARIABLE...
Formatting node GETGID...
Formatting node GETLOG...
Formatting node GETPID...
Formatting node GETUID...
Formatting node GMTIME...
Formatting node HOSTNM...
Formatting node HUGE...
Formatting node IACHAR...
Formatting node IAND...
Formatting node IARGC...
Formatting node IBCLR...
Formatting node IBITS...
Formatting node IBSET...
Formatting node ICHAR...
Formatting node IDATE...
Formatting node IEOR...
Formatting node IERRNO...
Formatting node INDEX...
Formatting node INT...
Formatting node IOR...
Formatting node IRAND...
Formatting node ISHFT...
Formatting node ISHFTC...
Formatting node ITIME...
Formatting node KILL...
Formatting node KIND...
Formatting node LBOUND...
Formatting node LEN...
Formatting node LEN_TRIM...
Formatting node LGE...
Formatting node LGT...
Formatting node LINK...
Formatting node LLE...
Formatting node LLT...
Formatting node LNBLNK...
Formatting node LOC...
Formatting node LOG...
Formatting node LOG10...
Formatting node LOGICAL...
Formatting node LSHIFT...
Formatting node LSTAT...
Formatting node LTIME...
Formatting node MALLOC...
Formatting node MATMUL...
Formatting node MAX...
Formatting node MAXEXPONENT...
Formatting node MAXLOC...
Formatting node MAXVAL...
Formatting node MERGE...
Formatting node MIN...
Formatting node MINEXPONENT...
Formatting node MINLOC...
Formatting node MINVAL...
Formatting node MOD...
Formatting node MODULO...
Formatting node MVBITS...
Formatting node MOVE_ALLOC...
Formatting node NEAREST...
Formatting node NEW_LINE...
Formatting node NINT...
Formatting node NOT...
Formatting node NULL...
Formatting node OR...
Formatting node PACK...
Formatting node PERROR...
Formatting node PRECISION...
Formatting node PRESENT...
Formatting node PRODUCT...
Formatting node RADIX...
Formatting node RANDOM_NUMBER...
Formatting node RANDOM_SEED...
Formatting node RAND...
Formatting node RANGE...
Formatting node RAN...
Formatting node REAL...
Formatting node RENAME...
Formatting node REPEAT...
Formatting node RESHAPE...
Formatting node RRSPACING...
Formatting node RSHIFT...
Formatting node SCALE...
Formatting node SCAN...
Formatting node SECNDS...
Formatting node SELECTED_INT_KIND...
Formatting node SELECTED_REAL_KIND...
Formatting node SET_EXPONENT...
Formatting node SHAPE...
Formatting node SIGN...
Formatting node SIGNAL...
Formatting node SIN...
Formatting node SINH...
Formatting node SIZE...
Formatting node SNGL...
Formatting node SPACING...
Formatting node SPREAD...
Formatting node SQRT...
Formatting node SRAND...
Formatting node STAT...
Formatting node SUM...
Formatting node SYMLNK...
Formatting node SYSTEM...
Formatting node SYSTEM_CLOCK...
Formatting node TAN...
Formatting node TANH...
Formatting node TIME...
Formatting node TINY...
Formatting node TRANSFER...
Formatting node TRANSPOSE...
Formatting node TRIM...
Formatting node UBOUND...
Formatting node UMASK...
Formatting node UNLINK...
Formatting node UNMASK...
Formatting node UNPACK...
Formatting node VERIFY...
Formatting node XOR...
Formatting node Contributing...
Formatting node Contributors...
Formatting node Projects...
Formatting node Standards...
Formatting node Fortran 2003 status...
  @include `gpl.texi'
Formatting node Copying...
  @include `fdl.texi'
Formatting node GNU Free Documentation License...
  @include `funding.texi'
Formatting node Funding...
Formatting node Index...
makeinfo: getwd: doc/gfortran.info, 
$
Comment 10 Andrew Pinski 2008-12-28 21:33:33 UTC
I think the issue was info/.texi files were not generated in that package.  Does this work in a newer release of GCC?
Comment 11 Eric Botcazou 2010-09-20 22:04:49 UTC
No feedback.