All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] 64-bit kernel builds with gcc-3.4 experimental cross.
@ 2003-09-17 16:18 Carlos O'Donell
  2003-09-17 16:43 ` John David Anglin
  0 siblings, 1 reply; 6+ messages in thread
From: Carlos O'Donell @ 2003-09-17 16:18 UTC (permalink / raw)
  To: parisc-linux, John David Anglin

jda,

Any thoughts? This ld was from a multi-arch binutils that had
enable-targets with hppa64-linux.

---
hppa64-linux-ld  -r -o kernel.o sched.o dma.o fork.o exec_domain.o
panic.o printk.o module.o exit.o itimer.o info.o time.o softirq.o
resource.o sysctl.o acct.o capability.o ptrace.o timer.o user.o signal.o
sys.o kmod.o context.o
hppa64-linux-ld: Relocatable linking with relocations from format
elf32-hppa-linux (sched.o) to format elf32-hppa-linux (kernel.o) is not
supported
make[2]: *** [kernel.o] Error 1
make[2]: Leaving directory `/mnt/flaire/src/linux-2.4/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/mnt/flaire/src/linux-2.4/kernel'
make: *** [_dir_kernel] Error 2
carlos@firin:/mnt/flaire/src/linux-2.4$
---
GNU ld version 2.14.90 20030917

Reading specs from
/mnt/flaire/hppa-toolchain/install/lib/gcc/hppa64-linux/3.4/specs
Configured with: '../gcc-cvs/configure' '--host=hppa-linux
'--prefix=/mnt/flaire/hppa-toolchain/install '--target=hppa64-linux
'--build=hppa-linux
'--with-gnu-ld=/mnt/flaire/hppa-toolchain/install/bin/ld
'--with-gnu-as=/mnt/flaire/hppa-toolchain/install/bin/as
'--enable-languages=c
Thread model: posix
gcc version 3.4 20030916 (experimental)

c.

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

* Re: [parisc-linux] 64-bit kernel builds with gcc-3.4 experimental cross.
  2003-09-17 16:18 [parisc-linux] 64-bit kernel builds with gcc-3.4 experimental cross Carlos O'Donell
@ 2003-09-17 16:43 ` John David Anglin
  2003-09-17 22:54   ` Carlos O'Donell
  0 siblings, 1 reply; 6+ messages in thread
From: John David Anglin @ 2003-09-17 16:43 UTC (permalink / raw)
  To: Carlos O'Donell; +Cc: parisc-linux, dave.anglin

> Any thoughts? This ld was from a multi-arch binutils that had
> enable-targets with hppa64-linux.
> 
> ---
> hppa64-linux-ld  -r -o kernel.o sched.o dma.o fork.o exec_domain.o
> panic.o printk.o module.o exit.o itimer.o info.o time.o softirq.o
> resource.o sysctl.o acct.o capability.o ptrace.o timer.o user.o signal.o
> sys.o kmod.o context.o
> hppa64-linux-ld: Relocatable linking with relocations from format
> elf32-hppa-linux (sched.o) to format elf32-hppa-linux (kernel.o) is not
> supported

As far as I know, there is no multi-arch support in ld or as.
There isn't multi-arch support in GCC either.  You need separate
compilers for 32 and 64 bits.

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

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

* Re: [parisc-linux] 64-bit kernel builds with gcc-3.4 experimental cross.
  2003-09-17 16:43 ` John David Anglin
@ 2003-09-17 22:54   ` Carlos O'Donell
  2003-09-17 23:15     ` John David Anglin
  2003-09-18  0:38     ` Matthew Wilcox
  0 siblings, 2 replies; 6+ messages in thread
From: Carlos O'Donell @ 2003-09-17 22:54 UTC (permalink / raw)
  To: John David Anglin; +Cc: parisc-linux, dave.anglin

