Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [gcc]

GNU Compiler Collection, a family of compilers for various languages from the GNU Project. Questions about gcc should be limited to installation and basic usage/configuration.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

package installed but not detected by CMake [migrated]

The dependency are already installed but still not being detected by Cmake build. For example Package 'hyprcursor', required by 'virtual:world', not found but, rpm -ql hyprcursor /usr/bin/hyprcursor-...
shohel hossain's user avatar
0 votes
0 answers
11 views

shc & gcc : Any use for the *.x.c. file that's created?

shc for "compiling" bash scripts, I end up with two files. One is obscured version of my bash script which works great, I also get an intermediate file *.x.c.. I say it this way because I'...
yegnal's user avatar
  • 31
0 votes
0 answers
72 views

ubuntu 23.10. Error updating the kernel

Prop. of my Ubuntu PRETTY_NAME="Ubuntu 23.10" uname -r 5.15.0-72-generic Error updating the kernel to version 6.5 dkms/anbox-ashmem/1/build/make.log DKMS make.log for anbox-ashmem-1 for ...
robertolabarca's user avatar
0 votes
0 answers
14 views

Measure the Max Memory of a running process in gcc-bookworm Docker image?

I found many resources to use valgrind or /usr/bin/time. However, I need to perform this task in the container of the official Docker image for GCC: https://hub.docker.com/_/gcc This image is based on ...
Stefan Zhelyazkov's user avatar
2 votes
1 answer
965 views

VirtualBox installation fails on Ubuntu

I'm trying to install VirtualBox on Ubuntu 22.04. I downloaded the right .deb from the official site and installed with sudo dpkg -i virtualbox-7.0_7.0.12-159484\~Ubuntu\~jammy_amd64.deb which gave ...
alex's user avatar
  • 731
0 votes
0 answers
28 views

-bash: ../binutils-2.38/configure: Permission denied

I follow Bare Bones Tutorial on OSDev wiki then I type this: ../binutils-2.38/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror Then I get this ...
Senna Thongthao5's user avatar
1 vote
0 answers
670 views

How to setup vscode C++ intellisense to use gcc compiler?

I'm using C++ in vscode with Microsoft C/C++ Extension. I'm using g++ compiler provided in msys2: gcc --version gcc.exe (Rev6, Built by MSYS2 project) 13.1.0 When I write this code in editor, it ...
Sourav Kannantha B's user avatar
0 votes
1 answer
239 views

Building emacs 29 on openSUSE: `configure` cannot find json library despite it being installed

Im currently trying to build emacs 29.0.90 from source. I've installed every version and permutation of json-devel, json-c, libjsoncpp, etc on the repositories, and even built, tested, and installed ...
Alexis Purslane's user avatar
3 votes
1 answer
2k views

Ubuntu WSL becomes completely unresponsive

I am trying to use Ubuntu WSL to build the GNU GCC 9.3.0 toolchain, and thought I managed to do do this, but then I couldn't actually use it as a kit in VSCode. I then assumed I did something wrong, ...
Lepherd's user avatar
  • 41
0 votes
0 answers
1k views

Static build of nginx with image filter fails

I am trying to build nginx from source with the http_image_filter_module but when I add it I get an error. I run the command below, and it works until I add the --with-http_image_filter_module arg, ...
isapir's user avatar
  • 181
1 vote
0 answers
749 views

Clang disable Case Sensitive header file inclusion

In Linux when invoking clang compiler with clang++ with Command for the code, main.cpp: #include "Sample.h" int main() { return 0; } include/sample.h # HEADER FILE IMPLEMENTATION ...
Veno's user avatar
  • 119
1 vote
0 answers
274 views

Linker warnings with new Linux kernel

Thanks for the pointer to the right spot on the mailing list! CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh DESCEND objtool CHK include/generated/compile.h LD ...
Rich Paul's user avatar
0 votes
1 answer
1k views

'gcc' not recognized though C:\MinGW\bin added to path

I installed mingw from the mingw installer and installed all the basic packages needed. I can run gcc if I give the address of the folder to cmd but not without it. I will attach all the images. The ...
Gaurav Tiwari's user avatar
1 vote
0 answers
311 views

Installing Wine 4.20 but winegcc: x86_64-w64-mingw32-gcc failed

I'm trying to install Wine 4.20 for the first time on a new MacBook Pro (16-inch, 2019) running MacOS Monterey (v12.1). I downloaded from winehq, entered ./configure --enable-win64, and then typed ...
Joe Guetschow's user avatar
0 votes
1 answer
397 views

Installing gcc 4.7.2 in MacOS (Monterrey)

I am trying to install gcc 4.7.2 (I need this version in order to be able to compile an old code), but I can not seem to find a proper way to do it. It looks like the only available options is to do ...
Eideann's user avatar
0 votes
0 answers
341 views

can't build gcc-core-4.1.2 on Ubuntu 20.04.4 LTS

i can't compile gcc-core-4.1.2 on Ubuntu 20.04.4 LTS. 'make bootstrap' fails with $ make bootstrap make[1]: Entering directory '/home/user/Development/gcc-build-root/gcc-core-4.1.2.build/build-x86_64-...
BlackMage's user avatar
1 vote
0 answers
403 views

gcc --version error prevent installation of Nvidia proprietary driver via DKMS on ubuntu 20.04

When trying to install nvidia proprietary driver on my 20.04 LTS host I ran into a problem that it would not install when using DKMS. It complained about mismatach between gcc version used for the ...
storestyggeulv's user avatar
0 votes
1 answer
102 views

Will gcc-git break my current install?

Arch Linux's AUR offers a few versioned packages for GCC, for things that still need an older compiler. But the gcc-git package does not install to opt, or a subdirectory. Since the rest of my system ...
user41010's user avatar
0 votes
0 answers
180 views

How can I determine the compiler which processes a header file?

I want to compile a C/C++ project in an Ubuntu environment. My problem is that at some point it encounters a header file where __stdc_version__ is not defined and since both -Werror and -Wundef are ...
Felix Crazzolara's user avatar
0 votes
2 answers
2k views

how to install gcc-7-aarch64-linux-gnu on ubuntu 16.04

With ubuntu 18.04, gcc-7-aarch64-linux-gnu and g++-7-aarch64-linux-gnu can be installed directly via apt but with 16.04 I am unable to find a way in which I can make these packages work. Any pointers ...
yashC's user avatar
  • 113
0 votes
1 answer
1k views

is it possible to install old version of gcc compiler, even i already have other version's, on CentOS Linux

i installed CentOS6 for some reasons, and want to compile documents written by c++ and fortran. i found i gotta change gcc version due to some errors related by using current gcc-gfortran compiler. ...
choko 's user avatar
0 votes
0 answers
222 views

How to install libcc1.so from cross gcc to target-dependent location?

So I am packaging and installing gcc for an uncommon target. By default all files (excluding docs) have the target name in their full path. But libcc1.so.0.0.0 and symlinks to it are installed at /usr/...
user's user avatar
  • 111
2 votes
2 answers
19k views

How to properly upgrade gcc on Centos 7?

I did this to upgrade gcc from 4.8.5 to gcc 7: sudo yum install centos-release-scl sudo yum install devtoolset-7-gcc* source /opt/rh/devtoolset-7/enable This does give me the gcc 7 in the current ...
martin's user avatar
  • 145
0 votes
2 answers
101 views

Ansible Run Analysis tool :Exception during the install of mysqlclient using pip3

I want to use a mysql engine/database with ARA instead of the default sqlite engine that comes with the tool in order to have a more robust engine for multiple entries but I am facing an issue that ...
Jinja_dude's user avatar
0 votes
1 answer
450 views

What are the error messages that are meaningless when you compile gcc with a configure file generared using GNU Autoconf 2.69?

