CBSD version: 15
FreeBSD version: 14.3-RELEASE-p2
Hi everyone,
I have provisioned a CBSD jail with `cbsd construct-tui` and it appears to be missing several important bits of a working C toolchain. It was initially discovered while trying to install a Haskell toolchain (https://gitlab.haskell.org/ghc/ghc/-/issues/26703#note_651115).
I tried to compile a little C file with both gcc and clang, and here is what I got:
FreeBSD version: 14.3-RELEASE-p2
Hi everyone,
I have provisioned a CBSD jail with `cbsd construct-tui` and it appears to be missing several important bits of a working C toolchain. It was initially discovered while trying to install a Haskell toolchain (https://gitlab.haskell.org/ghc/ghc/-/issues/26703#note_651115).
I tried to compile a little C file with both gcc and clang, and here is what I got:
dev-web-1@web-1:~ $ gcc conftest.c
/usr/local/bin/ld: cannot find crt1.o: No such file or directory
/usr/local/bin/ld: cannot find crti.o: No such file or directory
/usr/local/bin/ld: cannot find -lc: No such file or directory
/usr/local/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
dev-web-1@web-1:~ $ clang conftest.c
ld: error: cannot open crt1.o: No such file or directory
ld: error: cannot open crti.o: No such file or directory
ld: error: cannot open crtbegin.o: No such file or directory
ld: error: unable to find library -lgcc_s
ld: error: unable to find library -lc
ld: error: unable to find library -lgcc_s
ld: error: cannot open crtend.o: No such file or directory
ld: error: cannot open crtn.o: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)