[Linux-ia64] gcc and glibc: big troubles

From: Francis Galiegue <fg_at_mandrakesoft.com>
Date: 2000-11-22 02:36:00
I'm trying to upgrade my glibc and compiler to 001024 snapshot + RCS patches up
to 037 (for gcc) and glibc 2.2 plus patches (not CVS), but it fails on the
whole... Compiler used is 001024 snapshot but with backward compatibility ABI
patch applied.

First, glibc. I obtain this error:

gcc -nostdlib -nostartfiles -o
/usr/src/RPM/BUILD/glibc-2.2/build-ia64-linux/csu/crti.o `gcc
/usr/src/RPM/BUILD/glibc-2.2/build-ia64-linux/libc_nonshared.a -lgcc `gcc

undefined reference to `__syscall_getpagesize'
collect2: ld returned 1 exit status

Does CVS glibc cure this? If yes I guess I'll upgrade to the latest toolchain
snapshot too...

Now, trying to recompile the 001024 toolchain, but *without* the ABI patch, I
get the following:

gcc -c -O2   -I../../../tk/unix -I../../../tk/unix/../generic
-I../../../tk/unix/../bitmaps -I/usr/src/RPM/BUILD/src/tcl/generic
../../../tk/unix/../generic/tkImgPhoto.c: In function `ImgPhotoCmd':
../../../tk/unix/../generic/tkImgPhoto.c:601: warning: passing arg 2 of
`Tcl_GetStringFromObj' from
incompatible pointer type
/tmp/ccalpirm.s: Assembler messages:
/tmp/ccalpirm.s:6579: Internal error, aborting at ../../gas/config/tc-ia64.c
line 5190 in errata_nop_necessary_p
Please report this bug.

Culprit line:

  if (insn_unit == IA64_UNIT_F)
      for (i = 0; i < idesc->num_outputs; i++)
    if (idesc->operands[i] == IA64_OPND_P1
        || idesc->operands[i] == IA64_OPND_P2)
        int regno = slot->opnd[i].X_add_number - REG_P;
        if (regno > 16)
          abort ();		<----- This one
        this_group->p_reg_set[regno] = 1;

One thing I don't get is: why all this in the toolchain? Why make, why bison,
why tk, why tcl? Whats more there's no README at all on how to *avoid* having
them compiled. I tried --without-x, --disable-x but to no avail... Stock bison
for example works perfectly fine here, so does make. Any solution?

Francis Galiegue, fg@mandrakesoft.com
"Programming is a race between programmers, who try and make more and more
idiot-proof software, and universe, which produces more and more remarkable
idiots. Until now, universe leads the race"  -- R. Cook
Received on Tue Nov 21 07:28:16 2000

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:00 EST