gcc

  1. L

    C why i cant compile wayland source code in Freebsd via clang, cc and gcc?!

    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; }...
  2. 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.
  3. apprentice

    C Need guidance for programming in C on FreeBSD

    System: FreeBSD 14 I'm new to FreeBSD, coming from Linux and have always used gcc. In FreeBSD so I can compile in C and C++ what should I use? Thanks.
  4. D

    [Poudriere] : out of memory

    Hi all, I'm trying to build i386:wine-devel 9.3. Nevertheless, poudriere bulk -j wine-build emulators/wine-devel runs out of memory (linkage process indeed) when build gcc-13 and llvm-15. My hardware : 9 Go RAM + 12 Go swap. Anyone has an idea to workaround this ? Note: Building...
  5. 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...
  6. B

    MIPS GCC9 not building executable ELFs

    Hi Forum, since some days i dig into MIPS Code and try to compile it. No success in building a MIPS Qemu System, i try now to build code for MIPS with a Cross-Chain. For this i have installed mips-packages from the ports tree. mips-binutils-2 mips-gcc9 The tools popup as...
  7. 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...
  8. F

    general/other FreeBSD on Docker

    Hello! I haven't been in touch with the "FreeBSD world" for several months and I kind of missed the latest news. Is it currently possible to compile with GCC a code in a temporary FreeBSD container? (in other words: there are images based on FreeBSD that can be expanded in Dockerfile ?) Thanks!
  9. kodcode

    Solved Arduino CLI - Can't compile/upload code from CLI

    Hello everyone, following https://wiki.freebsd.org/Arduino I created the Makefile but upon running make install flash clean cleandepend I get the following error: kodcode@inspiron:~/ArduinoMake $ make install flash clean cleandepend avr-gcc -mmcu=atmega328p -g -std=gnu99 -Os -fno-exceptions...
  10. J

    C Protobuf with GCC

    I have a cross-platform project using devel/cmake and C++20. This project compiles fine under Windows, Linux and MacOS. The project uses Google's protobuf library. On FreeBSD, I installed those from devel/protobuf. The problem I'm facing is that the project requires lang/gcc11 as clang is...
  11. HoshiYamazaki

    Shell Binutils 2.36 compilation fails due to sed/sh error

    mv -f .deps/libz_a-uncompr.Tpo .deps/libz_a-uncompr.Po gcc -DPACKAGE_NAME=\"zlib\" -DPACKAGE_TARNAME=\"zlib\" -DPACKAGE_VERSION=\"1.1.4\" -DPACKAGE_STRING=\"zlib\ 1.1.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"zlib\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1...
  12. 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...
  13. V

    C cannot find -lasan when doing -fsanitize=address using GCC/g++/etc

    Issue: Using any compiler to compile any C code with "-fsanitize=address" results in the following error: /usr/local/bin/ld: cannot find -lasan collect2: error: ld returned 1 exit statu I get this error even when I try gcc main.c -fsanitize=address on int main() { return 0; } using...
  14. H

    Shell (linux)update-alternatives equivalent on FreeBSD?

    Hello. I would like to use a framework initially built on Linux. They use a command update-alternatives to specify that gcc points to gcc9 for example. Is there some equivalent on FreeBSD or I should modify the Makefiles or link gcc9 to gcc? Maybe just exporting the command would be...
  15. S

    Closed Gcc49

    I have using freebsd 9.2, mysql 5.5 and i need to gcc49 but can not install. Could u help me? thx
  16. Sopalajo

    C Include files not found when compiling C program.

    Sorry for the newbie question. I am just starting to learn C programming. I am running pfSense, a modified (smaller) FreeBSD 10.3 version to implement a router/firewall. I would like to compile some simple C programs, like the classical: #include<stdio.h> int main() { printf("\nHello...
  17. N

    Solved [Newbie] gmake doesn't recognize FreeBSD

    I wanted to install GDC at my FreeBSD, but when I typed sudo gmake install, those error occurred: /usr/home/vmware/gdc/gcc-7.3.0/libphobos/libdruntime/core/stdc/stdlib.d:204:9: error: undefined identifier 'wchar_t' int mbtowc(scope wchar_t* pwc, scope const char* s, size_t n); ^...
  18. decuser

    Solved How to install and run gcc safely without polluting my flawlessly running system

    I am wanting to run the examples in the Stevens book, Advanced Programming in the Unix Environment. I'd rather not pollute my running system with extraneous files that are not required for the system to function. My question and followups for the masters out there: What's a safe way to install...
  19. aragats

    Solved Qt5: gcc48/libstdc++.so.6: version CXXABI_1.3.9 not found

    I'm trying to build a simple Qt5 program and getting such error. The Makefile is created by qmake and contains:.... CC = gcc CXX = g++ ....Let's see what is gcc:% ll /usr/local/bin/gcc lrwxr-xr-x 1 root wheel 4 Oct 19 00:40 /usr/local/bin/gcc@ -> gcc6Then I ran make and...
  20. clawhammer

    Solved how can I use cc -o on two files?

    I have two files from a book I'm trying to compile. One is the main file usehotel.c. The second is the function definitions for a header file, hotel.c. I've tried the -o option different ways and I can't get it to work. I don't want the file names to change to a.out after compilation. I've...
Back
Top