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
2answers
31 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
28 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
18 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
83 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
27 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
4 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
19 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
144 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
38 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
237 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
70 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. ...
0
votes
0answers
77 views

There is no disk in the drive. Please insert a disk into drive \Device\Harddisk4\DR4 when trying to compile C++

I have been trying for so long to convert from Java to C++, but I feel like my computer is too darn old (Dell Inspiron 531 w/ win7 x86) to handle any programs that will allow me to code with this. ...
6
votes
2answers
764 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
153 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
37 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
76 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
175 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
46 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
667 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
52 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
75 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
144 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
815 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
552 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
534 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
104 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
958 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
449 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
75 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
19 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
189 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
200 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
91 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
1k 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
5k 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
975 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
59 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
395 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
3k 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
1k 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
1answer
58 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
317 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
151 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
226 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
506 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
1answer
472 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
96 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 ...
1
vote
0answers
115 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 ...