[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FTBFS on i386 for user mode linux



On Mon, Oct 21, 2019 at 11:28:33AM +0530, Ritesh Raj Sarraf wrote:
> I recently refreshed User Mode Linux to version 5.2 in Debian Unstable.
> The package built fine for amd64 but for i386, I have run into the
> following build failure.

What did you find about it yourself?

> ld -r -dp -o arch/um/drivers/vde.o arch/um/drivers/vde_kern.o arch/um/drivers/vde_user.o  -m elf_x86_64   -r /usr/lib/gcc/i686-linux-gnu/9/../../../../lib/libvdeplug.a
> ld: relocatable linking with relocations from format elf32-i386 (/usr/lib/gcc/i686-linux-gnu/9/../../../../lib/libvdeplug.a(libvdeplug.o)) to format elf64-x86-64 (arch/um/drivers/vde.o) is not supported

grep magic shows:

| arch/um/drivers/Makefile-$(obj)/vde.o: $(obj)/vde_kern.o $(obj)/vde_user.o
| arch/um/drivers/Makefile: $(LD) -r -dp -o $@ $^ $(ld_flags)
| scripts/Makefile.lib:ld_flags       = $(KBUILD_LDFLAGS) $(ldflags-y) $(LDFLAGS_$(@F))

and:

| arch/x86/Makefile.um:KBUILD_LDFLAGS += -m elf_x86_64

Thie last line is guarded by "ifeq ($(CONFIG_X86_32),y) else".

The log shows:

| 64-bit kernel (64BIT) [Y/n/?] (NEW)

So, the configure step enables 64bit mode and the build tries to use it.
Is the input config complete?

Also:
- What version of linux is actually used?  There was never a 5.2, only
  5.2.x.
- 5.2 is not longer in unstable.

Bastian

-- 
Men of peace usually are [brave].
		-- Spock, "The Savage Curtain", stardate 5906.5


Reply to: