building gcj on OS X (also AWT)
John Gabriele
john3g@bestweb.net
Wed May 19 22:45:00 GMT 2004
I'd like to build gcc 3.4.0 on Mac OS X 10.3.3. In particular,
I want gcj, hopefully with whatever AWT/Swing comes with it,
just so I can write command line and also simple GUI user apps.
I've got a few questions on the build procedure. I've already
downloaded gcc-core and gcc-java 3.4.0 from my local mirror.
I unpacked them in ~/src, and also created a build-directory there
~/src/gcc_build_dir (so I can run the configure and make commands
from there) as the directions
http://gcc.gnu.org/install/configure.html
recommend.
So, since I guess I'm building what the directions
refer to as a "native compiler" (?), is it correct that my
procedure should be:
cd ~/src/gcc_build_dir
../gcc-3.4.0/configure --prefix=/usr/local/gcj \
--enable-threads=posix --enable-shared
make CC='cc -no-cpp-precomp' bootstrap
?
Do I then have to run 'make' with *no* target specified?
(Before running "make install")
Looking at
http://gcc.gnu.org/install/specific.html#powerpc-*-darwin*
it says:
| The default stack limit of 512K is too small, which may cause
| compiles to fail with 'Bus error'. Set the stack larger, for
| instance by doing "limit stack 800".
What does it mean to "limit stack 800" and how would I go about
it? Is that something that gets done with ./configure or at
build-time?
Also, is GCJ's AWT currently the best option (vs. Swing) to do
a simple GUI? Are there any special ./configure options I need
to use? The instructions
http://gcc.gnu.org/install/configure.html
hint at --with-x and --enable-java-awt=xlib
and although I *do* have Apple's X11 installed, I'm not sure
what to do here. Will gcj's awt use OS X's Quartz by default
if I leave those arguments out?
Will AWT only work with X (and not Quartz)?
Thanks.
More information about the Java
mailing list