This is the mail archive of the crossgcc@sources.redhat.com 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]

RE: ld error [could not read symbol, run ranlib to add one]


>-----Original Message-----
>From: Manikandan.V [mailto:manikv@hclt.com]
>Sent: 22 March 2001 07:37

>I made it in the exact way what you have told. But now I am getting
>different error.
>Attached the error description below.
>
>gcc -DCROSS_COMPILE -DIN_GCC     -g -O2  -DHAVE_CONFIG_H  -o 
>cccp.exe cccp.o
>cexp.o intl.o prefix.o version.o  mbchar.o  obstack.o       -ladvapi32
>../libiberty/libiberty.a
>../libiberty/libiberty.a: could not read symbols: Archive has 
>no index; run
>ranlib to add one
>collect2: ld returned 1 exit status
>make[1]: *** [cccp.exe] Error 1


   How bizarre.  This could be a consequence of the --with-gnu-ar in
some fashion, so you could try again without that flag - of the two
replies that I found on the mailing list, only one mentioned it.  But
before you do that, it would be worth going into the libiberty sub
directory in your build tree and trying to do as it asks:

  mips-elf-ranlib libiberty.a

then return to your main build directory and continue the make.

    hth,
     DaveK
-- 
 All your base are belong to us!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

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


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