@JstKddng debug builds break mongodb, please add options=('!debug') to the PKGBUILD to prevent this breaking in the Arch Build system.
Thank you,
Polarian
| Git Clone URL: | https://aur.archlinux.org/mongodb.git (read-only, click to copy) |
|---|---|
| Package Base: | mongodb |
| Description: | A high-performance, open source, schema-free document-oriented database |
| Upstream URL: | https://www.mongodb.com/ |
| Keywords: | database document-oriented nosql |
| Licenses: | SSPL-1.0 |
| Provides: | mongodb |
| Submitter: | felixonmars |
| Maintainer: | pricechrispy |
| Last Packager: | pricechrispy |
| Votes: | 36 |
| Popularity: | 0.001953 |
| First Submitted: | 2019-01-18 22:08 (UTC) |
| Last Updated: | 2026-05-19 04:57 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 12 .. 17 Next › Last »
@JstKddng debug builds break mongodb, please add options=('!debug') to the PKGBUILD to prevent this breaking in the Arch Build system.
Thank you,
Polarian
Following on from @yakoyakoyokuyoku point.
As this package is a source package, it should only depend on source dependencies, which therefore means it is unconventional to add binary packages within a source package.
But as it is a optional dependency, I am not sure it counts under the same conventions...
But it does not hurt changing mongosh-bin to mongosh
@JstKddng, you can now try mongosh again if it works for you then you can swap it with mongosh-bin.
I have packaged mongodb to my unofficial arch linux repository, you can find more information about this repository on the arch wiki, and the git repository for it (which also contains a list of packages):
Once the repository is added you can simply install mongodb using pacman:
pacman -Syu mongodb
And update it like usual:
pacman -Syu
Hello, just wanted to highlight that curl is not needed to be specified within the dependencies as it is included already within base-devel :)
There's now a package I've made available for mongosh built from source, so I think that it should replace mongosh-bin and, by the way, mongo can be dropped from the build.
@JstKddng I don't think so. All I did was just running extra-x86_64-build on the directory containing the PKGBUILD.
@gnaggnoyil
are you perhaps trying to make a debug build?
I met the following error when building in a clean chroot:
Checking that the C++ compiler can link a C++ program... no
C++ compiler g++ can't link C++ programs
See /build/mongodb/src/mongodb-src-r6.0.4/build/scons/config.log for details
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/gnaggnoyil/build
And the config.log has the following error message:
scons: Configure: Checking that the C++ compiler can link a C++ program...
build/scons/07c20a8e/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.cpp <-
|
|#include <iostream>
|#include <cstdlib>
|
|int main() {
| std::cout << "Hello, World" << std::endl;
| return EXIT_SUCCESS;
|}
|
g++ -o build/scons/07c20a8e/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.o -c -Woverloaded-virtual -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/mongodb/src=/usr/src/debug/mongodb -flto=auto -Werror -ffp-contract=off -fasynchronous-unwind-tables -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fno-omit-frame-pointer -fno-strict-aliasing -O0 -mprefer-vector-width=128 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE build/scons/07c20a8e/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.cpp
In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/c++config.h:655,
from /usr/include/c++/12.2.1/iostream:38,
from build/scons/07c20a8e/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.cpp:2:
/usr/include/features.h:412:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
| ^~~~~~~
cc1plus: all warnings being treated as errors
scons: Configure: no
What could possibly go wrong here?
Check your CPU flags before compiling 5.0+. AFAIK SSE and AVX are required.
Pinned Comments
pricechrispy commented on 2025-11-09 20:45 (UTC)
Current releases https://www.mongodb.com/try/download/community
pricechrispy commented on 2025-10-03 16:59 (UTC)
Before upgrading to 8.2, you must set the feature compatibility version to 8.0. See documentation: https://www.mongodb.com/docs/manual/release-notes/8.2-upgrade-standalone/#feature-compatibility-version
Note that building takes about 84gb of memory as of 8.2.1.