Skip to contentSkip to conversation

glibc build failing and weird gcc configure error, post gcc merge

parisc-linux Matt Taggart 2 participants 2 messages Dec 18, 2000

lore
Share & tools
lore
#0 lore raw

Hi,

Alan Modra just merged gcc with 20001211 upstream and checked in the result on a "devel" branch. I tried building a cross-toolchain but the glibc build fails with the following error,

-----------------------------------------------------------------------------
hppa-linux-gcc getnameinfo.c -c -O -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -g -I../include -I. -I/home/al-76/puffin/xc-build/glibc/in
et -I.. -I../libio -I/home/al-76/puffin/xc-build/glibc -I../sysdeps/hppa/elf -I../linuxthreads/sysdeps/unix/sysv/linux/hppa -I../linuxthreads/sysdeps/unix/s ysv/linux -I../linuxthreads/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/hppa
-I../sysdeps/unix/sysv/linux/hppa -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/hppa/hppa1.1 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/ldbl-128 -I../sysdeps/hppa/fpu -I../sysdeps/hppa -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /home/al-76/puffin/xc/lib/gcc-lib/hppa-linux/2.97/include -isystem /home/al-76/puffin/palinux/linux/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h -o /home/al-76/puffin/xc-build/glibc/inet/getname
info.o
getnameinfo.c: In function `nrl_domainname':
getnameinfo.c:164: Internal compiler error in eliminate_regs, at reload1.c:2521 Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[2]: *** [/home/al-76/puffin/xc-build/glibc/inet/getnameinfo.o] Error 1 make[2]: Leaving directory `/home/al-76/puffin/palinux/glibc/inet' make[1]: *** [inet/subdir_lib] Error 2
make: *** [all] Error 2
-----------------------------------------------------------------------------

I also noticed that during the configure for the simple gcc I use to cross-build glibc I get,

-----------------------------------------------------------------------------

$ configure --target=hppa-linux --host=i386-linux --build=i386-linux 
--prefix=/home/al-76/puffin/xc --disable-shared --disable-nls 
--with-headers=/home/al-76/puffin/palinux/include --without-libc 
--enable-languages=c --disable-sanity-checks"
*** This configuration is not supported in the following subdirectories:
     target-libffi target-boehm-gc target-zlib target-libjava
    (Any other directories should still work fine.)
-----------------------------------------------------------------------------

I haven't ever seen that before. Any ideas?

Thanks,

Signature · 2 lines
Matt Taggart
[email protected]
#1 lore raw
Quoted 2 lines

getnameinfo.c: In function `nrl_domainname':
getnameinfo.c:164: Internal compiler error in eliminate_regs, at reload1.c:2521

Been there. Try this patch to gcc.

Dave

Signature · 20 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2000-11-14  John David Anglin  <[email protected]>

	* reload1.c (eliminate_regs): Don't abort on MEM USEs.

--- reload1.c.orig	Wed Sep 27 14:27:23 2000
+++ reload1.c	Tue Nov 14 16:01:56 2000
@@ -2499,6 +2499,10 @@
 	return x;
 
     case USE:
+      /* Handle insn_list USE that a call to a pure functions may generate. */
+      new = eliminate_regs (XEXP (x, 0), 0, insn);
+      if (GET_CODE (new) == MEM)
+	return XEXP (new, 0);
     case CLOBBER:
     case ASM_OPERANDS:
     case SET: