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

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
18 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
183 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
31 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
64 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
50 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 ...
0
votes
1answer
180 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
161 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
238 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
191 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
63 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 ...
1
vote
0answers
240 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
337 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
39 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.
0
votes
0answers
16 views

after installing Red Hat Developer Toolset 1.1 which gcc will be default old one or new gcc 4.7.2

After installing Red Hat Developer Toolset 1.1 can i compile my old source code with old gcc? which gcc will be default old one or new gcc 4.7.2
-2
votes
1answer
77 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
62 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
59 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 ...
0
votes
0answers
681 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
52 views

Compilation with (configure -> make -> make install) is very slow on Mac compared to Linux

I have the highest Mac. Book Pro. 15 Retina on apple's website, my experience with mac is just 3 months (when I bought this mac), I'm facing huge issues in speed when compiling anything from source, ...
0
votes
0answers
738 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 ...
1
vote
1answer
3k 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
582 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
0answers
79 views

Why does adding a library introduce “undefined references”

I'm debugging a configure script and have found that a test fails due to an unrelated library that was added by an earlier test in the script. Specifically, this command works: gcc -o conftest -g ...
0
votes
1answer
36 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
0answers
224 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
2k 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 ...
0
votes
1answer
649 views

How do I compile 64bit program with gcc/g++ on a 64bit Linux?

I'm using Ubuntu 10.04 LTS, and want to make a program to run on a large Debian server that has 300GB memory. With command: g++ Encoder.cpp -std=c++0x -m64 -o Encoder.o it returns something like ...
0
votes
0answers
105 views

Inconsistency in the installation of GCC and MPICH2 using brew

I just installed GCC 4.9.1 on Mac OS X 10.9.4 successfully via: brew install gcc After that, I installed MPICH2 successfully via: brew install mpich2 but in the end of the installation I got the ...
0
votes
1answer
49 views

Compile for a linux platform that does not have gcc available

I'm used to compiling programs with custom feature sets on my own linux laptop. I want to do the same for a remote linux platform that I work on, but unfortunately that platform does not have gcc ...
1
vote
0answers
172 views

GCC option : Unrecognized command line

I am trying to build my project with gcc compiler but I get this error: gcc: error: unrecognized command line option '-mthumb' Isn't -mthumb a default option for gcc? Why he couldn't recognize it?
-2
votes
2answers
79 views

GNU GCC compiler fails to compile when path contains spaces (C++)

I installed code::blocks and GNU GCC + SDK Stream (Open GL) exactly as described in tutorial "Playing with OpenCL: Gaussian Blurring" by Lefteris. Why I cannot compile using spaces in path to library ...
1
vote
3answers
170 views

Compile Heartbleed.c Tester On CentOS 6.x

I have been looking for days now for a solution to this, basically I am trying to test my network for the heartbleed bug, but I am unable to compile the tester on CentOS 6.x, any ideas or suggestions ...
0
votes
0answers
424 views

Installing Homebrew on OSX 10.9

I am trying to install Homebrew with this commands: ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" # Add Homebrews binary path to the front of the $PATH echo 'export ...
0
votes
0answers
430 views

THC-Hydra Installation on Mac OS X

I've been trying to install thc-hydra on my Macbook lately but I haven't been able to get it work as I keep on getting the following error. gcc -I. -O3 -pie -fPIE -fstack-protector-all --param ...
0
votes
1answer
429 views

brew install gcc48 fails on os10.9

I tried to install the gcc on brew and it fails. I am tring to find the configure dir... ohad@Macintosh-2:/Volumes/fiverr_dev$ brew install gcc48 Warning: You seem to have osx-gcc-installer ...
0
votes
0answers
256 views

installing pgplot based program under xubuntu 14.04 gives error

I'm trying to install a software that uses pgplot. I successfully installed pgplot (all demos are running properly), but when I try to install the software based on it I get the following errors: ...
0
votes
0answers
87 views

Make fails: implicit declaration error

I'm trying to compile an application (specifically TVHeadend) which uses gcc and I'm getting this error: src/main.c: In function 'main': src/main.c: error: implicit declaration of function ...
0
votes
0answers
299 views

Compiling GCC multilib on Debian Wheezy i686

I can compile C and C++ programs for x86 and x86-64 using GCC compilers from Debian's official repositories without problem: $ gcc -v Using built-in specs. COLLECT_GCC=gcc ...
1
vote
0answers
75 views

Why do MinGW and MSYS have separate versions of gcc?

This is my understanding of the relationship between MinGW and MSYS. When installing MinGW and its gcc toolchain, installing MSYS is optional. With MSYS installed, you get bash and a few other tools ...
2
votes
1answer
8k views

MinGW gcc missing zlib1.dll

Whenever I try to compile a C file using MinGW's gcc, it gives the error that zlib.dll is missing. Is there any reliable way to get zlib.dll or to fix this error?
2
votes
0answers
76 views

How to create symbol versioned functions in an so file in Fedora?

Due to the following bug in Fedora: http://forums.fedoraforum.org/showthread.php?t=296524 I decided to compile my own versions of zlib and libpng. But after doing so, I realized that libcairo could ...
6
votes
1answer
4k views

brew install gcc /Mac OS 10.9 Mavericks

I'm doing a clean install of Mavericks, and accidentally did brew install gcc which is taking over half an hour, maybe more. Should I terminate it? I know now that I should have installed a ...
5
votes
1answer
8k views

Install GCC / G++ Version 4.9 in Linux Mint

I always like to have the latest version of things, particularly if that thing is gcc, g++ and there has recently been a revision to the c++ standard. I have forgotten what ppa's I need to add to my ...
1
vote
2answers
8k views

Making Google Chrome 35 work on CentOS 6.5

I am trying to install Google Chrome 35 on my CentOS 6.5 . After googleing for few hours I found that Google has decided not to support EL 6 release anymore. Due to which I get following error. ...
0
votes
1answer
144 views

Slackware ./configure error

I'm new to slackware. i'm trying to install freetds on my slackware 14.0 but i get this error when i run ./configure config.log say: gcc: error: unrecognized command line option '-V' gcc : fatal ...
0
votes
1answer
1k views

Error compiling gcc on Raspberry Pi

So, after solving the problems I had before (previous question here), I'm having some other trouble compiling gcc 2.95.3 on my Raspberry. This is what I get with the make bootstrap command. ...
0
votes
1answer
431 views

Error compiling gcc on Raspberry Pi (Raspbian): make: *** [bootstrap] error

I'm trying to compile the gcc version 2.95.3 on raspbian, I need it in order to compile the 2.6 kernel. I'm following this tutorial, but when I get to the bootstrapping step, i get make[1]: Entering ...
1
vote
1answer
854 views

Downgrade GCC to older versions with apt-get

For specific reasons, I have to downgrade my GCC to version 2.x using apt-get (not downloading and compiling the source). Is that possible? If yes, how can I find the repository address and install ...
2
votes
1answer
4k views

Upgraded to Mavericks, C compiler cannot create executables

Upgrading to Mavericks, I appear to have broken my Ruby on Rails development environment, which requires ruby 1.9.3 because of various gem dependencies. Within that app directory, I'm trying to ...