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.

learn more… | top users | synonyms

0
votes
1answer
13 views

Newer version of libc6-dev package causes havoc

I have a mips64 machine running Debian Wheezy. GCC compiler installs without any issues, however, linker is having some trouble: apt-get install gcc make gcc helloworld.c -o helloworld /usr/bin/ld: ...
0
votes
0answers
13 views

Updated Ubuntu to 16.04, maybe GCC didn't get the memo?

Upgraded to "Xenial Xerus" (from Trusty Tahr 14.04 LTS) on release day using do-release-upgrade. Last night just for kicks I was playing with the -S switch on GCC and I noticed that the second last ...
0
votes
1answer
9 views

g++ 4.9.2 in Cent OS 6.7 will compile but not link

I am using Centos 6.7 and have installed the devtools-3 distribution and "enabled" it to make gcc 4.9.2 the default. A simple C++ program that uses regex will compile , but does not link. // ...
0
votes
1answer
14 views

How to pass custom options(--prefix) to configure when rebuilding a 'gcc' package?

I want to rebuild the gccXXX packages with a custom --prefix. I know how to rebuild (with the following commands) it, but how do I provide a custom --prefix?: apt-get build-dep -y gcc-4.9-multilib ...
1
vote
1answer
47 views

Cant install gcc with cygwin on Windows 10

After installing cygwin on Windows 10, I tried to install gcc by cd C:\cygwin C:\cygwin\setup-x86_64.exe -q -P wget -P gcc-g++ -P make -P diffutils -P libmpfr-devel -P libgmp-devel -P libmpc-devel ...
0
votes
0answers
9 views

my graphical debian is deleted after trying upgrade GCC

I am not an experienced debian user, what I did is following this post to install Nodejs 4.X in my debian wheezy : http://alex-taran.blogspot.com/2015/10/nodejs-4xx-on-debian-7-wheezy.html after ...
0
votes
1answer
69 views

How to Install gcc 5.3 on CentOS 7.2?

OS is centos 7.2,using yum groupinstall "Development Tools" could install gcc 4.8.5,I would like to install gcc 5.3. How to approach this with yum?
0
votes
0answers
27 views

How to set MinGW-w64 with Qt

I have installed Qt on my desktop. It opens and I create a new project, After a few steps the kits step comes up. I clicked on configure and it showed a red error sign side of the desktop kit for ...
0
votes
2answers
43 views

Is it possible to remote compile with gcc?

I have some embedded servers running RHEL with limited amount of memory. Because of this I do not want to install gcc because it is so large. Is there a way to remote compile with gcc? The only way ...
1
vote
1answer
107 views

Recommended way to provide another version of GCC?

I'm on Fedora 23 which installs GCC 5.3.1 by default. For a cross compilation project with libraries which have been compiled with GCC 4.9 I'd like to install GCC 4.9 in parallel. This (very old) ...
0
votes
0answers
38 views

Upgrading gcc, ghostcript and aliases

My problem has multiple faces and I will really appreciate if anyone can help me sort it out. The origin of the problem can be traced here: High memory usage of eps file So, I thought I better ...
0
votes
2answers
41 views

Can I sandbox a binary created in C (with GCC) for Linux and make it easy for users?

I have compiled a binary that I want to distribute to other people. It's closed-source, but I want to provide users of the binary with confidence that it cannot possibly access the internet, ...
-1
votes
1answer
33 views

does the gcc compiler have any relation with the OS scheduler? [closed]

All is in the title I want to know if is there any relation between the compiler and the scheduler ?
0
votes
1answer
43 views

GCC ld: can't find -lcurses

Make install Produces this output: /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libcurses.so when searching for -lcurses ...
1
vote
1answer
181 views

What is the difference between the different GCC on Cygwin, and which one to install?

I need to install GCC for Cywin, but I see that there are five different "gcc-g++" packages: cygwin32-gcc-g++ gcc-g++ mingw-gcc-g++ mingw64-i686-gcc-g++ mingw64-x86_64-gcc-g++ What is the ...
0
votes
0answers
37 views

Restoring C++ Compiler

I needed the OpenMP C++ library so I followed the instructions in this post to install GCC since Clang does not support OpenMP. I have OS X Mountain Lion and installed GCC4.9. I do not know what went ...
0
votes
0answers
7 views

How to change MacPorts config setting before building a Package?

I work with a FOSS project. MacPorts users are experiencing Issue 37664 when using MacPort's GCC compilers. We know the fix, but we cannot work around it because MacPorts does not identify itself in ...
0
votes
0answers
26 views

