[parisc-linux] [PATCH 1/2] parisc: beautify vmlinux.lds

Sam Ravnborg sam at ravnborg.org
Thu Oct 11 13:39:23 MDT 2007


On Wed, Oct 10, 2007 at 05:21:54PM -0400, Kyle McMartin wrote:
> On Wed, Oct 10, 2007 at 10:34:08PM +0200, Sam Ravnborg wrote:
> > On Wed, Oct 10, 2007 at 04:27:05PM -0400, Kyle McMartin wrote:
> > > On Wed, Oct 10, 2007 at 10:26:02PM +0200, Sam Ravnborg wrote:
> > > > As I was anyway looking at parisc I made a few janitorial updates.
> > > > Due to lack of toolchain I have not even build tested this patch!
> > > > 
> > > 
> > > kyle.mcmartin.ca/hppa64-hp-linux-gcc-3.4.tar
> > > 
> > > I have a 32-bit toolchain somewhere too, but I can't recall where. If
> > > you want it I'll find it. (Cross-built for i386).
> > 
> > I mostly do defconfig builds and as defconfig is 32bit that is preferred.
> > Or you can cheat and update defconfig :-)
> > 
> > i386 is fine.
> > 
> 
> hppa-hp-linux-gcc-3.4.tar is the 32-bit toolchain.

I installed it in /home/toolchains but I get this when building the kernel:
  CC      arch/parisc/kernel/asm-offsets.s
In file included from /home/sam/kernel/linux-2.6.git/include/linux/sched.h:51,
                 from /home/sam/kernel/linux-2.6.git/arch/parisc/kernel/asm-offsets.c:31:
/home/sam/kernel/linux-2.6.git/include/linux/kernel.h:127: warning: conflicting types for built-in function 'snprintf'
/home/sam/kernel/linux-2.6.git/include/linux/kernel.h:129: warning: conflicting types for built-in function 'vsnprintf'
In file included from /home/sam/kernel/linux-2.6.git/include/linux/string.h:21,
                 from /home/sam/kernel/linux-2.6.git/include/linux/bitmap.h:8,
                 from /home/sam/kernel/linux-2.6.git/include/linux/cpumask.h:86,
                 from /home/sam/kernel/linux-2.6.git/include/linux/sched.h:57,
                 from /home/sam/kernel/linux-2.6.git/arch/parisc/kernel/asm-offsets.c:31:
include2/asm/string.h:5: warning: conflicting types for built-in function 'memset'
include2/asm/string.h:8: warning: conflicting types for built-in function 'memcpy'
In file included from /home/sam/kernel/linux-2.6.git/include/linux/bitmap.h:8,
                 from /home/sam/kernel/linux-2.6.git/include/linux/cpumask.h:86,
                 from /home/sam/kernel/linux-2.6.git/include/linux/sched.h:57,
                 from /home/sam/kernel/linux-2.6.git/arch/parisc/kernel/asm-offsets.c:31:
/home/sam/kernel/linux-2.6.git/include/linux/string.h:27: warning: conflicting types for built-in function 'strncpy'
/home/sam/kernel/linux-2.6.git/include/linux/string.h:36: warning: conflicting types for built-in function 'strncat'
/home/sam/kernel/linux-2.6.git/include/linux/string.h:45: warning: conflicting types for built-in function 'strncmp'
/home/sam/kernel/linux-2.6.git/include/linux/string.h:70: warning: conflicting types for built-in function 'strlen'
/home/sam/kernel/linux-2.6.git/include/linux/string.h:82: warning: conflicting types for built-in function 'strspn'
/home/sam/kernel/linux-2.6.git/include/linux/string.h:85: warning: conflicting types for built-in function 'strcspn'
/home/sam/kernel/linux-2.6.git/include/linux/string.h:95: warning: conflicting types for built-in function 'memmove'
/home/sam/kernel/linux-2.6.git/include/linux/string.h:101: warning: conflicting types for built-in function 'memcmp'


And later this:
  LD      arch/parisc/kernel/built-in.o
hppa64-hp-linux-ld: Relocatable linking with relocations from format elf64-hppa-linux (arch/parisc/kernel/syscall.o) to format elf64-hppa-linux (arch/parisc/kernel/built-in.o) is not supported


It is with a defconfig kernel on latest linus.
Suspecting a toolchain issue but cannot point finger at what it is.

If anyone have a .dat file for crosstool around I could build it myself.

Thanks in advance,

	Sam




More information about the parisc-linux mailing list