You are not logged in.

#1 2008-03-29 19:42:10

saciel
Member
From: Germany
Registered: 2006-07-30
Posts: 153

problems compiling 2.6.24.3

I'm maintaining kernel26tp_plus in the AUR and currently working on a PKGBUILD for a 2.6.24 kernel. I have had a working build but needed to apply some patches afterwards. Now compiling doesn't work anymore. The issue seems to not be related to the patches, as removing them from the PKGBUILD does not help. Even building kernel26 from the ABS doesn't work anymore. I belive there have been two changes since succesfully compiling 2.6.24 for the last time: A full system upgrade and changes in the squashfs patch (however removing this from the PKGBUILD doesn't help either).

Judging from the time the kernel used to compile before, the problem is occuring pretty late in the process. Below is an excerpt of the latest output. Can anybody help me?

  LD      lib/zlib_deflate/built-in.o
  CC [M]  lib/zlib_deflate/deflate.o
  CC [M]  lib/zlib_deflate/deftree.o
  CC [M]  lib/zlib_deflate/deflate_syms.o
  LD [M]  lib/zlib_deflate/zlib_deflate.o
  LD      lib/zlib_inflate/built-in.o
  CC [M]  lib/zlib_inflate/inffast.o
  CC [M]  lib/zlib_inflate/inflate.o
  CC [M]  lib/zlib_inflate/infutil.o
  CC [M]  lib/zlib_inflate/inftrees.o
  CC [M]  lib/zlib_inflate/inflate_syms.o
  LD [M]  lib/zlib_inflate/zlib_inflate.o
  CC      arch/x86/lib/msr-on-cpu.o
  LD      arch/x86/lib/built-in.o
  CC      arch/x86/lib/bitops_32.o
  AS      arch/x86/lib/checksum_32.o
  CC      arch/x86/lib/delay_32.o
  AS      arch/x86/lib/getuser_32.o
  CC      arch/x86/lib/memcpy_32.o
  AS      arch/x86/lib/putuser_32.o
  AS      arch/x86/lib/semaphore_32.o
  CC      arch/x86/lib/string_32.o
  CC      arch/x86/lib/strstr_32.o
  CC      arch/x86/lib/usercopy_32.o
  AR      arch/x86/lib/lib.a
  GEN     .version
  CHK     include/linux/compile.h
dnsdomainname: Unknown host
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
kernel/built-in.o: In function `getnstimeofday':
(.text+0x248cb): undefined reference to `__umoddi3'
kernel/built-in.o: In function `getnstimeofday':
(.text+0x248ee): undefined reference to `__udivdi3'
kernel/built-in.o: In function `do_gettimeofday':
(.text+0x24a10): undefined reference to `__udivdi3'
kernel/built-in.o: In function `do_gettimeofday':
(.text+0x24a2e): undefined reference to `__umoddi3'
kernel/built-in.o: In function `timekeeping_resume':
timekeeping.c:(.text+0x24c46): undefined reference to `__umoddi3'
timekeeping.c:(.text+0x24c66): undefined reference to `__udivdi3'
kernel/built-in.o: In function `update_wall_time':
(.text+0x250aa): undefined reference to `__umoddi3'
kernel/built-in.o: In function `update_wall_time':
(.text+0x250ca): undefined reference to `__udivdi3'
kernel/built-in.o: In function `update_wall_time':
(.text+0x25546): undefined reference to `__umoddi3'
kernel/built-in.o: In function `update_wall_time':
(.text+0x25566): undefined reference to `__udivdi3'
make: *** [.tmp_vmlinux1] Error 1

They say if you reverse play a Windows CD you can hear satanic verses... But wanna know what's even worse? If you forward play it, it's gonna install Windows on your system!

Offline

#2 2008-03-29 20:03:08

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: problems compiling 2.6.24.3

bitten to death
2.6.25.rcX fixed this
patch available somewhere
or simply edit kernel Makefile
1) find this line
KBUILD_CFLAGS
add
-fno-tree-scev-cprop

so complete line looks as follows:
KBUILD_CFLAGS   := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
                   -fno-strict-aliasing -fno-common \
                   -Werror-implicit-function-declaration \
                   -fno-tree-scev-cprop

save
kompile kernel

Offline

#3 2008-05-01 12:10:13

Stef
Member
Registered: 2008-03-26
Posts: 18

Re: problems compiling 2.6.24.3

broch: awesome! that did the trick also for me! tried to compile 2.6.19.7 with gcc 4.3.0.

THX!!!

Offline

Board footer

Powered by FluxBB