This is the mail archive of the gcc-bugs@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]

--with-local-prefix bug



GCC Verion : 2.95.2
OS Version : SunOS 5.8 (Solaris)
Arch       : x86 (Pentium III)
Build Dir  : /tmp/gcc-2.95.2
Configure  : ./configure --prefix=/pkgs/gcc-2.95.2 --program-prefix=g
                         --with-local-prefix=/pkgs --with-gnu-as
Summary    : the --with-local-prefix is being overriden in the generic
	     (top-level) build, but not in a build directly in the gcc
	     subdir.
GNU Make   : 3.78.1 (the version that came with Solaris 8 companion CD)

To Reproduce:

	Configure as above, and build. If you then remove the files that 
	directly use LOCAL_INCLUDE_DIR.

		rm gcc/cccp.o gcc/cppinit.o gcc/protoize.o
		gmake

	You will get output that includes

gcc  -DIN_GCC     -g -O2  -DHAVE_CONFIG_H    -I. -I. -I./config -I./../include \
-DGCC_INCLUDE_DIR=\"/pkgs/gcc-2.95.2/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/include\" \
-DGPLUSPLUS_INCLUDE_DIR=\"/pkgs/gcc-2.95.2/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/../../../..`echo /pkgs/gcc-2.95.2 | sed -e 's|^/pkgs/gcc-2.95.2||' -e 's|/[^/]*|/..|g'`/include/g++-3\" \
  -DLOCAL_INCLUDE_DIR=\"/pkgs/gcc-2.95.2/include\" \
-DCROSS_INCLUDE_DIR=\"/pkgs/gcc-2.95.2/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/../../../../i386-pc-solaris2.8/sys-include\" \
-DTOOL_INCLUDE_DIR=\"/pkgs/gcc-2.95.2/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/../../../../i386-pc-solaris2.8/include\" \
  -c `echo ./cccp.c | sed 's,^\./,,'`
gcc  -DIN_GCC     -g -O2  -DHAVE_CONFIG_H  -o cccp cccp.o cexp.o intl.o
prefix.o version.o  mbchar.o  obstack.o alloca.o
../libiberty/libiberty.a
rm -f cpp
ln cccp cpp

	Notice the value of LOCAL_INCLUDE_DIR is /pkgs/gcc-2.95.2/include

	Now remove the files again and build in the gcc directory

		rm gcc/cccp.o gcc/cppinit.o gcc/protoize.o
		cd gcc
		gmake

gcc  -DIN_GCC     -g  -DHAVE_CONFIG_H    -I. -I. -I./config -I./../include \
-DGCC_INCLUDE_DIR=\"/pkgs/gcc-2.95.2/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/include\" \
-DGPLUSPLUS_INCLUDE_DIR=\"/pkgs/gcc-2.95.2/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/../../../..`echo /pkgs/gcc-2.95.2 | sed -e 's|^/pkgs/gcc-2.95.2||' -e
's|/[^/]*|/..|g'`/include/g++-3\" \
  -DLOCAL_INCLUDE_DIR=\"/pkgs/include\" \
-DCROSS_INCLUDE_DIR=\"/pkgs/gcc-2.95.2/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/../../../../i386-pc-solaris2.8/sys-include\" \
-DTOOL_INCLUDE_DIR=\"/pkgs/gcc-2.95.2/lib/gcc-lib/i386-pc-solaris2.8/2.95.2/../../../../i386-pc-solaris2.8/include\" \
  -c `echo ./cccp.c | sed 's,^\./,,'`
gcc  -DIN_GCC     -g  -DHAVE_CONFIG_H  -o cccp cccp.o cexp.o intl.o
prefix.o version.o  mbchar.o  obstack.o alloca.o
../libiberty/libiberty.a
rm -f cpp
ln cccp cpp

	Notice the value of LOCAL_INCLUDE_DIR is /pkgs/include

Question: Am I missing something from the doco or is this a bug ?

Regards,

Peter Bray





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