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]
Other format: [Raw text]

Re: build error while building binutils for i686-pc-cygwin


Hi,
   I get below error when I do the 

make all for target m68k-coff,:


Kai Routtu:
I followed the suggestion you gav e me by copying the
libbfd.lib into bfd directory with name libbfd.a and
libopcodes.lib in opcodes to a libopcodes.a.


After doing this I modified the makefiles kin binutils
directory as well as opcodes directory as
appropriately.


NOw Im get below error:

can anyone tell what might be the problem?



make[3]: Entering directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14
fd'
make[3]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
d'
make[2]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
d'
make[1]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
d'
make[1]: Entering directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14
pcodes'
Makefile:841: warning: overriding commands for target
`libopcodes.a'
Makefile:581: warning: ignoring old commands for
target `libopcodes.a'
make  all-recursive
make[2]: Entering directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14
pcodes'
Makefile:841: warning: overriding commands for target
`libopcodes.a'
Makefile:581: warning: ignoring old commands for
target `libopcodes.a'
Making all in po
make[3]: Entering directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14
pcodes/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
codes/po'
make[3]: Entering directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14
pcodes'
Makefile:841: warning: overriding commands for target
`libopcodes.a'
Makefile:581: warning: ignoring old commands for
target `libopcodes.a'
make[3]: Circular stamp-lib <- libopcodes.a dependency
dropped.
make[3]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
codes'
make[2]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
codes'
make[1]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
codes'
make[1]: Entering directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14
inutils'
make  all-recursive
make[2]: Entering directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14
inutils'
Making all in doc
make[3]: Entering directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14
inutils/doc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
nutils/doc'
Making all in po
make[3]: Entering directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14
inutils/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
nutils/po'
make[3]: Entering directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14
inutils'
/bin/sh ./libtool --mode=link gcc -W -Wall
-Wstrict-prototypes -Wmissing-proto
pes -g -O2  -o objdump.exe  objdump.o budemang.o
prdbg.o rddbg.o debug.o stabs
 ieee.o rdcoff.o bucomm.o version.o filemode.o
../opcodes/libopcodes.a ../bfd/
bbfd.a ../libiberty/libiberty.a ./../intl/libintl.a
cygpath: can't convert empty path
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-g -O2 -o objdump.exe ob
ump.o budemang.o prdbg.o rddbg.o debug.o stabs.o
ieee.o rdcoff.o bucomm.o vers
n.o filemode.o ../opcodes/libopcodes.a ../bfd/libbfd.a
../libiberty/libiberty.
./../intl/libintl.a
../opcodes/libopcodes.a(disassemble.o)(.text+0x1f): In
function `disassembler'
/cygdrive/c/downloads/binutils-2.14/binutils-2.14/opcodes/disassemble.c:86:
un
fined reference to `_print_insn_m68k'
collect2: ld returned 1 exit status
make[3]: *** [objdump.exe] Error 1
make[3]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
nutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
nutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/
nutils'
make: *** [all-binutils] Error 2











--- Dan Kegel <dank@kegel.com> wrote:
> cathy cobb wrote:
> > when I do configure in build-binutils as below:
> >   ../configure --target=m68k-coff --prefix=/bar
> > and then I do
> >   make all 
> > I get below error:
>  > ...
> > gcc -c -DHAVE_CONFIG_H -g -O2 -I.
> > -I../../libiberty/../include  -W -Wall
> -Wtraditional
> > -pedantic ../../libiberty/xstrerror.c -o
> xstrerror.o  
> >                   if [ x"" != x ]; then \         
>    
> >                                              gcc
> -c
> > -DHAVE_CONFIG_H -g -O2 -I.
> > -I../../libiberty/../include  -W -Wall
> -Wtraditional
> > -pedantic  ../../libiberty/mkstemps.c -o
> > pic/mkstemps.o; \             else true; fi       
>    
> >                                                   
>    
> > gcc -c -DHAVE_CONFIG_H -g -O2 -I.
> > -I../../libiberty/../include  -W -Wall
> -Wtraditional
> > -pedantic ../../libiberty/mkstemps.c -o mkstemps.o
>    
> >                   rm -f libiberty.a
> pic/libiberty.a   
> >                                            ar rc
> > libiberty.a \                                     
>    
> >                      regex.o cplus-dem.o
> cp-demangle.o
> > md5.o alloca.o argv.o choose-temp.o concat.o
> > dyn-string.o fdmatch.o fibheap.o floatformat.o
> > fnmatch.o getopt.o getopt1.o getpwd.o getruntime.o
> > hashtab.o hex.o lbasename.o lrealpath.o
> > make-relative-prefix.o make-temp-file.o objalloc.o
> > obstack.o partition.o physmem.o pex-unix.o
> > safe-ctype.o sort.o spaces.o splay-tree.o
> strerror.o
> > strsignal.o ternary.o xatexit.o xexit.o xmalloc.o
> > xmemdup.o xstrdup.o xstrerror.o  basename.o
> insque.o
> > mkstemps.o sigsetmask.o stpcpy.o stpncpy.o        
>    
> >                                     ar: argv.o: No
> > such file or directory                            
>    
> >           make[1]: *** [libiberty.a] Error 1      
>    
> >                                    make[1]:
> Leaving
> > directory
> >
>
`/cygdrive/c/downloads/binutils-2.14/binutils-2.14/build-binutils/libiberty'
> 
> You probably have to look at the log yourself (you
> didn't post
> enough of it) to see why argv.o wasn't found.  I'd
> suggest removing
> your build-binutils directory, creating it again and
> configuring again,
> then doing
>    make all > log 2>&1
> (assuming you're using bash)
> and then looking carefully at the log to see if you
> can see what's
> up with argv.o.
> 
> (Try not to post huge logs like that if you can. 
> Better to put them
> on a web site and post a link if you really need to
> post a big one;
> usually just posting 20 lines will do.)
> 
> In other words, you may have to *gasp* understand
> how binutils' Makefile
> works.  Yes, it's painful, but sometimes there's no
> alternative to
> reading the source.
> - Dan
> 
> ------
> Want more information?  See the CrossGCC FAQ,
> http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to
> crossgcc-unsubscribe@sources.redhat.com
> 
> 



__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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


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