error with “pmem.c” compiling linux source code for android
This is a discussion on error with “pmem.c” compiling linux source code for android within the Droid Development forums, part of the Droid Hacking category; I am compiling linux source code for android emulator. When i execute make command(for building and cross-compiling the linux source) i get the following error ...
-
error with “pmem.c” compiling linux source code for android
I am compiling linux source code for android emulator. When i execute make command(for building and cross-compiling the linux source) i get the following error "pmem.c" file.
root@ubuntu:~# cd common
root@ubuntu:~/common# make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC drivers/misc/pmem.o
drivers/misc/pmem.c:441: error: conflicting types for ‘phys_mem_access_prot’
/home/preetam/common/arch/x86/include/asm/pgtable.h:383: note: previous declaration of ‘phys_mem_access_prot’ was here
drivers/misc/pmem.c: In function ‘flush_pmem_file’:
drivers/misc/pmem.c:805: error: implicit declaration of function ‘dmac_flush_range’
drivers/misc/pmem.c: In function ‘pmem_setup’:
drivers/misc/pmem.c:1265: error: implicit declaration of function ‘ioremap_cached’
drivers/misc/pmem.c:1266: warning: assignment makes pointer from integer without a cast
make[2]: *** [drivers/misc/pmem.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
root@ubuntu:~/common#
how to resolve this error. It seems that there may some problems in the "pmem.c" file and i'll have to choose different git repository. but that would be a very complex thing, as now i have already done most of the things till here. I might have to see correct version of this file. please someone tell what should i do?
how to solve this errors.
please help..thankyou!
-
-
You didn't setup your make correctly, you need to Specify what board to make for even if its just the emulator.
Sent from my Droid using Tapatalk
-

Originally Posted by
jeffv2
You didn't setup your make correctly, you need to Specify what board to make for even if its just the emulator.
Sent from my Droid using Tapatalk
actually pmem.c file has some errors, so i deleted the file and removed it from the makefile reference... and i got it.
thank you very much.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By preetb123 in forum Droid Development
Replies: 2
Last Post: 03-19-2011, 01:35 AM
-
By preetb123 in forum Droid Development
Replies: 0
Last Post: 03-17-2011, 08:33 PM
-
By preetb123 in forum Android Roms
Replies: 0
Last Post: 03-16-2011, 09:48 AM
-
By sarreq in forum Droid Hacks
Replies: 7
Last Post: 01-22-2011, 06:06 PM
-
By JohnDroid in forum Droid News
Replies: 5
Last Post: 11-30-2010, 07:32 AM
Search tags for this page
android pmem
,
config android pmem
,
conflicting types for phys mem access prot
,
drivers/misc/pmem.c:441: error: conflicting types for phys m
,
drivers/misc/pmem.c:441: error: conflicting types for ?phy
,
drivers/misc/pmem.c:804: error: implicit declaration of func
,
drivers/misc/pmem.c:805: error: implicit declaration of func
,
error: conflicting types for phys mem access prot
,
error: conflicting types for ?phys mem access prot?
,
error: implicit declaration of function ?dmac flush range?
,
error: implicit declaration of function ?ioremap cached?
,
make[2]: *** [drivers/misc/pmem.o] error 1
,
pmem android
,
pmem.c
,
pmem.c:441: error: conflicting types for ?phys mem access
Click on a term to search our site for related topics.
Tags for this Thread