Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908987 - dev-db/mongodb-5.0.16-r1: wrongly forces -march=sandybridge
Summary: dev-db/mongodb-5.0.16-r1: wrongly forces -march=sandybridge
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-22 06:14 UTC by Michał Górny
Modified: 2024-05-10 14:18 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,7.82 KB, text/plain)
2023-06-22 06:14 UTC, Michał Górny
Details
dev-db:mongodb-5.0.16-r1:20230622-051103.log.xz (dev-db:mongodb-5.0.16-r1:20230622-051103.log.xz,59.62 KB, application/x-xz)
2023-06-22 06:17 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-06-22 06:14:50 UTC
Created attachment 864388 [details]
emerge --info

From ps:

```
 151257 pts/5    S+     0:00 x86_64-pc-linux-gnu-g++ -o build/59f4f0dd/mongo/db/repl/initial_syncer.o -c -Woverloaded-virtual --param=l1-cache-size=32 --param=l1-cache-line-size=64 -pipe -frecord-gcc-switches -Wpessimizing-move -Wno-maybe-uninitialized -fsized-deallocation -std=c++17 -include mongo/platform/basic.h -ffp-contract=off -fasynchronous-unwind-tables -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fno-omit-frame-pointer -fno-strict-aliasing -O2 -march=sandybridge -mtune=generic -mprefer-vector-width=128 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -Wa,--nocompress-debug-sections -fno-builtin-memcmp -DSAFEINT_USE_INTRINSICS=0 -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -DBOOST_THREAD_VERSION=5 -DBOOST_THREAD_USES_DATETIME -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DBOOST_ENABLE_ASSERT_DEBUG_HANDLER -DBOOST_LOG_NO_SHORTHAND_NAMES -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_THREAD_ATTR -DBOOST_LOG_DYN_LINK -DABSL_FORCE_ALIGNED_ACCESS -Isrc/third_party/s2 -Isrc/third_party/variant-1.4.0/include -Isrc/third_party/SafeInt -Isrc/third_party/fmt/dist/include -Isrc/third_party/abseil-cpp-master/abseil-cpp -Ibuild/59f4f0dd -Isrc src/mongo/db/repl/initial_syncer.cpp

```

Note that it's ignoring my -march=znver2 and forcing -march=sandybridge instead.  This is so wrong that I can't find the right words to describe it.

I'll attach the build log once it finally finishes building.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-06-22 06:17:35 UTC
Created attachment 864389 [details]
dev-db:mongodb-5.0.16-r1:20230622-051103.log.xz
Comment 2 Larry the Git Cow gentoo-dev 2024-05-10 14:18:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=527bd7903fb935261270268e47ec6dd2ecd611fa

commit 527bd7903fb935261270268e47ec6dd2ecd611fa
Author:     Robert Förster <Dessa@gmake.de>
AuthorDate: 2024-05-06 19:41:22 +0000
Commit:     Alexys Jacob <ultrabug@gentoo.org>
CommitDate: 2024-05-10 14:18:18 +0000

    dev-db/mongodb: add 4.4.29, 5.0.26
    
    Bug: https://bugs.gentoo.org/843329
    Bug: https://bugs.gentoo.org/908987
    Closes: https://bugs.gentoo.org/919768
    Closes: https://bugs.gentoo.org/929386
    Signed-off-by: Robert Förster <Dessa@gmake.de>
    Closes: https://github.com/gentoo/gentoo/pull/36591
    Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>

 dev-db/mongodb/Manifest                            |   2 +
 .../files/mongodb-4.4.29-no-enterprise.patch       |  24 +++
 dev-db/mongodb/metadata.xml                        |   3 +
 dev-db/mongodb/mongodb-4.4.29.ebuild               | 188 +++++++++++++++++++
 dev-db/mongodb/mongodb-5.0.26.ebuild               | 205 +++++++++++++++++++++
 5 files changed, 422 insertions(+)