Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Fails to build with LLD 7.0 #1450

Closed
jbeich opened this issue Jan 4, 2019 · 2 comments
Closed

Fails to build with LLD 7.0 #1450

jbeich opened this issue Jan 4, 2019 · 2 comments

Comments

@jbeich
Copy link
Contributor

jbeich commented Jan 4, 2019

Development version of FreeBSD recently upgraded its toolchain to one based on LLVM 7.0.1 which broke this project. Maybe related to an upstream LLD bug.

$ pkg install git meson pkgconf wayland-protocols libinput libxkbcommon pixman mesa-libs
$ git clone https://github.com/swaywm/wlroots
$ cd wlroots
$ sed -i -e /examples/d meson.build
$ meson build
$ ninja -C build
[...]
ld: error: duplicate symbol 'wlr_signal_emit_safe' in version script
cc: error: linker command failed with exit code 1 (use -v to see invocation)

Environment:

$ cc --version
FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1)
Target: x86_64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
$ cc -Wl,--version
LLD 7.0.1 (FreeBSD 349250-1300001) (compatible with GNU linkers)

Workaround:

$ pkg install llvm60
$ LDFLAGS="$LDFLAGS -fuse-ld=lld60" meson build --wipe
$ ninja -C build
$ pkg install binutils
$ LDFLAGS="$LDFLAGS -fuse-ld=bfd" meson build --wipe
$ ninja -C build
@emersion
Copy link
Member

emersion commented Jan 4, 2019

Seems LLD doesn't handle wildcards properly.

@jbeich
Copy link
Contributor Author

jbeich commented Jul 13, 2019

Fixed by llvm/llvm-project@e1ee3837acfe and backported in freebsd/freebsd-src@acdff3ca6471.

@jbeich jbeich closed this as completed Jul 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants