This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems building libgcj with Msys


Stanley Brown wrote:
 
> I have been trying to build the gcc 3.4.3 toolchain (cvs snapshot),
> particually gcj, using msys on a windows xp sp2 box. I first stripped
> all the carriage returns out to get makeinfo to work right. I than
> modified ltconfig to correctly compute the maximum command line length.
> But during the build the process ends when the following line is
> executed: 
> 
> /c/dev/build/gcc/gcj -B/c/dev/build/mingw32/libjava/ -B/c/dev/build/gcc/
> -ffloat-store -g -O2 -s -o rmiregistry.exe
> --main=gnu.java.rmi.registry.RegistryImpl -shared-libgcc
> -L/c/dev/build/mingw32/libjava -L/c/dev/build/mingw32/libjava/.libs
> ./.libs/libgcj.a -L/c/dev/build/mingw32/libstdc++-v3/src
> -L/c/dev/build/mingw32/libstdc++-v3/src/.libs
> -Lc:/dev/build/mingw32/libstdc++-v3/src
> -Lc:/dev/build/mingw32/libstdc++-v3/src/.libs -Lc:/dev/build/gcc
> -LC:/msys/1.0/gcc40/lib/gcc/mingw32/3.4.3 -L/mingw/lib
> -LC:/msys/1.0/gcc40/lib/gcc/mingw32/3.4.3/../../.. -lmingwthrd -lmingw32
> -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32
> -lshell32 -lmingwthrd -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt
> -Wl,--rpath -Wl,/gcc40/lib 
> 
> There is no error message to explain why this is occuring. It just
> stops. 
> 
> I looked at the bootstrap results for building this version of gcc on a
> mingw target. It says the following: GCJ builds, but libgcj does not,
> due to bugs in CLASSPATH support. Is this the problem? Is there a work
> around? 
> 

The CLASSPATH problem has has been fixed on trunk.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18104

Also, you need to add --enable-libgcj to configure command.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19970


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]