Package Details: mold-git 2.40.4.r224.gbe3d214c-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.033717
First Submitted: 2021-02-23 11:05 (UTC)
Last Updated: 2026-07-15 11:28 (UTC)

Required by (126)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

asyync1024 commented on 2026-07-15 09:59 (UTC) (edited on 2026-07-15 10:01 (UTC) by asyync1024)

Also, according to the wiki [1], if we know that the project compiles successfully with Release build type with CMAKE_C_FLAGS_RELEASE=-DNDEBUG, and the same for its CXX variant, then we can safely turn on the Release build type. Currently, it seems to me it works as expected. Will confirm before pushing an update.

Also, mold does have Release build-type specific flags. [2]

asyync1024 commented on 2026-07-15 09:46 (UTC) (edited on 2026-07-15 09:56 (UTC) by asyync1024)

Seems like upstream switched to mimalloc 3.3.2 [1], means v3. System mimalloc currently is 3.4.1.

It seems to me turning on system mimalloc would be safe? The primary reason that the official package turned off mimalloc was system mimalloc being v3, and mold requiring v2. Mold tests pass successfully with either versions. I will see if I can link a medium to big project and if it completes successfully, then push the update.

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.