All of lore.kernel.org
 help / color / mirror / Atom feed
From: tony <tony.makkiel@convergeddevices.net>
To: <backports@vger.kernel.org>
Subject: Compiling error
Date: Tue, 2 Sep 2014 18:02:42 +0100	[thread overview]
Message-ID: <5405F832.8080406@convergeddevices.net> (raw)
In-Reply-To: <5405F05E.2090909@convergeddevices.net>

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

Hi,
	I am trying to build "backports-3.12.8-1" for my kernel 3.1.10. I am 
following the instructions in the backports wiki to cross compile for 
arm. But the compilation fails complaining "‘THIS_MODULE’ undeclared". 
As suggested by one of the earlier posts in the forum, I tried including
#include <linux/module.h>
before
#include <linux/skbuff.h>
  But it did not make any difference.Attached is a error log.

Thank you in advance for any help.

Tony

[-- Attachment #2: log.txt --]
[-- Type: text/plain, Size: 3689 bytes --]

******************* Environment & Tools log ********************************

echo $CROSS_COMPILE
arm-linux-gnueabihf-
echo $ARCH
arm
echo $KLIB_BUILD
/media/work/git/bsp/Linux_for_Tegra/kernel/linux-tegra
echo $KLIB
/media/work/git/bsp/Linux_for_Tegra/rootfs
arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3






*************************** Build Log ****************************************

make defconfig-media
make[2]: `conf' is up to date.
#
# configuration written to .config
#
tony@tony-N56VJ:~/Desktop/backports-3.12.8-1$ make
make[5]: `conf' is up to date.
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
  CC [M]  /home/tony/Desktop/backports-3.12.8-1/compat/main.o
/home/tony/Desktop/backports-3.12.8-1/compat/main.c:52:1: warning: data definition has no type or storage class [enabled by default]
/home/tony/Desktop/backports-3.12.8-1/compat/main.c:52:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
/home/tony/Desktop/backports-3.12.8-1/compat/main.c:52:1: warning: parameter names (without types) in function declaration [enabled by default]
  CC [M]  /home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.o
In file included from /home/tony/Desktop/backports-3.12.8-1/backport-include/linux/device.h:4:0,
                 from include/linux/dmaengine.h:24,
                 from include/linux/skbuff.h:30,
                 from /home/tony/Desktop/backports-3.12.8-1/backport-include/linux/skbuff.h:3,
                 from /home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.c:13:
include/linux/device.h: In function ‘root_device_register’:
include/linux/device.h:724:38: error: ‘THIS_MODULE’ undeclared (first use in this function)
include/linux/device.h:724:38: note: each undeclared identifier is reported only once for each function it appears in
/home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.c: At top level:
/home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.c:174:1: warning: data definition has no type or storage class [enabled by default]
/home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.c:174:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
/home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.c:174:1: warning: parameter names (without types) in function declaration [enabled by default]
/home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.c:222:1: warning: data definition has no type or storage class [enabled by default]
/home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.c:222:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
/home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.c:222:1: warning: parameter names (without types) in function declaration [enabled by default]
/home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.c:242:1: warning: data definition has no type or storage class [enabled by default]
/home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.c:242:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ [-Wimplicit-int]
/home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.c:242:1: warning: parameter names (without types) in function declaration [enabled by default]
make[6]: *** [/home/tony/Desktop/backports-3.12.8-1/compat/compat-3.3.o] Error 1
make[5]: *** [/home/tony/Desktop/backports-3.12.8-1/compat] Error 2
make[4]: *** [_module_/home/tony/Desktop/backports-3.12.8-1] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make: *** [default] Error 2

       reply	other threads:[~2014-09-02 17:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5405F05E.2090909@convergeddevices.net>
2014-09-02 17:02 ` tony [this message]
2014-09-02 21:48   ` Compiling error Hauke Mehrtens
2014-09-03 10:04     ` tony
2009-01-05 23:05 compiling error Yinghai Lu
2009-01-06  0:35 ` Mike Travis
     [not found] <49104706.2010200@kleiderschrank51.de>
2008-11-04 12:33 ` Johan Hedberg
  -- strict thread matches above, loose matches on Subject: below --
2003-08-05  3:19 oscar hellström
2003-08-05  7:45 ` Mattia Dongili

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5405F832.8080406@convergeddevices.net \
    --to=tony.makkiel@convergeddevices.net \
    --cc=backports@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.