This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
make does modify the source tree
- From: Olaf Hering <olh at suse dot de>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 9 Jul 2002 12:48:56 +0200
- Subject: make does modify the source tree
Hi,
the current gcc-3_1-branch does not compile when the source tree is
owned by someone else:
gcc -c -DIN_GCC -DCROSS_COMPILE -O2 -fsigned-char -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc -I/heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc/. -I/heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc/config -I/heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc/../include /heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc/genconstants.c -o genconstants.o
gcc -DIN_GCC -DCROSS_COMPILE -O2 -fsigned-char -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o genconstants \
genconstants.o rtl.o read-rtl.o bitmap.o ggc-none.o gensupport.o errors.o ../libiberty/libiberty.a
./genconstants /heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc/config/i386/i386.md > tmp-constants.h
/bin/sh /heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc/move-if-change tmp-constants.h insn-constants.h
echo timestamp > s-constants
(cd intl && make all)
make[2]: Entering directory `/heim/usb/usb/gcc/obj-20020709/gcc-first/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/heim/usb/usb/gcc/obj-20020709/gcc-first/gcc/intl'
echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
sed -e "/^ifobjc$/,/^end ifobjc$/d" \
-e "/^ifc$/d" -e "/^end ifc$/d" \
/heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc/c-parse.in >>tmp-c-parse.y
/bin/sh /heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc/move-if-change tmp-c-parse.y /heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc/c-parse.y
mv: cannot create regular file `/heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc/c-parse.y': Permission denied
make[1]: *** [/heim/olaf/usb/gcc/source/gcc-3_1-branch/gcc/c-parse.y] Error 1
make[1]: Leaving directory `/heim/usb/usb/gcc/obj-20020709/gcc-first/gcc'
make: *** [all-gcc] Error 2
+ exit 1
Command exited with non-zero status 1
379.97user 91.31system 9:05.58elapsed 86%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (2781023major+1654486minor)pagefaults 0swaps
usb@nectarine:~/gcc>
source tree is owned by user "olaf", the user "usb" does the build in
another directory.
build script looks like that:
mkdir gcc-first
cd gcc-first
CFLAGS="-O2 -fsigned-char" ${BUILD_SRC}/gcc-3_1-branch/configure \
--target=i686-linux \
--enable-languages=c,c++ \
--disable-nls \
--disable-shared \
--with-headers=$BUILD_INC \
--prefix=${INSTALL_DIR}
make $MFLAGS || exit 1
make check || true
make install || exit 1
cd ..
Host is powerpc-linux, target is i686-linux.
Is this an unsupported configuration or a bug in the build process?
Gruss Olaf
--
$ man clone
BUGS
Main feature not yet implemented...