Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831417 - sys-libs/efivar-38 fails to build with sys-devel/binutils-2.36
Summary: sys-libs/efivar-38 fails to build with sys-devel/binutils-2.36
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL: https://github.com/rhboot/efivar/comm...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-01-18 16:59 UTC by Attila Tóth
Modified: 2022-01-18 18:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2022-01-18 16:59:37 UTC
x86_64-pc-linux-gnu-gcc -O2 -march=native -pipe -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs -fno-merge-constants  -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs -fno-merge-constants  -L. -O2 -march=native -pipe -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs -fno-merge-constants  -L. -Wl,-O1 -Wl,--as-needed  -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings     -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings     -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/  -shared -Wl,-soname,libefisec.so.1 -Wl,--version-script=libefisec.map  \
         \
        -o libefisec.so sec.o secdb.o esl-iter.o util.o
ln -vfs libefisec.so libefisec.so.1
'libefisec.so.1' -> 'libefisec.so'
x86_64-pc-linux-gnu-gcc -O2 -march=native -pipe -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs -fno-merge-constants  -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs -fno-merge-constants  -L. -O2 -march=native -pipe -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs -fno-merge-constants  -L. -Wl,-O1 -Wl,--as-needed  -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings     -Wl,--add-needed -Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings     -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/  -shared -Wl,-soname,libefivar.so.1 -Wl,--version-script=libefivar.map  \
         guids.lds \
        -o libefivar.so crc32.o dp.o dp-acpi.o dp-hw.o dp-media.o dp-message.o efivarfs.o error.o export.o guid.o guid-symbols.o lib.o vars.o time.o -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: warning: guids.lds contains output sections; did you forget -T?
collect2: error: ld returned 1 exit status
make[1]: *** [/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/rules.mk:39: libefivar.so] Error 1
rm thread-test.o


Reproducible: Always
Comment 1 Attila Tóth 2022-01-18 17:02:01 UTC
Please see github commit URL for patch.
Comment 2 Attila Tóth 2022-01-18 17:54:30 UTC
(In reply to Attila Tóth from comment #1)
> Please see github commit URL for patch.

It works with binutils-2.37, but - as it is visible in the patch - for version 2.36 the linker option -T is not added.
Comment 3 Mike Gilbert gentoo-dev 2022-01-18 18:26:37 UTC
Is there some reason you are still using binutils-2.36?
Comment 4 Larry the Git Cow gentoo-dev 2022-01-18 18:28:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a210fd9af7db9e2d9088fd39d3f030153596c17a

commit a210fd9af7db9e2d9088fd39d3f030153596c17a
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-01-18 18:28:08 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-01-18 18:28:08 +0000

    sys-libs/efivar: backport fix for binutils-2.36
    
    Closes: https://bugs.gentoo.org/831417
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-libs/efivar/efivar-38.ebuild                   |  1 +
 .../efivar/files/efivar-38-binutils-2.36.patch     | 30 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)
Comment 5 Attila Tóth 2022-01-18 18:34:33 UTC
(In reply to Mike Gilbert from comment #3)
> Is there some reason you are still using binutils-2.36?

I just forgot to bump using eselect. Now I'm on binutils-2.37, but I thought I would leave a trace, that might be helpful for others.