This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] mips + gcc-3.4.0 fails due to unit-at-a-time


Building glibc on mips with gcc-3.4.0 fails with errors like
 linuxthreads/crtn.o(.text+0x0): linuxthreads/crtn.S:20: multiple definition of `dummy'
 ...
 linuxthreads/crti.o(.init+0x28): linuxthreads/crti.S:58: undefined reference to `i_am_not_a_leaf'
 ...
unless I apply the following patch:

--- linuxthreads/sysdeps/unix/sysv/linux/mips/Makefile.old  2004-05-30 18:24:41.000000000 -0700
+++ linuxthreads/sysdeps/unix/sysv/linux/mips/Makefile      2004-05-30 18:28:03.000000000 -0700
@@ -1,2 +1,6 @@
 # pull in __syscall_error routine
 libpthread-routines += sysdep
+
+ifeq ($(subdir),linuxthreads)
+CFLAGS-pt-initfini.s = $(fno-unit-at-a-time)
+endif

This was stolen directly from the similar patch in CVS for x86_64.

(I'm actually building glibc-2.3.2 with a few updates from CVS,
but I did check, and it looks like glibc cvs would need this patch, too.)
- Dan

--
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change


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