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]

Re: undefined reference to `i_am_not_a_leaf'


Shawn <core@enodev.com> writes:

> I wonder if someone can help me figure out why I am getting this
> "undefined reference to `i_am_not_a_leaf'" compile failure?

Add -fno-unit-at-a-time or the following patch.

Note that the patch is not final yet, I'm still testing with it.

Btw. current hammer-branch has further problems on amd64, I would
disable it there completly.  We're currently doing a large scale
testing...

Andreas

> I'm using:
>       * gcc-3.3 with the athlon-hammer-branch-20030515.patch and a
>         backport of the 3.4 DFA sched from gentoo




2003-07-18  Andreas Jaeger  <aj@suse.de>

	* csu/Makefile (CFLAGS-initfini.s): Add -fno-unit-at-a-time.
	* linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile
	(CFLAGS-pt-initfini.s): Likewise.
	* linuxthreads/Makefile (CFLAGS-tst-cancel.c): Likewise.
	(CFLAGS-pt-initfini.s): Likewise.

============================================================
Index: csu/Makefile
--- csu/Makefile	26 Jun 2003 07:27:39 -0000	1.70
+++ csu/Makefile	18 Jul 2003 05:27:14 -0000
@@ -104,7 +104,7 @@ omit-deps += $(crtstuff)
 $(crtstuff:%=$(objpfx)%.o): %.o: %.S $(objpfx)defs.h
 	$(compile.S) -g0 $(ASFLAGS-.os) -o $@
 
-CFLAGS-initfini.s = -g0 -fPIC -fno-inline-functions
+CFLAGS-initfini.s = -g0 -fPIC -fno-inline-functions -fno-unit-at-a-time
 
 vpath initfini.c $(full_config_sysdirs)
 
============================================================
Index: linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile
--- linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile	11 Apr 2003 23:34:02 -0000	1.5
+++ linuxthreads/sysdeps/unix/sysv/linux/x86_64/Makefile	18 Jul 2003 05:27:14 -0000
@@ -1,3 +1,3 @@
 ifeq ($(subdir),linuxthreads)
-CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions -fno-asynchronous-unwind-tables
+CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions -fno-asynchronous-unwind-tables  -fno-unit-at-a-time
 endif
============================================================
Index: linuxthreads/Makefile
--- linuxthreads/Makefile	10 Jun 2003 02:19:43 -0000	1.77
+++ linuxthreads/Makefile	18 Jul 2003 05:27:14 -0000
@@ -66,7 +66,7 @@ LDFLAGS-pthread.so = $(nodelete-$(have-z
 vpath %.c Examples
 
 tst-cancel-ARGS = "$(objpfx)"
-CFLAGS-tst-cancel.c = -fno-inline -fno-inline-functions
+CFLAGS-tst-cancel.c = -fno-inline -fno-inline-functions -fno-unit-at-a-time
 
 include ../Makeconfig
 
@@ -99,7 +99,7 @@ endif
 extra-objs += $(crti-objs) $(crtn-objs)
 omit-deps += crti crtn
 
-CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions
+CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions -fno-unit-at-a-time
 endif
 
 librt-tests = ex10 ex11

-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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