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

Bug 829340

Summary: dev-db/mongodb-5.0.16-r1 fails to compile with clang/lld: Couldnt identify the C++ compiler
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Ultrabug <ultrabug>
Status: CONFIRMED ---    
Severity: normal CC: toralf
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963    
Attachments: build.log
1-config.log

Description Agostino Sarubbo gentoo-dev 2021-12-16 14:48:09 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-db/mongodb-5.0.2-r1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses clang as a compiler and lld as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2021-12-16 14:48:11 UTC
Created attachment 759313 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-12-16 14:48:12 UTC
Created attachment 759314 [details]
1-config.log

1-config.log
Comment 3 Toralf Förster gentoo-dev 2022-12-17 21:08:39 UTC
*** Bug 883261 has been marked as a duplicate of this bug. ***
Comment 4 12101111 2022-12-20 13:53:05 UTC
A workaround is use the full path of clang:

CXX="/usr/lib/llvm/15/bin/clang++"
CC="/usr/lib/llvm/15/bin/clang"
Comment 5 Agostino Sarubbo gentoo-dev 2023-02-26 07:57:06 UTC
tinderbox_musl has reproduced this issue with version 5.0.5-r2 - Updating summary.
Comment 6 Ultrabug gentoo-dev 2023-05-16 07:54:45 UTC
Does it repro on latest 5.0.16 ?
Comment 7 Zhixu Liu 2023-05-24 03:34:03 UTC
diff --git a/SConstruct b/SConstruct
index 3d831c9..f07feeb 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1201,7 +1201,7 @@ envDict = dict(BUILD_ROOT=buildDir,
 if get_option('build-tools') == 'next':
     SCons.Tool.DefaultToolpath.insert(0, os.path.abspath('site_scons/site_tools/next'))

-env = Environment(variables=env_vars, **envDict)
+env = Environment(variables=env_vars, ENV = {'PATH' : os.environ['PATH']}, **envDict)
 del envDict

 if get_option('cache-signature-mode') == 'validate':
Comment 8 Agostino Sarubbo gentoo-dev 2024-02-10 20:23:27 UTC
clang-lld_tinderbox has reproduced this issue with version 5.0.16-r1 - Updating summary.