public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/15379] New: 'make install' fails
@ 2004-05-12 13:42 andreas at florath dot net
  2004-05-12 13:49 ` [Bug bootstrap/15379] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: andreas at florath dot net @ 2004-05-12 13:42 UTC (permalink / raw)
  To: gcc-bugs

After (successfully) building of the compiler, a 'make install' failes with the
error:
/bin/sh ../../gcc-3.4.0/gcc/mkinstalldirs /appl/tmo/be3/pkg/pre1/info
/bin/sh ../../gcc-3.4.0/gcc/mkinstalldirs /appl/tmo/be3/pkg/pre1/lib
/bin/sh ../../gcc-3.4.0/gcc/mkinstalldirs /appl/tmo/be3/pkg/pre1/man/man1
/bin/sh ../../gcc-3.4.0/gcc/mkinstalldirs /appl/tmo/be3/pkg/pre1/man/man7
for file in cc1 ; do \
  if [ -f $file ] ; then \
    rm -f /appl/tmo/be3/pkg/pre1/libexec/gcc/sparc-sun-solaris2.8/3.4.0/$file; \
    ../gcc-3.4.0/install-sh -c $file
/appl/tmo/be3/pkg/pre1/libexec/gcc/sparc-sun-solaris2.8/3.4.0/$file; \
  else true; \
  fi; \
done
/bin/sh: ../gcc-3.4.0/install-sh: not found
make[2]: *** [install-common] Error 1
make[2]: Leaving directory `/appl/tmo/be3/tmp/gcc-compile/gcc'
make[1]: *** [install-gcc] Error 2
make[1]: Leaving directory `/appl/tmo/be3/tmp/gcc-compile'

Configure was called with:
../gcc-3.4.0/configure  --prefix=/appl/tmo/be3/pkg/pre1 --enable-shared
--enable-threads --enable-languages=c --disable-libgcj --disable-multilib

make version:
GNU Make 3.80

After changing the line
INSTALL = ../../gcc-3.4.0/gcc/../install-sh -c
to 
INSTALL=../../gcc-3.4.0/gcc/../install-sh -c
in the file gcc/Makefile
(i. e. deleting the spaces around the equal sign)
the make uses the correct version of the INSTALL variable.

The '../gcc-3.4.0/install-sh' is from the main Makefile where INSTALL is set to
this value.

I'm not sure, if this is a problem with the Makefile(.in) or with the 'make'
command itself.

Best regards

Andreas Florath

-- 
           Summary: 'make install' fails
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andreas at florath dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15379


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug bootstrap/15379] 'make install' fails
  2004-05-12 13:42 [Bug bootstrap/15379] New: 'make install' fails andreas at florath dot net
@ 2004-05-12 13:49 ` pinskia at gcc dot gnu dot org
  2004-05-12 19:31 ` cross+gcc at distal dot com
  2004-05-12 19:36 ` cross+gcc at distal dot com
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-12 13:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-11 17:31 -------
Did you read: <http://gcc.gnu.org/install/specific.html#*-*-solaris2*>?

The Solaris 2 /bin/sh will often fail to configure libstdc++-v3, boehm-gc or libjava. We therefore 
recommend to use the following sequence of commands to bootstrap and install GCC:
        % CONFIG_SHELL=/bin/ksh
        % export CONFIG_SHELL

and then proceed as described in the build instructions, where we strongly recommend using GNU 
make and specifying an absolute path to invoke srcdir/configure.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15379


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug bootstrap/15379] 'make install' fails
  2004-05-12 13:42 [Bug bootstrap/15379] New: 'make install' fails andreas at florath dot net
  2004-05-12 13:49 ` [Bug bootstrap/15379] " pinskia at gcc dot gnu dot org
@ 2004-05-12 19:31 ` cross+gcc at distal dot com
  2004-05-12 19:36 ` cross+gcc at distal dot com
  2 siblings, 0 replies; 4+ messages in thread
From: cross+gcc at distal dot com @ 2004-05-12 19:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cross+gcc at distal dot com  2004-05-12 05:54 -------
I object to this error being considered invalid.  I don't even know that using
ksh instead of Solaris' sh will fix it.  The problem here is that the top-level
makefile is passing an invalid INSTALL (and/or INSTALL_SCRIPT) to the child
Makefile's.  This is bogus.
Yes, suggesting that we use a complete path to the srcdir when calling configure
*will* work around the problem.  But that's much like saying "Oh, you stepped on
a nail I left in the hall?  Well, if you'd used the other hall it wouldnt've
happened."  It's true, but it doesn't mean that using the other hall is the only
correct solution.  It's just a way to avoid the problem.
I think this bug should be fixed.
Please reopen.
(FYI, I'm seeing this on Solaris 10_b54)

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cross+gcc at distal dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15379


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug bootstrap/15379] 'make install' fails
  2004-05-12 13:42 [Bug bootstrap/15379] New: 'make install' fails andreas at florath dot net
  2004-05-12 13:49 ` [Bug bootstrap/15379] " pinskia at gcc dot gnu dot org
  2004-05-12 19:31 ` cross+gcc at distal dot com
@ 2004-05-12 19:36 ` cross+gcc at distal dot com
  2 siblings, 0 replies; 4+ messages in thread
From: cross+gcc at distal dot com @ 2004-05-12 19:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cross+gcc at distal dot com  2004-05-12 06:34 -------
Okay.  I just set CONFIG_SHELL (exported), then reran configure, then gmake
bootstrap, then gmake install.  Same failure:
rm -f /usr/local/bin/g++
../gcc-3.4.0/install-sh -c g++ /usr/local/bin/g++
/bin/ksh: ../gcc-3.4.0/install-sh:  not found
gmake[1]: [c++.install-common] Error 127 (ignored)

  That's being passed into gcc/Makefile as INSTALL (or INSTALL_SCRIPT).

  I'm not sure how to fix this, but it's definately still a bug in the build
process...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15379


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-05-12  6:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-12 13:42 [Bug bootstrap/15379] New: 'make install' fails andreas at florath dot net
2004-05-12 13:49 ` [Bug bootstrap/15379] " pinskia at gcc dot gnu dot org
2004-05-12 19:31 ` cross+gcc at distal dot com
2004-05-12 19:36 ` cross+gcc at distal dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).