Package Details: mold-git 2.40.4.r76.gfc96c1b9-1

Git Clone URL: https://aur.archlinux.org/mold-git.git (read-only, click to copy)
Package Base: mold-git
Description: A Modern Linker
Upstream URL: https://github.com/rui314/mold
Keywords: ld.mold linker mold
Licenses: MIT
Conflicts: mold
Provides: mold
Submitter: xyproto
Maintainer: bin (ptr1337, asyync1024)
Last Packager: asyync1024
Votes: 9
Popularity: 0.40
First Submitted: 2021-02-23 11:05 (UTC)
Last Updated: 2026-04-01 06:15 (UTC)

Required by (118)

Sources (1)

Latest Comments

1 2 3 Next › Last »

asyync1024 commented on 2026-03-12 06:54 (UTC)

Also, it seems like you can't find the time to maintain the package, can you add me as a co-maintainer? I would love to maintain this, thanks!

asyync1024 commented on 2026-02-19 13:19 (UTC) (edited on 2026-02-19 13:20 (UTC) by asyync1024)

Hello! Can you please change to something like this?: https://gist.github.com/asyync1024/475c6883bab9a72663a456a1ae70a1bc

I have replaced gcc-libs with libstdc++ and removed mimalloc as in the extra repo package. I have also improved formatting, it builds both in local and in clean chroot. Thanks!

ilovemikael commented on 2025-11-09 05:40 (UTC)

why is this package flagged as out-of-date?

eclairevoyant commented on 2023-03-12 21:20 (UTC) (edited on 2023-03-12 21:23 (UTC) by eclairevoyant)

The pkgver should be corrected to (ver).r(revision_number).(hash) as per standards; see the wiki for more info:

The revision number delimiter ("r" right before REVISION) is important. This delimiter allows to avoid problems in case if upstream decides to make its first release or uses versions with different number of components. E.g. if at revision "455" upstream decides to release version 0.1 then the revision delimiter preserves version monotonicity - 0.1.r456 > r454. Without the delimiter monotonicity fails - 0.1.456 < 454.

see /usr/share/pacman/PKGBUILD-vcs.proto for an example:

 printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"

Also, any custom variable (like reponame) should be prefixed with _

ptr1337 commented on 2022-10-10 13:11 (UTC)

@DAC324

I can't reproduce this on my end. Compiled in a chroot and also with out chroot. No issues. Maybe it was a upstream issue and got fixed.

268/272 Test #268: x86_64-z-nodump .........................   Passed    0.03 sec
        Start 269: x86_64-z-now
269/272 Test #269: x86_64-z-now ............................   Passed    0.02 sec
        Start 270: x86_64-z-origin
270/272 Test #270: x86_64-z-origin .........................   Passed    0.03 sec
        Start 271: x86_64-z-separate-code
271/272 Test #271: x86_64-z-separate-code ..................   Passed    0.04 sec
        Start 272: x86_64-z-unknown
272/272 Test #272: x86_64-z-unknown ........................   Passed    0.01 sec

100% tests passed, 0 tests failed out of 272

Total Test time (real) =  12.61 sec
==> Entering fakeroot environment...
==> Starting package()...

DAC324 commented on 2022-10-03 10:19 (UTC) (edited on 2022-10-03 11:14 (UTC) by DAC324)

New problem:

99% tests passed, 1 tests failed out of 270

Total Test time (real) =  31.80 sec

The following tests did not run:
    161 - x86_64-pack-dyn-relocs-relr (Skipped)

The following tests FAILED:
    226 - x86_64-tlsdesc-static (Failed)
Errors while running CTest

Interesting: When I run the build process step by step as instructed on https://github.com/rui314/mold#compile-mold, and then run ctest --test-dir build --output-on-failure on the build directory created there, the tests all pass.

ptr1337 commented on 2022-06-25 04:58 (UTC)

@DAC324

Actually the "compile options" you posted is a possibility.

To the compiler:

You may need to pass a C++20 compiler command name to make. In the above case, clang++ is passed. If it doesn't work for you, try a specific version of a compiler such as g++-10 or clang++-12.

to system TBB:

Arch did updated tbb with the patch which where requested from rui. So we can easily use the SYSTEM_TBB again.

to "j$nproc :

I dont see any profit in adding these, cause everyone can set himself in his used cpu's.

to tests:

Will fix that.

DAC324 commented on 2022-06-24 11:39 (UTC) (edited on 2022-06-24 11:41 (UTC) by DAC324)

Looks like the check() section in PKGBUILD has become obsolete as the target check was removed from the mold Makefile.

Plus, a lot of warnings can be avoided if the compile options are set as instructed at https://github.com/rui314/mold#readme .

build() {
    make \
        -C "$reponame" \
         -j$(nproc) CXX=clang++ \
        PREFIX=/usr \
        LTO=1 \
        SYSTEM_MIMALLOC=1
}