LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 03-19-2011, 02:56 AM   #1
preetb123
LQ Newbie
 
Registered: Jan 2011
Posts: 28

Rep: Reputation: 0
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!
 
Old 03-20-2011, 11:59 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,093

Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
The way to sort this stuff is to grab the first essential error, and google it. In this case

pmem.c:441: error: conflicting types for ‘phys_mem_access_prot’

Which usually yields an answer, in this case
http://groups.google.com/group/andro...15276e200adc99
Quote:
You shouldn't be building pmem for x86. Its not needed, and i think there
are a few ARMisms in there that we haven't had a chance to clean it up.
Take it out of your config file (it's is not in the kernel.config in the
eee701.git repo).
 
Old 03-20-2011, 05:40 PM   #3
preetb123
LQ Newbie
 
Registered: Jan 2011
Posts: 28

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
The way to sort this stuff is to grab the first essential error, and google it. In this case

pmem.c:441: error: conflicting types for ‘phys_mem_access_prot’

Which usually yields an answer, in this case
http://groups.google.com/group/andro...15276e200adc99
yes i have deleted this file, also removed it from the makefile reference. and it worked.
thankyou.
 
  


Reply

Tags
android, crosscompile, kernel source


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error while compiling linux kernel source for android preetb123 Linux - Mobile 6 05-17-2013 08:06 PM
[SOLVED] "missing kernel .config file" error while compiling linux source code for android preetb123 Linux - Mobile 3 03-19-2011 07:46 AM
[SOLVED] jdk-5 error while building android source code preetb123 Linux - Mobile 2 03-16-2011 01:11 PM
I got some problems when i compiling the android source code hmczj Programming 2 05-04-2010 01:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 02:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration