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

Bug 712990

Summary: dev-db/mongodb-5.0.5-r2 fails to build with musl: src/.../sysinfo.cc: error: _environ was not declared in this scope
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: hydrapolic, ultrabug
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
dev-db:mongodb-4.2.3:20200317-093410.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-17 14:25:30 UTC
Compiling build/opt/third_party/gperftools-2.7/dist/src/base/sysinfo.o
src/third_party/gperftools-2.7/dist/src/base/sysinfo.cc: In function const char* GetenvBeforeMain(const char*):
src/third_party/gperftools-2.7/dist/src/base/sysinfo.cc:158:7: error: __environ was not declared in this scope; did you mean environ?
  158 |   if (__environ) {            // can exist but be NULL, if statically linked
      |       ^~~~~~~~~
      |       environ

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200316-165821

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
/usr/lib/llvm/8
8.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 17 Mar 2020 08:39:33 +0000
emerge -qpvO dev-db/mongodb
[ebuild  N    ] dev-db/mongodb-4.2.3  USE="ssl tools -debug -kerberos -libressl -lto -test"
Comment 1 Toralf Förster gentoo-dev 2020-03-17 14:25:33 UTC
Created attachment 620890 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-17 14:25:36 UTC
Created attachment 620892 [details]
dev-db:mongodb-4.2.3:20200317-093410.log
Comment 3 Toralf Förster gentoo-dev 2020-03-17 14:25:39 UTC
Created attachment 620894 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-17 14:25:42 UTC
Created attachment 620896 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-17 14:25:44 UTC
Created attachment 620898 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-17 14:25:47 UTC
Created attachment 620900 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-17 14:25:50 UTC
Created attachment 620902 [details]
temp.tbz2
Comment 8 Agostino Sarubbo gentoo-dev 2022-08-08 07:08:22 UTC
tinderbox_musl has reproduced this issue with version 5.0.5-r2 - Updating summary.