gcc upgrade successful but gcc-c++ still not upgraded centos

gcc and gcc=c++ being detected differently for yum package installer on CentOS v6.6 I have a CentOS server and I'm trying to update the software on that server using the yum package installer, but ...
0
votes
0answers
294 views

gendef and cl - installation

I am trying to wrestle myself through a rather complicated installation of theano on Windows 7, 64-bit, Python 2.7. I have little experience in conducting these installations - and am currently stuck ...
0
votes
1answer
72 views

GCC - windows - no input files

I am trying to install GCC on a windows 7, 64bit machine in order to run a specific package (theano) on python 2.7. at the moment - when i type gcc --version at the command prompt - i get the ...
1
vote
1answer
590 views

Updating gcc 4.8 arm cross compiler to 4.9 on Mint 17.2

While cross compiling a linux kernel (4.1) using gcc-arm-linux-gnueabihf on Mint 17.2 (equivalent to Ubuntu 14.04 trusty) I get an error: Your compiler is too buggy; it is known to miscompile kernels ...
1
vote
2answers
97 views

Upgrading gcc for a specific user account

I work on a computing cluster running CentOS6/RHEL6 that I share with ~100 other users, overseen by a single IT admin. Recently, I started writing in C++, and some of my code depends on C++11. ...
6
votes
2answers
1k views

How does gcc find the following header file?

I've included sys/ptrace.h into my C program. The output of /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1 -v gives the following paths where gcc looks for header files #include "..." search starts here: ...
0
votes
0answers
241 views

Intel icc breaks gcc with math.h on linux

I installed Intel's compilers and applications bundled with their Parallel Studio the other day and I cannot compile without using icc. When using gcc, clang or mpicc, I get the following error: In ...
0
votes
0answers
47 views

No C++ pthread support in build farm?

I'm trying to get some code compiling in a build farm. When I build it on my development machine things go fine: checking if C compiler and POSIX threads work as is... no checking if C++ compiler and ...
0
votes
2answers
126 views

Unable to install gcc compiler

I am trying to install gcc compiler using the command: yum install gcc but I am getting the error as: Loaded plugins: product-id, security, subscription-manager Updating certificate-based ...
0
votes
1answer
268 views

Install older version of gfortran on windows (cygwin x64)

I'm using cygwin 64bit for windows. It offers all the packages you could want in the setup, but I can't find a way to get an older version of a package (gcc fortran compiler in my case). I have ...
0
votes
1answer
58 views

how to check what version of bfd I am using?

I have encountered a bug when running the gcc command on a Linux machine, and on Googling the bug I found that people say, it has been fixed in a newer revision of the bfd library. Searching further, ...
0
votes
0answers
785 views

How to install GLIBC_2.15 and GLIBCXX_3.4.20 on centos 6.6 ?How to setup YCM?

Recently I'm trying to setup YCM on system of centos 6.6,however the system doesn't provide gcc of version high enough to support the work of clang.It is quite a trouble for me to update the gcc,more ...
1
vote
0answers
61 views

Proper GCC setting for my CPU

I'm trying to compile a simple C program for my Colibri T20 running Angstrom Linux. The output of uname -a is here: Linux colibri-t20 3.1.10 #1 SMP PREEMPT Fri Mar 20 02:38:59 CET 2015 armv7l ...
2
votes
1answer
82 views

Does a better/newer C or C++ compiler produce more performant compiled code? Or do they just perform faster/better while compiling?

I am not a C or C++ programmer myself, but I often use software that needs to be compiled or otherwise depends on a compiler, like some R packages. Will that software actually perform better if I use ...
0
votes
0answers
176 views

How can I use older gcc headers?

I installed gcc-3.4 to Debian 7.8 and create symbolic link /usr/bin/gcc. When I typed gcc --version I get: gcc (GCC) 3.4.6 (Debian 3.4.6.-9) Then I wrote simple C program. #include ...
3
votes
1answer
2k views

Gem installation failling with “The compiler failed to generate an executable file” on cygwin

Trying to install multiple gems on cygwin, I keep getting this error: /usr/share/ruby/2.2.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) This error is ...
0
votes
1answer
1k views

homebrew: Error: Could not symlink lib/gcc/4.9

I would like to install gcc with homebrew on a MacBook Pro (OS X 10.10.3) and ran into this: mach:gcc mh$ brew install gcc Warning: gcc-4.9.2_1 already installed, it's just not linked mach:gcc mh$ ...
0
votes
0answers
670 views

