Closed fekir closed 5 years ago
You simply need to install the "os-generic-userland-devtools" package to get the entire compiler toolchain installed and setup.
@beanpole135
thank you, installing the os-generic-userland-devtools
package fixed the issue, and also created cc
.
Might I ask how one should have diagnosed the problem in order to understand what package he needed to install? I was not able to find any hint, and my experience with BSD systems is limited.
Also does it make sense for trident to have some program with broken dependencies installed by default? AFAIK the compiler is not usable, wouldn't it be better not having it at all?
Describe the bug I'm unable to compile a simple c test program in
trident
, neither withclang
, nor withgcc
.To Reproduce Install
trident
. Optionally installgcc
or other clang versions Compile a simple program See error onstderr
Expected behavior No error in
stderr
, and a working executable as output from the compiler.OS Version:
Additional context Hello,
I've played a little bit with trident, I'm sorry if I'm reporting this bug (or at least inconsistent behavior for which I found no documentation)
I've installed trident from the dvd, and after it different packages for developing in c++ and c, like clang, gcc, cppcheck and so on.
Unfortunately I'm not able to compile even a simple test program.
stderror of (verbose) gcc (gcc -v main.c)
As I'm new to the bsd world, I thought I would have misconfigured something. So I've retested on naked system (just installation, tested before and after updating the system, no additional development packages installed)
I believe this is a bug, If a compiler is present, it should also work. If it is not intended to work, then maybe it should not be there, and installing a compiler should install as dependency all libraries for compiling a minimal program.
What should I install for being able to compile c and c++ programs? I could not find any package containing
libc_nonshared
andlibssp_nonshared
, those libraries do not seem to be present ontrident
, but are onfreebsd
.Notice that on a minimal freebsd system
cc
was avaiable (it was on none of the tested trident systems) and I could buildmain.c
without issues and without installing additional packages.The C program is simply: