Summary: | net-vpn/wireguard-modules-0.0.20191226 - i686-pc-linux-gnu-ld: relocatable linking with relocations from format elf64-x86-64 (...) to format elf32-i386 (...) is not supported | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joakim Tjernlund <joakim.tjernlund> |
Component: | Current packages | Assignee: | Jason A. Donenfeld <zx2c4> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | kernel |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Joakim Tjernlund
2020-01-01 14:29:58 UTC
I forced some env. vars for this module: # > cat /etc/portage/env/arch_x86_64.conf LDEMULATION="elf_x86_64" BUILD_FIXES="CFLAGS_MODULE=-m64 AFLAGS_MODULE=-m64" Now it builds (In reply to Joakim Tjernlund from comment #1) > I forced some env. vars for this module: > # > cat /etc/portage/env/arch_x86_64.conf > LDEMULATION="elf_x86_64" > BUILD_FIXES="CFLAGS_MODULE=-m64 AFLAGS_MODULE=-m64" > > Now it builds Is this therefore a bug? Anything I should be doing? (In reply to Joakim Tjernlund from comment #1) > I forced some env. vars for this module: > # > cat /etc/portage/env/arch_x86_64.conf > LDEMULATION="elf_x86_64" > BUILD_FIXES="CFLAGS_MODULE=-m64 AFLAGS_MODULE=-m64" > > Now it builds Is this therefore a bug? Anything I should be doing? (In reply to Jason A. Donenfeld from comment #3) > (In reply to Joakim Tjernlund from comment #1) > > I forced some env. vars for this module: > > # > cat /etc/portage/env/arch_x86_64.conf > > LDEMULATION="elf_x86_64" > > BUILD_FIXES="CFLAGS_MODULE=-m64 AFLAGS_MODULE=-m64" > > > > Now it builds > > Is this therefore a bug? Anything I should be doing? I think so, in tree modules build fine Moticed that it is enough to just use LDEMULATION="elf_x86_64" I guess that ld is used to link somewhere rather than using gcc (In reply to Joakim Tjernlund from comment #4) > (In reply to Jason A. Donenfeld from comment #3) > > (In reply to Joakim Tjernlund from comment #1) > > > I forced some env. vars for this module: > > > # > cat /etc/portage/env/arch_x86_64.conf > > > LDEMULATION="elf_x86_64" > > > BUILD_FIXES="CFLAGS_MODULE=-m64 AFLAGS_MODULE=-m64" > > > > > > Now it builds > > > > Is this therefore a bug? Anything I should be doing? > > I think so, in tree modules build fine > Moticed that it is enough to just use > LDEMULATION="elf_x86_64" > > I guess that ld is used to link somewhere rather than using gcc or not passing CFLAGS when linking with gcc? |