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]
Other format: [Raw text]

[Bug bootstrap/25672] cross build's libgcc picks up CFLAGS



------- Comment #2 from pluto at agmk dot net  2006-01-05 02:45 -------
moreover the buildsystem doesn't propagate -I$target-headers-directory
specified in configure by --with-headers=$dir and build fails.

below log comes from powerpc (host, build: ppc32, target: ppc64):

(...)
GCC_FOR_TARGET='/home/users/builder/rpm/BUILD/gcc-4.1-20051230/obj-ppc64-pld-linux/./gcc/xgcc
-B/home/users/builder/rpm/BUILD/gcc-4.1-20051230/obj-ppc64-pld-linux/./gcc/
-B/usr/ppc64-pld-linux/bin/ -B/usr/ppc64-pld-linux/lib/ -isystem
/usr/ppc64-pld-linux/include -isystem /usr/ppc64-pld-linux/sys-include' \
mkinstalldirs='/bin/sh ../../gcc/../mkinstalldirs' \
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
/bin/sh ../../gcc/mkconfig.sh tconfig.h
( echo '#ifndef __powerpc64__'; \
  echo '#define FLOAT'; \
  cat ../../gcc/config/fp-bit.c; \
  echo '#endif' ) > fp-bit32.c
( echo '#ifndef __powerpc64__'; \
  cat ../../gcc/config/fp-bit.c; \
  echo '#endif' ) > dp-bit32.c
/home/users/builder/rpm/BUILD/gcc-4.1-20051230/obj-ppc64-pld-linux/./gcc/xgcc
-B/home/users/builder/rpm/BUILD/gcc-4.1-20051230/obj-ppc64-pld-linux/./gcc/
-B/usr/ppc64-pld-linux/bin/ -B/usr/ppc64-pld-linux/lib/ -isystem
/usr/ppc64-pld- -fsigned-char -ggdb  -DIN_GCC -DCROSS_COMPILE -DNATIVE_CROSS  
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc -I../../gcc/.
-I../../gcc/../include -I../../gcc/../libcpp/include   -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-unit-at-a-time  -msdata=none \
  -c ../../gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
In file included from ../../gcc/crtstuff.c:68:
../../gcc/tsystem.h:90:19: error: stdio.h: No such file or directory
../../gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory
../../gcc/tsystem.h:96:19: error: errno.h: No such file or directory
../../gcc/tsystem.h:103:20: error: string.h: No such file or directory
../../gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory
../../gcc/tsystem.h:105:20: error: unistd.h: No such file or directory
../../gcc/tsystem.h:111:18: error: time.h: No such file or directory
make[1]: *** [crtbegin.o] Error 1


-- 


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



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