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 for arm-linux failed under cygwin and fedora-linux


Birger Brunswiek wrote:
Hi I tried to compile the toolchain for arm-linux on my windows
and linux box. Both manually and with crosstool, both failed but
in different ways.

I'm using gcc-3.4.0, glibc-2.3.2, binutils-2.15, linux-2.4.26
and crosstool-0.28-rc23.

Under windows I get as far as to the header files from glibc.
The make which comes with cygwin seems to have problems with
the recursions in glibc-2.3.2/iconvdata/extra-module.mk.
It crashes after a few (40?) steps.

Known problem in cygwin 1.5.9-1. Update your cygwin.


/scratch/src/glibc-2.3.2-arm-linux/csu/crti.S: Assembler messages:
/scratch/src/glibc-2.3.2-arm-linux/csu/crti.S:96: Error: can't resolve `_GLOBAL_OFFSET_TABLE_' {*UND* section} - `.L7' {.text section}
/scratch/src/glibc-2.3.2-arm-linux/csu/crti.S:61: Error: internal_relocation (type: OFFSET_IMM) not fixed up ...


This is also the same error I get when I tried to do it
under linux.
> After searching the web I gave up and tried crosstool.

We ran into this last month:
http://sources.redhat.com/ml/crossgcc/2004-05/msg00174.html
and it's not happening for me at the moment.  I can't
recall if I have a specific fix for that or not at the moment
(haven't had my coffee yet...)

I'm not sure if I got further... [here's the new error]:
/tmp/cc0XRKUe.s: Assembler messages:
/tmp/cc0XRKUe.s:3: Error: junk at end of line, first unrecognized character is `,'
/tmp/cc0XRKUe.s:5: Error: junk at end of line, first unrecognized character is `,'
make[2]: *** [/scratch/src/crosstool-0.28-rc23/build/arm-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/intl/localealias.o] Error 1

That seems familiar, too. See http://gcc.gnu.org/ml/gcc/2004-04/msg01084.html and http://sources.redhat.com/ml/binutils/2004-04/msg00646.html I have the following patches in crosstool that handle

patches/binutils-2.14.92/binutils-m68k-ignore-comments.patch
patches/binutils-2.15.90.0.3/binutils-m68k-ignore-comments.patch
patches/binutils-2.15/binutils-m68k-ignore-comments.patch

(although I guess they're misnamed, since you're running into
this on arm, not m68k?).

It's troubling that this error is back even though crosstool
has a patch that should handle it.  Can you verify that this
patch was applied?  (BTW, -save-temps is a handy option
when tracking this kind of thing down, it'll leave the .s file
around for inspection after the build.  I often take the
command that failed out of the log and put it in a tiny
shell script that sets PATH and cd's to the right directory,
then reruns the failed command.  That lets me add things like
-v and -save-temps, and in particular, it'll let you try out
different binutils without rebuilding all of crosstool.)
- 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]