All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] Compiling Linux Kernel on HP-UX
@ 1999-06-15 10:22 Ulrich.Strelow
  1999-06-15 15:32 ` Kirk Bresniker
  1999-06-15 16:41 ` Andrew Patterson
  0 siblings, 2 replies; 6+ messages in thread
From: Ulrich.Strelow @ 1999-06-15 10:22 UTC (permalink / raw
  To: parisc-linux



Hi,

I'm trying to compile the latest CVS-snapshot (19990615) on my HP 715/33
using gcc 2.7.2.2 and binutils 2.7. Compiling kernel/sched.c gives the
following error:

sched.c:579: section attributes are not supported for this target

I am running HP-UX 10.20, so I cannot use the depots from
ftp://puffin.external.hp.com/pub/parisc/binaries/depot/.
So the question is: do I need gcc 2.8.1 and binutils 2.9.1 to build the
kernel on HP-UX or is this some other error ?

Ulrich
---------------------------------------------
Ulrich Strelow
<ulrich.strelow@schering.de or
ulrich_strelow@csi.com>
Berlin, Germany

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

* Re: [parisc-linux] Compiling Linux Kernel on HP-UX
@ 1999-06-15 10:31 Tor Arntsen
  1999-06-15 17:25 ` Steven Pritchard
  0 siblings, 1 reply; 6+ messages in thread
From: Tor Arntsen @ 1999-06-15 10:31 UTC (permalink / raw
  To: Ulrich.Strelow, parisc-linux

On Jun 15, 11:26, Ulrich.Strelow@schering.de wrote:
>I am running HP-UX 10.20, so I cannot use the depots from
>ftp://puffin.external.hp.com/pub/parisc/binaries/depot/.
>So the question is: do I need gcc 2.8.1 and binutils 2.9.1 to build the
>kernel on HP-UX or is this some other error ?

I'm pretty sure you need the hacked egcs and binutils.  You can check them 
out of cvs from the same place as the kernel (I use them for cross-compiling 
though).

-Tor

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

* Re: [parisc-linux] Compiling Linux Kernel on HP-UX
  1999-06-15 10:22 [parisc-linux] Compiling Linux Kernel on HP-UX Ulrich.Strelow
@ 1999-06-15 15:32 ` Kirk Bresniker
  1999-06-15 18:10   ` John David Anglin
  1999-06-15 16:41 ` Andrew Patterson
  1 sibling, 1 reply; 6+ messages in thread
From: Kirk Bresniker @ 1999-06-15 15:32 UTC (permalink / raw
  To: Ulrich.Strelow; +Cc: parisc-linux

|
| Hi,
|
| I'm trying to compile the latest CVS-snapshot (19990615) on my HP 715/33
| using gcc 2.7.2.2 and binutils 2.7. Compiling kernel/sched.c gives the
| following error:
|
| sched.c:579: section attributes are not supported for this target
|
| I am running HP-UX 10.20, so I cannot use the depots from
| ftp://puffin.external.hp.com/pub/parisc/binaries/depot/.
| So the question is: do I need gcc 2.8.1 and binutils 2.9.1 to build the
| kernel on HP-UX or is this some other error ?
|

gcc 2.8.1 isn't quite enough. Although it does support section
attributes, there is a bug in the code emitted that cannot be assembled
with gas 2.9.1. I sucessfully worked around it by changing the condition
from a fatal error to a warning in gas.

Here is the text of the bug I submitted to gcc:


e of __attribute__((__section__())) to force code into a specific
section
generates code which causes the assembler to fail.

Here is an example:

/* test.c */
int __attribute__ ((__section__ (".text.init")))  a(x)
int x;
{
 return(x+1);
}

int b(x)
int x;{
 return(x+2);
}

int __attribute__ ((__section__ (".text.init")))  c(x)
int x;{
 return(x+1);
}

main(){
 printf("a(0)=%d\n",a(0));
 printf("b(0)=%d\n",b(0));
 printf("c(0)=%d\n",c(0));
}


Here is the output of gcc:

# gcc test.c
/var/tmp/cca10410.s: Assembler messages:
/var/tmp/cca10410.s:59: Warning: Parameters of an existing subspace
can't be modified
/var/tmp/cca10410.s:59: Error: Rest of line ignored. First ignored
character is`,'.

Creating the assembly language output and examining for .SUBSPA
directives, we
find the following:

# gcc -S test.c
# grep SUBSPA test.s

# gcc -S test.c
# grep SUBSPA test.s
        .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
        .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
        .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
        .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
        .SUBSPA .text.init,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY,SORT=24
        .SUBSPA a
        .SUBSPA $CODE$
        .NSUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
        .SUBSPA .text.init,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY,SORT=24
        .SUBSPA c
        .SUBSPA $LIT$
        .SUBSPA $CODE$
        .NSUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY

Note that the section .text.init is declared with all the parameters
twice.
The second occurance should not include the parameters.

If the second declaration is edited to remove the parameters, then the
code
assembles and run correctly.

# cp test.s test_fixed.s
# vi test_fixed.s
# diff test.s test_fixed.s
59c59
<       .SUBSPA .text.init,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY,SORT=24
---
>       .SUBSPA .text.init
# gcc -o test_fixed test_fixed.s
# ./test_fixed
a(0)=1
b(0)=2
c(0)=1


KMB
--
+============================================================+
|       Kirk Bresniker          (916) 785-5677               |
|       8000 Foothills Blvd                                  |
|       Roseville, CA 95747-5649                             |
|       kirkb@rose.hp.com                                    |

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

* Re: [parisc-linux] Compiling Linux Kernel on HP-UX
  1999-06-15 10:22 [parisc-linux] Compiling Linux Kernel on HP-UX Ulrich.Strelow
  1999-06-15 15:32 ` Kirk Bresniker
@ 1999-06-15 16:41 ` Andrew Patterson
  1 sibling, 0 replies; 6+ messages in thread
From: Andrew Patterson @ 1999-06-15 16:41 UTC (permalink / raw
  To: Ulrich.Strelow; +Cc: parisc-linux


Ulrich,

You can get HP-UX 10.20 binaries at http://hpux.cae.wisc.edu They have
gcc 2.8.1.  They also have many other Open Source packages.

Andrew

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   Andrew Patterson                          Voice:  (970) 898-3261
   Hewlett-Packard Company                   FAX:    (970) 898-2180
   Development Solutions Lab                 email: andrew@fc.hp.com
   3404 East Harmony Road / MS 7
   Fort Collins, Colorado  80525  



> 
> 
> Hi,
> 
> I'm trying to compile the latest CVS-snapshot (19990615) on my HP 715/33
> using gcc 2.7.2.2 and binutils 2.7. Compiling kernel/sched.c gives the
> following error:
> 
> sched.c:579: section attributes are not supported for this target
> 
> I am running HP-UX 10.20, so I cannot use the depots from
> ftp://puffin.external.hp.com/pub/parisc/binaries/depot/.
> So the question is: do I need gcc 2.8.1 and binutils 2.9.1 to build the
> kernel on HP-UX or is this some other error ?
> 
> Ulrich
> ---------------------------------------------
> Ulrich Strelow
> <ulrich.strelow@schering.de or
> ulrich_strelow@csi.com>
> Berlin, Germany
> 
> 
> ---------------------------------------------------------------------------
> To unsubscribe: send e-mail to parisc-linux-request@thepuffingroup.com with
> `unsubscribe' as the subject.

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

* Re: [parisc-linux] Compiling Linux Kernel on HP-UX
  1999-06-15 10:31 Tor Arntsen
@ 1999-06-15 17:25 ` Steven Pritchard
  0 siblings, 0 replies; 6+ messages in thread
From: Steven Pritchard @ 1999-06-15 17:25 UTC (permalink / raw
  To: Tor Arntsen; +Cc: Ulrich.Strelow, parisc-linux

Tor Arntsen said:
> On Jun 15, 11:26, Ulrich.Strelow@schering.de wrote:
> >I am running HP-UX 10.20, so I cannot use the depots from
> >ftp://puffin.external.hp.com/pub/parisc/binaries/depot/.
> >So the question is: do I need gcc 2.8.1 and binutils 2.9.1 to build the
> >kernel on HP-UX or is this some other error ?
> 
> I'm pretty sure you need the hacked egcs and binutils.  You can check them 
> out of cvs from the same place as the kernel (I use them for cross-compiling 
> though).

I suppose I should mention that the only reason I chose to compile gcc
2.8.1 and binutils 2.9.1 was that I was almost positive that gcc 2.8.1
would build with the bundled K&R compiler.  (I couldn't find a copy of
the ANSI C compiler for 11 over the weekend.)  I figured that the
vanilla gcc and binutils would give me enough of a development
environment that I could build anything else.

I have binaries of egcs 1.1.2 built, but I'm going to try to run the
test suite before I put them out on puffin.external.hp.com.  After
that, I'll go for the CVS versions.  When it looks like everything is
built for 11, I'll probably go back and build 10.20 binaries of
anything you can't already find on hpux.cs.utah.edu or
hpux.cae.wisc.edu.

BTW, I've tested the bash binary...  It seems to work fine.

Steve
-- 
steve@silug.org           | Linux Users of Central Illinois
(217)698-1694             | Meetings the 4th Tuesday of every month
Steven Pritchard          | http://www.luci.org/ for more info

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

* Re: [parisc-linux] Compiling Linux Kernel on HP-UX
  1999-06-15 15:32 ` Kirk Bresniker
@ 1999-06-15 18:10   ` John David Anglin
  0 siblings, 0 replies; 6+ messages in thread
From: John David Anglin @ 1999-06-15 18:10 UTC (permalink / raw
  To: Kirk Bresniker; +Cc: Ulrich.Strelow, parisc-linux

> 
> |
> | Hi,
> |
> | I'm trying to compile the latest CVS-snapshot (19990615) on my HP 715/33
> | using gcc 2.7.2.2 and binutils 2.7. Compiling kernel/sched.c gives the
> | following error:
> |
> | sched.c:579: section attributes are not supported for this target
> |
> gcc 2.8.1 isn't quite enough. Although it does support section
> attributes, there is a bug in the code emitted that cannot be assembled
> with gas 2.9.1. I sucessfully worked around it by changing the condition
> from a fatal error to a warning in gas.
> 
> Here is the text of the bug I submitted to gcc:

I haven't tried your sample but I don't have the the section problem
with gcc-2.95 (prerelease) and binutils-2.9.4 (pre).  I do have a
link problem:

ld -N -e _stext arch/parisc/kernel/head.o arch/parisc/kernel/init_task.o init/ma
in.o init/version.o \
	arch/parisc/kernel/kernel.o arch/parisc/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
	fs/filesystems.a \
	net/network.a \
	drivers/block/block.a drivers/char/char.a  drivers/net/net.a \
	/ehic/a/pa/linux/arch/parisc/lib/lib.a /ehic/a/pa/linux/lib/lib.a /ehic/a/pa/linux/arch/parisc/lib/lib.a \
	-o vmlinux
ld: Unsatisfied symbols:
   swapper_pg_dir (data)
   _stext (data)
make: *** [vmlinux] Error 1

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

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

end of thread, other threads:[~1999-06-15 18:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-15 10:22 [parisc-linux] Compiling Linux Kernel on HP-UX Ulrich.Strelow
1999-06-15 15:32 ` Kirk Bresniker
1999-06-15 18:10   ` John David Anglin
1999-06-15 16:41 ` Andrew Patterson
  -- strict thread matches above, loose matches on Subject: below --
1999-06-15 10:31 Tor Arntsen
1999-06-15 17:25 ` Steven Pritchard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.