Having tweaked the bootstrapclasspath for dom & sax for libjava and applied the
patch in bug 21022 I've hit another problem. When it gets to the final stages
with libtool it produces the following error:

--------------------------
./libtool: /mingw/bin/ar: Invalid argument
make[1]: *** [libgcj0_convenience.la] Error 126
make[1]: Leaving directory `/f/GCC_BuildDir/obj/mingw32/libjava'
--------------------------

I compiled using the following script:

------------------
../gcc-4.0.0/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32
--target=mingw32 --prefix=/mingw  --enable-threads --disable-nls
--enable-languages=c++,c,java --disable-win32-registry --enable-shared
--enable-libgcj
make "CFLAGS=-O2" "LDFLAGS=-s" bootstrap
make
make DESTDIR=/f/GCC_InstallDir install
------------------

The command is unfortuately too long to fit in the comment box so i have
uploaded it to:

http://www.christopherdawes.f2s.com/error%20compiling%20GCC%204.0.0%20with%20MINGW%20on%20windows.rtf

along with the error

-- 
           Summary: ./libtool: /mingw/bin/ar: Invalid argument
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Christopher dot Dawes at retail-logic dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: Mingw32
  GCC host triplet: Mingw32
GCC target triplet: Mingw32


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21754

Reply via email to