You are not logged in.
The problem started with trying to build the gobuster package from its Git repo since it didn't seem to want to install using an AUR helper or from the PKGBUILD. I seem to be able to configure packages just fine, but every time I go to build anything (test program provided), I am thrown the following error by my linker:
gcc test.cpp
ld: unknown option: -plugin
collect2: error: ld returned 1 exit status
Anyone have any idea what's going on here?
Edit to add: I have in the past installed the osxcross toolchain to cross-compile for Mac, but have removed it from my system at this point in time if that makes a difference with my problem
Last edited by archbtw2018 (2024-08-05 23:41:36)
Offline
type -a ld
ld --version
pacman -Qikk binutils
Offline
Here are the outputs
$ type -a ld
ld is /usr/local/bin/ld
ld is /usr/bin/ld
$ ld -v
@(#)PROGRAM:ld PROJECT:ld64-609
BUILD 20:06:19 Apr 24 2023
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS)
TAPI support using: TAPI version 11.0.0 (1100.0.11)
$ pacman -Qikk binutils
Name : binutils
Version : 2.42+r207+g8a6764d35e5-1
Description : A set of programs to assemble and manipulate binary and object files
Architecture : x86_64
URL : https://www.gnu.org/software/binutils/
Licenses : GPL-2.0-or-later GPL-3.0-or-later LGPL-2.0-or-later LGPL-3.0-or-later GFDL-1.3 FSFAP
Groups : None
Provides : libctf.so=0-64 libgprofng.so=0-64 libsframe.so=1-64
Depends On : glibc jansson libelf zlib zstd
Optional Deps : debuginfod: for debuginfod server/client functionality [installed]
Required By : base-devel debtap gcc mkinitcpio openucx
Optional For : inxi
Conflicts With : binutils-multilib
Replaces : binutils-multilib
Installed Size : 40.00 MiB
Packager : Frederik Schwan <freswa@archlinux.org>
Build Date : Sat 03 Aug 2024 09:54:50 AM CDT
Install Date : Mon 05 Aug 2024 01:10:26 PM CDT
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
binutils: 423 total files, 0 altered files
Attempting to compile the test program still results in the same linker error in the original post
Offline
$ type -a ld ld is /usr/local/bin/ld ld is /usr/bin/ld
The one is /usr/local is causing your trouble...
Offline
Yeah not sure how I ended up with an ld binary in /usr/local. Looks like removing it fixed the issue since it wasn't owned by any other packages
Offline