You are not logged in.

#1 2012-01-14 00:58:44

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

building module fails - vmlinux is truncated [solved]

Hello guys,

I cannot build the lenovo-sl-laptop-fan-control module anymore.

See the pkgbuild here: http://aur.archlinux.org/packages/le/le … l/PKGBUILD

All I get is this error message:

==> Starting make...
make -C /lib/modules/3.1.9-1-ARCH/build M=/tmp/packerbuild-1000/lenovo-sl-laptop/lenovo-sl-laptop/src/lenovo-sl-laptop-build modules
make[1]: Entering directory `/usr/src/linux-3.1.9-1-ARCH'
  CC [M]  /tmp/packerbuild-1000/lenovo-sl-laptop/lenovo-sl-laptop/src/lenovo-sl-laptop-build/lenovo-sl-laptop.o
  Building modules, stage 2.
  MODPOST 1 modules
FATAL: vmlinux is truncated. sechdrs[i].sh_offset=18446744071588955904 > sizeof(*hrd)=64
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-3.1.9-1-ARCH'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
The build failed.

Kernel version is linux-3.1.9-1-ARCH on a 64bit system.

Any ideas?

Regards,

Robert

Last edited by orschiro (2012-01-15 04:56:59)

Offline

#2 2012-01-14 01:02:40

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,092
Website

Re: building module fails - vmlinux is truncated [solved]

https://bbs.archlinux.org/viewtopic.php … 1#p1038041

Fixed in testing:
http://www.archlinux.org/packages/testi … ibarchive/

The buggy libarchive never left testing though, and no one should have been compiling kernels against it.....

Last edited by falconindy (2012-01-14 01:09:09)

Offline

#3 2012-01-14 01:04:58

tuldok89
Member
From: Manila, PH
Registered: 2012-01-14
Posts: 3

Re: building module fails - vmlinux is truncated [solved]

I'm getting the same error message, this time from building the fglrx module on the 3.1.9 x86_64 kernel

--------
2012-01-14 08:20:45
Building fglrx module for 3.1.9-1-ARCH kernel ...
--------
patching file Makefile
Hunk #1 succeeded at 68 (offset 2 lines).
OsVersion says: SMP=1
file /proc/kallsyms says: SMP=1
file /lib/modules/3.1.9-1-ARCH/build/include/generated/autoconf.h says: SMP=1
1
0
file /lib/modules/3.1.9-1-ARCH/build/include/generated/autoconf.h says: MODVERSIONS=1
1
0
file /lib/modules/3.1.9-1-ARCH/build/arch/x86/include/asm/compat.h says: COMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space
make: Entering directory `/usr/src/linux-3.1.9-1-ARCH'
  CC [M]  /tmp/catalyst.tZIAzG/firegl_public.o
In file included from /tmp/catalyst.tZIAzG/firegl_public.c:192:0:
/tmp/catalyst.tZIAzG/kcl_debug.h:202:5: warning: "_DEBUG" is not defined [-Wundef]
/tmp/catalyst.tZIAzG/kcl_debug.h:162:16: warning: ‘module_log_map’ defined but not used [-Wunused-variable]
/tmp/catalyst.tZIAzG/kcl_debug.h:175:19: warning: ‘module_type_map’ defined but not used [-Wunused-variable]
  CC [M]  /tmp/catalyst.tZIAzG/kcl_acpi.o
In file included from /tmp/catalyst.tZIAzG/kcl_acpi.c:33:0:
/tmp/catalyst.tZIAzG/kcl_debug.h:202:5: warning: "_DEBUG" is not defined [-Wundef]
/tmp/catalyst.tZIAzG/kcl_debug.h:162:16: warning: ‘module_log_map’ defined but not used [-Wunused-variable]
/tmp/catalyst.tZIAzG/kcl_debug.h:175:19: warning: ‘module_type_map’ defined but not used [-Wunused-variable]
  CC [M]  /tmp/catalyst.tZIAzG/kcl_agp.o
In file included from /tmp/catalyst.tZIAzG/kcl_agp.c:47:0:
/tmp/catalyst.tZIAzG/kcl_debug.h:202:5: warning: "_DEBUG" is not defined [-Wundef]
/tmp/catalyst.tZIAzG/kcl_debug.h:162:16: warning: ‘module_log_map’ defined but not used [-Wunused-variable]
/tmp/catalyst.tZIAzG/kcl_debug.h:175:19: warning: ‘module_type_map’ defined but not used [-Wunused-variable]
  CC [M]  /tmp/catalyst.tZIAzG/kcl_debug.o
