kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: pebolle@tiscali.nl (Paul Bolle)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Error in compiling Linux kernel after creating hello world system call
Date: Sat, 29 Nov 2014 14:27:47 +0100	[thread overview]
Message-ID: <1417267667.7353.3.camel@x220> (raw)
In-Reply-To: <CAJO0VXoM7Cr2kF3UM_PcNL7We9_hLr7_5xwLUkVukBhVXRtYvQ@mail.gmail.com>

On Sat, 2014-11-29 at 18:43 +0530, Jackson Isaac wrote:
> I am trying to write hello world system call in linux but I am
> encountering the following error when I run 'sudo make':

Why "sudo"? That can't be right!

>   ...
>   AR      arch/x86/lib/lib.a
>   LINK    vmlinux
>   LD      vmlinux.o
> ld: cannot find hello: File format not recognized
> make: *** [vmlinux] Error 1
> 
> I have Linux 3.15.6 in my home directory and have created a hello
> folder in it. I also made changes to makefile, syscalls.h, and
> syscall_64.tbl
> 
> in make file I replaced

Which Makefile? Don't make us grep the tree, please.

> core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/
> with
> core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/ hello

You said hello folder, so I'm _guessing_ you need to add
                                                         hello/

Note the slash.

> Can anyone point out where I am going wrong. I have made the changes
> first and then I am trying 'sudo make'.
> 
> I tried making some minor modifications and running it again 3 4 times
> but getting the same error and also it takes 2-3 hours of time.

Hope this helps,


Paul Bolle

  reply	other threads:[~2014-11-29 13:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-29 13:13 Error in compiling Linux kernel after creating hello world system call Jackson Isaac
2014-11-29 13:27 ` Paul Bolle [this message]
2014-11-29 21:30 ` Valdis.Kletnieks at vt.edu

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=1417267667.7353.3.camel@x220 \
    --to=pebolle@tiscali.nl \
    --cc=kernelnewbies@lists.kernelnewbies.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 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).