linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* process.c Assembler Message Error: unsupported relocation type
@ 2001-07-21 10:53 Iain Young
  2001-07-21 19:56 ` Tom Rini
  2001-07-21 22:32 ` acmay
  0 siblings, 2 replies; 3+ messages in thread
From: Iain Young @ 2001-07-21 10:53 UTC (permalink / raw)
  To: linuxppc-embedded


Hi All,

Hopefully someone can tell me I have made a silly mistake here.

I am attempting to cross compile .2.4.7pre9 from a SPARC to a 403 board.

Both the toolchain, and gcc compiled with no problems, and the kernel
gets most of the way there. It stops at arch/ppc/kernel/process.c,
with the following output from make:

make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4-sparc/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -mcpu=403 " -C  arch/ppc/kernel
make[1]: Entering directory `/usr/src/linux-2.4-sparc/arch/ppc/kernel'
powerpc-linux-gcc -D__KERNEL__ -I/usr/src/linux-2.4-sparc/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -mcpu=403    -c -o process.o process.c
process.c: In function `copy_thread':
process.c:327: warning: unused variable `msr'
{standard input}: Assembler messages:
{standard input}:394: Error: unsupported relocation type
{standard input}:395: Error: unsupported relocation type
{standard input}:396: Error: unsupported relocation type
{standard input}:400: Error: unsupported relocation type
{standard input}:401: Error: unsupported relocation type
{standard input}:402: Error: unsupported relocation type
make[1]: *** [process.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4-sparc/arch/ppc/kernel'
make: *** [_dir_arch/ppc/kernel] Error 2

powerpc-linux-gcc -v reports:

Reading specs from /usr/local/lib/gcc-lib/powerpc-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)


while powerpc-linux-as -v reports:

GNU assembler version 2.10.91 (powerpc-linux) using BFD version 2.10.91.0.2


My question is have I been silly, and got a compiler/toolchain mismatch ?
(I was under the impression these were particular versions were OK
together)

Or is this a known issue ? Or something that has just turned up in 2.4.7pre ?
(Although I noticed that aarch/ppc/kernel/process.c doesnt seem to have
been changed in a while.

Any help/assistance would be most gratefully recieved. It is frustrating
to be so close, yet so far.


All the Best

Iain


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: process.c Assembler Message Error: unsupported relocation type
  2001-07-21 10:53 process.c Assembler Message Error: unsupported relocation type Iain Young
@ 2001-07-21 19:56 ` Tom Rini
  2001-07-21 22:32 ` acmay
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2001-07-21 19:56 UTC (permalink / raw)
  To: Iain Young; +Cc: linuxppc-embedded


On Sat, Jul 21, 2001 at 11:53:21AM +0100, Iain Young wrote:

> I am attempting to cross compile .2.4.7pre9 from a SPARC to a 403 board.

>From where?  2.4.7-pre9 from kernel.org won't work on 403 or 405 at the
moment.  In the PPC trees, this will hopefully be fixed RSN.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: process.c Assembler Message Error: unsupported relocation type
  2001-07-21 10:53 process.c Assembler Message Error: unsupported relocation type Iain Young
  2001-07-21 19:56 ` Tom Rini
@ 2001-07-21 22:32 ` acmay
  1 sibling, 0 replies; 3+ messages in thread
From: acmay @ 2001-07-21 22:32 UTC (permalink / raw)
  To: Iain Young; +Cc: linuxppc-embedded


On Sat, Jul 21, 2001 at 11:53:21AM +0100, Iain Young wrote:
> make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4-sparc/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -mcpu=403 " -C  arch/ppc/kernel
> make[1]: Entering directory `/usr/src/linux-2.4-sparc/arch/ppc/kernel'
> powerpc-linux-gcc -D__KERNEL__ -I/usr/src/linux-2.4-sparc/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -mcpu=403    -c -o process.o process.c
> process.c: In function `copy_thread':
> process.c:327: warning: unused variable `msr'
> {standard input}: Assembler messages:
> {standard input}:394: Error: unsupported relocation type
> {standard input}:395: Error: unsupported relocation type
> {standard input}:396: Error: unsupported relocation type
> {standard input}:400: Error: unsupported relocation type
> {standard input}:401: Error: unsupported relocation type
> {standard input}:402: Error: unsupported relocation type
> make[1]: *** [process.o] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.4-sparc/arch/ppc/kernel'
> make: *** [_dir_arch/ppc/kernel] Error 2

Probably from the includes and code not having the correct DCR's for your chip.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-07-21 22:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-21 10:53 process.c Assembler Message Error: unsupported relocation type Iain Young
2001-07-21 19:56 ` Tom Rini
2001-07-21 22:32 ` acmay

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).