Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 893622

Summary: sys-libs/efivar-37 - mold: fatal: unknown command line option: --add-needed
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Mike Gilbert <floppym>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 830404    
Attachments: emerge --info
build.log

Description ernsteiswuerfel archtester 2023-02-08 17:27:48 UTC
Created attachment 850184 [details]
emerge --info

[...]
In file included from efivar.h:30,
                 from guid.c:27:
dp.h: In function 'format_vendor_helper':
dp.h:118:44: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member]
  118 |         format_guid(buf, size, off, label, &dp->hw_vendor.vendor_guid);
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
dp.h:74:39: note: in definition of macro 'format_guid'
   74 |                 _rc = efi_guid_to_str(guid, &_guidstr);                 \
      |                                       ^~~~
mold: fatal: unknown command line option: --add-needed
collect2: error: ld returned 1 exit status
make[1]: *** [/var/tmp/portage/sys-libs/efivar-37/work/efivar-37/Make.rules:13: makeguids] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-libs/efivar-37/work/efivar-37/src'
make: *** [Makefile:14: all] Error 2
Comment 1 ernsteiswuerfel archtester 2023-02-08 17:28:10 UTC
Created attachment 850186 [details]
build.log
Comment 2 Stephan Hartmann (RETIRED) gentoo-dev 2023-02-08 17:32:55 UTC

*** This bug has been marked as a duplicate of bug 831472 ***