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

Error installing glog CocoaPod “configure: error: C preprocessor ”/lib/cpp“ fails sanity check”

When running pod install I am getting an error "configure: error: C preprocessor "/lib/cpp" fails sanity check" It seems like my bash shell itself has an issue with location of clang/gcc. If I run ./...
0
votes
0answers
53 views

install R 3.6.1 on Amazon Linux 2

I have no issue installing R-3.6.0 from epel on an Amazon Linux 2 docker image. Now I am trying to install R-3.6.1 from epel-testing, and having some errors that I am not able to fix. bash-4.2# yum ...
0
votes
0answers
41 views

How many versions of clang, gcc, g++ compilers are installed on my linux system?

(Using Pop!_OS distro) I entered the following command in the terminal: dpkg --list | grep compiler And, I got this (only providing a part of the list for the sake of brevity): ii clang ...
0
votes
0answers
23 views

What command line options does use GCC when I'm using it's defaults?

Example main.c file int main() {return 0;} Command to compile gcc main.c gcc --version gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 What are the defaults for this gcc command usage? Where could ...
1
vote
0answers
961 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 ...
0
votes
0answers
34 views

compiling gcc 9.2; getting error: /usr/lib/../lib/crti.o: could not read symbols: File in wrong format

After building three subsidiary libraries (MPC,GMP, MPFR) I started the compilation of gcc 9.2 thusly: tar xvf gcc-9.2.0.tar.gz cd gcc-9.2.0 sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/...
2
votes
1answer
429 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 ...
0
votes
0answers
7 views

Failing installing a shared library

I tried to install a shared library on my computer for days and I constantly fail. I built a library called libgherkin.so.7.0.4 from https://github.com/cucumber/gherkin-c in order to build cucumber.ml ...
0
votes
2answers
748 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
0answers
67 views

Cannot launch rstudio on Deepin 15.11 (rstudio: /lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by rstudio))

I re-installed linux and suddenly Rstudio wont launch after installing the .deb file. (rstudio-1.2.5001-amd64) I already tried installing the dependencies from the source code but nothing works.
0
votes
0answers
18 views

Understanding the gibberish error when compiling LLVM from source

Here are the things I did, Compiled and installed gcc-9.2. Compiled and installed GNU binutils-2.32 Compiled and installed GNU Make-4.2 I downloaded the source codes for LLVM, Clang, LLD, libcxx, ...
0
votes
2answers
111 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
30 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
0answers
64 views

Cygwin installed Windows 10, filepath updated, but gcc -v and cygcheck -c cygwin do not work in cmd/ terminal

Cygwin installed on Windows 10, filepath updated, but gcc -v and cygcheck -c cygwin do not work in cmd/ terminal. I'm just trying to get started writing C and FORTRAN programs and I've spent 75 ...
0
votes
0answers
30 views

Compile LFTP from source

When I compile lftp from source, I get below messages on link step: /bin/sh ../libtool --silent --tag=CXX --mode=link g++ -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-...
0
votes
0answers
61 views

Globally accessible gcc on a mac

I have installed gcc-9 on a Mac using Homebrew. It works fine for my own user, but I'd like to make it accessible for any user ID. I've done chmod a+rX -R /usr/local/Cellar to make it accessible ...
0
votes
2answers
538 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
298 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
190 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
0answers
41 views

Allow dynamic loading of libjvm.so when cross compiling

I am currently trying to compile jsvc from Apache Commons Daemon for my MyBookLive, which is on the PowerPC architecture. To do this, I am trying to cross-compile jsvc using musl. When I cross-...
0
votes
0answers
56 views

GCC 7.4 Can't find header files

Hello i have a problem compiling some c code. I'm trying to use the sendfile syscall in linux, but the problem is when i include sys/sendfile.h it gives me error about the size_t variable type (in ...
0
votes
0answers
98 views

Troubles with using MinGW Fortran compiler

I installed MinGW, and defined the path. I'm using windows 10. But I can't use it, I get this error for any gfortran code I try to compile. cd 'C:\Users\smmza\OneDrive\Documents\NetBeansProjects\...
0
votes
0answers
32 views

Getting errors trying to build cross-compiler Ubuntu 18.04 '1686-elf failed'

I hope you're all well. I could use some help as this has taken me a lot longer to figure out than it should... I'll preface by saying I have looked online to figure out the problem and everything I ...
0
votes
2answers
565 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
263 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
310 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
25 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
129 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 ...
0
votes
0answers
92 views

Protobuf 2.5.0 compile error

To compile Hadoop 3.2.0 I needed to first have Protobuf 2.5.0 present. As I am building for AIX 7.1 I have had to build the protocol buffer from the source codes in github. I don't do a lot of ...
1
vote
0answers
419 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
620 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: ...
0
votes
0answers
312 views

configure: error: C compiler cannot create executables after install a newer local release of gcc on centos cluster

I'm configuring a software on a centos cluster. It needs CMake3.5.1 and GCC7.3.0. But after I managed to install gcc7.3.0 locally and setting my locally environment variables #cmake3.5.1 export PATH=$...
0
votes
0answers
48 views

GNU Autotools build: can't set it to properly detect a library

I want to build a software that uses autotools build system. The configure script has already been generated for me (but it does include the files to regenerate it, at least I think it does). I'm ...
1
vote
1answer
124 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
161 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 ...
1
vote
1answer
107 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
0answers
233 views

Cross compiling gcc from x86_64-pc-linux-gnu for arm

I am trying to compile gcc 9.1.0 using Arch's aarch64-linux-gnu toolchain. I have installed aarch64-linux-gnu-binutils 2.32-1 aarch64-linux-gnu-gcc 9.1.0-1 aarch64-linux-gnu-gdb 8.3-1 aarch64-linux-...
0
votes
1answer
167 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
48 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
192 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 ...
0
votes
0answers
35 views

Error in qt creator on linux. Don't find gcc library

Please help me. I dont understand, why QT creator does't debug my project. It produces the following errors: cannor find -lgl linker command failed with exit code 1 (use -v to see invocation) ...
1
vote
0answers
372 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
121 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
304 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/...
0
votes
0answers
144 views

Installing gcc-4.8 and gfortran-4.8, after having rm'ed gcc-8.3 and gfortran-8.3 from /usr/local/bin/

I recently installed gcc-8.3 and gfortran-8.3 from http://hpc.sourceforge.net, using the instructions on that site. I installed both locally on my Mac. Installation was successful and my FORTRAN code ...
0
votes
0answers
6 views

Gcc upgradtion without actual upgrade

I have gcc version 4.8 in my development machine. Am planning to upgrade to 9,but in the customer side they won't agree to upgrade. How can i run my application build with new gcc there? Can I do it?
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
77 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
197 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
305 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 ...

1
2 3 4 5 6