This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: ranlib problem


Shriramana Sharma wrote:
I downloaded and installed manually the Debian MinGW packages from: ftp://ftp.funet.fi/pub/Linux/mirrors/debian/pool/main/m/mingw*

When I try to compile a program I wrote using the installed mingw32-gcc, I get the error,

i586-mingw32msvc-gcc -g -O9 -Wall -o pan pan.o -L. -lswe -lm
./libswe.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
make: *** [pan] Error 1


Even after getting ranlib libswe.a I get the same error. I think this is because ranlib does not support the i586-mingw32 target, as seen from:

$ ranlib
...
ranlib: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 elf32-little elf32-big elf64-alpha ecoff-littlealpha elf64-little elf64-big elf32-hppa-linux elf32-hppa elf64-ia64-little elf64-ia64-big efi-app-ia64 elf32-m68k a.out-m68k-linux elf32-powerpc aixcoff-rs6000 elf32-powerpcle ppcboot elf64-powerpc elf64-powerpcle aixcoff64-rs6000 elf32-s390 elf64-s390 elf32-sparc a.out-sparc-linux elf64-sparc a.out-sunos-big elf64-x86-64 srec symbolsrec tekhex binary ihex trad-core


Is that right? Then what can I do in this situation?

Thanks in advance.


Did you try i586-mingw32msvc-ranlib ?


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org


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