On Wed, Sep 17, 2003 at 12:43:18PM -0400, John David Anglin wrote:
> > Any thoughts? This ld was from a multi-arch binutils that had
> > enable-targets with hppa64-linux.
> > 
> > ---
> > hppa64-linux-ld  -r -o kernel.o sched.o dma.o fork.o exec_domain.o
> > panic.o printk.o module.o exit.o itimer.o info.o time.o softirq.o
> > resource.o sysctl.o acct.o capability.o ptrace.o timer.o user.o signal.o
> > sys.o kmod.o context.o
> > hppa64-linux-ld: Relocatable linking with relocations from format
> > elf32-hppa-linux (sched.o) to format elf32-hppa-linux (kernel.o) is not
> > supported
> 
> As far as I know, there is no multi-arch support in ld or as.
> There isn't multi-arch support in GCC either.  You need separate
> compilers for 32 and 64 bits.

Separate compilers yes. Separate linker and assembler no.
I thought I could use '--enable-targets=hppa64-linux' in binutils.

c.

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

* Re: [parisc-linux] 64-bit kernel builds with gcc-3.4 experimental cross.
  2003-09-17 22:54   ` Carlos O'Donell
@ 2003-09-17 23:15     ` John David Anglin
  2003-09-18  0:38     ` Matthew Wilcox
  1 sibling, 0 replies; 6+ messages in thread
From: John David Anglin @ 2003-09-17 23:15 UTC (permalink / raw)
  To: Carlos O'Donell; +Cc: parisc-linux, dave.anglin

> Separate compilers yes. Separate linker and assembler no.

There isn't an option in as to select the output object format.
There are somewhat different relocations used in the 32 and 64
bit formats.  So, I don't see how you can use a single assembler
for both.

You may be able to use "-A" with ld but GCC doesn't support this.

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

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

* Re: [parisc-linux] 64-bit kernel builds with gcc-3.4 experimental cross.
  2003-09-17 22:54   ` Carlos O'Donell
  2003-09-17 23:15     ` John David Anglin
@ 2003-09-18  0:38     ` Matthew Wilcox
  2003-09-18  1:40       ` Carlos O'Donell
  1 sibling, 1 reply; 6+ messages in thread
From: Matthew Wilcox @ 2003-09-18  0:38 UTC (permalink / raw)
  To: Carlos O'Donell; +Cc: John David Anglin, parisc-linux, dave.anglin

On Wed, Sep 17, 2003 at 06:54:07PM -0400, Carlos O'Donell wrote:
> On Wed, Sep 17, 2003 at 12:43:18PM -0400, John David Anglin wrote:
> > > hppa64-linux-ld: Relocatable linking with relocations from format
> > > elf32-hppa-linux (sched.o) to format elf32-hppa-linux (kernel.o) is not
> > > supported
> > 
> > As far as I know, there is no multi-arch support in ld or as.
> > There isn't multi-arch support in GCC either.  You need separate
> > compilers for 32 and 64 bits.
> 
> Separate compilers yes. Separate linker and assembler no.
> I thought I could use '--enable-targets=hppa64-linux' in binutils.

I think that only works for some parts of binutils -- specifically not ld.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

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

* Re: [parisc-linux] 64-bit kernel builds with gcc-3.4 experimental cross.
  2003-09-18  0:38     ` Matthew Wilcox
@ 2003-09-18  1:40       ` Carlos O'Donell
  0 siblings, 0 replies; 6+ messages in thread
From: Carlos O'Donell @ 2003-09-18  1:40 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: John David Anglin, parisc-linux, dave.anglin

> > 
> > Separate compilers yes. Separate linker and assembler no.
> > I thought I could use '--enable-targets=hppa64-linux' in binutils.
> 
> I think that only works for some parts of binutils -- specifically not ld.
> 

So it seems. Fiddle sticks. Two builds it is then :)

c.

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

end of thread, other threads:[~2003-09-18  1:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-17 16:18 [parisc-linux] 64-bit kernel builds with gcc-3.4 experimental cross Carlos O'Donell
2003-09-17 16:43 ` John David Anglin
2003-09-17 22:54   ` Carlos O'Donell
2003-09-17 23:15     ` John David Anglin
2003-09-18  0:38     ` Matthew Wilcox
2003-09-18  1:40       ` Carlos O'Donell

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.