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

Bug 768900

Summary: www-client/firefox: compiler is incompatible with sanitize options
Product: Gentoo Linux Reporter: Marco Clocchiatti <ziapannocchia>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build log
environment

Description Marco Clocchiatti 2021-02-05 20:27:19 UTC
build failes with error:

0:09.74 configure: error: compiler is incompatible with sanitize options
 0:09.74 DEBUG: <truncated - see config.log for full output>
 0:09.74 DEBUG: /* Override any gcc2 internal prototype to avoid an error.  */
 0:09.74 DEBUG: /* We use char because int might match the return type of a gcc2
 0:09.75 DEBUG:     builtin and then its argument prototype would still apply.  */
 0:09.75 DEBUG: char IceConnectionNumber();
 0:09.75 DEBUG:
 0:09.75 DEBUG: int main() {
 0:09.75 DEBUG: IceConnectionNumber()
 0:09.75 DEBUG: ; return 0; }
 0:09.75 DEBUG: configure:3734: /usr/lib/llvm/11/bin/x86_64-pc-linux-gnu-clang -std=gnu99 -o conftest -march=skylake -pipe -Qunused-arguments  -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--compress-debug-sections=zlib -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags -fuse-ld=lld conftest.c  1>&5
 0:09.75 DEBUG: /usr/bin/ld.lld: symbol lookup error: /usr/bin/ld.lld: undefined symbol: LLVMInitializeNVPTXTargetInfo, version LLVM_11
 0:09.75 DEBUG: clang-11: error: unable to execute command: No such file or directory
 0:09.75 DEBUG: clang-11: error: linker command failed due to signal (use -v to see invocation)
 0:09.75 DEBUG: configure: failed program was:
 0:09.75 DEBUG: #line 3727 "configure"
 0:09.75 DEBUG: #include "confdefs.h"
 0:09.75 DEBUG:
 0:09.75 DEBUG: int main() {
 0:09.75 DEBUG:
 0:09.75 DEBUG: ; return 0; }
 0:09.75 DEBUG: configure: error: compiler is incompatible with sanitize options
 0:09.75 ERROR: old-configure failed
 0:09.79 *** Fix above errors and then restart with\
 0:09.79                "./mach build"
 0:09.79 gmake: *** [client.mk:115: configure] Error 1
 * ERROR: www-client/firefox-78.6.1::gentoo failed (configure phase):
 *   (no error message)


Reproducible: Always

Steps to Reproduce:
1. emerge www-client/firefox
Comment 1 Marco Clocchiatti 2021-02-05 20:28:59 UTC
Created attachment 685875 [details]
emerge --info
Comment 2 Marco Clocchiatti 2021-02-05 20:31:17 UTC
Created attachment 685878 [details]
build log
Comment 3 Marco Clocchiatti 2021-02-05 20:32:24 UTC
Created attachment 685881 [details]
environment
Comment 4 Ionen Wolkens gentoo-dev 2021-02-05 20:57:54 UTC
/usr/bin/ld.lld: symbol lookup error: /usr/bin/ld.lld: undefined symbol: LLVMInitializeNVPTXTargetInfo, version LLVM_11

I assume you recently disabled NVPTX in LLVM_TARGETS, that's fine but will need to rebuild lld due to bug #767700

    emerge -1 sys-devel/lld

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