This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"make install" failure with gcc 3.1.1 branch


Hello!

  I was trying to compile & install CVS 3.1.1 branch in Solaris 2.8 and I
got errors in 'gcc/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/include'
directory during installation:

  ./../../../install-sh -c -m 644 ${file} /usr/local/include/c++//./bits; 
done
/bin/ksh: ./../../../install-sh:  not found
/bin/ksh: ./../../../install-sh:  not found
/bin/ksh: ./../../../install-sh:  not found
...
/bin/ksh: ./../../../install-sh:  not found
gmake[2]: *** [install-data-local] Error 127
gmake[2]: Leaving directory
`/export/home/src/gcc-3.1/gcc/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/include'
gmake[1]: *** [install-am] Error 2
gmake[1]: Leaving directory
`/export/home/src/gcc-3.1/gcc/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/include'
gmake: *** [install-recursive] Error 1

  The problem is that toplevel Makefile (in libstdc++-v3 directory) is
calling Makefile with following AM_MAKEFLAGS in line 279:
AR_FLAGS= CC_FOR_BUILD= CC_FOR_TARGET= CFLAGS= CXXFLAGS= CFLAGS_FOR_BUILD=
CFLAGS_FOR_TARGET= INSTALL=./../../../install-sh -c
INSTALL_DATA=./../../../install-sh -c -m 644
INSTALL_PROGRAM=./../../../install-sh -c
INSTALL_SCRIPT=./../../../install-sh -c  LDFLAGS= LIBCFLAGS=
LIBCFLAGS_FOR_TARGET= MAKE=gmake MAKEINFO=makeinfo  PICFLAG=
PICFLAG_FOR_TARGET= SHELL=/bin/ksh RUNTESTFLAGS= exec_prefix=/usr/local
infodir=/usr/local/info libdir=/usr/local/lib
includedir=/usr/local/include prefix=/usr/local tooldir= AR=ar
AS=/usr/ccs/bin/as LD=ld LIBCFLAGS= PICFLAG= RANLIB=true NM= NM_FOR_BUILD=
NM_FOR_TARGET= DESTDIR= WERROR=

  Unfortunatelly with gnu make commandline INSTALL* varibles overload
INSTALL* variables that are correctly defined in 
libstdc++-v3/include/Makefile:

INSTALL = .././../../../install-sh -c
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}

  'gmake install' works ok, when it is started in libstdc++-v3/include 
directory, but not when it is started in libstdc++-v3 dir.

  Also, sun's make works OK, because it (correctly?) takes variables,
defined in Makefile and ignores command line ones. GNU make (GNU Make 
version 3.79.1, by Richard Stallman and Roland McGrath. Built for
sparc-sun-solaris2.8) works differently, it takes command line variables
and ignores variables, defined in Makefile.

  I don't know, if gcc's build system should be fixed not to specify
INSTALL* variables in AM_MAKEFLAGS or GNU make should be fixed.

	Uros.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]