Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712990 - dev-db/mongodb-5.0.5-r2 fails to build with musl: src/.../sysinfo.cc: error: _environ was not declared in this scope
Summary: dev-db/mongodb-5.0.5-r2 fails to build with musl: src/.../sysinfo.cc: error: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-03-17 14:25 UTC by Toralf Förster
Modified: 2024-05-10 14:18 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.37 KB, text/plain)
2020-03-17 14:25 UTC, Toralf Förster
Details
dev-db:mongodb-4.2.3:20200317-093410.log (dev-db:mongodb-4.2.3:20200317-093410.log,37.14 KB, text/plain)
2020-03-17 14:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,31.68 KB, text/plain)
2020-03-17 14:25 UTC, Toralf Förster
Details
environment (environment,125.83 KB, text/plain)
2020-03-17 14:25 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.42 KB, application/x-bzip)
2020-03-17 14:25 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.15 KB, application/x-bzip)
2020-03-17 14:25 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,32.60 KB, application/x-bzip)
2020-03-17 14:25 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 9 Larry the Git Cow gentoo-dev 2024-05-10 14:18:32 UTC
The bug has been closed via the following commit(s):

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

commit 66a36eddb33ac7553c80fdf94a43647b5584a671
Author:     Robert Förster <Dessa@gmake.de>
AuthorDate: 2024-05-06 18:52:52 +0000
Commit:     Alexys Jacob <ultrabug@gentoo.org>
CommitDate: 2024-05-10 14:18:18 +0000

    profiles/features/musl: mask mongodb
    
    Closes: https://bugs.gentoo.org/712990
    Closes: https://bugs.gentoo.org/713080
    Closes: https://bugs.gentoo.org/715832
    Closes: https://bugs.gentoo.org/716296
    Closes: https://bugs.gentoo.org/895776
    Closes: https://bugs.gentoo.org/906782
    Signed-off-by: Robert Förster <Dessa@gmake.de>
    Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>

 profiles/features/musl/package.mask | 10 ++++++++++
 1 file changed, 10 insertions(+)