public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* unable to build binutils-2.10 solaris->i386-pc-mingw32
@ 2000-07-04  0:24 Frank van den Beuken
  2000-07-04  0:33 ` Alexandre Oliva
  0 siblings, 1 reply; 8+ messages in thread
From: Frank van den Beuken @ 2000-07-04  0:24 UTC (permalink / raw)
  To: binutils

Hi all,
I have problems building binutils-2.10 for use in a solaris->i386-pc-mingw32
cross compiler. I really need 2.10 because of the "reloc overflow" fix which
should make it possible to do 32-bit relocs. I need this because we use a
parser
generator which generates a huge .c file for our LALR parser.

This is how I configured:
/home/vdbeuken/tools/binutils-2.10/configure --host=sparc-sun-solaris2.6 --t
arget=i386-pc-mingw32 --prefix=/home/vdbeuken/tools/install-binutils -v --no
recursion

I get the following error:

rm -f tofiles
f=""; \
for i in pe-i386.lo peigen.lo cofflink.lo pei-i386.lo elf32-i386.lo elf32.lo
elf.lo elflink.lo dwarf2.lo dwarf1.lo elf32-gen.lo cpu-i386.lo  ; do \
  case " $f " in \
    *" $i "*) ;; \
    *) f="$f $i" ;; \
  esac ; \
done ; \
echo $f > tofiles
/bin/sh /home/vdbeuken/tools/binutils-2.10/bfd/../move-if-change tofiles
ofiles
touch stamp-ofiles
/bin/sh ./libtool --mode=link gcc  -g -O2 -W -Wall  -o libbfd.la -rpath
/home/vdbeuken/tools/install-binutils/lib -release 2.10  archive.lo
archures.lo bfd.lo cache.lo coffgen.lo corefile.lo format.lo init.lo
libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo
srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo `cat ofiles`
./libtool: cygpath: not found
libtool: link: warning: undefined symbols not allowed in i386-pc-mingw32
shared libraries
mkdir .libs
lib /OUT:.libs/libbfd.lib  archive.o archures.o bfd.o cache.o coffgen.o
corefile.o format.o init.o libbfd.o opncls.o reloc.o section.o syms.o
targets.o hash.o linker.o srec.o binary.o tekhex.o ihex.o stabs.o
stab-syms.o pe-i386.o peigen.o cofflink.o pei-i386.o elf32-i386.o elf32.o
elf.o elflink.o dwarf2.o dwarf1.o elf32-gen.o cpu-i386.o
./libtool: lib: not found
gmake[3]: *** [libbfd.la] Error 1
gmake[3]: Leaving directory
`/home/scratch/vdbeuken/tools/build-binutils-2.10-i386-pc-mingw32/bfd'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/home/scratch/vdbeuken/tools/build-binutils-2.10-i386-pc-mingw32/bfd'
gmake[1]: *** [all-recursive-am] Error 2
gmake[1]: Leaving directory
`/home/scratch/vdbeuken/tools/build-binutils-2.10-i386-pc-mingw32/bfd'
gmake: *** [all-bfd] Error 2

It looks as if a native i386-pc-mingw32 build is performed;
lib /OUT: certainly looks like dos to me and cygpath is part of cygwin.
Can anyone help me completing this build, or alternatively tell me
how to apply the "reloc overflow" fix to binutils-2.9.1, which built just
fine.

Thanks in advance,
Frank


--
dr Frank van den Beuken
QASystems R&D Labs, Raiffeisenstraat 32, 5611 CH Eindhoven
The Netherlands, phone: +31 40 2963713, fax: +31 40 2963194
mailto:Frank.van.den.Beuken@rdlabs.qasystems.nl


^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: still reloc overflow?
@ 2000-07-05  1:56 Frank van den Beuken
  2000-07-05  2:50 ` Frank van den Beuken
  0 siblings, 1 reply; 8+ messages in thread
From: Frank van den Beuken @ 2000-07-05  1:56 UTC (permalink / raw)
  To: binutils

I found that the problem I'd like to be solved is
http://sourceware.cygnus.com/ml/binutils/2000-03/msg00203.html
What is the status of this problem?
I really would like this to be fixed so that I can replace
MSVC++ in our build procedure with the solaris->mingw32
crossgcc.

Greetings,
Frank
 
> This works. Thanks!
> However, I still have the "reloc overflow" that I hoped would 
> be solved:
> /cadappl/gcc/2.95.2/i386-pc-mingw32/bin/as: 
> transLALRParser.o: reloc overflow: 0x17681 > 0xffff
> transLALRParser.o: File truncated
> 
> I thought this was fixed, or is this not the same problem
> as mentioned in 
> http://sourceware.cygnus.com/ml/binutils/2000-04/msg00223.html
> 
> Greetings,
> Frank
> 
> > If you can't download the CVS tree of libtool, you may just edit
> > configure scripts and, wherever you find:
> > 
> > case "$target" in
> > NONE) lt_target="$host" ;;
> > *) lt_target="$target" ;;
> > esac
> > 
> > replace it with:
> > 
> > lt_target="$host"
>  
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-07-05  2:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-04  0:24 unable to build binutils-2.10 solaris->i386-pc-mingw32 Frank van den Beuken
2000-07-04  0:33 ` Alexandre Oliva
2000-07-04  2:10   ` Frank van den Beuken
2000-07-04  2:34     ` Alexandre Oliva
2000-07-04  3:32       ` still reloc overflow? Frank van den Beuken
2000-07-04  4:23         ` Alan Modra
2000-07-05  1:56 Frank van den Beuken
2000-07-05  2:50 ` Frank van den Beuken

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).