Re: FTBFS on i386 for user mode linux

2019-10-21 Thread Ritesh Raj Sarraf
Hello Bastian,

On Mon, 2019-10-21 at 08:50 +0200, Bastian Blank wrote:
> > 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?
> 

That was indeed the problem. I did not pay close attention to the full
build log. The kernel config file was incomplete. After fixing the
configuration file, the package builds fine here, locally.

> 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.

It is the 5.2.x series. Like, when, a new version of the 5.2 kernel is
uploaded, say 5.2.22, just a re-build of user-mode-linux on the build
archives suffice most of the times.

Only when a new major release happens, we need to update the package
configurations.

-- 
Given the large number of mailing lists I follow, I request you to CC
me in replies for quicker response


signature.asc
Description: This is a digitally signed message part


Re: FTBFS on i386 for user mode linux

2019-10-21 Thread Bastian Blank
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



FTBFS on i386 for user mode linux

2019-10-20 Thread Ritesh Raj Sarraf
Hi,

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.

Any help on how to solve this build failure ?

  CC  arch/um/drivers/slirp_kern.o
  CC  arch/um/drivers/slirp_user.o
  CC  arch/um/drivers/daemon_kern.o
  CC  arch/um/drivers/daemon_user.o
  CC  arch/um/drivers/vector_kern.o
  CC  arch/um/drivers/vector_user.o
  CC  arch/um/drivers/vector_transports.o
  CC  arch/um/drivers/vde_kern.o
  CC  arch/um/drivers/vde_user.o
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
make[2]: *** [arch/um/drivers/Makefile:31: arch/um/drivers/vde.o] Error 1
make[1]: *** [Makefile:1061: arch/um/drivers] Error 2
make[1]: Leaving directory '/<>/linux-source-5.2'
make: *** [debian/rules:75: build-stamp] Error 2

Full build log is accessible from the buildd page linked on the tracker page:
https://tracker.debian.org/pkg/user-mode-linux
https://buildd.debian.org/status/package.php?p=user-mode-linux


-- 
Given the large number of mailing lists I follow, I request you to CC
me in replies for quicker response


signature.asc
Description: This is a digitally signed message part