Solved Cannot compile mongodb36-3.6.20

I upgraded my home server from 12.1 to 12.2. Some time after that I decided to update all ports. But seems I have a problem with databases/mongodb36:
Code:
Checking for sasl_version_info(0, 0, 0, 0, 0, 0) in C library sasl2... yes
Checking for C library execinfo... yes
Checking if std::atomic<int64_t> works... yes
Checking if std::atomic<uint64_t> works... yes
Checking if std::atomic<int32_t> works... yes
Checking if std::atomic<uint32_t> works... yes
Checking for extended alignment 64 for concurrency types... yes
Checking for mongoc_get_major_version() in C library mongoc-1.0... no
*** Run 'pip2 install --user regex' to speed up error code checking
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5594: ordinal not in range(128):
  File "/usr/ports/databases/mongodb36/work/mongodb-src-r3.6.20/SConstruct", line 3154:
    checkErrorCodes()
  File "/usr/ports/databases/mongodb36/work/mongodb-src-r3.6.20/SConstruct", line 3151:
    if x.checkErrorCodes() == False:
  File "/usr/ports/databases/mongodb36/work/mongodb-src-r3.6.20/buildscripts/errorcodes.py", line 132:
    (codes, errors) = readErrorCodes()
  File "/usr/ports/databases/mongodb36/work/mongodb-src-r3.6.20/buildscripts/errorcodes.py", line 160:
    parseSourceFiles( checkDups )
  File "/usr/ports/databases/mongodb36/work/mongodb-src-r3.6.20/buildscripts/errorcodes.py", line 72:
    text = f.read()
  File "/usr/local/lib/python3.6/encodings/ascii.py", line 26:
    return codecs.ascii_decode(input, self.errors)[0]
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/databases/mongodb36
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/mongodb36

Any idea, how to get it working?

mongodb36 is needed for unifi5 controller software... It used to be working with 12.1
 
Do you mean that:

Code:
# locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
 
Ok, those look fine. Sometimes builds fail if they're set to something else. Shouldn't happen but it's good to rule it out.
 
Maybe related to this warning when compiling?

Code:
/!\ WARNING /!\

PYTHON_DEFAULT must be a version present in PYTHON2_DEFAULT or PYTHON3_DEFAULT,
if you want more Python flavors, set BUILD_ALL_PYTHON_FLAVORS in your make.conf

So far only idea I have is to downgrade to mongodb36-3.6.19. Because that used to work.
 
Only one line related to Python:

Code:
ENABLE_SUIDPERL=true
WITHOUT_X11=true
OPTIONS_UNSET=X11
BUILD_OPTIMIZED=true
WITH_THREADSAFE=true
NO_WARNING_PKG_INSTALL_EOL=yes
NO_WERROR=true
DEFAULT_VERSIONS+=perl5=5.30
DEFAULT_VERSIONS+=ssl=base
ALLOW_UNSUPPORTED_SYSTEM=yes
DISABLE_VULNERABILITIES=yes
DEFAULT_VERSIONS+=linux=c7
DEFAULT_VERSIONS+=python3=3.6
DISABLE_LICENSES=yes
 
I'd remove that python3 setting. The default is set to 3.7. Take note of your Perl version too, the default is now 5.32.
 
Back
Top