Bug 11739

Summary: Compile error: make vdso32-sym.lds error 1 in kernel >=2.6.25
Product: Other Reporter: Dark Shadow (dark.shadow)
Component: OtherAssignee: other_other
Status: REJECTED INVALID    
Severity: normal CC: leho, lmzf318
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: >=2.6.25 Subsystem:
Regression: --- Bisected commit-id:
Attachments: config for tuxonice-sources 2.6.26
tail -n 20 of the compile.log
arch/x86/vdso directory tarred and bzipped

Description Dark Shadow 2008-10-11 04:27:55 UTC
Latest working kernel version: 2.6.24
Earliest failing kernel version: 2.6.25
Distribution: Gentoo
Hardware Environment: Pentium 4 Prescott

Software Environment:

Portage 2.2_rc12 (default/linux/x86/2008.0, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.24-tuxonice-r9 i686)
=================================================================
System uname: Linux-2.6.24-tuxonice-r9-i686-Intel-R-_Pentium-R-_4_CPU_3.40GHz-with-glibc2.0
Timestamp of tree: Fri, 10 Oct 2008 19:15:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26

Problem Description:

Trying to compile a kernel >= 2.6.25 gives a compile error in vdso32.

* 2.6.24 compiles fine.
* It did not help to try different (considered stable by distribution) compiler/binutils versions.
* The problem might not be .config-related, as I have tried different configurations.
* I first tried tuxonice sources, then gentoo sources and vanilla sources. Same error every time, so I assume it is a problem in vanilla sources.

Steps to reproduce:
make oldconfig
make menuconfig
make

[...]
  LDS     arch/x86/vdso/vdso32/vdso32.lds
  AS      arch/x86/vdso/vdso32/note.o
  AS      arch/x86/vdso/vdso32/int80.o
  VDSO    arch/x86/vdso/vdso32-int80.so.dbg
  OBJCOPY arch/x86/vdso/vdso32-int80.so
  AS      arch/x86/vdso/vdso32/sysenter.o
  VDSO    arch/x86/vdso/vdso32-sysenter.so.dbg
  OBJCOPY arch/x86/vdso/vdso32-sysenter.so
  AS      arch/x86/vdso/vdso32.o
  CC      arch/x86/vdso/vdso32-setup.o
  VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds
  VDSOSYM arch/x86/vdso/vdso32-syms.lds
make[1]: *** [arch/x86/vdso/vdso32-syms.lds] Error 1
make: *** [arch/x86/vdso] Error 2

I'll upload a more detailed log and config.
Maybe someone knows what is wrong and can help?
Comment 1 Dark Shadow 2008-10-11 04:31:18 UTC
Created attachment 18259 [details]
config for tuxonice-sources 2.6.26

I'm using tuxonice sources, though the bug occurs in vanilla kernel too.
If it is really necessary, I can of course provide a vanilla .config.
Comment 2 Dark Shadow 2008-10-11 04:32:01 UTC
Created attachment 18260 [details]
tail -n 20 of the compile.log
Comment 3 Dark Shadow 2008-10-11 04:34:41 UTC
Created attachment 18261 [details]
arch/x86/vdso directory tarred and bzipped

Since it is quite small, I've tarred and bzipped the complete arch/x86/vdso
directory. Maybe the files in it can give you a clue of what's wrong.
Comment 4 Dark Shadow 2009-01-18 11:36:12 UTC
Ok, I've found the root of the problem.
It was my fault putting something silly like the following into ~/.bashrc.

function grep { command grep -r "$@"; }
export -f grep

Deleting it solved all my problems.

Thanks for your help.
Comment 5 Leho Kraav 2009-06-06 10:36:33 UTC
similar vdso32 fail for me when compiling tuxonice-sources-2.6.28-r10 was caused by diff being accidentally replaced by the crippled busybox binary.
Comment 6 Frank Lampard 2011-01-22 02:36:40 UTC
(In reply to comment #5)
> similar vdso32 fail for me when compiling tuxonice-sources-2.6.28-r10 was
> caused by diff being accidentally replaced by the crippled busybox binary.

my problem is 
/bin/sh:diff:command not found
make[1]: *** [arch/x86/vdso/vdso32-syms.lds] Error 1
make: *** [arch/x86/vdso] Error 2

how to resolve it?
Comment 7 Leho Kraav 2011-01-23 23:28:44 UTC
make sure you have diffutils installed?