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
13 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
60 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 ...
0
votes
1answer
29 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
60 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
23 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
9 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 ...
0
votes
0answers
112 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
383 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
122 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
67 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 ...
-1
votes
2answers
22 views

GCC license and compiled apps [closed]

GCC has a GPL license, so does that mean whatever i compile most be open-source? And what happens if i use a framework that has the GPL licence while compiling with GCC? Thanks.
0
votes
1answer
32 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
87 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
45 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
76 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
324 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
287 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
296 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
147 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
80 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
220 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
47 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
3k 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
44 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 ...
5
votes
1answer
2k 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
16 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 ...
1
vote
1answer
2k 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 ...
0
votes
1answer
4k 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
76 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
587 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
250 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
565 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
2k 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
188 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
34 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
175 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
85 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
46 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 ...
0
votes
0answers
147 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
97 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
190 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
137 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 ...
0
votes
0answers
126 views

Running exe generated with GCC using cygwin without admin rights

So this awesome company that I work for has a picky IT department that doesn't allow developers to have admin rights. What is the best way to go about running a .exe generated from Cygwin GCC without ...
0
votes
0answers
80 views

Why is gcc --version giving this error message?

When I run gcc --version on my Mac OSX Mavericks with Xcode v5.1 installed it sends to stderr the following error output: Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr ...
1
vote
1answer
195 views

How to install gcc 4.4.7 on Mountain Lion

I need to install a specific version of the GNU GCC compiler, gcc 4.4.7, on my macbook, but I'm not sure how to do this. Most places I've found install later versions but I need to install that ...
0
votes
0answers
172 views

How do I install GCJ on OSX

I've looked at the gcj page and though there's downloads links they're only for downloading gcc, and with the apple version of gcc there is no gcj included: $ gcc --version Configured with: ...
0
votes
0answers
164 views

Error installing HandBrake on Amazon AMI Linux

When I tried to compile Hand Brake, I get the following error: checking whether we are using the GNU C++ compiler... no checking whether /usr/bin/g++ accepts -g... no checking dependency style of ...
0
votes
1answer
618 views

linker error: could not read symbols: Invalid operation

I am trying to compile GMediaRender on Ubuntu 12.04. I got an error during make: gcc -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -L/usr/lib -o gmediarender ...
0
votes
0answers
59 views

Slow mac when compiling and running jobs in terminal

I am having numerous problems with the newest Macbook Pro 13 inch (16GB RAM i7 13inch Retina display) when compiling programs in the terminal. Every time I start a process, whether it is compiling a ...
0
votes
1answer
53 views

Compiling Opensmmpbox in Cygwin for windows service

Need a opensmppbox as a windows service so i try to compile it under cygwin...get this error: /usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld: cannot find -lwap ...