As of May 31, 2023, we have updated our Code of Conduct.

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
1 answer
34 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 Dumas's user avatar
3 votes
1 answer
167 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
28 views

Modifying the location where executable looks for dynamic linker

I've recently bought a D-link DNS-325 for experimentation. Its a small 2bay NAS device with an ARM processor in it, and some custom made Linux installed (2.6.31.8 kernel). My goal is to cross compile ...
8_Peter_8's user avatar
0 votes
0 answers
454 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
194 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
109 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
0 answers
225 views

How to show stack size of an executable file?

GCC can be provided with a linker option to set a custom stack size for a program: gcc -Wl,-z,stack-size=4194304 file.c In Linux, how do I find out what this stack size value was when the executable ...
Ana's user avatar
  • 1,553
0 votes
1 answer
397 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
0 votes
0 answers
54 views

How to activate Shadow Stack on Debian?

For my practical course I have to create a program that makes use of Shadow Stack. However, by now I do not understand how the concept should work. I created a simple program that introduces a buffer ...
jupiter_jazz's user avatar
1 vote
0 answers
201 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
346 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
261 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
292 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
75 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
64 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
914 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
91 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
1 vote
1 answer
6k 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
  • 135
0 votes
2 answers
71 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
273 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
225 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
21 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
2 votes
1 answer
11k 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
0 answers
4k 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
104 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
3 votes
1 answer
3k 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
3k 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
416 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
85 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
4k 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
1 vote
2 answers
1k 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
686 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
836 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
0 votes
1 answer
137 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
276 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
840 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
985 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
837 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
271 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
486 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
944 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
130 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
0 votes
0 answers
412 views

How can I cross compile a c++ application from manjaro linux to windows?

I've tried installing mingw-w64, but I keep on getting errors because the AUR package is broken and unmaintained. Nothing I've tried is working to install it, and wineg++ isn't working well for me. Is ...
some guy's user avatar
1 vote
0 answers
1k views

pkg-config windows installation, not able to find libxml-2.0

I am trying to install github.com/terminalstatic/go-xsd-validate for xsd validation and have followed the steps mentioned in the link - https://medium.com/@kumarharsh/using-libxml2-headers-in-windows-...
simi's user avatar
  • 11
0 votes
1 answer
425 views

Can I install GCC 4.4.4 on Fedora 29 or downgrade my Fedora version?

I have a piece of code that is currently compiling on Fedora 13 (I have it on a VM). I created a new VM using Fedora 29. The issue is that F29 has GCC v8.1 whereas the F13 has GCC v4.4.4 because of ...
Yash Kapoor's user avatar
0 votes
1 answer
1k views

Why does my build of gcc not support shared libraries

I have built gcc-4.9.0 in a Debian Lenny chroot, on a Debian Wheezy host. The arch=Armel (Wheezy and Lenny).  I have used the following configure options: $PWD/../gcc-4.9.0/configure --prefix=/usr/...
Phil Turner's user avatar

1
2 3 4 5 6