Thanks for answer. ;-)After 10.x, default compiler is clang, not gcc.
As far as I know clang is installed with the system, so cc should work.
You may want to read here in case you might have missed anything.
cc
is not installed so, what package must be installed...? 9648 -r-xr-xr-x 7 root wheel 28435856 Aug 12 15:27 /usr/bin/CC*
9648 -r-xr-xr-x 7 root wheel 28435856 Aug 12 15:27 /usr/bin/c++*
9648 -r-xr-xr-x 7 root wheel 28435856 Aug 12 15:27 /usr/bin/cc*
9648 -r-xr-xr-x 7 root wheel 28435856 Aug 12 15:27 /usr/bin/clang*
9648 -r-xr-xr-x 7 root wheel 28435856 Aug 12 15:27 /usr/bin/clang++*
9648 -r-xr-xr-x 7 root wheel 28435856 Aug 12 15:27 /usr/bin/clang-cpp*
9648 -r-xr-xr-x 7 root wheel 28435856 Aug 12 15:27 /usr/bin/cpp*
I did sudo pkg install gcc.
But CC is still not there.
WITHOUT_CLANG_IS_CC
Set to install the GCC compiler as /usr/bin/cc, /usr/bin/c++ and
/usr/bin/cpp.
It is a default setting on arm/armeb, ia64/ia64, mips/mipsel,
mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, powerpc/pow‐
erpc, powerpc/powerpc64 and sparc64/sparc64. When set, it also
enforces the following options:
WITHOUT_LLDB
CC+=/usr/local/bin/gcc
CCPLUS+=/usr/local/bin/gcc
All those multi-Xxx stuff won't make anything near a light OS. There is Ubuntu Linux, which does all those things you mentioned and it is not light. you can run it via a usb memory, though.The goal is to have a FreeBSD OS, with all the best:
- multi-arch (can run 32 and 64 bit programs, console and Xorg).
- multi-os (can emulate Linux, Windows (via Wine))
- multi-cross (can cross-compile for nearly everything)
- multi-media (graphic (Xorg) and audio (audio/portaudio), ready to work)
- multi-dev (develop tools ready to use)
- multi-users (easy tools for managing)
- multi-net (all needed to connect, installed and working)
- multi-assist (assistive via voice-synth)
=> All that for the LESS weight possible.
All those "multi" are ready to work, "out of the box off line too", on a live-cd for less than 300 MB.
Well done! .... But hang on a sec, how can you make a "can compile nearly everything" OS without a C compiler. C != C++For making that system, a "prune" list is used of all the big executables that (seems) not useful.
=> all those files are deleted.
For example (the reason of topic) the C compiler(s).
without knowing what all those things do, and deleting them for the sake of getting rid of "unnecessary programs" is not the way to go.In the GENERIC distribution, there are in /usr/bin :
CC, cc, cpp, clang-cpp, clang++, clang, c++, => all 28,7 MB and all respond equal.
In the "Light" os is already installed fpc, cpp, python and java and all those compilers compile ok.
I have try with c++ vs cpp and get the same result.
=> I keep cpp and deleted all the (same) C other compilers.
The difference between those, and why all these files have the same filesize have already been answered in previous posts.What is the difference between those compilers?
Hum, Ubuntu cannot run FreeBSD applications. ;-)All those multi-Xxx stuff won't make anything near a light OS. There is Ubuntu Linux, which does all those things you mentioned and it is not light. you can run it via a usb memory, though.
Of course there is a (obliged) C compiler (cpp) !Well done! .... But hang on a sec, how can you make a "can compile nearly everything" OS without a C compiler. C != C++
Not sure you get it...more to "making a linux kernel based gnu os" rather than a FreeBSD system
Not so simple... ;-)without knowing what all those things do, and deleting them for the sake of getting rid of "unnecessary programs" is not the way to go.
Of course there is a (obliged) C compiler (cpp) !
And in that excellent script, there is a "prune" list (and all the c compilers are included).
In previous post, you may see that I used=>If you don't provide the build system with Clang and don't tell explicitly tell it to use another compiler (for both C and C++), nothing from that language will be compiled.
# make all COMPILER_TYPE=clang
=>You've taken this a step too far.