[manjaro-dev] [3.12.4] some weird regression got introduced

Philip Müller philm at manjaro.org
Tue Dec 10 09:52:18 CET 2013


Hi Greg,

thx for answering my e-mail. I know that there are lot of changes 
between 3.10 and 3.12 kernel series. No doubt there. These are already 
old driver modules I maintain until they break. Some of them are already 
dropped from Arch-Linux. From the date those are alreday outdated:

slmodem-2.9.11-20080126
DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217

Build scripts can be found here:

http://git.manjaro.org/package-sources/extra/blob/aaedf1ffcd6a2acb7411ec9a3bb58bfa7b7bac3f/linux312-extramodules/slmodem/PKGBUILD
http://git.manjaro.org/package-sources/extra/blob/aaedf1ffcd6a2acb7411ec9a3bb58bfa7b7bac3f/linux312-extramodules/rt3562sta/PKGBUILD

To the drivers it self. Both are provided by companies who don't care 
much about their hardware and not so much about linux. For me it was 
just a weird wakeup that it worked with 3.12.3 but not with 3.12.4 anymore.

For me it is a simple solution. Dropping them from my repos. Since 
slmodem so old and even the "newer" drivers break I'll remove them for good.

Here is the older one which is compiling but already tells me some errors:

==> Starting build()...
patching file ungrab-winmodem-20080126/ungrab-winmodem.c
patching file slmodem-2.9.11-20080126/drivers/amrmo_init.c
patching file ungrab-winmodem.c
make modules -C /lib/modules/3.12.3-1-MANJARO/build 
SUBDIRS=/build/src/ungrab-winmodem-20080126
make[1]: Entering directory '/usr/src/linux-3.12.3-1-MANJARO'
   CC [M] /build/src/ungrab-winmodem-20080126/ungrab-winmodem.o
   Building modules, stage 2.
   MODPOST 1 modules
   CC /build/src/ungrab-winmodem-20080126/ungrab-winmodem.mod.o
   LD [M] /build/src/ungrab-winmodem-20080126/ungrab-winmodem.ko
make[1]: Leaving directory '/usr/src/linux-3.12.3-1-MANJARO'
patching file drivers/amrmo_init.c
Hunk #1 succeeded at 609 (offset -8 lines).
patching file drivers/kernel-ver.c
patching file drivers/amrmo_init.c
patching file drivers/amrmo_init.c
patching file drivers/amrmo_init.c
make -C drivers KERNEL_DIR=/lib/modules/3.12.3-1-MANJARO/build
make[1]: Entering directory '/build/src/slmodem-2.9.11-20080126/drivers'
cc -I/lib/modules/3.12.3-1-MANJARO/build/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=3.12.3-1-MANJARO
make[2]: Entering directory '/build/src/slmodem-2.9.11-20080126/drivers'
make modules -C /lib/modules/3.12.3-1-MANJARO/build 
SUBDIRS=/build/src/slmodem-2.9.11-20080126/drivers
make[3]: Entering directory '/usr/src/linux-3.12.3-1-MANJARO'
   CC [M] /build/src/slmodem-2.9.11-20080126/drivers/amrmo_init.o
   CC [M] /build/src/slmodem-2.9.11-20080126/drivers/sysdep_amr.o
   LD [M]  /build/src/slmodem-2.9.11-20080126/drivers/slamr.o
   Building modules, stage 2.
   MODPOST 1 modules
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
   CC /build/src/slmodem-2.9.11-20080126/drivers/slamr.mod.o
   LD [M]  /build/src/slmodem-2.9.11-20080126/drivers/slamr.ko
make[3]: Leaving directory '/usr/src/linux-3.12.3-1-MANJARO'
make[2]: Leaving directory '/build/src/slmodem-2.9.11-20080126/drivers'
make[1]: Leaving directory '/build/src/slmodem-2.9.11-20080126/drivers'
==> Tidying install...

Trying to build one from 2011 it gets fuzzy:

==> Starting build()...
patching file ungrab-winmodem.c
Hunk #1 succeeded at 45 (offset 4 lines).
make modules -C /lib/modules/3.12.3-1-MANJARO/build 
SUBDIRS=/build/src/ungrab-winmodem-20090716
make[1]: Entering directory '/usr/src/linux-3.12.3-1-MANJARO'
   CC [M] /build/src/ungrab-winmodem-20090716/ungrab-winmodem.o
   Building modules, stage 2.
   MODPOST 1 modules
   CC /build/src/ungrab-winmodem-20090716/ungrab-winmodem.mod.o
   LD [M] /build/src/ungrab-winmodem-20090716/ungrab-winmodem.ko
make[1]: Leaving directory '/usr/src/linux-3.12.3-1-MANJARO'
patching file drivers/amrmo_init.c
make -C drivers KERNEL_DIR=/lib/modules/3.12.3-1-MANJARO/build
make[1]: Entering directory '/build/src/slmodem-2.9.11-20110321/drivers'
doing kernel-ver::
cc -I/lib/modules/3.12.3-1-MANJARO/build/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=3.12.3-1-MANJARO
make[2]: Entering directory '/build/src/slmodem-2.9.11-20110321/drivers'
     doing %.o: %.c
cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE 
-DEXPORT_SYMTAB -DMODVERSIONS --include 
/lib/modules/3.12.3-1-MANJARO/build/include/linux/modversions.h 
-I/lib/modules/3.12.3-1-MANJARO/build/include  -I. -I./../modem   -o 
amrmo_init.o -c amrmo_init.c
     doing %.o: %.c
cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE 
-DEXPORT_SYMTAB -DMODVERSIONS --include 
/lib/modules/3.12.3-1-MANJARO/build/include/linux/modversions.h 
-I/lib/modules/3.12.3-1-MANJARO/build/include  -I. -I./../modem   -o 
sysdep_amr.o -c sysdep_amr.c
     doing %.o: %.c
cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE 
-DEXPORT_SYMTAB -DMODVERSIONS --include 
/lib/modules/3.12.3-1-MANJARO/build/include/linux/modversions.h 
-I/lib/modules/3.12.3-1-MANJARO/build/include  -I. -I./../modem   -o 
old_st7554.o -c old_st7554.c
In file included from <command-line>:0:0:
/usr/include/stdc-predef.h:40:1: fatal error: 
/lib/modules/3.12.3-1-MANJARO/build/include/linux/modversions.h: No such 
file or directory
  #endif
  ^
compilation terminated.
In file included from <command-line>:0:0:
/usr/include/stdc-predef.h:40:1: fatal error: 
/lib/modules/3.12.3-1-MANJARO/build/include/linux/modversions.h: No such 
file or directory
  #endif
  ^
In file included from <command-line>:0:0:
/usr/include/stdc-predef.h:40:1: fatal error: 
/lib/modules/3.12.3-1-MANJARO/build/include/linux/modversions.h: No such 
file or directory
  #endif
  ^
compilation terminated.
compilation terminated.
Makefile:118: recipe for target 'old_st7554.o' failed
make[2]: *** [old_st7554.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:118: recipe for target 'sysdep_amr.o' failed
make[2]: *** [sysdep_amr.o] Error 1
Makefile:118: recipe for target 'amrmo_init.o' failed
make[2]: *** [amrmo_init.o] Error 1
make[2]: Leaving directory '/build/src/slmodem-2.9.11-20110321/drivers'
Makefile:49: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/build/src/slmodem-2.9.11-20110321/drivers'
Makefile:44: recipe for target 'drivers' failed
make: *** [drivers] Error 2
==> ERROR: A failure occurred in build().

So I won't waste any time on this one anymore and simply remove it for 
good ...

Anyway, thx for your e-mail

kind regards

Phil

On 12/09/2013 07:36 PM, Greg Kroah-Hartman wrote:
> On Mon, Dec 09, 2013 at 01:06:32PM +0100, Philip Müller wrote:
>> Hi Greg,
>>
>> I just compiled linux 3.12.4 for Manjaro Linux and found a weird regression in
>> slmodem and rt3563sta, some extra-modules I'm compiling. In slmodem I get now
>> followed error:
>>
>>
>> make[2]: Entering directory '/build/src/slmodem-2.9.11-20080126/drivers'
>> cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS --include /lib/modules/3.12.4-1-MANJARO/build/include/linux/modversions.h -I/lib/modules/3.12.4-1-MANJARO/build/include -I. -I./../modem  -o amrmo_init.o -c amrmo_init.c
>> cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS --include /lib/modules/3.12.4-1-MANJARO/build/include/linux/modversions.h -I/lib/modules/3.12.4-1-MANJARO/build/include -I. -I./../modem  -o sysdep_amr.o -c sysdep_amr.c
>> In file included from <command-line>:0:0:
>> /usr/include/stdc-predef.h:40:1: fatal error: /lib/modules/3.12.4-1-MANJARO/build/include/linux/modversions.h: No such file or directory
>>   #endif
>>   ^
>> compilation terminated.
> External kernel module?  What's all the crud on the kernel build line,
> that doesn't look like how you are supposed to build a kernel module.
>
> Anyway, I'd blame the external code, nothing I can do about that...
>
>> And rt3563sta quits with:
>>
>>
>> /build/src/DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217/tools/bin2h
>> scripts/Makefile.build:49: *** CFLAGS was changed in "/build/src/DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217/os/linux/Makefile". Fix it to use ccflags-y.  Stop.
>> Makefile:1228: recipe for target '_module_/build/src/DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217/os/linux' failed
>> make[1]: *** [_module_/build/src/DPO_RT3562_3592_3062_LinuxSTA_V2.4.1.1_20101217/os/linux] Error 2
>> make[1]: Leaving directory '/usr/src/linux-3.12.4-1-MANJARO'
>> Makefile:317: recipe for target 'LINUX' failed
>> make: *** [LINUX] Error 2
>>
>>
>> However, using 3.12.3 on the same machine, same toolchain - it works. Any other
>> extra-modules I'm compiling still work and 3.10.23 don't has this issue at all.
>> I also got the same issues using pure Archlinux. More info also in our forums:
>>
>> http://forum.manjaro.org/index.php?topic=9080.0
>
> Lots of things changed in the kernel between 3.10 and 3.12, so to expect
> external kernel modules to build properly with both of the is a bit
> strange.
>
> Did 3.12.3 work?  Have a pointer to where these drivers can be found?
> Why are they outside of the kernel source tree and not included in the
> main kernel.org repo?
>
> thanks,
>
> greg k-h

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.manjaro.org/pipermail/manjaro-dev/attachments/20131210/86291eaa/attachment.html>


More information about the manjaro-dev mailing list