2003-02-28 11:14:30

by Nico Schottelius

[permalink] [raw]
Subject: ppc cross compiling...

Hello!

I am trying to cross compile 2.5.64 and get the following
compile errors:

make -f scripts/Makefile.build obj=arch/ppc/mm
powerpc-linux-gcc -Wp,-MD,arch/ppc/mm/.4xx_mmu.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -I/usr/src/linux-2.5.50/arch/ppc -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -Wa,-m405 -fomit-frame-pointer -nostdinc -iwithprefix include -DKBUILD_BASENAME=4xx_mmu -DKBUILD_MODNAME=4xx_mmu -c -o arch/ppc/mm/4xx_mmu.o arch/ppc/mm/4xx_mmu.c
arch/ppc/mm/4xx_mmu.c: In function `mmu_mapin_ram':
arch/ppc/mm/4xx_mmu.c:99: `phys_addr_t' undeclared (first use in this function)
arch/ppc/mm/4xx_mmu.c:99: (Each undeclared identifier is reported only once
arch/ppc/mm/4xx_mmu.c:99: for each function it appears in.)
arch/ppc/mm/4xx_mmu.c:99: syntax error before "p"
arch/ppc/mm/4xx_mmu.c:102: `p' undeclared (first use in this function)
make[1]: *** [arch/ppc/mm/4xx_mmu.o] Fehler 1
make: *** [arch/ppc/mm] Fehler 2

Makefile: ARCH=ppc

.config attached.

What todo ?

Nico

p.s.: please cc me...

--
Please send your messages pgp-signed and/or pgp-encrypted (don't encrypt mails
to mailing list!). If you don't know what pgp is visit http://www.gnupg.org.
(public pgp key: ftp.schottelius.org/pub/familiy/nico/pgp-key)


Attachments:
(No filename) (0.00 B)
(No filename) (189.00 B)
Download all attachments

2003-02-28 12:46:00

by Matt Porter

[permalink] [raw]
Subject: Re: ppc cross compiling...

On Fri, Feb 28, 2003 at 12:24:29PM +0100, Nico Schottelius wrote:
> Hello!
>
> I am trying to cross compile 2.5.64 and get the following
> compile errors:
>
> make -f scripts/Makefile.build obj=arch/ppc/mm
> powerpc-linux-gcc -Wp,-MD,arch/ppc/mm/.4xx_mmu.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -I/usr/src/linux-2.5.50/arch/ppc -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -Wa,-m405 -fomit-frame-pointer -nostdinc -iwithprefix include -DKBUILD_BASENAME=4xx_mmu -DKBUILD_MODNAME=4xx_mmu -c -o arch/ppc/mm/4xx_mmu.o arch/ppc/mm/4xx_mmu.c
> arch/ppc/mm/4xx_mmu.c: In function `mmu_mapin_ram':
> arch/ppc/mm/4xx_mmu.c:99: `phys_addr_t' undeclared (first use in this function)

Whoa, wait a minute. Don't expect to have PPC (especially 4xx stuff) to
even build (much less run) in Linus' tree. A number of things that are
under heavy development have not been submitted. You need to grab
the PPC development tree, see http://penguinppc.org/dev/kernel.shtml
for instructions on pulling the linuxppc-2.5 tree. In this case
the phys_addr_t declaration in mmu.h hasn't found its way up.

Also, these questions are more appropriate for the linuxppc-dev or
linuxppc-embedded lists (http://lists.linuxppc.org/) where all the
PPC developers can be found.

Regards,
--
Matt Porter
[email protected]
This is Linux Country. On a quiet night, you can hear Windows reboot.