From owner-linux-arm-outgoing@vger.rutgers.edu  Sat Feb  1 12:18:25 1997
Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
Received: from nic.funet.fi (nic.funet.fi [128.214.248.6]) by odie.barnet.ac.uk (8.8.2/8.8.0) with ESMTP id MAA18682 for <willy@odie.fluff.org>; Sat, 1 Feb 1997 12:18:24 GMT
Received: from vger.rutgers.edu ([128.6.190.2]) by nic.funet.fi with ESMTP id <68524-32184>; Sat, 1 Feb 1997 14:18:56 +0200
Received: by vger.rutgers.edu id <213372-245>; Sat, 1 Feb 1997 07:15:40 -0500
Date: 	Sat, 01 Feb 1997 12:07:16 +0000
From: Joseph Heenan <esuvf@csv.warwick.ac.uk>
To: linux-arm@vger.rutgers.edu
Subject: Cross compiling on a linux pc
Message-ID: <8fed985547@dial1221.dialup.warwick.ac.uk>
Reply-To: j.heenan@odie.barnet.ac.uk
Organization: X
X-Mailer: Messenger v0.30 for RISC OS
X-Posting-Agent: RISC OS Newsbase 0.58-pre-8-timelimited
Sender: owner-linux-arm@vger.rutgers.edu
Precedence: bulk
Status: RO

Hi,


I'm having problems trying to get an arm-linux kernel to compile -
I've grabbed the patches of the ftp site against linux 2.0.28,
applied them, download the cross-compiler, binutils and libgcc
and stuck them in what seems to be the appropriate place in
/usr/local/, and changed the makefile so that the CROSS_COMPILE
variable is /usr/local/bin/arm-linux-

make config, make dep and make clean seem to work fine, but when I
get to make, I get:

/usr/local/bin/arm-linux-gcc -D__KERNEL__ -I/usr/src/armlinux/include
 -m6 -Wall -Wstrict-prototypes -O2  -fno-strength-reduce -pipe 
 -c -o init/main.o init/main.c
Assembler messages:
Fatal error: invalid listing option `r'
init/main.c: In function `get_options':
init/main.c:244: output pipe has been closed
arm-linux-gcc: Internal compiler error: program cc1 got fatal signal 13
make: *** [init/main.o] Error 1
bluetac:/usr/src/armlinux# cpp: output pipe has been closed

Any ideas what I'm doing wrong?
Or is just that the cross-compiler on the ftp site too old to use for
a recent kernel?

Thanks,

-- 
Joseph Heenan
email: esuvf@csv.warwick.ac.uk, J.Heenan@ftp.barnet.ac.uk

From owner-linux-arm-outgoing@vger.rutgers.edu  Sat Feb  1 12:59:53 1997
Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
Received: from nic.funet.fi (nic.funet.fi [128.214.248.6]) by odie.barnet.ac.uk (8.8.2/8.8.0) with ESMTP id MAA18759 for <willy@odie.fluff.org>; Sat, 1 Feb 1997 12:59:52 GMT
Received: from vger.rutgers.edu ([128.6.190.2]) by nic.funet.fi with ESMTP id <69018-32184>; Sat, 1 Feb 1997 15:00:51 +0200
Received: by vger.rutgers.edu id <213750-249>; Sat, 1 Feb 1997 07:57:42 -0500
Date: 	Sat, 1 Feb 1997 13:00:06 +0000 (GMT)
From: Philip Blundell <pjb27@cam.ac.uk>
X-Sender: pjb27@hammer.thor.cam.ac.uk
To: j.heenan@odie.barnet.ac.uk
cc: linux-arm@vger.rutgers.edu
Subject: Re: Cross compiling on a linux pc
In-Reply-To: <8fed985547@dial1221.dialup.warwick.ac.uk>
Message-ID: <Pine.SOL.3.95.970201125810.8451B-100000@hammer.thor.cam.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-arm@vger.rutgers.edu
Precedence: bulk
Status: RO

On Sat, 1 Feb 1997, Joseph Heenan wrote:

