Help save net neutrality! Learn more.
Close

GXSM on ubuntu 64bit

Anonymous
2011-03-09
2012-09-14
  • Anonymous - 2011-03-09

    Hi,

    Iam not able to install modules

    error

    lokesh@Lenovo:~/Gxsm-2.0/SRanger$ make -C /usr/src/linux-
    headers-2.6.35-28-generic/ SUBDIRS=$PWD modules

    make: Entering directory `/usr/src/linux-headers-2.6.35-28-generic'

    scripts/Makefile.build:49: *** CFLAGS was changed in
    "/home/lokesh/Gxsm-2.0/SRanger/Makefile". Fix it to use EXTRA_CFLAGS. Stop.

    make: *** Error 2

    make: Leaving directory `/usr/src/linux-headers-2.6.35-28-generic'

    lokesh@Lenovo:~/Gxsm-2.0/SRanger$

     
  • Thorsten Wagner

    Thorsten Wagner - 2011-03-09

    I guess your are not in the correct directory. So which board do you have? I
    guess the newer SR-MK2 (or the open source SPM controller). So please change
    to the subfolder modules-mk2-2.6.x (cd ~/SRanger/modules-mk2-2.6.x) and then
    do as stated above.

    The command make tries to process the Makefile in the current directory. As
    you are in the main directory of the SRanger project this will include code
    which is not relevant to the kernel modules but requires some gnome libaries.
    Therefore the compiler options are wrong to compile a kernel modul.

    Thorsten :-)

     
  • Anonymous - 2011-03-10

    Yes you are right, i changed and compiled again. But i got this error.Please
    help me out.

    i have used the following make file:

    obj-m := usb-sranger_mk2.o usb-sranger_mk23.o

    KDIR := /lib/modules/$(shell uname -r)/build

    PWD := $(shell pwd)

    default:

    $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

    iam using 64bit ubuntu 10.10 and not able to compile the kernel module. I have
    to use specifically 32bit or for which kernel exactly this kernel module
    works.

    make -C /lib/modules/2.6.38-rc1-latest-stable/build
    SUBDIRS=/home/lokesh/Documents/modules-mk2-2.6.x modules

    make: Entering directory `/usr/src/linux-2.6.37'

    CC /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.o

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:2: error: expected
    ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘SignalRanger’

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:4: error: stray ‘@’
    in program

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:6: error: expected
    ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘can’

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:8: error: expected
    ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘version’

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:12: error: expected
    ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘even’

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:17: error: expected
    identifier or ‘(’ before ‘if’

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:18: error: invalid
    digit "9" in octal constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:23: error: too many
    decimal points in number

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:25: error: invalid
    suffix "_08_13" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:25: error: too many
    decimal points in number

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:26: error: invalid
    suffix "_xxxxx" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:27: error: invalid
    suffix "_06_21" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:27: error: too many
    decimal points in number

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:37: error: invalid
    suffix "_08_08" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:37: error: too many
    decimal points in number

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:38: error: too many
    decimal points in number

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:39: error: invalid
    suffix "_09_09" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:40: error: invalid
    suffix "_12_23" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:41: error: invalid
    suffix "_12_19" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:43: error: invalid
    suffix "_02_12" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:46: error: invalid
    suffix "_11_05" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:48: error: invalid
    suffix "_09_04" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:49: error: invalid
    suffix "_08_21" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:50: error: invalid
    suffix "_05_29" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:51: error: invalid
    suffix "_05_24" on integer constant

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:52: error: invalid
    suffix "_05_01" on integer constant

    In file included from include/linux/kernel.h:12,

    from /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:57:

    /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include/stdarg.h:102: error: expected ‘=’,
    ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘va_list’

    In file included from include/linux/kernel.h:20,

    from /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:57:

    include/linux/printk.h:45: error: expected specifier-qualifier-list before
    ‘va_list’

    include/linux/printk.h:97: error: expected declaration specifiers or ‘...’
    before ‘va_list’

    In file included from /home/lokesh/Documents/modules-mk2-2.6.x/usb-
    sranger_mk2.c:57:

    include/linux/kernel.h:200: error: expected declaration specifiers or ‘...’
    before ‘va_list’

    include/linux/kernel.h:200: warning: conflicting types for built-in function
    ‘vsprintf’

    include/linux/kernel.h:204: error: expected declaration specifiers or ‘...’
    before ‘va_list’

    include/linux/kernel.h:204: warning: conflicting types for built-in function
    ‘vsnprintf’

    include/linux/kernel.h:208: error: expected declaration specifiers or ‘...’
    before ‘va_list’

    include/linux/kernel.h:212: error: expected declaration specifiers or ‘...’
    before ‘va_list’

    include/linux/kernel.h:216: error: expected declaration specifiers or ‘...’
    before ‘va_list’

    include/linux/kernel.h:216: warning: conflicting types for built-in function
    ‘vsscanf’

    include/linux/kernel.h:394: error: expected declaration specifiers or ‘...’
    before ‘va_list’

    include/linux/kernel.h:397: error: expected declaration specifiers or ‘...’
    before ‘va_list’

    In file included from include/linux/bitmap.h:8,

    from include/linux/cpumask.h:11,

    from /usr/src/linux-2.6.37/arch/x86/include/asm/paravirt.h:14,

    from /usr/src/linux-2.6.37/arch/x86/include/asm/irqflags.h:60,

    from include/linux/irqflags.h:15,

    from /usr/src/linux-2.6.37/arch/x86/include/asm/system.h:11,

    from /usr/src/linux-2.6.37/arch/x86/include/asm/processor.h:17,

    from /usr/src/linux-2.6.37/arch/x86/include/asm/thread_info.h:22,

    from include/linux/thread_info.h:56,

    from include/linux/preempt.h:9,

    from include/linux/spinlock.h:50,

    from include/linux/mmzone.h:7,

    from include/linux/gfp.h:4,

    from include/linux/slab.h:12,

    from /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:60:

    include/linux/string.h:128: error: expected declaration specifiers or ‘...’
    before ‘va_list’

    In file included from include/linux/slub_def.h:12,

    from include/linux/slab.h:166,

    from /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:60:

    include/linux/kobject.h:78: error: expected declaration specifiers or ‘...’
    before ‘va_list’

    In file included from include/linux/usb.h:18,

    from /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:64:

    include/linux/device.h:597: error: expected declaration specifiers or ‘...’
    before ‘va_list’

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:238: warning: type
    defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’

    /home/lokesh/Documents/modules-mk2-2.6.x/usb-sranger_mk2.c:238: warning:
    parameter names (without types) in function declaration

    make: *** Error 1

    make: *** Error 2

    make: Leaving directory `/usr/src/linux-2.6.37'

    make: *** Error 2

     
  • Percy Zahl

    Percy Zahl - 2011-03-15

    Your module path looks at least unusual. errors/warnings go back to your
    header files indication a problem/missconfiguration there.

    Make sure:

    a) the install kernel source OR kernel headers are matching the current kernel
    running are are configure properly (if kernel source), then point the SUBDIRS
    there.

    note: on ubuntu or debian all you need is to install "kernel-headers-xxx" xxx
    = match to you kernel, or default.

    b) make sure your gcc / cc is installed right and the gcc version also matched
    the active kernel!

    c) start over "CLEAN", "make clean" or fresh CVS checkout.

    so far all current 2.6.x linux kernels 32 and 64 bit are proven to work well.

    FYI: I can currently running

    2.6.32-28-preempt #55-Ubuntu SMP PREEMPT Tue Jan 11 00:11:58 UTC 2011 x86_64
    GNU/Linux

    on a quad x2 (hyper) = 8 core "Intel i7 CPU 860" and Gxsm make full use of it
    for certain math intense calculation!

     

Log in to post a comment.