[Bug 289497] devel/linux-rl9-devtools: gcc fails: Cannot open "/usr/libexec/gcc/x86_64-redhat-linux/11/liblto_plugin.so"
Date: Fri, 12 Sep 2025 18:59:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289497
Yuri Victorovich <yuri@freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yuri@freebsd.org
--- Comment #1 from Yuri Victorovich <yuri@freebsd.org> ---
The same run w/out LTO also can't find files:
# gcc x.cpp -fno-lto
/usr/local/bin/ld: cannot find
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crt1.o: No such file or
directory
/usr/local/bin/ld: cannot find
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crti.o: No such file or
directory
/usr/local/bin/ld: cannot find /usr/lib/gcc/x86_64-redhat-linux/11/crtbegin.o:
No such file or directory
/usr/local/bin/ld: cannot find -lgcc: No such file or directory
/usr/local/bin/ld: cannot find -lgcc_s: No such file or directory
/usr/local/bin/ld: cannot find -lc: No such file or directory
/usr/local/bin/ld: cannot find -lgcc: No such file or directory
/usr/local/bin/ld: cannot find -lgcc_s: No such file or directory
/usr/local/bin/ld: cannot find /usr/lib/gcc/x86_64-redhat-linux/11/crtend.o: No
such file or directory
/usr/local/bin/ld: cannot find
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crtn.o: No such file or
directory
collect2: error: ld returned 1 exit status
It attempted to use FreeBSD's ld /usr/local/bin/ld instead of the Linux one
/usr/bin/ld for some reason.
--
You are receiving this mail because:
You are the assignee for the bug.