> /usr/local/bin/arm-linux-gcc -D__KERNEL__ -I/usr/src/armlinux/include
>  -m6 -Wall -Wstrict-prototypes -O2  -fno-strength-reduce -pipe 
>  -c -o init/main.o init/main.c
> Assembler messages:
> Fatal error: invalid listing option `r'
> init/main.c: In function `get_options':
> init/main.c:244: output pipe has been closed
> arm-linux-gcc: Internal compiler error: program cc1 got fatal signal 13
> make: *** [init/main.o] Error 1
> bluetac:/usr/src/armlinux# cpp: output pipe has been closed
> 
> Any ideas what I'm doing wrong?
> Or is just that the cross-compiler on the ftp site too old to use for
> a recent kernel?

I doubt much has changed.  Can you rerun that command adding -v to the gcc
commandline, so we can check that it's picking up the right version of the
assembler?

It's possible that gcc is looking at /usr/arm-linux/bin/as for the
assembler, not finding it, and defaulting to the Intel assembler.  You may
need to make a symlink from /usr/local/arm-linux to /usr/arm-linux if this
is the case.

P.

From owner-linux-arm-outgoing@vger.rutgers.edu  Sat Feb  1 16:35:10 1997
Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
Received: from nic.funet.fi (nic.funet.fi [128.214.248.6]) by odie.barnet.ac.uk (8.8.2/8.8.0) with ESMTP id QAA18990 for <willy@odie.fluff.org>; Sat, 1 Feb 1997 16:35:07 GMT
Received: from vger.rutgers.edu ([128.6.190.2]) by nic.funet.fi with ESMTP id <68416-26818>; Sat, 1 Feb 1997 18:35:56 +0200
Received: by vger.rutgers.edu id <213314-245>; Sat, 1 Feb 1997 11:32:41 -0500
Date: 	Sat, 01 Feb 1997 16:09:27 +0000
From: Joseph Heenan <esuvf@csv.warwick.ac.uk>
To: pjb27@cam.ac.uk
Cc: linux-arm@vger.rutgers.edu
Subject: Re: Cross compiling on a linux pc
Message-ID: <8719af5547@dial1221.dialup.warwick.ac.uk>
In-Reply-To: <Pine.SOL.3.95.970201125810.8451B-100000@hammer.thor.cam.ac.uk>
Reply-To: j.heenan@odie.barnet.ac.uk
Organization: X
X-Mailer: Messenger v0.30 for RISC OS
X-Posting-Agent: RISC OS Newsbase 0.58-pre-8-timelimited
Sender: owner-linux-arm@vger.rutgers.edu
Precedence: bulk
Status: RO

In Philip Blundell wrote:

> I doubt much has changed.  Can you rerun that command adding -v to the gcc
> commandline, so we can check that it's picking up the right version of the
> assembler?
> 
> It's possible that gcc is looking at /usr/arm-linux/bin/as for the
> assembler, not finding it, and defaulting to the Intel assembler.  You may
> need to make a symlink from /usr/local/arm-linux to /usr/arm-linux if this
> is the case.

Well, it seemed to be looking for /usr/local/lib/gcc-lib/arm-linux/2.6.0/as,
so I symlinked that to /usr/local/bin/arm-linux-as

I know get the following:

bluetac:/usr/src/armlinux# make
/usr/local/bin/arm-linux-gcc -v -D__KERNEL__ -I/usr/src/armlinux/include
 -m6 -Wall -Wstrict-prototypes -O2  -fno-strength-reduce -pipe  -c -o
  init/main.o init/main.c
Reading specs from /usr/local/lib/gcc-lib/arm-linux/2.6.0/specs
gcc version 2.6.0
 /usr/local/lib/gcc-lib/arm-linux/2.6.0/cpp -lang-c -v
 -I/usr/src/armlinux/include -undef -D__GNUC__=2 -D__GNUC_MINOR__=6
 -Dunix -Darm -Dlinux -D__unix__ -D__arm__ -D__linux__ -D__unix -D__arm
 -D__linux -Asystem(unix) -Asystem(posix) -Acpu(arm) -Amachine(arm)
 -D__OPTIMIZE__ -Wall -Wstrict-prototypes -D__arm6__ -D__KERNEL__
 init/main.c |
 /usr/local/lib/gcc-lib/arm-linux/2.6.0/cc1 -quiet -dumpbase main.c
  -m6 -O2 -Wall -Wstrict-prototypes -version -fno-strength-reduce -o - |
 /usr/local/lib/gcc-lib/arm-linux/2.6.0/as -marm6 -o init/main.o
GNU CPP version 2.6.0 (ARM/Linux)
#include "..." search starts here:
#include <...> search starts here:
 /usr/src/armlinux/include
 /usr/local/lib/gcc-lib/arm-linux/2.6.0/include
 /usr/local/lib/gcc-lib/arm-linux/2.6.0/sys-include
 /usr/local/arm-linux/include
End of search list.
GNU C version 2.6.0 (ARM/Linux) compiled by GNU C version 2.6.3.
{standard input}: Assembler messages:
{standard input}:850: Error: Garbage following instruction --
statement `bne 1f'

{standard input}:856: Error: Rest of line ignored. First ignored
character is `1 '. {standard input}:1134: Error: Garbage following
instruction -- statement `bne 1f '

{standard input}:1140: Error: Rest of line ignored. First ignored
character is ` 1'. {standard input}:1148: Error: Garbage following
instruction -- statement `bne 1f '

{standard input}:1154: Error: Rest of line ignored. First ignored
character is ` 1'. {standard input}:1276: Error: Garbage following
instruction -- statement `bne 1f '

{standard input}:1282: Error: Rest of line ignored. First ignored
character is ` 1'. {standard input}:1323: Error: Garbage following
instruction -- statement `bne 1f '

{standard input}:1329: Error: Rest of line ignored. First ignored
character is ` 1'. make: *** [init/main.o] Error 1


Erm...?

I'm afraid I have absolutely no idea about gcc internals, so any
help is appreciated!

