2013-06-18 08:46:35

by Suki Buryani

[permalink] [raw]
Subject: Need to Test lld3 examples



hi,

i am almost fresh in embedded Linux, i
want to test LDD3 examples, for that i install fedora 4 in my VM, i am
unable to compile the kernel, i have set configs using make menuconfig,
and then try to make compile but it gives me? errors like

[root@localhost 2.6.11-1.1369_FC4-i686]# make
? CHK???? include/linux/version.h
scripts/kconfig/conf -s arch/i386/Kconfig
#
# using defaults found in .config
#
? SPLIT?? include/linux/autoconf.h -> include/config/*
? CHK???? include/asm-i386/asm_offsets.h
? CC????? scripts/mod/empty.o
? MKELF?? scripts/mod/elfconfig.h
? HOSTCC? scripts/mod/file2alias.o
? HOSTCC? scripts/mod/modpost.o
? HOSTCC? scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function 'parse_file':
scripts/mod/sumversion.c:260: warning: pointer targets in passing argument 1 of 'grab_file' differ in signedness
scripts/mod/sumversion.c:277: warning: pointer targets in passing argument 1 of 'parse_string' differ in signedness
scripts/mod/sumversion.c:283: warning: pointer targets in passing argument 1 of 'parse_comment' differ in signedness
scripts/mod/sumversion.c: In function 'parse_source_files':
scripts/mod/sumversion.c:335: warning: pointer targets in initialization differ in signedness
scripts/mod/sumversion.c:344: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:357: warning: pointer targets in passing argument 1 of 'parse_file' differ in signedness
scripts/mod/sumversion.c: In function 'strip_rcs_crap':
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:485: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:486: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c: In function 'maybe_frob_rcs_version':
scripts/mod/sumversion.c:496: warning: pointer targets in passing argument 1 of 'strip_rcs_crap' differ in signedness
? HOSTLD? scripts/mod/modpost
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'.? Stop.
make: *** [init] Error 2


could somebody inform me i could be missing, or where i can test LDD3 examples with zero defects

Thanks


2013-06-20 04:17:42

by Rob Landley

[permalink] [raw]
Subject: Re: Need to Test lld3 examples

On 06/18/2013 03:39:54 AM, Suki Buryani wrote:
>
>
> hi,
>
> i am almost fresh in embedded Linux, i

http://kernelnewbies.org is the community's "where do I start" website.
They have mentoring programs that are likely to provide more attention
than you'll get here.

> want to test LDD3 examples, for that i install fedora 4 in my VM, i am
> unable to compile the kernel, i have set configs using make
> menuconfig,
> and then try to make compile but it gives me? errors like
>
> [root@localhost 2.6.11-1.1369_FC4-i686]# make

2.6.11. Huh. Quarterly releases, 3.0 would have been 2.6.40, we're now
up to 3.10, so 39 releases ago...

That's almost a decade old. No idea, it could be anything...

> ? CHK???? include/linux/version.h
> scripts/kconfig/conf -s arch/i386/Kconfig

You didn't say which kernel version you were trying to build. If it's
2.6.11, most of us aren't going to remember the details it was so long
ago.

> #
> # using defaults found in .config
> #
> ? SPLIT?? include/linux/autoconf.h -> include/config/*
> ? CHK???? include/asm-i386/asm_offsets.h
> ? CC????? scripts/mod/empty.o
> ? MKELF?? scripts/mod/elfconfig.h
...
> scripts/mod/sumversion.c: In function 'maybe_frob_rcs_version':
> scripts/mod/sumversion.c:496: warning: pointer targets in passing
> argument 1 of 'strip_rcs_crap' differ in signedness
> ? HOSTLD? scripts/mod/modpost
> make[1]: *** No rule to make target `init/main.o', needed by
> `init/built-in.o'.? Stop.
> make: *** [init] Error 2

Sounds like your version of "make" is too old? The file
Documentation/Changes in the kernel source lists the minimum tool
versions, and I vaguely recall there was a make bug requiring a version
upgrade in the past 10 years...

Yeah, 4 years ago:

commit 2185a5ecd98d2cebc6a29b07b1ea4f7334c2ccc3
Author: Adam Lackorzynski <[email protected]>
Date: Sun Jun 14 22:38:59 2009 +0200

documentation: make version fix

The Makefiles in the build directories use the internal make
variable
MAKEFILE_LIST which is available from make 3.80 only. (The patch
would be
valid back to 2.6.25)

Signed-off-by: Adam Lackorzynski <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>

Possibly the version of make in the 10 year old distro is too old?

Rob-