kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* make error
@ 2012-11-01 12:18 Gregg Douglas
       [not found] ` <CAP0ktjLiv=2U2oja_2vk1r9Gof_xL+n5Vs0diigsPOMxWHyvdw@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Gregg Douglas @ 2012-11-01 12:18 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I have always wanted to contribute, but I am not a coder, I am a Linux
Admin, so I know some bash, perl and php. I came across the following video
: http://www.youtube.com/watch?v=LLBrBBImJt4&feature=related

So I decided even if I clean code it would hopefully make some
contribution. I followed the video and came to the following file that
needed some correction: drivers/staging/bcm/InterfaceDld.c. "checkpatch.pl"
gave 2 errors, both ERROR: "(foo*)" should be "(foo *)", so I fixed the
errors.

I did a "git diff" and it showed the corrections, from the video the next
step is to build the file, I believe the command must be "make
M=drivers/staging/bcm/", but I get the following errors:

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are
missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


  WARNING: Symbol version dump /home/douglagm/git/linux-2.6/Module.symvers
           is missing; modules will have no dependencies and modversions.

  LD      drivers/staging/bcm//built-in.o
  Building modules, stage 2.
/home/douglagm/git/linux-2.6/scripts/Makefile.modpost:42:
include/config/auto.conf: No such file or directory
make[1]: *** No rule to make target `include/config/auto.conf'.  Stop.
make: *** [modules] Error 2

The error says " Run 'make oldconfig && make prepare' on kernel src to fix
it", but I am a bit nervous to try this, I would please like some guidance
before continuing.

I think the issue is related to my OS's kernel headers, from the kernel
README I am not sure what I need to do ?

I did a bit of searching the net and did not really find some answers, well
that made sense to me. kernelnewbies.org, not sure what is going on there,
get a lot of "*This page does not exist yet. You can create a new empty
page, or use one of the page templates. Before creating the page, please
check if a similar page already exists."*

Regards
Gregg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121101/3eb6264f/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* make error
       [not found] ` <CAP0ktjLiv=2U2oja_2vk1r9Gof_xL+n5Vs0diigsPOMxWHyvdw@mail.gmail.com>
@ 2012-11-01 13:13   ` Gregg Douglas
  2012-11-01 14:40     ` Kumar amit mehta
  0 siblings, 1 reply; 3+ messages in thread
From: Gregg Douglas @ 2012-11-01 13:13 UTC (permalink / raw)
  To: kernelnewbies

Thanks Anmol, first installed the following extra packages
"linux-kernel-headers kernel-syms module-init-tools" then ran make
oldconfig && make prepare, I get further:
 make M=drivers/staging/bcm/

  WARNING: Symbol version dump /home/douglagm/git/linux-2.6/Module.symvers
           is missing; modules will have no dependencies and modversions.

  LD [M]  drivers/staging/bcm//bcm_wimax.o
/bin/sh: scripts/mod/modpost: No such file or directory
make[1]: *** [drivers/staging/bcm//bcm_wimax.o] Error 1
make: *** [_module_drivers/staging/bcm/] Error 2

I did a git clone git://
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
then git branch douglagm - I am working on this.


On Thu, Nov 1, 2012 at 2:32 PM, Anmol Sarma <unmole.in@gmail.com> wrote:

> The commands simply prepare the sources for compilation. Don't worry, it
> will not modify your system in any way.
>
> P.S. Make sure you're submitting patches against the linux-next tree.
>
> On Thu, Nov 1, 2012 at 5:48 PM, Gregg Douglas <douglagm@gmail.com> wrote:
>
>> Hi,
>>
>> I have always wanted to contribute, but I am not a coder, I am a Linux
>> Admin, so I know some bash, perl and php. I came across the following video
>> : http://www.youtube.com/watch?v=LLBrBBImJt4&feature=related
>>
>> So I decided even if I clean code it would hopefully make some
>> contribution. I followed the video and came to the following file that
>> needed some correction: drivers/staging/bcm/InterfaceDld.c. "
>> checkpatch.pl" gave 2 errors, both ERROR: "(foo*)" should be "(foo *)",
>> so I fixed the errors.
>>
>> I did a "git diff" and it showed the corrections, from the video the next
>> step is to build the file, I believe the command must be "make
>> M=drivers/staging/bcm/", but I get the following errors:
>>
>>   ERROR: Kernel configuration is invalid.
>>          include/generated/autoconf.h or include/config/auto.conf are
>> missing.
>>          Run 'make oldconfig && make prepare' on kernel src to fix it.
>>
>>
>>   WARNING: Symbol version dump /home/douglagm/git/linux-2.6/Module.symvers
>>            is missing; modules will have no dependencies and modversions.
>>
>>   LD      drivers/staging/bcm//built-in.o
>>   Building modules, stage 2.
>> /home/douglagm/git/linux-2.6/scripts/Makefile.modpost:42:
>> include/config/auto.conf: No such file or directory
>> make[1]: *** No rule to make target `include/config/auto.conf'.  Stop.
>> make: *** [modules] Error 2
>>
>> The error says " Run 'make oldconfig && make prepare' on kernel src to
>> fix it", but I am a bit nervous to try this, I would please like some
>> guidance before continuing.
>>
>> I think the issue is related to my OS's kernel headers, from the kernel
>> README I am not sure what I need to do ?
>>
>> I did a bit of searching the net and did not really find some answers,
>> well that made sense to me. kernelnewbies.org, not sure what is going on
>> there, get a lot of "*This page does not exist yet. You can create a new
>> empty page, or use one of the page templates. Before creating the page,
>> please check if a similar page already exists."*
>>
>> Regards
>> Gregg
>>
>>
>>
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>
>
> --
> Anmol Sarma
> Depatment of Mechatronics
> Vignan University
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121101/6d051b4f/attachment-0001.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* make error
  2012-11-01 13:13   ` Gregg Douglas
@ 2012-11-01 14:40     ` Kumar amit mehta
  0 siblings, 0 replies; 3+ messages in thread