The question is in the title. For example, as explained here gcc unrecognized command line options '-V' and '-qversion' with autoconf, the error message gcc: error: unrecognized ...
Dominic108's user avatar
1 vote
1 answer
312 views

SASM issues - fedora

I use fedora33 as OS, and I come across an issue when using SASM. Even if I have installed GCC, NASM and FASM, when running the "hello world" samples SASM outputs error messages. Only 32-bit ...
pauk's user avatar
  • 111
0 votes
0 answers
26 views

disconnecting Cygwin commands from Windows CMD

in a system im trying to use gcc installed in c:/mingw/bin, i also set the related PATH variable for that, but running the command gcc -v always shows the cygwin installed gcc because it tells Thread ...
payam_sbr's user avatar
  • 101
3 votes
1 answer
19k views

How to use GCC compiler in Visual Studio

This seems like it should be easy to do but after a couple hours of Googling I still can't figure out how to use GCC as the compiler for C++ in Visual Studio. I've installed MinGW and the the gcc ...
dude987321's user avatar
0 votes
1 answer
5k views

install C++ compiler (gcc) in SLES (SUSE Linux Enterprise Server)

I need to build a c++ project in SLES (SUSE Linux Enterprise Server) environment. While trying to installing build tools I am facing issue (add repo is failing) in installing c++ (gcc) compiler. ...
Anirban B's user avatar
  • 101
-1 votes
1 answer
197 views

Conditional statements with braces versus without braces - which is fast in C, C++ [closed]

I know this is silly, but I'm quite curious to know that is there any speed difference using conditional statement (i.e. for, if, while, do while) in C++ with braces and without braces. FYI : I know ...
Deepam Gupta's user avatar
2 votes
0 answers
2k views

How to install gcc 8.2.1 on Fedora 31

I tried to install CUDA on fedora 31 but got stuck at the last step because CUDA officially support fedora 29 (gcc 8.2) while the version shipped with fedora 31 is 9.2, I then installed pytorch with ...
RMPR's user avatar
  • 141
4 votes
1 answer
4k views

How do I downgrade MinGW GCC to 4.8,4?

I'm starting a C++ course in college, and they asked for all assignments to be compilable on GCC 4.8.4. I decided to go with MinGW on Windows 10 via Eclipse, but on the "Versions" tab of any given ...
djohoe28's user avatar
1 vote
2 answers
4k views

