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
0answers
7 views

To increase payload size of libmicrohttpd library

I was assigned a work to create a server daemon for background processing which performs some checks and encryption of data received over http post method. I have to receive the payload of 5MB of ...
1
vote
0answers
31 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
41 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
20 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
11 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
31 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
33 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
40 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
364 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
37 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
461 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
1k 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
341 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
58 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
0answers
25 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
190 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
1k 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
416 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
93 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
43 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 ...
0
votes
0answers
123 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
66 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
140 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
389 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
372 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
400 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
214 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
85 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
274 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
61 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
6k 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
66 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
3k 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 ...
0
votes
0answers
17 views

Vendor toolchain

I'm happy owner of asus O!Play HDP-R1 device. It has open source toolchain. I want to know if it was modified in some way to support features of their device, or is it just an old version of gcc ...
3
votes
1answer
5k 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
6k 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
117 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
888 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
355 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 ...
0
votes
1answer
714 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 ...
1
vote
1answer
3k 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 ...
-1
votes
4answers
263 views

Do different compilers produce different machine code file formats for Windows? [closed]

Under Windows, if someone compiled a C++ source code with gcc, would the output file formats and extensions be different from other C++ compilers? And are the output files extensions and formats of ...
0
votes
1answer
40 views

Invalid macro expansion argument character

I am attempting to compile pooler-cpuminer and when running make I get this error: sha2-arm.S:190:invalid macro expansion argument character (+) Any help? I've looked and haven't found a solution ...
1
vote
0answers
239 views

XCOFF32 object files are not allowed in 64-bit mode while installing Crypt-SSLeay-0.65_02

I am installing a Perl package Crypt-SSLeay-0.65_02 in an AIX 6.1 system but while performing perl Makefile.PL getting the following error. The test suite can attempt to connect to public servers to ...
0
votes
0answers
106 views

gcc fails with “No available targets” on Mac OS 10.9.2

When I try to install pycrypto or psychopg2 on my macbook, I get this error: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -std=c99 ...
0
votes
0answers
70 views

unable to compile php on ubuntu

I'm trying to compile an older version of PHP (5.2) on Ubuntu 13.04 and am having some difficulty. Here's what I tried (from my home directory): sudo apt-get install php-pear wget ...
1
vote
0answers
263 views

install latest gcc on rhel 6 x86_64

I have an RHEL 6 server with gcc version 4.4.7. I wanted to update the gcc version (I think the current one is 4.8). Yum update doesn't work. Also, SO answers for a similar question on CentOS does not ...
1
vote
0answers
105 views

gcc 4.8 on MacOS fails depending on -arch order

I am trying to get a recent version of gcc 4.8.2 up on my machine. I have tried installs that come from MacPorts as well as the one that gets installed alongside the binary install of gfortran. For ...
1
vote
0answers
279 views

gcc --as-needed linker flag not working

I have two computers with Gentoo, both on AMD64. I try to build a following program: int main() {tgetent();} The command to compile is: gcc -v 1.c -Wl,--as-needed -lncurses On one computer it ...
0
votes
2answers
163 views

Using gcc (>= 4.8) with OBS (OpenSUSE Build Service)

I am currently using the OpenSUSE Build Service (https://build.opensuse.org/) to build ArangoDB. However, for some newer C++ features I need a fairly current C++ compiler. For some of the older ...