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
19 views

my gcc compiler not working ig something is wrong with my mac m1 . when i install compiler it shows this- [closed]

brew install gcc Error: /usr/local/Homebrew is not writable. You should change the ownership and permissions of /usr/local/Homebrew back to your user account: sudo chown -R $(whoami) /usr/local/...
user avatar
  • 1
0 votes
0 answers
152 views

How do you force Kali Linux to use GCC-11 instead of CC when installing NVIDIA-Linux-x86_64-430.09.run manually?

I tried to install NVIDIA-Linux-x86_64-430.09.run in Kali Linux manually but ended up with some compilation errors. I installed the necessary linux-headers, pkg-config, libglvnd-dev and gcc-11 in my ...
user avatar
0 votes
0 answers
53 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 ...
user avatar
0 votes
1 answer
38 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 ...
user avatar
0 votes
0 answers
55 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-...
user avatar
1 vote
0 answers
136 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 ...
user avatar
0 votes
1 answer
28 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 ...
user avatar
0 votes
0 answers
33 views

Dependencies required but already installed

I have a problem to install a program on Debian. The terminal says the packages have to be upgraded The following packages have unmet dependencies: g++ : Depends: cpp (= 4:10.2.1-1) but 4:12-...
user avatar
0 votes
0 answers
38 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 ...
user avatar
0 votes
2 answers
532 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 ...
user avatar
  • 113
0 votes
1 answer
301 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. ...
user avatar
0 votes
0 answers
419 views

How to install specific version of libstdc++6 on Alpine Linux?

I am trying to install libstdc++.so.6.0.19 on the Alpine Linux. Dockerfile: FROM alpine:edge RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub RUN wget ...
user avatar
0 votes
0 answers
57 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 avatar
  • 111
0 votes
0 answers
2k 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 ...
user avatar
  • 125
0 votes
2 answers
56 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 ...
user avatar
0 votes
1 answer
128 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 ...
user avatar
1 vote
1 answer
75 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 ...
user avatar
  • 111
0 votes
0 answers
17 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 ...
user avatar
  • 101
1 vote
1 answer
5k 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 ...
user avatar
0 votes
0 answers
2k 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. ...
user avatar
  • 101
0 votes
1 answer
35 views

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

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 ...
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 ...
user avatar
  • 131
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 ...
user avatar
1 vote
2 answers
2k 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. ...
user avatar
0 votes
2 answers
314 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 ...
user avatar
  • 155
0 votes
1 answer
77 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.
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("...
user avatar
1 vote
2 answers
3k 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 ...
user avatar
0 votes
1 answer
577 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 ...
user avatar
0 votes
2 answers
1k 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 $ ...
user avatar
  • 1
0 votes
1 answer
591 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", "...
user avatar
0 votes
1 answer
615 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 ...
user avatar
0 votes
1 answer
77 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 ...
user avatar
0 votes
1 answer
228 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 ...
user avatar
1 vote
0 answers
823 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 ...
user avatar
  • 131
1 vote
1 answer
769 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: ...
user avatar
1 vote
1 answer
457 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....
user avatar
0 votes
1 answer
254 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 ...
user avatar
2 votes
1 answer
385 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 ...
user avatar
1 vote
1 answer
630 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 ...
user avatar
1 vote
0 answers
117 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,...
user avatar
0 votes
0 answers
356 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 ...
user avatar
1 vote
0 answers
801 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-...
user avatar
  • 11
0 votes
1 answer
285 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 ...
user avatar
0 votes
1 answer
877 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/...
user avatar
1 vote
0 answers
2k views

Relocation error: version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

I'm implementing a transcriptomics pipeline using Conda on a Linux VM (Ubuntu 14.04.6), but I am running into issues with GCC. I installed the latest GCC version with: sudo add-apt-repository ppa:...
user avatar
1 vote
0 answers
148 views

Compatible version of Allegro with my GCC compiler

I am using 32 bit version of code::blocks 17.12 with TDM-GCC version 5.1.0-3 on windows 7 ultimate 32 bit. I was using Allegro 5 (allegro-mingw-gcc6.2.0-x86-static-5.2.2). It worked completely fine. I ...
user avatar
0 votes
2 answers
413 views

how to makeinfo the gcc manual texinfo files?

I downloaded an archive with the gcc info manual from an official page. Extracting the archive leads to not a single .texi file, but a very complex directory structure when many many .texi files. I'm ...
user avatar
  • 298
1 vote
1 answer
3k views

Why does my GCC compiler not compile C code?

I followed a YouTube tutorial for installing the gcc compiler on my Windows 10 machine. The install appeared to go perfectly. tutorial here. I then wrote a C program, which compiles and executes when ...
user avatar
  • 25
0 votes
1 answer
149 views

gcc compiler warning flags missing

I wanted to use some of the warning flags listed on https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html. However it appears I can´t use all of them. For example -Wpessimizing-move is not ...
user avatar

1
2 3 4 5 6