Error with gcc installing psutil (and it's dependants) with pip

I'm trying to install Apache Airflow, using pip. In the process of doing that, it tries to install psutil, and gets a gcc error. If I try to install psutil separately, it still gets the same error. ...
TheCaronte's user avatar
0 votes
2 answers
695 views

ldd but for interlibrary dependencies?

Is there a tool like ldd which shows which libraries an executable depends on,but for inter-library dependencies. For example one shared library needs another one.How to get the dependencies. I'm in ...
microwth's user avatar
  • 155
0 votes
1 answer
115 views

mingew32-g++.exe stopped working in CodeBlocks

I am using CodeBlocks in Windows 10 64-bit. It says 'mingew32-g++.exe' stopped working every time I want to build my code. I have tried reinstalling CodeBlocks many times.
div's user avatar
  • 1
0 votes
2 answers
3k views

Access Denied when compiling c code with gcc

I compiled my c program with gcc -c -o test.exe test.c and it compiled with no errors and then when I run it gives Access is denied. This is my code #include <stdio.h> int main() { printf("...
Harry Kruger's user avatar
1 vote
2 answers
6k views

How do I change PATH so that bash shell locates gcc from a different directory?

I'm running macOS Mojave (10.14.6) and carried out the following instructions: Page 1 Page 2 Page 3 I've followed the instructions without any problems so far but when I enter "type gcc" into the ...
Sean Dever's user avatar
3 votes
2 answers
3k views

Compile in msys2 mingw64 with -m32 option

Inside a msys2 mingw64 shell, I would like to compile a software with the -m32 option in order to run in 32bit mode. I have installed mingw-w64-x86_64-toolchain But when I compile with -m32, I have ...
Louis Caron's user avatar
0 votes
2 answers
2k views

GCC not working on macOS Majave?

I am trying to download some astronomy software (PINT) and when I perform make test, as suggested, it fails. I believe the problem is with my gcc compiler on my Mac. The error I am given is $ ...
Maria's user avatar
  • 1
0 votes
1 answer
738 views

Sublime text 3 Terminus using Cygwin terminal wont accept commands (e.g ls or gcc) (Windows)

I have installed Terminus in sublime text 3 and changed the "shell_configs" to use cygwin as the terminal. To do this I edited the code to include the following. { "name": "Cygwin", "...
WhoDunnett's user avatar
0 votes
1 answer
948 views

Error during Python Pynini lib installation: "fatal error: 'ios' file not found"

I ran the command '''python3 setup.py install''' and '''python3 setup.py install --prefix=/usr/local''' in order to install the Python package Pynini through CLI but got the following unexplained ...
benjaming's user avatar
1 vote
1 answer
195 views

gcc version is different when using sudo

I have two versions of gcc installed on my CentOS7 machine: 4.8.5 and 8.3. If I do: $ gcc --version I get 8.3 If I do: $ sudo gcc --version I get 4.8.5 How can I get sudo commands to also use 8.3 ...
Matt Stein's user avatar
0 votes
1 answer
302 views

I just installed sublime text 3 on my laptop. I cant run C codes

I built some build systems by using various codes from google & youtube but cant make it. every time some error is showing. is there any way of solving this? Last time i used this code to build a ...
Shahadat Nayeem's user avatar
1 vote
0 answers
852 views

How to solve gcc error that prevents package installation with setup.py?

I'm trying to install package mlabwrap for Python (on Macos) but I'm getting "error: command 'gcc' failed with exit status 1". I already double-checked all parameters of setup.py file, namely ...
MrT77's user avatar
  • 141
1 vote
1 answer
1k views

Raspbian gcc does not know '.intel_syntax'?

I tried to execute: gcc -o main main.c squrt.S -lm -no-pie This worked on a different computer, but this time it did not know a single instruction: squrt.S: Assembler messages: squrt.S:7: Error: ...
Lukas Hohl's user avatar
1 vote
1 answer
1k views

Ipython kernel keeps crashing when running UMAP

I am trying to run some dimensionality reduction using UMAP. However, python keeps crashing. My hunch is that it has something to do with c compiler/cython, but I didn't succeed to re-install/fix this....
Jan Pesl's user avatar
0 votes
1 answer
293 views

errors when building gcc-9.1.0 under cygwin

I received this error: >/usr/local/contrib/gcc-9.1.0/libbacktrace/pecoff.c: In function ‘coff_add’: /usr/local/contrib/gcc-9.1.0/libbacktrace/pecoff.c:656:37: error: pointer of type ‘void *’ used ...
jeferson lemos's user avatar
2 votes
1 answer
664 views

Multiple GCC versions in ELF comments

I'm trying to determine what version of GCC was used to compile various executables. To do this I'm looking at the comment section of ELF files. I assumed I would always only come across a single ...
Kevin Postlethwait's user avatar
1 vote
1 answer
1k views

What are suitable values for gcc parameter l2-cache-size considering hardware L2 cache size?

During compilation optimization this question about best guesses for gnu gcc compiler parameter --param l2-cache-size=? (default is number for kB block size) came up. What are recommendable values for ...
beyondtime's user avatar
1 vote
0 answers
141 views

Updating GCC from 4.2.1 in XCode 9.4.1 while keeping the rest to be the same

I am trying to build LibreOffice, which indicated on its guide that I must use XCode 9.4.1 as follows: NOTE: If you try to build LibreOffice on macOS Mojave 10.14, please use Xcode 9.4.1, otherwise,...
Kevin Winata's user avatar

1
2 3 4 5 6