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: Crosstool XScale error: in Binutils.


Hugo Vincent wrote:
I am trying to build an XScale tool-chain (for PXA255). Using Crosstool
0.31, I get a weird error building Binutils. Using the
demo-arm-xscale.sh, with either:

eval `cat arm-xscale.dat gcc-3.4.1-glibc-20040827.dat` sh all.sh
--notest

or:

eval `cat arm-xscale.dat gcc-3.4.2-glibc-20040827.dat` sh all.sh
--notest
gives errors (see transcript below). Has anyone had this problem before,
and know how to fix it?

gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o ar
arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o
emul_vanilla.o bucomm.o version.o
filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -ldl
ar.o(.text+0x670): In function `main':
/home/hugo/Projects/albatross-dev/toolchain/crosstool-0.31/build/arm-xscale-linux-gnu/gcc-3.4.1-glibc-20040827/binutils-2.15.91.0.2/binutils/ar.c:342: multiple definition of `main'
arlex.o(.text
+0x0):/home/hugo/Projects/albatross-dev/toolchain/crosstool-0.31/build/arm-xscale-linux-gnu/gcc-3.4.1-glibc-20040827/build-binutils/binutils/arlex.c:1: first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 15 in arlex.o
to 1899 in ar.o
bucomm.o(.text+0xa09): In function `make_tempname':
/home/hugo/Projects/albatross-dev/toolchain/crosstool-0.31/build/arm-xscale-linux-gnu/gcc-3.4.1-glibc-20040827/binutils-2.15.91.0.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
arparse.o(.text+0x57c): In function `yyparse':
/home/hugo/Projects/albatross-dev/toolchain/crosstool-0.31/build/arm-xscale-linux-gnu/gcc-3.4.1-glibc-20040827/build-binutils/binutils/y.tab.c:1014: undefined reference to `yylex'
arparse.o(.text+0x5ae): In function `yyerror':
/home/hugo/Projects/albatross-dev/toolchain/crosstool-0.31/build/arm-xscale-linux-gnu/gcc-3.4.1-glibc-20040827/binutils-2.15.91.0.2/binutils/arparse.y:201: undefined reference to `linenumber'
collect2: ld returned 1 exit status

Oddly enough, somebody has: http://sources.redhat.com/bugzilla/show_bug.cgi?id=399 http://forum.lfs-tipps.de/showthread.php?p=243 The second one makes me think it's flex; the guy says building bison and flex made the problem go away?

On my build machines, I'm using flex version 2.5.4.  Which
version do you have?

The following combinations work for me in crosstool-0.32 (and
the .dat files all specify binutils-2.15, not the 2.15.91-0.2
your .dat files specified):

arm-xscale-gcc-3.2.3-glibc-2.2.5
arm-xscale-gcc-3.2.3-glibc-2.3.2
arm-xscale-gcc-3.3.5-glibc-2.2.5
arm-xscale-gcc-3.3.5-glibc-2.3.2
arm-xscale-gcc-3.3.5-glibc-2.3.3
arm-xscale-gcc-3.4.3-glibc-2.2.5
arm-xscale-gcc-3.4.3-glibc-2.3.2
arm-xscale-gcc-3.4.3-glibc-2.3.3
arm-xscale-gcc-3.4.3-glibc-2.3.4
arm-xscale-gcc-3.4.3-glibc-2.3.5
arm-xscale-gcc-4.0.0-glibc-2.3.4
arm-xscale-gcc-4.0.0-glibc-2.3.5

- 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


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