compiling the omap kernel

48 views
Skip to first unread message

rubik...@googlemail.com

unread,
Apr 19, 2009, 5:30:38 PM4/19/09
to Beagle Board
I wanted to compile the omap kernel!

So i:

1. Cloned the "git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/
linux-omap-2.6.git linux-omap-2.6" git
2. cd in "linux-omap-2.6"
3. make CROSS_COMPILE=arm-none-eabi- distclean
4. make CROSS_COMPILE=arm-none-eabi- omap3_beagle_defconfig
5. make CROSS_COMPILE=arm-none-eabi- uImage

When i start compiling it show me:

michi@michi-laptop:~/Beagle/kernel.org/linux-omap-2.6$ make
CROSS_COMPILE=arm-none-eabi- uImage
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
Generating include/asm-arm/mach-types.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not
implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
<stdin>:1421:2: warning: #warning syscall preadv not implemented
<stdin>:1425:2: warning: #warning syscall pwritev not implemented
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
HOSTCC scripts/genksyms/lex.o
scripts/genksyms/lex.c: In Funktion »yylex1«:
scripts/genksyms/lex.l:97: Warnung: Der Rückgabewert von »fwrite«, der
mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In Funktion »get_markers«:
scripts/mod/modpost.c:1545: Warnung: Der Rückgabewert von »asprintf«,
der mit dem Attribut warn_unused_result deklariert wurde, wird
ignoriert
scripts/mod/modpost.c: In Funktion »add_marker«:
scripts/mod/modpost.c:1965: Warnung: Der Rückgabewert von »asprintf«,
der mit dem Attribut warn_unused_result deklariert wurde, wird
ignoriert
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In Funktion »read_symbol«:
scripts/kallsyms.c:74: Warnung: Der Rückgabewert von »fgets«, der mit
dem Attribut warn_unused_result deklariert wurde, wird ignoriert
HOSTCC scripts/conmakehash
CC init/main.o
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
HOSTCC usr/gen_init_cpio
usr/gen_init_cpio.c: In Funktion »cpio_mkfile«:
usr/gen_init_cpio.c:357: Warnung: Der Rückgabewert von »fwrite«, der
mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/kernel/compat.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/kernel/irq.o
CC arch/arm/kernel/process.o
CC arch/arm/kernel/ptrace.o
CC arch/arm/kernel/setup.o
CC arch/arm/kernel/signal.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/kernel/stacktrace.o
CC arch/arm/kernel/time.o
CC arch/arm/kernel/traps.o
CC arch/arm/kernel/armksyms.o
CC arch/arm/kernel/module.o
CC arch/arm/kernel/sys_oabi-compat.o
arch/arm/kernel/sys_oabi-compat.c: In function 'sys_oabi_epoll_wait':
arch/arm/kernel/sys_oabi-compat.c:288: error: implicit declaration of
function 'kmalloc'
arch/arm/kernel/sys_oabi-compat.c:288: error: 'GFP_KERNEL' undeclared
(first use in this function)
arch/arm/kernel/sys_oabi-compat.c:288: error: (Each undeclared
identifier is reported only once
arch/arm/kernel/sys_oabi-compat.c:288: error: for each function it
appears in.)
arch/arm/kernel/sys_oabi-compat.c:288: warning: assignment makes
pointer from integer without a cast
arch/arm/kernel/sys_oabi-compat.c:301: error: implicit declaration of
function 'kfree'
arch/arm/kernel/sys_oabi-compat.c: In function 'sys_oabi_semtimedop':
arch/arm/kernel/sys_oabi-compat.c:324: error: 'GFP_KERNEL' undeclared
(first use in this function)
arch/arm/kernel/sys_oabi-compat.c:324: warning: assignment makes
pointer from integer without a cast
make[1]: *** [arch/arm/kernel/sys_oabi-compat.o] Fehler 1
make: *** [arch/arm/kernel] Fehler 2
michi@michi-laptop:~/Beagle/kernel.org/linux-omap-2.6$

And stopped compile!

What the problem?

p.s i use the Sourcery G++ Lite 2008q3-66 toolchain

Michael




Frans Meulenbroeks

unread,
Apr 20, 2009, 2:30:09 AM4/20/09
to Beagle Board
Better use OpenEmbedded and gcc ...

Guylhem Aznar

unread,
Apr 20, 2009, 12:51:25 PM4/20/09
to beagl...@googlegroups.com
On Mon, Apr 20, 2009 at 02:30, Frans Meulenbroeks
<fransmeu...@gmail.com> wrote:
> Better use OpenEmbedded and gcc ...

Better understand and explain the problem !

eelcor

unread,
Apr 20, 2009, 2:30:09 PM4/20/09
to Beagle Board
Well,

I think you stumbled upon the same problem I found. As Koen said to me
is that 2.6.30-rc2 pretty much uncharted territory. I've read multiple
topics about the compat oabi error. You could try with changing the
oabi compat flag in the makefile and probably the compiler will
compile, however I am not sure what will be broken. As I read the
posts on the internet this "error" somehow occured during a commit.

Kind regards,

Eelco

On 20 apr, 18:51, Guylhem Aznar <beaglebo...@guylhem.net> wrote:
> On Mon, Apr 20, 2009 at 02:30, Frans Meulenbroeks
>

eelcor

unread,
Apr 20, 2009, 3:59:38 PM4/20/09
to Beagle Board
You should do a git pull, it now compiles, I am not sure whether it
will work, but interesting.

I see that Sakoman has a very good git repository.

regards, Eelco
> > Better understand and explain the problem !- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
Reply all
Reply to author
Forward
0 new messages