On 25 Jan 2008, at 6:11 PM, Michael Witten wrote:
On 25 Jan 2008, at 8:16 AM, Michael Witten wrote:
On 24 Jan 2008, at 7:20 AM, Brian Dessent wrote:
Michael Witten wrote:
Can I build gcc in this way?
I've been trying for quite some time now to achieve such a
stripped down gcc, but it would seem that the gcc build
process insists on building these libraries, which I think
is wholly unnecessary.
You might be able to approximate this by "make all-gcc" and then
"make
install-gcc" (or just manually copying the xgcc to the destination.)
I'm a little uncomfortable just taking the xgcc that's left over when
the build fails.
I apologize.
For some reason, when I tried
make all-gcc
the build failed.
Aha!
Apparently the build DOES FAIL when building on Mac OS X 10.5 (darwin
9.1.0)
for the PowerPC (there is no problem with the x86 version):
cc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -
Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-
variadic-macros -Wold-style-definition -Wmissing-format-attribute -
DHAVE_CONFIG_H -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/
gcc/../include -I../../src/gcc/../libcpp/include -I. -I. -I../../
src/gcc -I../../src/gcc/. -I../../src/gcc/../include -I../../src/
gcc/../libcpp/include ../../src/gcc/config/rs6000/host-darwin.c -o
host-ppc-darwin.o
../../src/gcc/config/rs6000/host-darwin.c:38: warning: ‘struct
sigaltstack’ declared inside parameter list
../../src/gcc/config/rs6000/host-darwin.c:38: warning: its scope is
only this definition or declaration, which is probably not what you want
../../src/gcc/config/rs6000/host-darwin.c:38: error: conflicting
types for ‘sigaltstack’
/usr/include/signal.h:89: error: previous declaration of
‘sigaltstack’ was here
../../src/gcc/config/rs6000/host-darwin.c: In function ‘segv_handler’:
../../src/gcc/config/rs6000/host-darwin.c:71: error: ‘struct
__darwin_mcontext’ has no member named ‘ss’
../../src/gcc/config/rs6000/host-darwin.c:120: error: ‘struct
__darwin_mcontext’ has no member named ‘es’
../../src/gcc/config/rs6000/host-darwin.c:120: error: ‘struct
__darwin_mcontext’ has no member named ‘ss’
../../src/gcc/config/rs6000/host-darwin.c: In function
‘darwin_rs6000_extra_signals’:
../../src/gcc/config/rs6000/host-darwin.c:134: warning: passing
argument 1 of ‘sigaltstack’ from incompatible pointer type
make[1]: *** [host-ppc-darwin.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all-gcc] Error 2
It can be compiled thusly:
MACOSX_DEPLOYMENT_TARGET=10.4 make all-gcc