i have this simple code in wayland :
#include <stdio.h>
#include <wayland-client.h>
int
main(int argc, char *argv[])
{
struct wl_display *display = wl_display_connect(NULL);
if (!display) {
fprintf(stderr, "Failed to connect to Wayland display.\n");
return 1;
}...
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.
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...
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...
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...
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...
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...
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...
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+=...
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...
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...
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...
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...
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...
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...
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...
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 :)
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.