§2024-11-20

#!/bin/bash

# only form git brach master
# buildscripts/poetry_sync.sh
# wget https://github.com/mongodb/mongo/archive/refs/tags/r8.0.3.tar.gz

pip install --upgrade pip
pip install cxxfilt

export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
python3 -m poetry install --no-root --sync


# python3 buildscripts/scons.py install-core -j6 --ssl --linker=gold  CFLAGS="-march=armv8-a+crc -mtune='cortex-a73.cortex-a53' "  -Wno-interference-size  >log 2>&1 & 
# C compiler does not match identified C++ compiler
# python3 buildscripts/scons.py install-core -j6 --ssl --linker=gold  CFLAGS="-march=armv8-a+crc -mtune='cortex-a73' " --disable-warnings-as-errors >log 2>&1 &
# python3 buildscripts/scons.py install-core -j6 --ssl --linker=gold CFLAGS="-march=armv8-a+crc -mtune=armv8-a" --disable-warnings-as-errors >log  2>&1 & C compiler does not match identified C++ compiler
# python3 buildscripts/scons.py install-core -j6 --ssl --linker=gold CFLAGS="-march=armv8-a+crc -mcpu=cortex-a73" --disable-warnings-as-errors >log  2>&1 &
time python3 buildscripts/scons.py MONGO_VERSION=8.0.3 install-core -j6 --ssl --linker=gold  --disable-warnings-as-errors >log  2>&1 &



# -j 8 caused   internal compiler error: Bus error 2024-11-14, so try to use -j 6

§2024-11-16

#!/bin/bash

export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
python3 -m poetry install --no-root --sync


# python3 buildscripts/scons.py install-core -j6 --ssl --linker=gold  CFLAGS="-march=armv8-a+crc -mtune='cortex-a73.cortex-a53' " --disable-warnings-as-errors >log 2>&1 &
python3 buildscripts/scons.py install-core -j6 --ssl --linker=gold --disable-warnings-as-errors >log 2>&1 &

# -j 8 caused   internal compiler error: Bus error 2024-11-14, so try to use -j 6
 "CCFLAGS": [
        "$CCFLAGS_GENERATE_WERROR",
        "$_FORCEINCLUDES",
        "-ffp-contract=off",
        "-fasynchronous-unwind-tables",
        "-g2",
        "-Wall",
        "-Wsign-compare",
        "-Wno-unknown-pragmas",
        "-Winvalid-pch",
        "-fno-omit-frame-pointer",
        "-fno-strict-aliasing",
        "-O2",
        "-march=armv8.2-a",
        "-mtune=generic",
        "-Wno-unused-local-typedefs",
        "-Wno-unused-function",
        "-Wno-deprecated-declarations",
        "-Wno-unused-const-variable",
        "-Wno-unused-but-set-variable",
        "-Wno-missing-braces",
        "-Wno-psabi",
        "-fstack-protector-strong",
        "-gdwarf32",
        "-fdebug-types-section",
        "-Wa,--nocompress-debug-sections",
        "-Werror",
        "-Wno-array-bounds",
        "-Wno-attribute-alias",
        "-Wno-deprecated-declarations",
        "-Wno-sign-compare",
        "-Wno-stringop-overflow",
        "-Wno-uninitialized",
        "-Wno-unused-function",
        "-Wno-unused-result",
        "-Wno-unused-variable"
    ]