* Commit f9afbd45b0d0 broke mips r4k.
@ 2013-06-13 2:35 Rob Landley
2013-06-13 9:00 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Rob Landley @ 2013-06-13 2:35 UTC (permalink / raw)
To: linux-kernel, sanjayl, kvm, linux-mips, ralf
[-- Attachment #1: Type: text/plain, Size: 2234 bytes --]
My aboriginal linux project builds tiny linux systems to run under
qemu, producing as close to the same system as possible across a bunch
of different architectures. The above change broke the mips r4k build
I've been running under qemu.
Here's a toolchain and reproduction sequence:
wget http://landley.net/aboriginal/bin/cross-compiler-mips.tar.bz2
tar xvjf cross-compiler-mips.tar.bz2
export PATH=$PWD/cross-compiler-mips/bin:$PATH
make ARCH=mips allnoconfig KCONFIG_ALLCONFIG=miniconfig.mips
make CROSS_COMPILE=mips- ARCH=mips
(The file miniconfig.mips is attached.)
It ends:
CC init/version.o
LD init/built-in.o
arch/mips/built-in.o: In function `local_r4k_flush_cache_page':
c-r4k.c:(.text+0xe278): undefined reference to `kvm_local_flush_tlb_all'
c-r4k.c:(.text+0xe278): relocation truncated to fit: R_MIPS_26 against
`kvm_local_flush_tlb_all'
arch/mips/built-in.o: In function `local_flush_tlb_range':
(.text+0xe938): undefined reference to `kvm_local_flush_tlb_all'
arch/mips/built-in.o: In function `local_flush_tlb_range':
(.text+0xe938): relocation truncated to fit: R_MIPS_26 against
`kvm_local_flush_tlb_all'
arch/mips/built-in.o: In function `local_flush_tlb_mm':
(.text+0xed38): undefined reference to `kvm_local_flush_tlb_all'
arch/mips/built-in.o: In function `local_flush_tlb_mm':
(.text+0xed38): relocation truncated to fit: R_MIPS_26 against
`kvm_local_flush_tlb_all'
kernel/built-in.o: In function `__schedule':
core.c:(.sched.text+0x16a0): undefined reference to
`kvm_local_flush_tlb_all'
core.c:(.sched.text+0x16a0): relocation truncated to fit: R_MIPS_26
against `kvm_local_flush_tlb_all'
mm/built-in.o: In function `use_mm':
(.text+0x182c8): undefined reference to `kvm_local_flush_tlb_all'
mm/built-in.o: In function `use_mm':
(.text+0x182c8): relocation truncated to fit: R_MIPS_26 against
`kvm_local_flush_tlb_all'
fs/built-in.o:(.text+0x7b50): more undefined references to
`kvm_local_flush_tlb_all' follow
fs/built-in.o: In function `flush_old_exec':
(.text+0x7b50): relocation truncated to fit: R_MIPS_26 against
`kvm_local_flush_tlb_all'
Revert the above commit and it builds to the end.
Rob
[-- Attachment #2: miniconfig.mips --]
[-- Type: text/plain, Size: 1508 bytes --]
CONFIG_EXPERIMENTAL=y
CONFIG_NO_HZ=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_PCI=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_SCRIPT=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_BLK_DEV=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_IDE=y
CONFIG_IDE_GD=y
CONFIG_IDE_GD_ATA=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_BLK_DEV_SR=y
CONFIG_SCSI_LOWLEVEL=y
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_NETDEVICES=y
CONFIG_NET_ETHERNET=y
CONFIG_NET_PCI=y
CONFIG_8139CP=y
CONFIG_HW_RANDOM=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_DEV=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT23=y
CONFIG_TMPFS=y
CONFIG_MISC_FILESYSTEMS=y
CONFIG_SQUASHFS=y
CONFIG_SQUASHFS_ZLIB=y
CONFIG_DEVTMPFS=y
CONFIG_VIRTUALIZATION=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_NET=y
CONFIG_NET_9P=y
CONFIG_NET_9P_VIRTIO=y
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_9P_FS=y
CONFIG_9P_FS_POSIX_ACL=y
# More random (inexplicable) guard symbols added in 3.2. TODO: write
# miniconfig expander that automatically sets guard symbols when setting a
# dependent symbol.
CONFIG_ETHERNET=y
CONFIG_NET_VENDOR_INTEL=y
CONFIG_NET_VENDOR_REALTEK=y
CONFIG_NET_VENDOR_AMD=y
CONFIG_NET_VENDOR_NATSEMI=y
CONFIG_NET_VENDOR_8390=y
CONFIG_MIPS_MALTA=y
CONFIG_CPU_MIPS32_R2=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
#CONFIG_PM=y
CONFIG_PCNET32=y
CONFIG_BLK_DEV_PIIX=y
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Commit f9afbd45b0d0 broke mips r4k.
2013-06-13 2:35 Commit f9afbd45b0d0 broke mips r4k Rob Landley
@ 2013-06-13 9:00 ` Ralf Baechle
2013-06-16 6:51 ` Rob Landley
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2013-06-13 9:00 UTC (permalink / raw)
To: Rob Landley; +Cc: linux-kernel, sanjayl, kvm, linux-mips, Markos Chandras
On Wed, Jun 12, 2013 at 09:35:16PM -0500, Rob Landley wrote:
> My aboriginal linux project builds tiny linux systems to run under
> qemu, producing as close to the same system as possible across a
> bunch of different architectures. The above change broke the mips
> r4k build I've been running under qemu.
>
> Here's a toolchain and reproduction sequence:
>
> wget http://landley.net/aboriginal/bin/cross-compiler-mips.tar.bz2
> tar xvjf cross-compiler-mips.tar.bz2
> export PATH=$PWD/cross-compiler-mips/bin:$PATH
> make ARCH=mips allnoconfig KCONFIG_ALLCONFIG=miniconfig.mips
> make CROSS_COMPILE=mips- ARCH=mips
>
> (The file miniconfig.mips is attached.)
>
> It ends:
>
> CC init/version.o
> LD init/built-in.o
> arch/mips/built-in.o: In function `local_r4k_flush_cache_page':
> c-r4k.c:(.text+0xe278): undefined reference to `kvm_local_flush_tlb_all'
> c-r4k.c:(.text+0xe278): relocation truncated to fit: R_MIPS_26
> against `kvm_local_flush_tlb_all'
> arch/mips/built-in.o: In function `local_flush_tlb_range':
> (.text+0xe938): undefined reference to `kvm_local_flush_tlb_all'
> arch/mips/built-in.o: In function `local_flush_tlb_range':
> (.text+0xe938): relocation truncated to fit: R_MIPS_26 against
> `kvm_local_flush_tlb_all'
> arch/mips/built-in.o: In function `local_flush_tlb_mm':
> (.text+0xed38): undefined reference to `kvm_local_flush_tlb_all'
> arch/mips/built-in.o: In function `local_flush_tlb_mm':
> (.text+0xed38): relocation truncated to fit: R_MIPS_26 against
> `kvm_local_flush_tlb_all'
> kernel/built-in.o: In function `__schedule':
> core.c:(.sched.text+0x16a0): undefined reference to
> `kvm_local_flush_tlb_all'
> core.c:(.sched.text+0x16a0): relocation truncated to fit: R_MIPS_26
> against `kvm_local_flush_tlb_all'
> mm/built-in.o: In function `use_mm':
> (.text+0x182c8): undefined reference to `kvm_local_flush_tlb_all'
> mm/built-in.o: In function `use_mm':
> (.text+0x182c8): relocation truncated to fit: R_MIPS_26 against
> `kvm_local_flush_tlb_all'
> fs/built-in.o:(.text+0x7b50): more undefined references to
> `kvm_local_flush_tlb_all' follow
> fs/built-in.o: In function `flush_old_exec':
> (.text+0x7b50): relocation truncated to fit: R_MIPS_26 against
> `kvm_local_flush_tlb_all'
>
> Revert the above commit and it builds to the end.
Commit d414976d1ca721456f7b7c603a8699d117c2ec07 [MIPS: include:
mmu_context.h: Replace VIRTUALIZATION with KVM] fixes the issue and
was pulled by Linus only yesterday. I cannot reproduce the error
following your receipe using the latest Linux/MIPS tree.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Commit f9afbd45b0d0 broke mips r4k.
2013-06-13 9:00 ` Ralf Baechle
@ 2013-06-16 6:51 ` Rob Landley
0 siblings, 0 replies; 3+ messages in thread
From: Rob Landley @ 2013-06-16 6:51 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-kernel, sanjayl, kvm, linux-mips, Markos Chandras
On 06/13/2013 04:00:02 AM, Ralf Baechle wrote:
> On Wed, Jun 12, 2013 at 09:35:16PM -0500, Rob Landley wrote:
>
> > My aboriginal linux project builds tiny linux systems to run under
> > qemu, producing as close to the same system as possible across a
> > bunch of different architectures. The above change broke the mips
> > r4k build I've been running under qemu.
> >
> > Here's a toolchain and reproduction sequence:
> >
> > wget http://landley.net/aboriginal/bin/cross-compiler-mips.tar.bz2
> > tar xvjf cross-compiler-mips.tar.bz2
> > export PATH=$PWD/cross-compiler-mips/bin:$PATH
> > make ARCH=mips allnoconfig KCONFIG_ALLCONFIG=miniconfig.mips
> > make CROSS_COMPILE=mips- ARCH=mips
> >
> > (The file miniconfig.mips is attached.)
> >
> > It ends:
> >
> > CC init/version.o
> > LD init/built-in.o
> > arch/mips/built-in.o: In function `local_r4k_flush_cache_page':
> > c-r4k.c:(.text+0xe278): undefined reference to
> `kvm_local_flush_tlb_all'
> > c-r4k.c:(.text+0xe278): relocation truncated to fit: R_MIPS_26
> > against `kvm_local_flush_tlb_all'
> > arch/mips/built-in.o: In function `local_flush_tlb_range':
> > (.text+0xe938): undefined reference to `kvm_local_flush_tlb_all'
> > arch/mips/built-in.o: In function `local_flush_tlb_range':
> > (.text+0xe938): relocation truncated to fit: R_MIPS_26 against
> > `kvm_local_flush_tlb_all'
> > arch/mips/built-in.o: In function `local_flush_tlb_mm':
> > (.text+0xed38): undefined reference to `kvm_local_flush_tlb_all'
> > arch/mips/built-in.o: In function `local_flush_tlb_mm':
> > (.text+0xed38): relocation truncated to fit: R_MIPS_26 against
> > `kvm_local_flush_tlb_all'
> > kernel/built-in.o: In function `__schedule':
> > core.c:(.sched.text+0x16a0): undefined reference to
> > `kvm_local_flush_tlb_all'
> > core.c:(.sched.text+0x16a0): relocation truncated to fit: R_MIPS_26
> > against `kvm_local_flush_tlb_all'
> > mm/built-in.o: In function `use_mm':
> > (.text+0x182c8): undefined reference to `kvm_local_flush_tlb_all'
> > mm/built-in.o: In function `use_mm':
> > (.text+0x182c8): relocation truncated to fit: R_MIPS_26 against
> > `kvm_local_flush_tlb_all'
> > fs/built-in.o:(.text+0x7b50): more undefined references to
> > `kvm_local_flush_tlb_all' follow
> > fs/built-in.o: In function `flush_old_exec':
> > (.text+0x7b50): relocation truncated to fit: R_MIPS_26 against
> > `kvm_local_flush_tlb_all'
> >
> > Revert the above commit and it builds to the end.
>
> Commit d414976d1ca721456f7b7c603a8699d117c2ec07 [MIPS: include:
> mmu_context.h: Replace VIRTUALIZATION with KVM] fixes the issue and
> was pulled by Linus only yesterday. I cannot reproduce the error
> following your receipe using the latest Linux/MIPS tree.
Confirmed, that fixed it.
Thanks,
Rob
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-16 6:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-13 2:35 Commit f9afbd45b0d0 broke mips r4k Rob Landley
2013-06-13 9:00 ` Ralf Baechle
2013-06-16 6:51 ` Rob Landley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox