Re: Problem Compiling Sparc64 Kernel

2001-12-12 Thread Patrick Morris
I had the same problem myself.  The solution (for me) was to modify the
/usr/src/linux/arch/sparch64/Makefile
so that, instead of calling sparc64-linux-ld, it used sparc64-linux-ld -m
elf64_sparc.  You'll also need to make
sure sparc64-linux-as ends up calling as -m64 as well.

Ian Chilton wrote:

 Hello,

 Trying to compile a native kernel (2.2.20 from cvs on vger) on an Ultra
 1 running Debian sid.

 First got sparc64-linux-gcc not found, so I did apt-get install egcs64
 as mentioned in the ultralinux faq.

 Then got sparc64-linux-ld / as not found so I did:

 cd /usr/bin
 ln -s as sparc64-linux-as
 ln -s ld sparc64-linux-ld

 Now, get:

 sparc64-linux-ld  -r -o kernel.o context.o signal.o ksyms.o sched.o
 dma.o fork.o exec_domain.o panic.o printk.o sys.o module.o exit.o
 itimer.o info.o time.o softirq.o resource.o sysctl.o acct.o capability.o
 kmod.o
 sparc64-linux-ld: warning: sparc:v9 architecture of input file
 `context.o' is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file
 `signal.o' is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file `ksyms.o'
 is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9a architecture of input file
 `sched.o' is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file `dma.o'
 is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file `fork.o'
 is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file
 `exec_domain.o' is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file `panic.o'
 is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file
 `printk.o' is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file `sys.o'
 is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file
 `module.o' is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file `exit.o'
 is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file
 `itimer.o' is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file `info.o'
 is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file `time.o'
 is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file
 `softirq.o' is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file
 `resource.o' is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file
 `sysctl.o' is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file `acct.o'
 is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file
 `capability.o' is incompatible with sparc output
 sparc64-linux-ld: warning: sparc:v9 architecture of input file `kmod.o'
 is incompatible with sparc output
 make[2]: *** [kernel.o] Segmentation fault
 make[2]: *** Deleting file `kernel.o'
 make[2]: Leaving directory `/usr/src/linux-2.2.20/kernel'
 make[1]: *** [first_rule] Error 2
 make[1]: Leaving directory `/usr/src/linux-2.2.20/kernel'
 make: *** [_dir_kernel] Error 2

 What am I doing wrong?

 Thanks

 Ian

 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Problem Compiling Sparc64 Kernel

2001-12-12 Thread Patrick Morris
Ack!  That flag to as (or sparc64-linux-as) should be -64, not -m64

Patrick Morris wrote:

 I had the same problem myself.  The solution (for me) was to modify the
 /usr/src/linux/arch/sparch64/Makefile
 so that, instead of calling sparc64-linux-ld, it used sparc64-linux-ld -m
 elf64_sparc.  You'll also need to make
 sure sparc64-linux-as ends up calling as -m64 as well.

 Ian Chilton wrote:

  Hello,
 
  Trying to compile a native kernel (2.2.20 from cvs on vger) on an Ultra
  1 running Debian sid.
 
  First got sparc64-linux-gcc not found, so I did apt-get install egcs64
  as mentioned in the ultralinux faq.
 
  Then got sparc64-linux-ld / as not found so I did:
 
  cd /usr/bin
  ln -s as sparc64-linux-as
  ln -s ld sparc64-linux-ld
 
  Now, get:
 
  sparc64-linux-ld  -r -o kernel.o context.o signal.o ksyms.o sched.o
  dma.o fork.o exec_domain.o panic.o printk.o sys.o module.o exit.o
  itimer.o info.o time.o softirq.o resource.o sysctl.o acct.o capability.o
  kmod.o
  sparc64-linux-ld: warning: sparc:v9 architecture of input file
  `context.o' is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file
  `signal.o' is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file `ksyms.o'
  is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9a architecture of input file
  `sched.o' is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file `dma.o'
  is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file `fork.o'
  is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file
  `exec_domain.o' is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file `panic.o'
  is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file
  `printk.o' is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file `sys.o'
  is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file
  `module.o' is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file `exit.o'
  is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file
  `itimer.o' is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file `info.o'
  is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file `time.o'
  is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file
  `softirq.o' is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file
  `resource.o' is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file
  `sysctl.o' is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file `acct.o'
  is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file
  `capability.o' is incompatible with sparc output
  sparc64-linux-ld: warning: sparc:v9 architecture of input file `kmod.o'
  is incompatible with sparc output
  make[2]: *** [kernel.o] Segmentation fault
  make[2]: *** Deleting file `kernel.o'
  make[2]: Leaving directory `/usr/src/linux-2.2.20/kernel'
  make[1]: *** [first_rule] Error 2
  make[1]: Leaving directory `/usr/src/linux-2.2.20/kernel'
  make: *** [_dir_kernel] Error 2
 
  What am I doing wrong?
 
  Thanks
 
  Ian
 
  --
  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
  with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



RE: Problem Compiling Sparc64 Kernel

2001-12-12 Thread Ian Chilton
Hello,

 I had the same problem myself.  The solution (for me) was to modify
the
 /usr/src/linux/arch/sparch64/Makefile
 so that, instead of calling sparc64-linux-ld, it used
sparc64-linux-ld
 -m elf64_sparc.  You'll also need to make
 sure sparc64-linux-as ends up calling as -m64 as well.


Glad to see that someone else had the same problem. But, is this the
correct way to fix it (if so, why hasn't it been fixed in the tree?) or
is this a hack? (if so, what is the correct way?)


Thanks

Ian




Re: Problem Compiling Sparc64 Kernel

2001-12-12 Thread Ben Collins
On Wed, Dec 12, 2001 at 10:53:49PM +, Ian Chilton wrote:
 Hello,
 
 Trying to compile a native kernel (2.2.20 from cvs on vger) on an Ultra
 1 running Debian sid.
 
 First got sparc64-linux-gcc not found, so I did apt-get install egcs64
 as mentioned in the ultralinux faq.
 
 Then got sparc64-linux-ld / as not found so I did:
 
 cd /usr/bin
 ln -s as sparc64-linux-as
 ln -s ld sparc64-linux-ld

Incorrect fix. Edit arch/sparc64/Makefile and find the NEW_GAS line, and
change --version to -V. Remove those symlinks too.


Ben

-- 
 .--===-=-==-=---==-=-.
/   Ben Collins--Debian GNU/Linux  \
`  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  '
 `---=--===-=-=-=-===-==---=--=---'



Re: Problem Compiling Sparc64 Kernel

2001-12-12 Thread David S. Miller
   From: Ben Collins [EMAIL PROTECTED]
   Date: Wed, 12 Dec 2001 19:20:01 -0500
   
   Edit arch/sparc64/Makefile and find the NEW_GAS line, and
   change --version to -V

CVS is updated.