This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
compilation error when using separate build tree
- To: gcc-bugs at gcc dot gnu dot org
- Subject: compilation error when using separate build tree
- From: Bear Giles <bear at coyotesong dot com>
- Date: Sun, 2 Jul 2000 19:39:25 -0600 (MDT)
I am having compilation errors while attempting to compile GCC in a
separate build tree. I can successfully build the package in the
source tree.
Also, I've tried setting a couple of the most obvious config options,
no joy. I haven't tried it without an explicit "target" flag because
my ultimate goal is to set up a system that can build a single source
tree into multiple targets.
Bear Giles
bgiles@coyotesong.com
System information
------------------------------------------------------------------------
OS: Linux (Debian "potato", frozen, current as of 6/30/00), P-II
GCC: Debian gcc 2.95.2 packages
Source: 2.95.2 from ftp.gnu.org
Makefile
------------------------------------------------------------------------
root = /usr/local/provenance
K = gcc
T = i586-pc-linux-gnu
S = $(root)/provenance/$(K)/src
B = $(root)/$(T)/$(K)/build-tree
I = $(root)/$(T)/$(K)/install-tree
X = $(root)/$(T)/$(K)/status
( cd $(B) && $(S)/configure --srcdir=$(S) --target=$(T) --prefix=/usr )
$(MAKE) -C $(B) > $(X)/status 2>&1
status:
------------------------------------------------------------------------
[approx. 550 lines elited]
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \
do \
echo ${name}; \
/usr/local/provenance/i586-pc-linux-gnu/gcc/build-tree/gcc/xgcc -B/usr/local/provenance/i586-pc-linux-gnu/gcc/build-tree/gcc/ -B/usr/i586-pc-linux-gnu/bin/ -I/usr/i586-pc-linux-gnu/include -O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -I./include -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I/usr/local/provenance/provenance/gcc/src/gcc -I/usr/local/provenance/provenance/gcc/src/gcc/config -I/usr/local/provenance/provenance/gcc/src/gcc/../include -c -DL${name} \
/usr/local/provenance/provenance/gcc/src/gcc/libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
i586-pc-linux-gnu-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
/usr/local/provenance/provenance/gcc/src/gcc/libgcc2.c:41: stdlib.h: No such file or directory
/usr/local/provenance/provenance/gcc/src/gcc/libgcc2.c:42: unistd.h: No such file or directory
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/usr/local/provenance/i586-pc-linux-gnu/gcc/build-tree/gcc'
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory `/usr/local/provenance/i586-pc-linux-gnu/gcc/build-tree'