[Have I missed any instructions about what to do with the
 stuff in the cross compile stuff on the ftp site? I seemed to have
 had to just guess about where things should be put :-( ]


-- 
Joseph Heenan
email: esuvf@csv.warwick.ac.uk, J.Heenan@ftp.barnet.ac.uk

From owner-linux-arm-outgoing@vger.rutgers.edu  Sat Feb  1 16:43:31 1997
Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
Received: from nic.funet.fi (nic.funet.fi [128.214.248.6]) by odie.barnet.ac.uk (8.8.2/8.8.0) with ESMTP id QAA19003 for <willy@odie.fluff.org>; Sat, 1 Feb 1997 16:43:31 GMT
Received: from vger.rutgers.edu ([128.6.190.2]) by nic.funet.fi with ESMTP id <67698-5280>; Sat, 1 Feb 1997 18:44:18 +0200
Received: by vger.rutgers.edu id <213311-249>; Sat, 1 Feb 1997 11:40:52 -0500
Date: 	Sat, 1 Feb 1997 16:42:42 +0000 (GMT)
From: Philip Blundell <pjb27@cam.ac.uk>
X-Sender: pjb27@hammer.thor.cam.ac.uk
To: j.heenan@odie.barnet.ac.uk
cc: linux-arm@vger.rutgers.edu
Subject: Re: Cross compiling on a linux pc
In-Reply-To: <8719af5547@dial1221.dialup.warwick.ac.uk>
Message-ID: <Pine.SOL.3.95.970201164022.8451H-100000@hammer.thor.cam.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-arm@vger.rutgers.edu
Precedence: bulk
Status: RO

On Sat, 1 Feb 1997, Joseph Heenan wrote:

> I know get the following:
> 
> bluetac:/usr/src/armlinux# make
> /usr/local/bin/arm-linux-gcc -v -D__KERNEL__ -I/usr/src/armlinux/include
>  -m6 -Wall -Wstrict-prototypes -O2  -fno-strength-reduce -pipe  -c -o
>   init/main.o init/main.c
> Reading specs from /usr/local/lib/gcc-lib/arm-linux/2.6.0/specs
> gcc version 2.6.0
>  /usr/local/lib/gcc-lib/arm-linux/2.6.0/cpp -lang-c -v
>  -I/usr/src/armlinux/include -undef -D__GNUC__=2 -D__GNUC_MINOR__=6
>  -Dunix -Darm -Dlinux -D__unix__ -D__arm__ -D__linux__ -D__unix -D__arm
>  -D__linux -Asystem(unix) -Asystem(posix) -Acpu(arm) -Amachine(arm)
>  -D__OPTIMIZE__ -Wall -Wstrict-prototypes -D__arm6__ -D__KERNEL__
>  init/main.c |
>  /usr/local/lib/gcc-lib/arm-linux/2.6.0/cc1 -quiet -dumpbase main.c
>   -m6 -O2 -Wall -Wstrict-prototypes -version -fno-strength-reduce -o - |
>  /usr/local/lib/gcc-lib/arm-linux/2.6.0/as -marm6 -o init/main.o
> GNU CPP version 2.6.0 (ARM/Linux)
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/src/armlinux/include
>  /usr/local/lib/gcc-lib/arm-linux/2.6.0/include
>  /usr/local/lib/gcc-lib/arm-linux/2.6.0/sys-include
>  /usr/local/arm-linux/include
> End of search list.
> GNU C version 2.6.0 (ARM/Linux) compiled by GNU C version 2.6.3.
> {standard input}: Assembler messages:
> {standard input}:850: Error: Garbage following instruction --
> statement `bne 1f'
> 
> {standard input}:856: Error: Rest of line ignored. First ignored
> character is `1 '. {standard input}:1134: Error: Garbage following
> instruction -- statement `bne 1f '
> 
> {standard input}:1140: Error: Rest of line ignored. First ignored
> character is ` 1'. {standard input}:1148: Error: Garbage following
> instruction -- statement `bne 1f '
> 
> {standard input}:1154: Error: Rest of line ignored. First ignored
> character is ` 1'. {standard input}:1276: Error: Garbage following
> instruction -- statement `bne 1f '
> 
> {standard input}:1282: Error: Rest of line ignored. First ignored
> character is ` 1'. {standard input}:1323: Error: Garbage following
> instruction -- statement `bne 1f '
> 
> {standard input}:1329: Error: Rest of line ignored. First ignored
> character is ` 1'. make: *** [init/main.o] Error 1
> 
> Erm...?
> 
> I'm afraid I have absolutely no idea about gcc internals, so any
> help is appreciated!

Ugh. 

I'll have to take a look at the cross-compiler myself to figure that one
out, I think.  It looks like all the right things are getting run now, but
as is rejecting (valid) input.

You could try again without -m6 - it could be that the binutils is too old
to generate ARM6 code.  Admittedly you won't get working code that way,
but it would at least tell you where the problem is.

I think gcc 2.7.2 works without patches, but to use a newer binutils
you'll have to hack it around a bit. 

P.

From owner-linux-arm-outgoing@vger.rutgers.edu  Sat Feb  1 17:03:05 1997
Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
Received: from nic.funet.fi (nic.funet.fi [128.214.248.6]) by odie.barnet.ac.uk (8.8.2/8.8.0) with ESMTP id RAA19026 for <willy@odie.fluff.org>; Sat, 1 Feb 1997 17:03:05 GMT
Received: from vger.rutgers.edu ([128.6.190.2]) by nic.funet.fi with ESMTP id <68030-5280>; Sat, 1 Feb 1997 19:03:52 +0200
Received: by vger.rutgers.edu id <213311-249>; Sat, 1 Feb 1997 12:00:29 -0500
Date: 	Sat, 1 Feb 1997 17:02:49 +0000 (GMT)
From: Philip Blundell <pjb27@cam.ac.uk>
X-Sender: pjb27@hammer.thor.cam.ac.uk
Reply-To: Philip Blundell <pjb27@cam.ac.uk>
To: j.heenan@odie.barnet.ac.uk
cc: linux-arm@vger.rutgers.edu
Subject: Re: Cross compiling on a linux pc
In-Reply-To: <Pine.SOL.3.95.970201164022.8451H-100000@hammer.thor.cam.ac.uk>
Message-ID: <Pine.SOL.3.95.970201165954.8451I-100000@hammer.thor.cam.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-arm@vger.rutgers.edu
Precedence: bulk
Status: RO

On Sat, 1 Feb 1997, Philip Blundell wrote:

> You could try again without -m6 - it could be that the binutils is too old
> to generate ARM6 code.  Admittedly you won't get working code that way,
> but it would at least tell you where the problem is.

I was wrong about this; -m6 works fine for me.

kings-cross:~$ gcc -m6 -b arm-linux -V 2.6.0 -v hellow.c
Reading specs from /usr/lib/gcc-lib/arm-linux/2.6.0/specs
gcc driver version 2.7.2 executing gcc version 2.6.0
 /usr/lib/gcc-lib/arm-linux/2.6.0/cpp -lang-c -v -undef -D__GNUC__=2
-D__GNUC_MINOR__=6 -Dunix -Darm -Dlinux -D__unix__ -D__arm__ -D__linux__
-D__unix -D__arm -D__linux -Asystem(unix) -Asystem(posix) -Acpu(arm)
-Amachine(arm) -D__arm6__ hellow.c /tmp/cca16647.i
GNU CPP version 2.6.0 (ARM/Linux)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/arm-linux/2.6.0/include
 /usr/local/lib/gcc-lib/arm-linux/2.6.0/sys-include
 /usr/local/arm-linux/include
End of search list.
 /usr/lib/gcc-lib/arm-linux/2.6.0/cc1 /tmp/cca16647.i -quiet -dumpbase
hellow.c -m6 -version -o /tmp/cca16647.s
GNU C version 2.6.0 (ARM/Linux) compiled by GNU C version 2.6.3.
 /usr/arm-linux/bin/as -marm6 -o /tmp/cca166471.o /tmp/cca16647.s
 /usr/arm-linux/bin/ld /usr/lib/crt0.o -L/usr/lib/gcc-lib/arm-linux/2.6.0
-L/usr/arm-linux/lib /tmp/cca166471.o -lgcc -lc -lgcc
/usr/arm-linux/bin/ld: cannot open /usr/lib/crt0.o: No such file or
directory
kings-cross:~$

What does `/usr/local/lib/gcc-lib/arm-linux/2.6.0/as --version' tell you?

My arm-linux as is:

	GNU assembler version 940921 (arm-aout), using BFD version cygnus-2.3

P.

From owner-linux-arm-outgoing@vger.rutgers.edu  Sat Feb  1 17:14:18 1997
Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
Received: from nic.funet.fi (nic.funet.fi [128.214.248.6]) by odie.barnet.ac.uk (8.8.2/8.8.0) with ESMTP id RAA19041 for <willy@odie.fluff.org>; Sat, 1 Feb 1997 17:14:18 GMT
Received: from vger.rutgers.edu ([128.6.190.2]) by nic.funet.fi with ESMTP id <68393-32184>; Sat, 1 Feb 1997 19:14:59 +0200
Received: by vger.rutgers.edu id <213306-245>; Sat, 1 Feb 1997 12:11:51 -0500
Date: 	Sat, 1 Feb 1997 17:14:14 +0000 (GMT)
From: Philip Blundell <pjb27@cam.ac.uk>
X-Sender: pjb27@hammer.thor.cam.ac.uk
To: j.heenan@odie.barnet.ac.uk
cc: linux-arm@vger.rutgers.edu
Subject: Re: Cross compiling on a linux pc
In-Reply-To: <Pine.SOL.3.95.970201165954.8451I-100000@hammer.thor.cam.ac.uk>
Message-ID: <Pine.SOL.3.95.970201171336.8451J-100000@hammer.thor.cam.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-arm@vger.rutgers.edu
Precedence: bulk
Status: RO

On Sat, 1 Feb 1997, Philip Blundell wrote:

> -m6 works fine for me.

On further investigation, this isn't strictly true either.  It works for
trivial programs, but now I've installed the kernel source I'm seeing the
same problems that you were.

More when we have it. 

P.

From owner-linux-arm-outgoing@vger.rutgers.edu  Sat Feb  1 17:19:45 1997
Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
Received: from nic.funet.fi (nic.funet.fi [128.214.248.6]) by odie.barnet.ac.uk (8.8.2/8.8.0) with ESMTP id RAA19052 for <willy@odie.fluff.org>; Sat, 1 Feb 1997 17:19:44 GMT
Received: from vger.rutgers.edu ([128.6.190.2]) by nic.funet.fi with ESMTP id <68295-5280>; Sat, 1 Feb 1997 19:20:32 +0200
Received: by vger.rutgers.edu id <213313-249>; Sat, 1 Feb 1997 12:17:09 -0500
Date: 	Sat, 1 Feb 1997 17:19:33 +0000 (GMT)
From: Philip Blundell <pjb27@cam.ac.uk>
X-Sender: pjb27@hammer.thor.cam.ac.uk
To: j.heenan@odie.barnet.ac.uk
cc: linux-arm@vger.rutgers.edu
Subject: Re: Cross compiling on a linux pc
In-Reply-To: <8719af5547@dial1221.dialup.warwick.ac.uk>
Message-ID: <Pine.SOL.3.95.970201171722.8451L-100000@hammer.thor.cam.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-arm@vger.rutgers.edu
Precedence: bulk
Status: RO

On Sat, 1 Feb 1997, Joseph Heenan wrote:

> {standard input}: Assembler messages:
> {standard input}:850: Error: Garbage following instruction --
> statement `bne 1f'

As far as I can tell, this is an assembler bug.  I'm sure I've had this
working before, but I can't remember how at the moment.

I have put a binary of a newer gas for arm-aout at

	ftp://ftp.london.uk.eu.org/pub/arm/arm-aout-as

- you could try installing this in place of the as you currently have.
I'm not totally sure what the differences in output between this and
Russell's gas are, so it may or not work.

P.

From owner-linux-arm-outgoing@vger.rutgers.edu  Sat Feb  1 20:40:20 1997
Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
Received: from nic.funet.fi (nic.funet.fi [128.214.248.6]) by odie.barnet.ac.uk (8.8.2/8.8.0) with ESMTP id UAA19351 for <willy@odie.fluff.org>; Sat, 1 Feb 1997 20:40:19 GMT
Received: from vger.rutgers.edu ([128.6.190.2]) by nic.funet.fi with ESMTP id <61166-4050>; Sat, 1 Feb 1997 22:39:48 +0200
Received: by vger.rutgers.edu id <213322-249>; Sat, 1 Feb 1997 15:36:30 -0500
Date: 	Sat, 01 Feb 1997 20:30:01 +0000
From: Joseph Heenan <esuvf@csv.warwick.ac.uk>
To: pjb27@cam.ac.uk
Cc: linux-arm@vger.rutgers.edu
Subject: Re: Cross compiling on a linux pc
Message-ID: <b5f4c65547@dial1221.dialup.warwick.ac.uk>
In-Reply-To: <Pine.SOL.3.95.970201171722.8451L-100000@hammer.thor.cam.ac.uk>
Reply-To: j.heenan@odie.barnet.ac.uk
Organization: X
X-Mailer: Messenger v0.30 for RISC OS
X-Posting-Agent: RISC OS Newsbase 0.58-pre-8-timelimited
Sender: owner-linux-arm@vger.rutgers.edu
Precedence: bulk
Status: RO

In message <Pine.SOL.3.95.970201171722.8451L-100000@hammer.thor.cam.ac.uk> you wrote:

> On Sat, 1 Feb 1997, Joseph Heenan wrote:
> 
> > {standard input}: Assembler messages:
> > {standard input}:850: Error: Garbage following instruction --
> > statement `bne 1f'
> 
> As far as I can tell, this is an assembler bug.  I'm sure I've had this
> working before, but I can't remember how at the moment.
> 
> I have put a binary of a newer gas for arm-aout at
> 
> 	ftp://ftp.london.uk.eu.org/pub/arm/arm-aout-as
> 
> - you could try installing this in place of the as you currently have.
> I'm not totally sure what the differences in output between this and
> Russell's gas are, so it may or not work.

Ah - thankyou - I've got that, and the kernel at least appears to
be compiling now - I wonder if I'll get as far as getting one to
boot, though...

Thanks,

[oh - might be worth getting the new 'as' put on ftp.ecs.soton?]

-- 
Joseph Heenan
email: esuvf@csv.warwick.ac.uk, J.Heenan@ftp.barnet.ac.uk

From owner-linux-arm-outgoing@vger.rutgers.edu  Sat Feb  1 21:01:17 1997
Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
Received: from nic.funet.fi (nic.funet.fi [128.214.248.6]) by odie.barnet.ac.uk (8.8.2/8.8.0) with ESMTP id VAA19376 for <willy@odie.fluff.org>; Sat, 1 Feb 1997 21:01:16 GMT
Received: from vger.rutgers.edu ([128.6.190.2]) by nic.funet.fi with ESMTP id <61108-4050>; Sat, 1 Feb 1997 23:01:57 +0200
Received: by vger.rutgers.edu id <213324-249>; Sat, 1 Feb 1997 15:58:42 -0500
Date: 	Sat, 01 Feb 1997 20:43:19 +0000
From: Joseph Heenan <esuvf@csv.warwick.ac.uk>
To: linux-arm@vger.rutgers.edu
Subject: Kernel compiling...
Message-ID: <742cc85547@dial1221.dialup.warwick.ac.uk>
Reply-To: j.heenan@odie.barnet.ac.uk
Organization: X
X-Mailer: Messenger v0.30 for RISC OS
X-Posting-Agent: RISC OS Newsbase 0.58-pre-8-timelimited
Sender: owner-linux-arm@vger.rutgers.edu
Precedence: bulk
Status: RO

Last problem for today, I promise!

[am I the first one to try compiling a kernel with these new sources?
 or am I just useless at doing it? ;-) ]

from a 'make' (with the new as installed):

gcc -I/usr/src/armlinux/include -D__KERNEL__ -o getconstants getconstants.c
/usr/src/armlinux/include/asm/proc/semaphore.h: In function `down':
In file included from /usr/src/armlinux/include/asm/semaphore.h:21,
                 from /usr/src/armlinux/include/linux/sched.h:22,
                 from /usr/src/armlinux/include/linux/mm.h:4,
                 from getconstants.c:7:
/usr/src/armlinux/include/asm/proc/semaphore.h:27: unknown register name `lr' in
 `asm'
/usr/src/armlinux/include/asm/proc/semaphore.h:27: unknown register name `ip' in
 `asm'
/usr/src/armlinux/include/asm/proc/semaphore.h:27: unknown register name `r3' in
 `asm'
/usr/src/armlinux/include/asm/proc/semaphore.h:27: unknown register name `r2' in
 `asm'
/usr/src/armlinux/include/asm/proc/semaphore.h:27: unknown register name `r1' in
 `asm'
/usr/src/armlinux/include/asm/proc/semaphore.h:27: unknown register name `r0' in
 `asm'
/usr/src/armlinux/include/asm/proc/semaphore.h: In function `up':
/usr/src/armlinux/include/asm/proc/semaphore.h:51: unknown register name `lr' in
 `asm'
/usr/src/armlinux/include/asm/proc/semaphore.h:51: unknown register name `ip' in
 `asm'
/usr/src/armlinux/include/asm/proc/semaphore.h:51: unknown register name `r3' in
 `asm'
/usr/src/armlinux/include/asm/proc/semaphore.h:51: unknown register name `r2' in
 `asm'
/usr/src/armlinux/include/asm/proc/semaphore.h:51: unknown register name `r1' in
 `asm'
/usr/src/armlinux/include/asm/proc/semaphore.h:51: unknown register name `r0' in
 `asm'
getconstants.c: In function `main':
getconstants.c:32: `tss_memmap' undeclared (first use this function)
getconstants.c:32: (Each undeclared identifier is reported only once
getconstants.c:32: for each function it appears in.)
getconstants.c:33: `tss_save' undeclared (first use this function)
getconstants.c:37: `tss_fpesave' undeclared (first use this function)
getconstants.c:38: `mm' undeclared (first use this function)
getconstants.c:39: `pgd' undeclared (first use this function)
make[3]: *** [getconstants] Error 1
make[3]: Leaving directory `/usr/src/armlinux/arch/arm/lib'
make[2]: *** [constants.h] Error 2
make[2]: Leaving directory `/usr/src/armlinux/arch/arm/mm'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/armlinux/arch/arm/mm'
make: *** [linuxsubdirs] Error 2

Help! ;-)

-- 
Joseph Heenan
email: esuvf@csv.warwick.ac.uk, J.Heenan@ftp.barnet.ac.uk

From owner-linux-arm-outgoing@vger.rutgers.edu  Sun Feb  2 00:11:41 1997
Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
Received: from nic.funet.fi (nic.funet.fi [128.214.248.6]) by odie.barnet.ac.uk (8.8.2/8.8.0) with ESMTP id AAA19615 for <willy@odie.fluff.org>; Sun, 2 Feb 1997 00:11:40 GMT
Received: from vger.rutgers.edu ([128.6.190.2]) by nic.funet.fi with ESMTP id <75857-11830>; Sun, 2 Feb 1997 02:12:11 +0200
Received: by vger.rutgers.edu id <213332-245>; Sat, 1 Feb 1997 19:08:52 -0500
From: rmk92@ecs.soton.ac.uk
Message-Id: <145.199702011913@raistlin.armlinux.org>
Subject: Re: Cross compiling on a linux pc
To: linux-arm@vger.rutgers.edu
Date: 	Sat, 1 Feb 1997 19:13:28 +0000 (GMT)
In-Reply-To: <Pine.SOL.3.95.970201164022.8451H-100000@hammer.thor.cam.ac.uk> from "Philip Blundell" at Feb 1, 97 04:42:42 pm
X-Phone: +44 (0)1737 360654
Reply-To: rmk92@ecs.soton.ac.uk
X-Mailer: ELM [version 2.4 PL24]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-linux-arm@vger.rutgers.edu
Precedence: bulk
Status: RO

Philip Blundell writes:
> > {standard input}: Assembler messages:
> > {standard input}:850: Error: Garbage following instruction --
> > statement `bne 1f'

These errors are caused due to a bug in the configuration setup used to
compile the assembler for arm-unknown-linuxaout on an i386-unknown-linux
system.  (A #define was in the host-specific header file that was supposed
to be in the target-specific header file).

This problem has been rectified in the gas-940921 code by myself, and I'm
currently working on the binutils-2.7 code to get it together.

Once uploaded, the correct versions are:
	kernel source:	2.0.28
	gcc		2.7.2
	binutils:	2.7

Note, however, that there will be two patches for binutils - one to add a
few extra instructions for the StrongARM, and one as the main ARM Linux
patches for it.
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |       Russell King      rmk92@ecs.soton.ac.uk         --- ---
  | | | | http://whirligig.ecs.soton.ac.uk/~rmk92/home.html  /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |      *  who wishes that he was in Hong Kong  *      ---  |
    +-+-+ -------------------------------------------------  /\\\  |

From owner-arm-linux@tardis.ed.ac.uk  Mon Mar 17 15:58:08 1997
Return-Path: <owner-arm-linux@tardis.ed.ac.uk>
Received: from tardis.ed.ac.uk (majordom@brigadier.tardis.ed.ac.uk [193.62.81.14]) by odie.barnet.ac.uk (8.8.2/8.8.0) with ESMTP id PAA28941 for <willy@odie.barnet.ac.uk>; Mon, 17 Mar 1997 15:58:07 GMT
Received: (from majordom@localhost)
	by tardis.ed.ac.uk (8.8.5/8.8.5/TardisMailhub) id PAA08376;
	Mon, 17 Mar 1997 15:57:59 GMT
Date: Mon, 17 Mar 1997 15:57:59 GMT
Message-Id: <199703171557.PAA08376@tardis.ed.ac.uk>
X-Authentication-Warning: brigadier.tardis.ed.ac.uk: majordom set sender to owner-arm-linux@tardis.ed.ac.uk using -f
To: willy@odie.barnet.ac.uk
From: Majordomo@tardis.ed.ac.uk
Subject: Welcome to arm-linux
Reply-To: Majordomo@tardis.ed.ac.uk
Status: RO

--

Welcome to the arm-linux mailing list!

If you ever want to remove yourself from this mailing list,
you can send mail to "Majordomo@tardis.ed.ac.uk" with the following command
in the body of your email message:

    unsubscribe arm-linux Matthew Wilcox <willy@odie.barnet.ac.uk>

Here's the general information for the list you've
subscribed to, in case you don't already have it:

[Last updated on: Wed Oct 11 15:47:40 1995]

This mailing list is for discussing Russell King's port of Linux to
the ARM processor. Please try to keep this list fairly low-volume
by only discussing ARM Linux related problems - there are a large
number of newsgroups for general Linux queries.

To post to the list send mail to arm-linux@tardis.ed.ac.uk

More information on the ARM Linux port can be obtained from 
http://whirligig.ecs.soton.ac.uk/~rmk92/armlinux.html


