This is the mail archive of the
crossgcc@sourceware.org
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
gcc-3.3.2-newlib-1.13.0 complier error
- From: "Gao Bismar" <abutter at hotmail dot com>
- To: crossgcc at sources dot redhat dot com
- Date: Wed, 04 Jan 2006 08:32:25 +0800
- Subject: gcc-3.3.2-newlib-1.13.0 complier error
- Bcc:
Hi, everyone!
I have compliered gcc-3.3.2-glibc-2.3.2 on cygwin for mpc860 successfully
by crosstool-0.38. Now I want to build gcc-3.3.2-newlib-1.13.0 crosstool,
and then met errors:
########################################################################################
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/src/nlbuild/build-gcc-core/gcc/xgcc
-B/home/src/nlbuild/build-gcc-core/gcc
/ -B/opt/gcc-3.3.2-newlib-1.13.0/powerpc-860-linux-gnu/bin/
-B/opt/gcc-3.3.2-new
lib-1.13.0/powerpc-860-linux-gnu/lib/ -isystem
/opt/gcc-3.3.2-newlib-1.13.0/powe
rpc-860-linux-gnu/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strin
gs -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g
-DIN_L
IBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I/home/src/gcc-3.3.2/gcc
-I/home/src/gcc-3.3.2/gcc/. -I/home/src/gcc-3.3.2/gcc/config
-I/home/src/gcc-3.
3.2/gcc/../include -DL_muldi3 -c /home/src/gcc-3.3.2/gcc/libgcc2.c -o
libgcc/./
_muldi3.o
In file included from tconfig.h:23,
from /home/src/gcc-3.3.2/gcc/libgcc2.c:36:
/home/src/gcc-3.3.2/gcc/config/rs6000/linux.h:89:20: signal.h: No such file
or d
irectory
In file included from tconfig.h:23,
from /home/src/gcc-3.3.2/gcc/libgcc2.c:36:
/home/src/gcc-3.3.2/gcc/config/rs6000/linux.h:98: error: parse error before
"sta
ck_t"
/home/src/gcc-3.3.2/gcc/config/rs6000/linux.h:98: warning: no semicolon at
end o
f struct or union
/home/src/gcc-3.3.2/gcc/config/rs6000/linux.h:100: error: parse error
before "uc
_sigmask"
/home/src/gcc-3.3.2/gcc/config/rs6000/linux.h:100: warning: type defaults
to `in
t' in declaration of `uc_sigmask'
/home/src/gcc-3.3.2/gcc/config/rs6000/linux.h:100: warning: data definition
has
no type or storage class
/home/src/gcc-3.3.2/gcc/config/rs6000/linux.h:99: error: storage size of
`uc_mco
ntext' isn't known
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/home/src/nlbuild/build-gcc-core/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/src/nlbuild/build-gcc-core/gcc'
make: *** [all-gcc] Error 2
########################################################################################
I find the maillist and find some info which say that I need a glibc, but
actually I just want to build gcc with newlib.
There is a patch for gcc-3.4.0, and I think it will work OK, but I relly
need some suggestions about this.
=========================================
--- gcc-3.4.0/gcc/config/rs6000/linux.h.orig 2004-10-03
05:43:56.000000000 +0200
+++ gcc-3.4.0/gcc/config/rs6000/linux.h 2005-02-09 14:36:33.000000000 +0100
@@ -104,6 +104,8 @@
/* Do code reading to identify a signal frame, and set the frame
state data appropriately. See unwind-dw2.c for the structs. */
+#ifndef inhibit_libc
+
#ifdef IN_LIBGCC2
#include <signal.h>
@@ -187,3 +189,5 @@ enum { SIGNAL_FRAMESIZE = 64 };
(FS)->retaddr_column = CR0_REGNO; \
goto SUCCESS; \
} while (0)
+
+#endif /* inhibit_libc */
=========================================
Thansk for any advice.
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com