Compiled on PI4B4G with 5.10.77-piCore-v8 Compile Flags: CC='gcc' CXX='g++' CPPFLAGS='-DNDEBUG' CFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto' CXXFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -flto' LDFLAGS='-Wl,-O1 -Wl,-v -fuse-ld=gold -L/usr/local/lib' export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS AR='gcc-ar' NM='gcc-nm' RANLIB='gcc-ranlib' LD='ld.gold' export AR NM RANLIB STRIP LD Dependencies: cmake compiletc llvm-bin Commands: # tried to use the llvm tool set with clang # but it won't pass the test # "SCEV is not expected to evaluate a block terminator" # fix lto for gcc P=/usr/local/libexec/gcc/aarch64-unknown-linux-gnu/10.2.0/liblto_plugin.so.0.0.0 sudo mkdir -p /usr/local/lib/bfd-plugins sudo ln -sfv $P /usr/local/lib/bfd-plugins/liblto_plugin.so wget https://github.com/fmtlib/fmt/archive/refs/tags/8.1.1.tar.gz tar -xf 8.1.1.tar.gz cd fmt-8.1.1/ mkdir build && cd build # Note: if you choose shared library, the static one is automatically disabled and can not be turned on cmake .. -DCMAKE_BUILD_TYPE='MinSizeRel' \ -DCMAKE_INSTALL_PREFIX='/usr/local' \ -DCMAKE_INSTALL_LIBDIR='lib' \ -DBUILD_SHARED_LIBS=TRUE \ -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE time make -j4 real 5m 47.13s user 21m 13.98s sys 1m 1.03s DESTDIR=/tmp/packing-fmt make install/strip # rebuild for static library # add a patch file for the cmake config files