[#5597] Build mmap_test fails

Document created by Aaronwu Employee on Sep 5, 2013
Version 1Show Document
  • View in full screen mode

[#5597] Build mmap_test fails

Submitted By: Vivi Li

Open Date

2009-10-12 03:00:27     Close Date

2009-10-12 22:29:49

Priority:

Medium     Assignee:

Graf Yang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-09r1-rc9

App binary format:

N/A     

Summary: Build mmap_test fails

Details:

 

Build mmap_test fails at bounds.h.

 

--

test@uboot34-bf537stamp:~/work/cruise/checkouts/uclinux-dist> make user/blkfin-test/mmap_test_only

make[1]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user'

touch blkfin-test/mmap_test/.sgbuilt_user && make -C blkfin-test/mmap_test -j4

make[2]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test'

CFLAGS="" CPPFLAGS="" LDFLAGS="" make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -C /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x SUBDIRS=$PWD modules

make[3]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

make[3]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.

  CC [M]  /home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.o

In file included from include/linux/gfp.h:4,

                 from include/linux/kmod.h:22,

                 from include/linux/module.h:13,

                 from /home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:24:

include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory

include/linux/mmzone.h:251:5: warning: "MAX_NR_ZONES" is not defined

In file included from include/linux/gfp.h:4,

                 from include/linux/kmod.h:22,

                 from include/linux/module.h:13,

                 from /home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:24:

include/linux/mmzone.h:288: error: ‘MAX_NR_ZONES’ undeclared here (not in a function)

In file included from /home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:33:

include/linux/mm.h:444:63: warning: "NR_PAGEFLAGS" is not defined

include/linux/mm.h:492:62: warning: "NR_PAGEFLAGS" is not defined

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c: In function ‘simple_remap_mmap’:

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:96: error: ‘physical_mem_end’ undeclared (first use in this function)

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:96: error: (Each undeclared identifier is reported only once

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:96: error: for each function it appears in.)

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:96: error: ‘_ramend’ undeclared (first use in this function)

make[4]: *** [/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.o] Error 1

make[3]: *** [_module_/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test] Error 2

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

make[2]: *** [module] Error 2

make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test'

make[1]: *** [blkfin-test/mmap_test_only] Error 2

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'

make: *** [user/blkfin-test/mmap_test_only] Error 2

test@uboot34-bf537stamp:~/work/cruise/checkouts/uclinux-dist>

--

 

Follow-ups

 

--- Mike Frysinger                                           2009-10-12 09:13:16

you need to check your test server again because linux/bounds.h is in the kernel

and has been for a long time

 

--- Vivi Li                                                  2009-10-12 22:16:54

Yes, I can find bounds.h, so the error log is as bellow:

--

test@uboot34-bf537stamp:~/work/cruise/checkouts/uclinux-dist> make

user/blkfin-test/mmap_test_only

make[1]: Entering directory

`/home/test/work/cruise/checkouts/uclinux-dist/user'

touch blkfin-test/mmap_test/.sgbuilt_user && make -C

blkfin-test/mmap_test -j4

make[2]: Entering directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test'

CFLAGS="" CPPFLAGS="" LDFLAGS="" make

ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -C

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x SUBDIRS=$PWD modules

make[3]: Entering directory

`/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

make[3]: warning: jobserver unavailable: using -j1.  Add `+' to parent make

rule.

  CC [M]

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.o

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:

In function ‘simple_remap_mmap’:

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:96:

error: ‘physical_mem_end’ undeclared (first use in this function)

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:96:

error: (Each undeclared identifier is reported only once

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:96:

error: for each function it appears in.)

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.c:96:

error: ‘_ramend’ undeclared (first use in this function)

make[4]: ***

[/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test/simple.o]

Error 1

make[3]: ***

[_module_/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test]

Error 2

make[3]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x'

make[2]: *** [module] Error 2

make[2]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/mmap_test'

make[1]: *** [blkfin-test/mmap_test_only] Error 2

make[1]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user'

make: *** [user/blkfin-test/mmap_test_only] Error 2

test@uboot34-bf537stamp:~/work/cruise/checkouts/uclinux-dist>

--

 

--- Mike Frysinger                                           2009-10-12 22:22:58

i fixed that error already by including asm/sections.h

 

--- Vivi Li                                                  2009-10-12 22:29:49

After update the kernel, it can build now.

So close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes