* Compilation Error
@ 2005-10-11 19:51 Jeff Stevens
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Stevens @ 2005-10-11 19:51 UTC (permalink / raw)
To: linuxppc-embedded
I am trying to cross compile one of our drivers at
work to run on both an AMCC 440SP platform (Luan2),
and an MPC8540 platform (MPC8540ADS). I am using the
ELDK compilers (ppc_4xx-gcc and ppc_85xx-gcc), and the
kernel.org 2.6.13 source. I was getting warnings
about implicit declarations for both dma_cache_wback
and dma_cache_inv. I went ahead and replaced them
with clean_dcache_range and invalidate_dcache_range
(since that is what they are #defined to), and
included cache.h. So then I was able to get through
the compilation without the implicit declaration
warnings, but now when it does MODPOST, I get warnings
about clean_dcache_range and invalidate_dcache_range
being undefined! This driver was originally written
for x86 platforms where dma_cache_wback and
dma_cache_inv both are #defined to inline funtions
within io.h. Has anyone else seen this? I'm sure
it's most likely an include issue, but I'm not sure
what else to include. I have tried dma-mapping.h and
cache.h? Any help would be greatly appreciated.
Also, if this is the wrong place for this post, what
is the correct place for this question?
Thanks,
Jeff Stevens
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Compilation Error
@ 2005-12-23 11:53 Prabhat_Singh
0 siblings, 0 replies; 3+ messages in thread
From: Prabhat_Singh @ 2005-12-23 11:53 UTC (permalink / raw)
To: linuxppc-embedded; +Cc: Prabhat_Singh
[-- Attachment #1: Type: text/plain, Size: 3091 bytes --]
Hi all,
I am building linux-2.4.32 kernel using ELDK tool for
MPC8248(MPC8272 family) based target board. After configuring kernel as
follow:
1)Make xconfig ARCH=ppc
Platform support:MPC8260 CPM support -y
MPC8272 family Support -y
Machine type : ADS8272
And after saving configuration ..
2)Make dep ARCH=ppc
3)Make bzImage ARCH=ppc
Now I am getting error like this..............
************************************************************************
**************************************
m /home/sibi/vpnporting/linux-2.4.32/include/linux/blk.h:4,
from m8260_setup.c:31:
/home/sibi/vpnporting/linux-2.4.32/include/asm/mpc8260.h:32:1: warning:
"PCI_DRAM_OFFSET" redefined
In file included from
/home/sibi/vpnporting/linux-2.4.32/include/asm/mpc8260.h:24,
from
/home/sibi/vpnporting/linux-2.4.32/include/asm/io.h:31,
from
/home/sibi/vpnporting/linux-2.4.32/include/linux/blkdev.h:11,
from
/home/sibi/vpnporting/linux-2.4.32/include/linux/blk.h:4,
from m8260_setup.c:31:
/home/sibi/vpnporting/linux-2.4.32/arch/ppc/platforms/pq2ads.h:85:1:
warning: this is the location of the previous
definitionm8260_setup.c:68: warning: `abort' was declared `extern' and
later `static'
m8260_setup.c: In function `abort':
m8260_setup.c:70: error: conflicting types for `xmon'
/home/sibi/vpnporting/linux-2.4.32/include/asm/system.h:49: error:
previous declaration of `xmon'
m8260_setup.c:70: warning: extern declaration of `xmon' doesn't match
global one
m8260_setup.c: In function `m8260_restart':
m8260_setup.c:129: warning: passing arg 1 of `m8260_gorom' makes pointer
from integer without a cast
m8260_setup.c: In function `m8260_show_percpuinfo':
m8260_setup.c:157: warning: int format, long unsigned int arg (arg 3)
m8260_setup.c:157: warning: int format, long unsigned int arg (arg 4)
m8260_setup.c:157: warning: int format, long unsigned int arg (arg 5)
m8260_setup.c: At top level:
m8260_setup.c:68: warning: `abort' defined but not used
make[1]: *** [m8260_setup.o] Error 1
make[1]: Leaving directory
`/home/sibi/vpnporting/linux-2.4.32/arch/ppc/kernel'
make: *** [_dir_arch/ppc/kernel] Error 2
If anyone encountered this type of problem please through light on this.
Thanks in advance
Thanks & Regards
Prabhat Singh
SE
Satyam Computer Services Ltd.
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
[-- Attachment #2: Type: text/html, Size: 12025 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Compilation error
@ 2005-07-25 7:16 Susheel Raj
0 siblings, 0 replies; 3+ messages in thread
From: Susheel Raj @ 2005-07-25 7:16 UTC (permalink / raw)
To: David Wolfe; +Cc: linuxppc-embedded
Hi David,
I ams til trying to make Ethernet work :-(
Last time i compiled the kernel without including
some files but now included everything in Bestcomm
directory.
I am getting the following error which I could figure
out what? could you help me ...
ppc_82xx-ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000
-Bstatic arch/ppc/kernel/head.o
arch/ppc/kernel/idle_6xx.o init/main.o init/version.o
init/do_mounts.o \
--start-group \
arch/ppc/kernel/kernel.o
arch/ppc/platforms/platform.o
arch/ppc/mm/mm.oarch/ppc/lib/lib.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
drivers/char/char.o drivers/block/block.o
drivers/misc/misc.o drivers/net/net.o
drivers/ide/idedriver.o drivers/scsi/scsidrv.o
drivers/cdrom/driver.o drivers/sound/sounddrivers.o
drivers/pci/driver.o drivers/mtd/mtdlink.o
drivers/macintosh/macintosh.o drivers/video/video.o
drivers/usb/usbdrv.o drivers/media/media.o
arch/ppc/mgt_io/mgt_io.o drivers/mitron/mitron.o \
net/network.o \
/home/nuguru/linux_2_4_21_5200/lib/lib.a \
--end-group \
-o vmlinux
arch/ppc/mgt_io/mgt_io.o: In function
`mgt_sdma_fec_rx_task_setup':
arch/ppc/mgt_io/mgt_io.o(.text+0x3934): undefined
reference to `TaskSetup_TASK_FEC_RX'
arch/ppc/mgt_io/mgt_io.o(.text+0x3934): relocation
truncated to fit: R_PPC_REL24 TaskSetup_TASK_FEC_RX
arch/ppc/mgt_io/mgt_io.o: In function
`mgt_sdma_fec_tx_task_setup':
arch/ppc/mgt_io/mgt_io.o(.text+0x39cc): undefined
reference to `TaskSetup_TASK_FEC_TX'
arch/ppc/mgt_io/mgt_io.o(.text+0x39cc): relocation
truncated to fit: R_PPC_REL24 TaskSetup_TASK_FEC_TX
make: *** [vmlinux] Error 1
nuguru@SW-server:~/linux_2_4_21_5200$
As you know mgt_io is nothing but 5xxx_io for you and
the rest is same. It complains while it is linking
everything. I dint find anything like
"askSetup_TASK_FEC_RX" used in
mgt_sdma_fec_rx_task_setup() -->
arch/ppc/mgt_io/sdma.c.
What could be wrong here????
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-23 12:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-11 19:51 Compilation Error Jeff Stevens
-- strict thread matches above, loose matches on Subject: below --
2005-12-23 11:53 Prabhat_Singh
2005-07-25 7:16 Compilation error Susheel Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox