This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/25715] New: lack of gcc target headers inclusion.
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jan 2006 18:57:00 -0000
- Subject: [Bug bootstrap/25715] New: lack of gcc target headers inclusion.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
cross-gcc configured with '--without-headers --disable-threads' doesn't build.
(...)
/home/users/pluto/rpm/BUILD/gcc-4.1-20060106/obj-ppc64-pld-linux/./gcc/xgcc
-B/home/users/pluto/rpm/BUILD/gcc-4.1-20060106/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 -O2 -mno-minimal-toc -fPIC
-specs=bispecs -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc
-I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include
-I../../gcc/../libcpp/include -fPIC -mstrict-align -DL_muldi3
-c ../../gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from ../../gcc/libgcc2.c:43:
../../gcc/libgcc2.h:214:3: error: #error "expand the table"
../../gcc/libgcc2.c: In function '__mulhi3':
../../gcc/libgcc2.c:514: error: 'BITS_PER_UNIT' undeclared
(first use in this function)
../../gcc/libgcc2.c:514: error: (Each undeclared identifier
is reported only once
../../gcc/libgcc2.c:514: error: for each function it appears in.)
hack / workaround:
--- gcc-4.1-20060106/gcc/mkconfig.sh
+++ gcc-4.1-20060106/gcc/mkconfig.sh
@@ -64,7 +64,7 @@
;;
esac
if [ $# -ge 1 ]; then
- echo '#ifdef IN_GCC' >> ${output}T
+ echo '#if defined(IN_GCC) || defined(IN_LIBGCC2)' >> ${output}T
for file in "$@"; do
echo "# include \"$file\"" >> ${output}T
done
--
Summary: lack of gcc target headers inclusion.
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pluto at agmk dot net
GCC build triplet: i686-linux
GCC host triplet: i686-linux
GCC target triplet: ppc64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25715