• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

clang

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. blueCub

    C/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 :)
  8. 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...
  9. 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...
  10. _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...
  11. 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 >...
  12. K

    clang and llvm from base are not used for xorg building

    Hi, While installing xorg from ports on FreeBSD 10.2 it builds lang/clang36 and devel/llvm36 tools among others as dependencies. Although I have both CLANG and LLVM (3.4.1) on base, Xorg still requires to have duplicates. Is it possible to avoid building CLANG and LLVM and use those from base...
  13. Isaac Monteiro

    Clang error in optimization

    Hi, I tried to compile this http://lolengine.net/wiki/oss/lolremez with clang, but using any optimization causes the program to behave in a very strange way and gives numerically erroneous results. Compile without optimization produces a very slow binary, so I have to compile using g++48 to use...
  14. F

    Solved Build debug system libraries -- libc, libthr, etc.

    Hi, I'm a porting an open-source Linux-based software to FreeBSD. Since this is a fairly low-level systems software, I'd like to be able to debug into libc, libthr, and other system libraries. I set up a FreeBSD-10.2-Release system (x86-64) using the live CD, and then set up basic utilities...
  15. Isaac Monteiro

    C/C++ Clang error in optimization

    Hi, I tried to compile this http://lolengine.net/wiki/oss/lolremez with clang, but using any optimization causes the program to behave in a very strange way and gives numerically erroneous results. Compile without optimization produces a very slow binary, so I have to compile using g++48 to...
Top