People who code: we want your input. Take the 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
0answers
5 views

SCL in CentOS only loads partial package

I am trying to get latest version of GFortran in CentOS 7 by running: $ scl enable devtoolset-7 bash in my command line. It loads the correct gcc afterwards, but fails to show correct gfortran # ...
0
votes
0answers
22 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/...
0
votes
0answers
14 views

How to debug the error 'The process cannot access the file because it is being used by another process' at compiling?

I try to use my makefile environment in parallel compiling using the option -j2 but for some files I have the error as decribed in the title, The process cannot access the file because it is being ...
0
votes
0answers
187 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 ...
0
votes
2answers
16 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 ...
0
votes
1answer
42 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 ...
1
vote
1answer
25 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 ...
0
votes
0answers
50 views

Port of gcc57 to macOS (Big Sur)

I tried to use macPorts to install gcc47. sudo port install gcc47 Here is what I get: The following dependencies will be installed: autoconf automake cloog gcc_select glpk ld64 ld64-xcode ...
0
votes
0answers
13 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 ...
1
vote
0answers
118 views

Why doesn't gcc-6 & g++-6 come with their own libstdc++.so

I'm on Ubuntu 20.04 and I added the bionic repo in order to install gcc-6. However when I go to the directory: /usr/lib/gcc/x86_64-linux-gnu/6 the libstdc++.so is a symbolic link to the one in /usr/...
1
vote
1answer
2k 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 ...
0
votes
0answers
694 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. ...
0
votes
1answer
26 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 ...
0
votes
0answers
111 views

Unmet dependencies for apt after upgrading from ubuntu 14.04 to 16.04

After upgrading ubuntu I've had issues with installing programs using the apt command that will not repair themselves. I have tried running sudo apt-get -f install to try and fix the the unmet ...
2
votes
0answers
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 ...
3
votes
1answer
2k 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 ...
1
vote
2answers
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. ...
0
votes
2answers
224 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 ...
0
votes
1answer
57 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.
0
votes
2answers
2k 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("...
0
votes
2answers
1k 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 ...
0
votes
0answers
430 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 ...
0
votes
2answers
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 $ ...
0
votes
1answer
453 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", "...
0
votes
1answer
474 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 ...
0
votes
1answer
47 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 ...
0
votes
1answer
208 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 ...
1
vote
0answers
784 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 ...
1
vote
1answer
643 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: ...
1
vote
1answer
251 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....
0
votes
1answer
228 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 ...
2
votes
1answer
265 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 ...
0
votes
1answer
353 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 ...
1
vote
0answers
89 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,...
0
votes
0answers
284 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 ...
1
vote
0answers
602 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-...
0
votes
1answer
205 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 ...
0
votes
1answer
618 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/...
1
vote
0answers
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:...
1
vote
0answers
105 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 ...
0
votes
2answers
314 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 ...
1
vote
1answer
2k 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 ...
0
votes
1answer
116 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 ...
1
vote
0answers
189 views

gcc-ar: Error running /usr/bin/ar: vfork

As the title says: my ar fails on a vfork() and consumes all resources for a minute or so, before exiting. I see the same for both GCC 7.3 and GCC 4.8 Binutils v2.30 Ubuntu 18.04 LTS Any ideas ...
2
votes
2answers
353 views

command not found… error (Fedora 29)

I am following a tutorial on lex and yacc that requires me to compile some C source code. The tutorial asks me to enter the following line into my terminal: $ gcc ‑o exampleA lex.yy.c ‑lfl But I ...
2
votes
2answers
2k views

Installing Mingw-w64 without admin rights

How can I install Mingw-w64 without admin rights? Note that I was able to install MinGW without admin rights. I am using Windows 7.
0
votes
0answers
103 views

I can compile and flash the code to microcontroller using mbed-cli, but the output isn't working

I installed and configured mbed-cli for Linux, following the official documentation. I can compile and flash the code to micro controller but the output isn't working (not even serial print), but it ...
1
vote
1answer
353 views

How to revert GCC installation on Centos 7

I recently installed gcc 6.3.0 following the instructions on this site as it is the supported compiler for the 2018b release of Matlab and Simulink. However due to compatibility issues with other ...
2
votes
0answers
3k views

Conda gcc/g++ did not replace system (linux) gcc

I'm using a Linux system (in which I don't have sudo access) which already had gcc installed. I have to run some software, which requires stuff like cmake, bison and flex, and I installed them with ...
0
votes
1answer
125 views

Charm4py/charm++, GCC error when installing

firstly I am going to explain the issue and at the bottom you'll find the question/-s. I'm trying to install charm4py using pip/pip3/apt (all of em), after 1.5 hours it fails and I notice it's charm++...

1
2 3 4 5 6