This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Problem when compiling with static flag
- To: gcj <java at gcc dot gnu dot org>
- Subject: Problem when compiling with static flag
- From: Adrian Custer <acuster at nature dot berkeley dot edu>
- Date: 05 Feb 2001 15:59:29 -0800
Hello everyone,
I finally got today's checkout (Monday about 5PM GMT) of gcc to compile.
It runs hello world fine but not if I include --static. Here's what it
gives:
[acuster@tsetse temp]$ gcj -static --main=HelloWorld -o HelloWorld
HelloWorld.java
/soft/CVS/TEST/bin/../lib/gcc-lib/i586-pc-linux-gnu/2.97/libgcc.a(_eh.o): In function `__eh_rtime_match':
/soft/CVS/gccbuild/gcc/../../gcc/gcc/libgcc2.c(.text+0x7c5): undefined
reference to `fwrite'
collect2: ld returned 1 exit status
[acuster@tsetse temp]$
Note that I had lots of trouble building the compiler from probably iffy
memory. The error makes this seem more structural. Is the --static flag
unsupported?
thanks,
adrian