helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
805 stars 58 forks source link

weird clang errors #367

Closed darkoverlordofdata closed 2 years ago

darkoverlordofdata commented 2 years ago

Describe the bug weird clang errors

To Reproduce mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr/local/bin -DCMAKE_C_COMPILER=/usr/local/bin/cmake

errors like

- Detecting C compiler ABI info - failed
- Check for working  C compiler: /usr/local/bin/clang - broken
the C compiler /usr/local/bin/clang is not able to compile a simple test program

Expected behavior I expect it to compile my project as it did in prior versions of hello system

Screenshots If applicable, add screenshots to help explain your problem.

Version (please complete the following information):

Computer (please complete the following information):

Additional context I assume this is due to shrinking the install size to <800 mb; when I try to compile a c program, i found cmake was missing, and clang was missing, so i used pkg to install them

sudo pkg install cmake llvm

and now I get errors configuring cmake - I've never seen this behavior in the past - the typical advice is

FreeBSD always includes a compiler and basic build environment out of the box. There is no "build essential" type package, because it is not necessary.
darkoverlordofdata commented 2 years ago

Ah, while re-reading this link https://hellosystem.github.io/docs/developer/developer-tools.html, I think I found the solution is an extra developer img. So I'll play around with that, and if I have a problem, I'll reopen this. I guess my only complaint is why? and that I'll need 2 usb's... Oh well, I'll get over it :)

darkoverlordofdata commented 2 years ago

I got this to work, but I'll leave instructions:

I've never seen img files used except as an alternatie iso format. This did work, but it's a few steps that aren't intuitive if you've never seen this before.

probonopd commented 2 years ago

Yes, need to install Developer Tools as documented here and as shown in this video.

FreeBSD always includes a compiler and basic build environment out of the box. There is no "build essential" type package, because it is not necessary.

This applies to helloSystem only after the installation of the Developer Tools, because we want to keep the Live ISO small and focused on "mere mortals".