clang

  1. T

    CAN'T INSTALL CLANG14

    hello on my server clang 11.0.1 version is installed but my project is compiled with clang14, when I write the command " pkg install clang14 " I get an error like clang14 not found. please help me solve this problem, thank you.
  2. A

    C Error: undefined symbol: ftime Why?

    Hello everyone! Trying to build this (https://github.com/ArboreusSystems/arboreus_library/blob/master/arboreus_library/c_src/a_time/a_time_now_handler.c) and having this error. On MacOS everything is building perfectly. What is the difference? This is error: ld: error: undefined symbol: ftime...
  3. First_Law_of_Unix

    C Solved - How to use or set Clang/LLVM/GCC compilers on VS Code?

    I couldn't find anything on google on how to configure VS code on FreeBSD to use clang/llvm/gcc. I have clang/llvm and gcc installed on FreeBSD 13.1 I have installed this extension: https://marketplace.visualstudio.com/items?itemName=Kr4is.cpptools-extension-pack Which installs the following...
  4. F

    Solved Clang plugin, CMake and _types.h error

    Good afternoon folks! I am trying to compile this c source file while performing some CLANG frontend action with a CLANG plugin. My source code (test.c) includes a header file (section_insertion.h). This header file includes stdio.h because I use some size_t variables inside some structs...
  5. J

    Solved Weird libc++ experience

    I'm sorry for the weird title of this thread but I'm really not sure what I'm currently experience. The problem I am experiencing is that devel/llvm13 doesn't know about std::invocable. Minimum test case as follows: main.cpp: #include <concepts> void func(int); int main() { return...
  6. T

    Solved clang error during kernel compilation

    Hello, I have just upgraded my system from 12.2-Release to 13.0-Release without any problems. I had a custom kernel set up before and wanted to compile one for the upgraded install too. Obtained relevant /usr/src from git with branch releng/13.0 and configured it using a copy of GENERIC. I then...
  7. neostanniy

    Solved Using gcc as a default compiler (FreeBSD 13.0) [SOLVED]

    Greetings everyone and sorry for bothering the community, but I got terribly messed up and I think I need your help very much. I have just installed FreeBSD for the first time willing to make it my default OS for music production and other working purposes, but unfortunately got confused with...
  8. Farhan Khan

    Append arguments to end of compile line - gcc fails where clang links

    Hi all, TLDR; Is there a way to have make append arguments at the end of the final build command or at least after the object files? I am trying to statically link against a library using the build process (pardon my terminological mistakes). In my Makefile, I am doing this: LDFLAGS+=...
  9. goshanecr

    What is the right approach to build ports with i386 CPU features on a 64bit machine?

    Good day! I have a far placed (in a village), old PC based on a Pentium-III. And I want to generate a simple FreeBSD based system on it. How I do that: 1. On my home PC (Ryzen based), I'm start Virtualbox instance with FreeBSD 12-RELEASE i386. 2. I add CPUTYPE?=pentium3 on /etc/make.conf 3. I...
  10. A

    need help building sct in i386 with Clang

    Hi there, I've been compiling sct to change color temperature in x86_64 without problems with this command: # cd /tmp && su user -c "wget --no-check-certificate \ > https://www.tedunangst.com/flak/files/sct.c" && \ > su user -c "cc -std=c99 -O2 -I /usr/local/include/ -o sct sct.c -L...
  11. P

    Compiling the kernel via GCC

    Has anyone been able to successfully compile the kernel using GCC as against CLANG the default compiler on most later versions of FreeBSD? I was able to successfully buildworld. After which I reboot and now /usr/bin/cc points to GCC as requested. However kernel fails to link Here is my src.conf...
  12. P

    clang error make buildworld freebsd-current

    I am tying to buildworld on an ivybridge (amd64) machine and I get the following error: ===> lib/libc/tests/ssp (all) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_fgets NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING_PROGS=t PROG=h_fgets ) (cd...
  13. David John

    Solved Clang warnings for an invalid casting?

    I am trying to compile a simple code (see below) with gcc and clang. the gcc generates a warning indicating an incomparable casting (great!). However, clang didn't generate any warnings! I have passed the same arguments for both: cc -Wall -Wextra tmp3.c gcc -Wall -Wextra tmp3.c Is there an...
  14. G

    Messed up C++ library

    I think I messed up libc++. I was trying to get something to compile, and I think I pkg remove -f'ed devel/llvm39 and reinstalled it. Now when I try and compile anything in C++ I get an error like the following: /usr/include/c++/v1/cmath:679:46: error: declaration conflicts with target of...
  15. m4r1n

    Solved `make buildworld` does not build base llvm on FreeBSDDesktop/freebsd-base-graphics

    Hi, I'm in the process of testing the drm-next-4.7 branch from the FreeBSDDesktop github repository on several computers. As I want to avoid building world on every machine, I decided to set up a dedicated build machine running FreeBSD 11.0-STABLE. The plan was to build world, kernel and some...
  16. Rand0m

    C Upgrading Base Clang

    Hi there, I wonder how I can upgrade the Clang/llvm that is ported with FreeBSD. I know i can get the newest version from ports but how can I make the ports version the default clang for the system. Thanks :)
  17. fnoyanisi

    Solved Cannot compile simple kernel module

    Hi there, Using 10.3-RELEASE and trying to compile a simple kernel module. My Makefile is really simple.... ~/code/memstat % cat Makefile # Source files for kernel module SRCS=memstat_kmod.c # Declare Name of the kernel module KMOD=memstat # Include kernel module makefile .include...
  18. fnoyanisi

    Xfce Why do I have to install 3 different clang versions for Xfce?

    Hi there, After having a long discussion about future of the GNOME desktop, I decided to give a try to x11-wm/xfce. Different components that come with Xfce (taskmanager, squeeze etc...) required different versions of clang to be installed as a dependency. Now I have clang33, clang35 and...
  19. _martin

    Solved clang; use 128b number

    Hi, I'm testing this on FreeBSD 10.2 amd64. Following is the simple program: #include <stdio.h> int main() { __int128_t bundle; fprintf (stdout, "bundle size: %ld\n", sizeof(bundle)); return 0; } and the output is as expected 16. But when I try to assign a number: __int128_t...
  20. K

    clang36 requires groff as a dependency

    Hi, I've replaced groff from base with mdocml, but when Clang is being build from ports it exits with error not being able to find the groff, PSB: groff -Tps -man /usr/obj/usr/ports/lang/clang36/work/llvm-3.6.2.src/tools/clang/docs/tools/clang.1 >...
Back
Top