Package Details: fmt9 9.1.0-5

Git Clone URL: https://aur.archlinux.org/fmt9.git (read-only, click to copy)
Package Base: fmt9
Description: Open-source formatting library for C++
Upstream URL: https://fmt.dev/
Keywords: chrono formatting output printf
Licenses: MIT
Provides: libfmt.so
Submitter: abouvier
Maintainer: abouvier
Last Packager: abouvier
Votes: 3
Popularity: 0.026089
First Submitted: 2023-07-30 08:30 (UTC)
Last Updated: 2024-04-02 19:57 (UTC)

Required by (22)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

Neko-san commented on 2023-07-31 21:18 (UTC)

Ohhhh! Thanks for clarifying that Lol

abouvier commented on 2023-07-31 20:02 (UTC)

-stdlib=libc++ belongs to CXXFLAGS!

Neko-san commented on 2023-07-31 19:56 (UTC) (edited on 2023-07-31 19:57 (UTC) by Neko-san)

Might be that I'm using hardneing flags with them, then? Or maybe the LLVM assembler? Not sure

CC=clang
CXX=clang++
AR="/usr/bin/llvm-ar"
NM="/usr/bin/llvm-nm"
AS="/usr/bin/llvm-as"
RANLIB="/usr/bin/llvm-ranlib"
OBJCOPY="/usr/bin/llvm-objcopy"
CFLAGS="-g -O3 -pipe -fno-plt -fpic -fpie -Wl,-z,relro,-z,now -w \
        -fexceptions -Wp,-D_FORTIFY_SOURCE=2 \
        -Wformat -Werror=format-security \
        -fstack-clash-protection -fstack-protector-strong -fcf-protection \
        -march=znver2 -mtune=znver2"
CXXFLAGS="${CFLAGS} -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-lc++abi -stdlib=libc++ -fuse-ld=lld -unwind=libunwind -pie -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now"

abouvier commented on 2023-07-31 19:47 (UTC)

It fails when you don't use -stdlib=libc++ with all the other options.

Neko-san commented on 2023-07-31 19:09 (UTC) (edited on 2023-07-31 19:10 (UTC) by Neko-san)

Add -lc++abi and -unwind=libunwind

abouvier commented on 2023-07-31 10:46 (UTC)

I don't have any errors compiling with:

export CC=clang
export CXX=clang++
export CXXFLAGS+=" -stdlib=libc++"
export LDFLAGS+=" -fuse-ld=lld"

Neko-san commented on 2023-07-31 09:47 (UTC) (edited on 2023-07-31 10:05 (UTC) by Neko-san)

2 tests fail after compilation with Clang+LLVM+LTO, and both of them with this error: free(): invalid pointer

90% tests passed, 2 tests failed out of 20

Total Test time (real) =   0.17 sec

The following tests FAILED:
          6 - gtest-extra-test (Subprocess aborted)
          8 - format-impl-test (Subprocess aborted)

FabioLolix commented on 2023-07-30 11:09 (UTC)

Hello, please remove provides=("$_pkgname=$pkgver" 'libfmt.so') this isn't a drop-in for fmt, it is installed alongside fmt as you know.

The provides trick pacman to believe this is the same as fmt while is not, install this -> remove fmt -> programs no longer start:

$ 0ad
/usr/sbin/pyrogenesis: error while loading shared libraries: libfmt.so.10: cannot open shared object file: No such file or directory