Questions tagged [gcc]
GCC is the GNU Compiler Collection. It's the de facto standard C compiler on Linux and older versions of OS X.
109 questions
0
votes
1
answer
138
views
gcc14 (MacPorts) cannot handle stdio.h include
I am trying to compile (from source, I am aware that there is a port but I need to compile from source) a library (GKlib) with MacPorts gcc14 on Sonoma 14.7,3. MacPorts is up to date
I have set thing ...
1
vote
1
answer
328
views
'clang' vs. 'gcc' vs. 'cpp' Binaries
On MacOS 14.2, typing either 'clang --version' or 'gcc --version' (or even 'cpp --version') returns the same:
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.2.0
Thread ...
0
votes
0
answers
309
views
Error installing gcc-devel on macOS Sonoma
I am facing installing gcc-devel on my MacBook macOS Sonoma with macport. I am getting following error messages:
Continue? [Y/n]: Y
Portfile changed since last build; discarding previous state.
--->...
1
vote
1
answer
272
views
g++ fails after 13.4 -> 13.6.1 update
I updated from 13.4 to 13.6.1 and reinstalled Xcode. I have installed gcc (which I believe includes g++) using Homebrew, and have made sure my Homebrew installation is up to date. When I g++ foo.cpp, ...
2
votes
0
answers
217
views
Is GNU assembler bundled with GCC provided by Homebrew?
I'm on Intel Mac running the latest Monterey. Already have GCC 13 installed using Homebrew.
I'm trying to build sectorlisp.
Unfortunately still fails, because as (the LLVM assembler) rejected it. ...
0
votes
1
answer
109
views
XFCE Build Error xdt-csource.1
I'm trying to build xfce4-dev-tools on macOS Monetary. to build and install xfce4 desktop environment. im a total noob when it comes to building c/c++ programs.
Following the steps -
cloned the repo,
...
1
vote
0
answers
67
views
Segfaults for both gcc-13 and clang on Apple Silicon
I just upgraded to an Apple Silicon (M2) box, and both gcc-13 (installed via HomeBrew) and clang produce segfaults on just about anything. I don't know how to debug that and figure out what is going ...
7
votes
4
answers
9k
views
Unable to find include file on newly updated macOS(C/C++)
I have used the g++ command on the terminal to compile C++ programs but all of a sudden, after an update to my Mac's OS (to macOS 13.3 Ventura,), I started receiving the message:
againtest.c:6:10: ...
1
vote
0
answers
106
views
g++ setting proper @rpath when building SFML
I'm trying to build an SFML sample without xcode (for reasons :-)).
The prebuilt samples comes with:
pong> otool -L pong
pong:
@rpath/sfml-audio.framework/Versions/2.5.1/sfml-audio (...
6
votes
1
answer
3k
views
assert.h not found when including bits/stdc++.h
Yesterday I upgraded my Command Line Tools to version 14.2, and my macOS version to Ventura 13.1.
When I tried to include bits/stdc++.h inside a C++ file and compile it, it gave me this error:
fatal ...
3
votes
2
answers
2k
views
How can I point gcc and g++ to the gnu compiler collection?
I want to use the gnu compiler collection instead of the x-code compiler to compile some bioinformatics tools on the mac, which did compile on Linux but fails to build on macOS.
I did install homebrew
...
1
vote
1
answer
459
views
How to install/fix gdb on Big Sur macport after OS upgrade
Given the following problem when trying to install gdb, which demands gcc6, which ridiculously requires gcc7, which refuses to compile under Xcode:
Error: To install this port upgrade Xcode to 11.3 or ...
3
votes
0
answers
358
views
Why does macOS include a 2nd copy of clang called GCC?
Since macOS uses Clang, you'd expect that gcc wouldn't be a valid command/executable, but macOS has a gcc executable that's exactly the same as clang.
5f42128bc6a36bf22b44d4d69e18ee6daff6178b /usr/...
0
votes
0
answers
1k
views
Error installing gcc 7 on a MacBook
I have Mac OS 11.2.3 (the new MacBook Air) I am trying to install gcc version 7 using the command:
brew install gcc@7
However, I get the following error:
gcc@7: The x86_64 architecture is required for ...
12
votes
4
answers
30k
views
Can't install NTFS-3G on macOS BigSur
Hi I'm trying to install NTFS-3G on macOS BigSur but every time I run brew install ntfs-3g it reports Error: ntfs-3g has been disabled because it requires FUSE!.
Obviously I've already installed ...