* Trouble compiling 2.5.30 on old powermac
@ 2002-08-06 12:17 Romain Dolbeau
2002-08-06 12:45 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 3+ messages in thread
From: Romain Dolbeau @ 2002-08-06 12:17 UTC (permalink / raw)
To: linuxppc-dev
Hello all,
first of all, a big thanks to all hackers for the 2.4.x
releases that have been fine for me for a looong time :-)
But to be able to port the "pm3fb" driver to 2.5, I need
a 2.5.x kernel. None of those I tried compiled.
Michel Dänzer suggested posting my problems here, so here
it is.
The box is an old 7500 upgraded with a 192Mhz 604e, running
Debian (used to be "woody", now it's "sarge"). binutils come
from Debian "sid" as I need the newer binutils for 2.5.
Additional hardware include an old mac-flashed Matrox
Millenium, and a Formac Proformance III video card (the one
that need pm3fb).
Source tree is linuxppc-2.5 from source.mvista.com,
through rsync.
1) at least 3 non-essential drivers cannot compile:
the mac serial port, the mac floppy drive, and the
external SCSI bus (53C94, MESH compiles). I can
provide the errors if they're needed.
2) arch/ppc/kernel/process.c fails with:
#####
gcc -Wp,-MD,./.process.o.d -D__KERNEL__ -I/usr/src/linuxppc-2.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -I/usr/src/linuxppc-2.5/arch/ppc -msoft-float -pipe -ffixed-r2
-Wno-uninitialized -mmultiple -mstring -nostdinc -iwithprefix include -DKBUILD_BASENAME=process -c -o process.o process.c
process.c: In function `set_fpexc_mode':
process.c:426: `PR_FP_EXC_PRECISE' undeclared (first use in this function)
process.c:426: (Each undeclared identifier is reported only once
process.c:426: for each function it appears in.)
make[2]: *** [process.o] Error 1
make[2]: Leaving directory `/usr/src/linuxppc-2.5/arch/ppc/kernel'
#####
Thanks in advance for any informations/advices/fixes/...
--
DOLBEAU Romain | Energy derives from both
ENS Cachan / Ker Lann | the plus and negative
Thesard IRISA / CAPS | -- Metallica,
dolbeaur@club-internet.fr | 'Eye of the Beholder'
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Trouble compiling 2.5.30 on old powermac
2002-08-06 12:17 Trouble compiling 2.5.30 on old powermac Romain Dolbeau
@ 2002-08-06 12:45 ` Benjamin Herrenschmidt
2002-08-09 8:40 ` Romain Dolbeau
0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2002-08-06 12:45 UTC (permalink / raw)
To: Romain Dolbeau, linuxppc-dev
>
>Hello all,
>
>first of all, a big thanks to all hackers for the 2.4.x
>releases that have been fine for me for a looong time :-)
>
>But to be able to port the "pm3fb" driver to 2.5, I need
>a 2.5.x kernel. None of those I tried compiled.
>Michel Dänzer suggested posting my problems here, so here
>it is.
>
>The box is an old 7500 upgraded with a 192Mhz 604e, running
>Debian (used to be "woody", now it's "sarge"). binutils come
>from Debian "sid" as I need the newer binutils for 2.5.
>Additional hardware include an old mac-flashed Matrox
>Millenium, and a Formac Proformance III video card (the one
>that need pm3fb).
>
>Source tree is linuxppc-2.5 from source.mvista.com,
>through rsync.
>
>1) at least 3 non-essential drivers cannot compile:
> the mac serial port, the mac floppy drive, and the
> external SCSI bus (53C94, MESH compiles). I can
> provide the errors if they're needed.
Yup, I fixed MESH, Cuda, via-pmu, adb, but not macserial nor
swim3 nor 53c94 yet, those are on my todo list. As far as macserial
is concerned, I need to look into the new serial driver framework
made by Russel King and figure out enough of it to port the driver.
>2) arch/ppc/kernel/process.c fails with:
>#####
> gcc -Wp,-MD,./.process.o.d -D__KERNEL__ -I/usr/src/linuxppc-2.5/include
>-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-
>strict-aliasing -fno-common -I/usr/src/linuxppc-2.5/arch/ppc -msoft-float
>-pipe -ffixed-r2
>-Wno-uninitialized -mmultiple -mstring -nostdinc -iwithprefix include
>-DKBUILD_BASENAME=process -c -o process.o process.c
>process.c: In function `set_fpexc_mode':
>process.c:426: `PR_FP_EXC_PRECISE' undeclared (first use in this function)
>process.c:426: (Each undeclared identifier is reported only once
>process.c:426: for each function it appears in.)
>make[2]: *** [process.o] Error 1
>make[2]: Leaving directory `/usr/src/linuxppc-2.5/arch/ppc/kernel'
>#####
That's a new one. Paulus ? Incorrect merge ? Missing include ?
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Trouble compiling 2.5.30 on old powermac
2002-08-06 12:45 ` Benjamin Herrenschmidt
@ 2002-08-09 8:40 ` Romain Dolbeau
0 siblings, 0 replies; 3+ messages in thread
From: Romain Dolbeau @ 2002-08-09 8:40 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
Benjamin Herrenschmidt wrote:
> >2) arch/ppc/kernel/process.c fails with:
[snip]
> That's a new one. Paulus ? Incorrect merge ? Missing include ?
This one seems fixed now, the kernel only fails at link time:
#####
make[2]: Leaving directory `/usr/src/linuxppc-2.5/init'
ld -T arch/ppc/vmlinux.lds -Ttext 0xc0000000 -Bstatic arch/ppc/kernel/head.o init/init.o --start-group arch/ppc/kernel/kernel.o arch/ppc/platforms/platform.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
security/built-in.o arch/ppc/xmon/x.o lib/lib.a drivers/built-in.o sound/sound.o net/network.o --end-group -o vmlinux
drivers/built-in.o: In function `do_adb_reset_bus':
drivers/built-in.o(.text+0x4c4a0): undefined reference to `save_flags'
drivers/built-in.o(.text+0x4c4a0): relocation truncated to fit: R_PPC_REL24 save_flags
drivers/built-in.o(.text+0x4c4a4): undefined reference to `cli'
drivers/built-in.o(.text+0x4c4a4): relocation truncated to fit: R_PPC_REL24 cli
drivers/built-in.o(.text+0x4c4c0): undefined reference to `restore_flags'
drivers/built-in.o(.text+0x4c4c0): relocation truncated to fit: R_PPC_REL24 restore_flags
drivers/built-in.o: In function `videodev_exit':
drivers/built-in.o(.text.exit+0xd8): undefined reference to `videodev_proc_destroy'
drivers/built-in.o(.text.exit+0xd8): relocation truncated to fit: R_PPC_REL24 videodev_proc_destroy
[skip a few more related to pm3fb]
#####
videodev_exit might come from the non-essential planb
driver (video input), but the ADB bus is pretty much
mandatory on a 7500 (in particular when no serial
console is available :-)
isn't the save_flags/cli/restore_flags supposed to be
local_irq_save/local_irq_restore(flags) now ? (curious,
as I had a save_flags in pm3fb...)
Thanks in advance for any help,
--
DOLBEAU Romain | For a hill, men would kill,
ENS Cachan / Ker Lann | Why ? They do not know.
Thesard IRISA / CAPS | -- Metallica,
dolbeaur@club-internet.fr | 'For Whom The Bell Tolls'
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-08-09 8:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-06 12:17 Trouble compiling 2.5.30 on old powermac Romain Dolbeau
2002-08-06 12:45 ` Benjamin Herrenschmidt
2002-08-09 8:40 ` Romain Dolbeau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).