Compilation issue

809 views
Skip to first unread message

madhavan kumar

unread,
Dec 4, 2014, 1:14:54 AM12/4/14
to inside...@googlegroups.com
hi guys,
      i tried to run make command on sysplay network drivers code samples with my linux kernel versioned 3.17.4. Got a compilation error,
fatal error: asm/bitsperlong.h: No such file or directory
this error i fixed by manually copying bitsperlong.h from arm-generic to arm folder, i.e. from /usr/src/linux/include/asm-generic to #{LINUX_SRC}/include/asm
but then, this error gets repeated for other header files as,

fatal error: asm/preempt.h: No such file or directory
fatal error: asm/current.h: No such file or directory
fatal error: asm/errno.h: No such file or directory

am i missing any makefile configuration (or) is linux kernel 3.17+ not the right version to go with sysplay examples?

thanks,
saravana

Anil Kumar Pugalia

unread,
Dec 15, 2014, 2:28:09 AM12/15/14
to inside...@googlegroups.com
Hi Saravana,
    You can use kernel version 3.17 with SysPlay examples.

    The problem seems to me is that your kernel is not configured. Try make oldconfig and make modules_prepare in the kernel folder, before trying to build the samples code.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)

madhavan kumar said the following on Thursday 04 December 2014 11:44 AM:
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

madhavan kumar

unread,
Dec 17, 2014, 6:21:47 PM12/17/14
to inside...@googlegroups.com
hi Anil,
'make oldconfig throws
  make: *** No rule to make target `oldconfig'.  Stop.
'make modules_prepare complains
  make: *** No rule to make target `modules_prepare'.  Stop.

and when i go & search for these targets in my make_file, i don't see them. and i am sure, i didn't make much of a change in my KBuild makefile.


note: makefile from Sysplay/ USB & Network Drivers Workshop downloads attached.

Makefile
module.mk

Anil Kumar Pugalia

unread,
Dec 17, 2014, 11:54:06 PM12/17/14
to inside...@googlegroups.com
Hi Saravana,
    Please type the commands in the kernel source folder, not in the SysPlay code.


Regards
Anil
Passion: http://sysplay.in (Playing with Systems)

madhavan kumar said the following on Thursday 18 December 2014 04:51 AM:

madhavan kumar

unread,
Dec 31, 2014, 11:39:33 AM12/31/14
to inside...@googlegroups.com
hi anil,
     i corrected my previous error but it is failing @,
/home/sk/code/kernmod/ws/bd,nd_templates/PCIDriver/expt_drv.c:301:1: fatal error: opening dependency file /home/sk/code/kernmod/ws/bd_nd_templates/PCIDriver/.expt_drv.o.d: No such file or directory
my cmd-------------- make (inside sysplay network drivers folder)
what are the .o.d dependency files meant for???
thanks
saravana

Anil Kumar Pugalia

unread,
Jan 1, 2015, 1:37:48 AM1/1/15
to inside...@googlegroups.com
Possibly change the owner & permissions of the driver directory, correctly.


Regards
Anil
Passion: http://sysplay.in (Playing with Systems)

madhavan kumar said the following on Wednesday 31 December 2014 10:09 PM:
Reply all
Reply to author
Forward
0 new messages