Install GCC 5.1 on Raspberry Pi 2 with Raspbian

I would like to install GCC 5.1 (newest version - although 5.0 would be fine too) on my Raspberry Pi 2 with Raspbian (Debian jessie) installed. Sadly there is no debian package for GCC 5.1. I've tried ...
0
votes
0answers
739 views

GCC internal compiler error (segmentation fault in cc1plus) under multiple distributions

I'm trying to compile a software and every time I get this error: c++: internal compiler error: Segmentation fault (program cc1plus) Please submit a full bug report, with preprocessed source if ...
1
vote
2answers
116 views

Copying Unix Executable File content from file to file

I am simply experimenting but have found a phenomena that I would be very appreciative if someone could try to explain. I write a simple Hello World program in C. Use gcc to compile this program into ...
2
votes
1answer
1k views

How to install gcc 5+ on centos

I use CentOs 5 machine which has gcc 4.1.2. I want to try out few C++14 features and would like to install gcc 5 in a non default location. What is the best way to approach this? For example, for gcc ...
1
vote
1answer
493 views

gcc not picking up kernel header files

I am trying to compile a program gcc throws fatal error: asm/page.h: No such file or directory page.h exists. How would i setup gcc to include a path. I went a bit nuts and typed apt-get install ...
1
vote
0answers
97 views

Is it considered safe to suspend/hibernate a computer while it's compiling some code?

Will it continue the process where left off? I'm using gcc on a GNU/Linux machine.
-2
votes
1answer
257 views

what __exit does in kernel module unloading in linux? [closed]

static void __exit hello_exit(void) { printk(KERN_ALERT "Goodbye\n"); } module_exit(hello_exit); The __exit modifier marks the code as being for module unload only (by causing the compiler ...
0
votes
1answer
294 views

How do I find out which GCC toolchain is installed?

I would like to debug my embedded target with Insight debugger. The debugging host is Xubuntu 64bit, the debugging target is an ARM Cortex-M4 connected through a JTAG debugger. According to this ...
0
votes
1answer
102 views

Switch Server to use GCC version 4.8.1

I'm banging my head against a wall, I followed the instructions detailed here: http://superuser.com/a/677640 When I ran yum install devtoolset-2-gcc-4.8.1 devtoolset-2-gcc-c++-4.8.1 this was the ...
1
vote
0answers
2k views

Compiling gcc-c++ 4.9.2 -std=c++14 in CLion JetBrains IDE [solved]

I was trying to compile a cpp program using option -std=c++14 in CLion. But I got an error saying g++ error: Unrecognized command line -std=c++14 It's working fine using -std=c+11. My cmakeList.txt: ...
0
votes
0answers
1k views

How to build a crosstool-ng toolchain for a Synology DS 214 with DSM 5.1?

I'm trying to build a gcc 4.6 which "just works" on a Synology DS214 with DSM 5.1 (the Synology OS which effectively is a horribly outdated Linux 3.2.x), i.e. allows me to compile applications on the ...
2
votes
1answer
6k views

gcc unrecognized command line options '-V' and '-qversion' with autoconf

When compiling with gcc 4.7.2 and autoconf 2.69, I am routinely getting results such as these in configure.log. Example: configure:3091: $? = 0 configure:3080: gcc -V >&5 gcc: error: ...
0
votes
1answer
1k views

Trying to compile ralink (RT5370 chipset) driver; header files failing

I'm trying to compile the driver provided with a Ralink 5370 usb wifi adapter I bought, for Lubuntu 14.4.1 (32bit version). I'm running 3.16.0-24-generic kernel. The header file is giving a type ...
0
votes
1answer
70 views

GCC/Clang: Available ObjC runtimes

A while ago, I discovered the ObjFW runtime for Objective-C, which is a pretty neat one and does a lot of things - and, is very tiny. But it made me ask lately, which runtimes are available on which ...
1
vote
1answer
480 views

gcc configure --disable-shared fails to disable shared libraries during compilation, libgmp and libmpc conflict

I'm compiling GCC on a build server to get access to the latest version of gfortran; after building gmp, mpfr, and mpc into specially-prefixed directories in usr/local, I configured and make'd gcc, ...
0
votes
1answer
4k views

gcc error Python.h: No such file or directory

I have python-dev (or, as I'm on Centos, python-devel) already installed. sudo yum install mysql mysql-devel mysql-libs sudo yum install python-devel sudo yum install MySQL-python How come this ...