lkml.org 
[lkml]   [2003]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Linux-2.5.54-sparc64 compile errors
On Sat, 4 Jan 2003, James Morris wrote:

> kernel.h. A patch below resolves this for sparc64 by not including some

Thank you, it worked. Here is my "patch" which makes almost
compile the source... (I've tried only sparc64) But linking is not
correct, here is the errormessage:

ld -m elf64_sparc -T arch/sparc64/vmlinux.lds.s
arch/sparc64/kernel/head.o arch/sparc64/kernel/init_task.o
init/built-in.o --start-group usr/built-in.o
arch/sparc64/kernel/built-in.o arch/sparc64/mm/built-in.o
arch/sparc64/solaris/built-in.o
arch/sparc64/math-emu/built-in.o kernel/built-in.o mm/built-in.o
fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o
lib/lib.a arch/sparc64/prom/lib.a arch/sparc64/lib/lib.a
drivers/built-in.o sound/built-in.o net/built-in.o --end-group -o
vmlinux
arch/sparc64/solaris/built-in.o(.text+0xb4): In function `entry64_personality_patch':
: undefined reference to `TI_FLAGS'
arch/sparc64/solaris/built-in.o(.text+0xb4): In function `entry64_personality_patch':
: relocation truncated to fit: R_SPARC_13 TI_FLAGS
arch/sparc64/solaris/built-in.o(.text+0xdc): In function `entry64_personality_patch':
: undefined reference to `_TIF_SYSCALL_TRACE'
arch/sparc64/solaris/built-in.o(.text+0xdc): In function `entry64_personality_patch':
: relocation truncated to fit: R_SPARC_13 _TIF_SYSCALL_TRACE
arch/sparc64/solaris/built-in.o(.text+0xf4): In function `ret_from_solaris':
: undefined reference to `TI_FLAGS'
arch/sparc64/solaris/built-in.o(.text+0xf4): In function `ret_from_solaris':
: relocation truncated to fit: R_SPARC_13 TI_FLAGS
arch/sparc64/solaris/built-in.o(.text+0x110): In function `ret_from_solaris':
: undefined reference to `_TIF_SYSCALL_TRACE'
arch/sparc64/solaris/built-in.o(.text+0x110): In function `ret_from_solaris':
: relocation truncated to fit: R_SPARC_13 _TIF_SYSCALL_TRACE
kernel/built-in.o(.data+0x1708): undefined reference to `hugetlb_sysctl_handler'
mm/built-in.o(.text+0xc67c): In function `unmap_page_range':
: undefined reference to `unmap_hugepage_range'
mm/built-in.o(.text+0xc7a0): In function `zap_page_range':
: undefined reference to `zap_hugepage_range'
fs/built-in.o(.text+0x320f0): In function `meminfo_read_proc':
: undefined reference to `hugetlb_report_meminfo'
drivers/built-in.o(.text+0x1af90): In function `kd_nosound':
: undefined reference to `input_event'
drivers/built-in.o(.text+0x1afb4): In function `kd_nosound':
: undefined reference to `input_event'
drivers/built-in.o(.text+0x1b090): In function `kd_mksound':
: undefined reference to `input_event'
drivers/built-in.o(.text+0x1b0a8): In function `kd_mksound':
: undefined reference to `input_event'
drivers/built-in.o(.text+0x1c364): In function `kbd_bh':
: undefined reference to `input_event'
drivers/built-in.o(.text+0x1c378): more undefined references to `input_event' follow
drivers/built-in.o(.text+0x1c990): In function `kbd_connect':
: undefined reference to `input_open_device'
drivers/built-in.o(.text+0x1c9a4): In function `kbd_disconnect':
: undefined reference to `input_close_device'
drivers/built-in.o(.init.text+0x2bec): In function `kbd_init':
: undefined reference to `input_register_handler'
make: *** [vmlinux] Error 1

And one more error, if Stack Overflow Detection Support is checked
then the following errormessage comes:
sparc64-linux-gcc: -pg and -fomit-frame-pointer are incompatible



--
Woockie
..."what is there in this world that makes living worthwhile?"
Death thought about it. "CATS," he said eventually, "CATS ARE NICE."
(Terry Pratchett, Sourcery)
diff -ruNp a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig
--- a/arch/sparc64/Kconfig 2003-01-02 04:23:01.000000000 +0100
+++ b/arch/sparc64/Kconfig 2003-01-02 19:09:53.000000000 +0100
@@ -986,7 +986,8 @@ choice
optional
depends on SCSI && PCI

-source "drivers/scsi/aic7xxx/Kconfig"
+source "drivers/scsi/aic7xxx/Kconfig.aic7xxx"
+source "drivers/scsi/aic7xxx/Kconfig.aic79xx"

config SCSI_AIC7XXX_OLD
tristate "Old driver"
diff -ruNp a/arch/sparc64/Makefile b/arch/sparc64/Makefile
--- a/arch/sparc64/Makefile 2003-01-02 04:23:15.000000000 +0100
+++ b/arch/sparc64/Makefile 2003-01-03 16:02:27.000000000 +0100
@@ -74,6 +74,10 @@ drivers-$(CONFIG_OPROFILE) += arch/sparc
tftpboot.img vmlinux.aout:
$(Q)$(MAKE) $(build)=arch/sparc64/boot arch/sparc64/boot/$@

+archmrproper:
+archclean:
+ $(Q)$(MAKE) $(clean)=arch/sparc64/boot
+
define archhelp
echo '* vmlinux - Standard sparc64 kernel'
echo ' vmlinux.aout - a.out kernel for sparc64'
diff -ruNp a/include/asm-sparc64/smp.h b/include/asm-sparc64/smp.h
--- a/include/asm-sparc64/smp.h 2003-01-02 04:21:40.000000000 +0100
+++ b/include/asm-sparc64/smp.h 2003-01-03 15:02:38.000000000 +0100
@@ -7,13 +7,13 @@
#define _SPARC64_SMP_H

#include <linux/config.h>
-#include <linux/threads.h>
-#include <linux/cache.h>
#include <asm/asi.h>
#include <asm/starfire.h>
#include <asm/spitfire.h>

#ifndef __ASSEMBLY__
+#include <linux/threads.h>
+#include <linux/cache.h>
/* PROM provided per-processor information we need
* to start them all up.
*/
diff -ruNp a/include/linux/interrupt.h b/include/linux/interrupt.h
--- a/include/linux/interrupt.h 2003-01-02 04:22:17.000000000 +0100
+++ b/include/linux/interrupt.h 2003-01-02 19:32:01.000000000 +0100
@@ -5,6 +5,7 @@
#include <linux/config.h>
#include <linux/linkage.h>
#include <linux/bitops.h>
+#include <linux/cache.h>
#include <asm/atomic.h>
#include <asm/hardirq.h>
#include <asm/ptrace.h>
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.076 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site