Package Details: mold-git 2.39.1.r4.g18c813a2-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)
Last Packager: ptr1337
Votes: 7
Popularity: 0.003144
First Submitted: 2021-02-23 11:05 (UTC)
Last Updated: 2025-05-16 09:38 (UTC)

Required by (105)

Sources (1)

Latest Comments

1 2 3 Next › Last »

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 } 

DAC324 commented on 2022-06-24 11:01 (UTC)

The package currently does not build:

make: Leaving directory '/opt/.cache/yay/mold-git/src/mold' ==> Starting check()... make: *** No rule to make target 'check'.  Stop. ==> ERROR: A failure occurred in check().     Aborting...  -> error making: mold-git 

ptr1337 commented on 2022-06-15 11:46 (UTC)

@bin Thanks for giving me co-maintainer, since I use this linker quite often. I did updated it to the latest changes.