[Bug 254173] pkgbase: installing FreeBSD-clang clang and FreeBSD-lld doesn't pull all dependencies necessary to actually compile and link programs
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Mar 9 21:54:28 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254173
Bug ID: 254173
Summary: pkgbase: installing FreeBSD-clang clang and
FreeBSD-lld doesn't pull all dependencies necessary to
actually compile and link programs
Product: Base System
Version: 13.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: tests
Assignee: testing at FreeBSD.org
Reporter: me at igalic.co
pkg -r /isolates/clang-dependendy-bug/root -r FreeBSD-base FreeBSD-clang
FreeBSD-utilities FreeBSD-lld
…
sudo pkg -r /isolates/clang-dependendy-bug/root info
FreeBSD-clang-14.snap20210306210736 Clang Utilities
FreeBSD-clibs-14.snap20210306210736 Core C Libraries
FreeBSD-libarchive-14.snap20210306210736 libarchive package
FreeBSD-libbegemot-14.snap20210306210736 libbegemot package
FreeBSD-libbsdxml-14.snap20210306210736 libbsdxml package
FreeBSD-libbsm-14.snap20210306210736 libbsm package
FreeBSD-libbz2-14.snap20210306210736 libbz2 package
FreeBSD-libdwarf-14.snap20210306210736 libdwarf package
FreeBSD-libefivar-14.snap20210306210736 libefivar package
FreeBSD-libevent1-14.snap20210306210736 libevent1 package
FreeBSD-libexecinfo-14.snap20210306210736 libexecinfo package
FreeBSD-libldns-14.snap20210306210736 libldns package
FreeBSD-liblzma-14.snap20210306210736 liblzma package
FreeBSD-libmagic-14.snap20210306210736 libmagic package
FreeBSD-libnetmap-14.snap20210306210736 libnetmap package
FreeBSD-libopie-14.snap20210306210736 libopie package
FreeBSD-libregex-14.snap20210306210736 libregex package
FreeBSD-libsmb-14.snap20210306210736 libsmb package
FreeBSD-libsqlite3-14.snap20210306210736 libsqlite3 package
FreeBSD-libucl-14.snap20210306210736 libucl package
FreeBSD-lld-14.snap20210306210736 lld package
FreeBSD-runtime-14.snap20210306210736 FreeBSD Base System
FreeBSD-utilities-14.snap20210306210736 Non-vital programs and librairies
meena at beastix /u/src (main)> sudo chroot /isolates/clang-dependendy-bug/root
root at beastix:/ # cd
root at beastix:~ # cat pls-compile.c
int main(){return 0;}
oot at beastix:~ # make pls-compile
cc -O2 -pipe pls-compile.c -o pls-compile
ld: error: unable to find library -lgcc
ld: error: unable to find library -lgcc_s
ld: error: unable to find library -lc
ld: error: unable to find library -lgcc
ld: error: unable to find library -lgcc_s
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
make: stopped in /root
okay! let's add dependencies…
sudo pkg -r /isolates/clang-dependendy-bug/root install FreeBSD-libcompiler_rt
same error.
install FreeBSD-libcompiler_rt-dev
same error.
install FreeBSD-clibs-dev:
root at beastix:~ # make pls-compile
cc -O2 -pipe pls-compile.c -o pls-compile
ld: error: cannot open /usr/lib/libc_nonshared.a: No such file or directory
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
now we're getting somewhere!!
root at beastix:~ # make pls-compile
cc -O2 -pipe pls-compile.c -o pls-compile
root at beastix:~ # ./pls-compile
root at beastix:~ # echo $?
0
root at beastix:~ #
I honestly don't know which angle to attack this from, but this makes it really
hard to build jails with pkgbase.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-testing
mailing list