From: Kumar amit mehta @ 2012-11-01 14:40 UTC (permalink / raw)
  To: kernelnewbies

On Thu, Nov 01, 2012 at 03:13:04PM +0200, Gregg Douglas wrote:
> Thanks Anmol, first installed the following extra packages
> "linux-kernel-headers kernel-syms module-init-tools" then ran make
> oldconfig && make prepare, I get further:
>  make M=drivers/staging/bcm/
> 
>   WARNING: Symbol version dump /home/douglagm/git/linux-2.6/Module.symvers
>            is missing; modules will have no dependencies and modversions.
> 
>   LD [M]  drivers/staging/bcm//bcm_wimax.o
> /bin/sh: scripts/mod/modpost: No such file or directory
> make[1]: *** [drivers/staging/bcm//bcm_wimax.o] Error 1
> make: *** [_module_drivers/staging/bcm/] Error 2
> 
> I did a git clone git://
> git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> then git branch douglagm - I am working on this.
> 
You should be cloing linux-next[1].

You are seing the above warning message because you have booted from
kernel-Version-X and you are building modules for kernel-Version-Y. To get rid
of this, after cloning the linux-next tree, build the kernel and boot from it.
Building and booting from your fresh kernel is sort of straight forward process
if you are not much concerned about the final kernel image size, etc. Following 
steps on my ubuntu box works fine, might work for you as well.
To build the kernel, in just few steps:

1: # sudo apt-get install build-essential
2: # make oldconfig
3: # make all 
4: # make modules_install install
5: # update-grub
6: # shutdown -r -y now

If you have system has multiple CPUs(see: cat /proc/cpuinfo), you can reduce the
build time by replacing the command in step 3 above as 
3: # make -jX all 
Where X = Number of CPUs

You also need to change your email-client to something else as gmail e-mail
client will not work for sending patches, refer email-clients[2] under
Documentation. I use mutt and this works quite well with gmail smtp server. You
can search for a mutt configuration file over world wide web to work with gmail.

You can also use git send-email command to send patches, but before that you
need to instal git-email add-on. On ubuntu box:
# sudo apt-get install git-email

Then setup smtp configuration
# git config --global sendemail.smtpserver smtp.gmail.com
# git config --global sendemail.smtpserverport 587
# git config --global sendemail.smtpencryption tls
# git config --global sendemail.smtpuser <YOUR_GMAIL_ID@gmail.com>

-Amit

[1] git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
[2] http://lxr.linux.no/#linux+v3.6.5/Documentation/email-clients.txt

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-01 14:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-01 12:18 make error Gregg Douglas
     [not found] ` <CAP0ktjLiv=2U2oja_2vk1r9Gof_xL+n5Vs0diigsPOMxWHyvdw@mail.gmail.com>
2012-11-01 13:13   ` Gregg Douglas
2012-11-01 14:40     ` Kumar amit mehta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).