In file included from /tmp/catalyst.tZIAzG/kcl_debug.c:39:0:
/tmp/catalyst.tZIAzG/kcl_debug.h:202:5: warning: "_DEBUG" is not defined [-Wundef]
/tmp/catalyst.tZIAzG/kcl_debug.c:45:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
/tmp/catalyst.tZIAzG/kcl_debug.c:65:14: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
/tmp/catalyst.tZIAzG/kcl_debug.c: In function ‘prvGetCpuId’:
/tmp/catalyst.tZIAzG/kcl_debug.c:72:18: warning: unused variable ‘Mode’ [-Wunused-variable]
/tmp/catalyst.tZIAzG/kcl_debug.c: At top level:
/tmp/catalyst.tZIAzG/kcl_debug.h:162:16: warning: ‘module_log_map’ defined but not used [-Wunused-variable]
/tmp/catalyst.tZIAzG/kcl_debug.h:175:19: warning: ‘module_type_map’ defined but not used [-Wunused-variable]
  CC [M]  /tmp/catalyst.tZIAzG/kcl_ioctl.o
/tmp/catalyst.tZIAzG/kcl_ioctl.c: In function ‘KCL_IOCTL_RegisterConversion32’:
/tmp/catalyst.tZIAzG/kcl_ioctl.c:171:27: warning: extra tokens at end of #ifdef directive [enabled by default]
/tmp/catalyst.tZIAzG/kcl_ioctl.c: In function ‘KCL_IOCTL_UnregisterConversion32’:
/tmp/catalyst.tZIAzG/kcl_ioctl.c:183:27: warning: extra tokens at end of #ifdef directive [enabled by default]
  CC [M]  /tmp/catalyst.tZIAzG/kcl_io.o
  CC [M]  /tmp/catalyst.tZIAzG/kcl_pci.o
  CC [M]  /tmp/catalyst.tZIAzG/kcl_str.o
  CC [M]  /tmp/catalyst.tZIAzG/kcl_iommu.o
In file included from /tmp/catalyst.tZIAzG/kcl_iommu.c:45:0:
/tmp/catalyst.tZIAzG/kcl_debug.h:202:5: warning: "_DEBUG" is not defined [-Wundef]
/tmp/catalyst.tZIAzG/kcl_debug.h:162:16: warning: ‘module_log_map’ defined but not used [-Wunused-variable]
/tmp/catalyst.tZIAzG/kcl_debug.h:175:19: warning: ‘module_type_map’ defined but not used [-Wunused-variable]
  CC [M]  /tmp/catalyst.tZIAzG/kcl.o
  CC [M]  /tmp/catalyst.tZIAzG/kcl_wait.o
  LD [M]  /tmp/catalyst.tZIAzG/fglrx.o
  Building modules, stage 2.
  MODPOST 1 modules
FATAL: vmlinux is truncated. sechdrs[i].sh_offset=18446744071588955904 > sizeof(*hrd)=64
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
make: Leaving directory `/usr/src/linux-3.1.9-1-ARCH'

EDIT: didn't see the previous post ^^;;

Last edited by tuldok89 (2012-01-14 01:06:11)

Offline

#4 2012-01-14 07:22:12

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,260

Re: building module fails - vmlinux is truncated [solved]

Sorry folks, will be fixed immediatly

Offline

#5 2012-01-14 10:29:36

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,260

Re: building module fails - vmlinux is truncated [solved]

Until signoffs are coming in:
https://dev.archlinux.org/~tpowa/linux/

Offline

#6 2012-01-14 11:50:55

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,260

Re: building module fails - vmlinux is truncated [solved]

new kernel moved to core

Offline

#7 2012-01-14 13:49:02

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Re: building module fails - vmlinux is truncated [solved]

Thanks for the reactivity smile

Offline

#8 2012-01-14 20:04:40

b_m_l
Member
Registered: 2012-01-14
Posts: 14

Re: building module fails - vmlinux is truncated [solved]

its not working for me. maybe im doing it wrong? i download the 3.0.3 version of libarchive, but when i ./configure make make install i still have the 2.8.5-2 version. i want to install nvidia drivers and its killed with the vmlinux is truncated error. any ideas? also tried to update the whole system (maybe new kernel?) i have arch linux 3.1.9-1 kernel sad

Offline

#9 2012-01-14 21:57:57

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: building module fails - vmlinux is truncated [solved]

Thanks for the update. For me it solved the problem to build my custom module.

Regards,

Robert

Offline

#10 2012-01-15 00:27:41

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 3,498

Re: building module fails - vmlinux is truncated [solved]

b_m_l, please don't cross-post. Continue your discussion here: https://bbs.archlinux.org/viewtopic.php?id=133138


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB